• bitcoinBitcoin(BTC)$66,290.002.16%
  • ethereumEthereum(ETH)$1,934.312.46%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$576.491.12%
  • usd-coinUSDC(USDC)$1.000.01%
  • rippleXRP(XRP)$1.132.78%
  • solanaSolana(SOL)$78.311.70%
  • tronTRON(TRX)$0.3275090.54%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.00-1.68%
  • HyperliquidHyperliquid(HYPE)$62.822.66%
  • dogecoinDogecoin(DOGE)$0.0736221.24%
  • USDSUSDS(USDS)$1.000.01%
  • RainRain(RAIN)$0.014016-1.59%
  • zcashZcash(ZEC)$543.401.19%
  • leo-tokenLEO Token(LEO)$9.710.33%
  • whitebitWhiteBIT Coin(WBT)$57.812.19%
  • stellarStellar(XLM)$0.1923281.95%
  • chainlinkChainlink(LINK)$8.712.66%
  • cardanoCardano(ADA)$0.1746025.80%
  • moneroMonero(XMR)$343.592.06%
  • CantonCanton(CC)$0.1262341.49%
  • daiDai(DAI)$1.000.02%
  • bitcoin-cashBitcoin Cash(BCH)$225.005.01%
  • USD1USD1(USD1)$1.00-0.04%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.450.65%
  • litecoinLitecoin(LTC)$47.450.08%
  • Global DollarGlobal Dollar(USDG)$1.00-0.20%
  • suiSui(SUI)$0.772.15%
  • hedera-hashgraphHedera(HBAR)$0.0683192.79%
  • Circle USYCCircle USYC(USYC)$1.130.00%
  • avalanche-2Avalanche(AVAX)$6.630.33%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • crypto-com-chainCronos(CRO)$0.0582300.50%
  • nearNEAR Protocol(NEAR)$2.002.48%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • shiba-inuShiba Inu(SHIB)$0.0000041.36%
  • tether-goldTether Gold(XAUT)$4,053.300.74%
  • uniswapUniswap(UNI)$3.695.51%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.36%
  • OndoOndo(ONDO)$0.39999214.04%
  • BittensorBittensor(TAO)$201.132.82%
  • pax-goldPAX Gold(PAXG)$4,049.260.71%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.056774-0.50%
  • okbOKB(OKB)$82.071.80%
  • AsterAster(ASTER)$0.631.26%
  • HTX DAOHTX DAO(HTX)$0.0000020.66%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • MemeCoreMemeCore(M)$1.18-4.03%
  • usddUSDD(USDD)$1.000.01%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Feyn AI Releases SQRL, a Text-to-SQL Model Family That Inspects the Database Before Writing a Query

July 19, 2026
in AI & Technology
Reading Time: 14 mins read
A A
Feyn AI Releases SQRL, a Text-to-SQL Model Family That Inspects the Database Before Writing a Query
ShareShareShareShareShare

Most text-to-SQL systems treat the task as translation. Feyn AI (YC-backed startup) reframes it around inspection. The Feyn team has released SQRL, a family of models that turn natural language questions into SQL. Instead of generating a query immediately, SQRL can inspect the database first. This lets it resolve ambiguity and write only queries the data actually supports.

Feyn team reports that the flagship SQRL-35B-A3B reaches 70.6% execution accuracy on BIRD Dev. That figure edges Claude Opus 4.6 at 68.77% under the same evaluation. Three checkpoints ship openly on Hugging Face: SQRL-4B, SQRL-9B, and SQRL-35B-A3B.

A query can be valid SQL and still be wrong

Text-to-SQL is often described as a translation problem, but that framing misses the hardest part. A query can be perfectly valid SQL and still return the wrong answer. It can join the wrong tables, read an ambiguous column incorrectly, or filter for values that do not exist. None of these mistakes throws an error, so none is caught by execution alone.

Schema information does not prevent them. A schema lists tables, columns, types, and sometimes relationships. It does not reveal whether a county is stored as Alameda, Alameda County, or ALAMEDA. It cannot tell you which join produces duplicate rows.

The BIRD benchmark makes these failures measurable. Its databases span real domains and contain imperfect values, ambiguous columns, and nontrivial relationships. A system is scored by executing its SQL and comparing the returned rows against a reference result. For query languages, syntactic correctness is not enough. Feyn’s core insight is that the missing information already lives inside the database. The model simply needs permission to ask for it.

SQRL inspects before it answers

SQRL receives a question, its schema, and optional evidence about the database. If that context is enough, it returns a query at once. If something remains ambiguous, it runs read-only queries and uses the returned rows to draft its final answer. The decision to inspect is circumstantial. Counting rows in a single table needs no lookup, so SQRL answers directly.

The interaction uses two distinct actions. An block requests an observation from the database. An block commits to the final query. The harness executes exploration queries in read-only mode and returns their rows inside tags. SQRL can inspect up to five times, though most questions finish in fewer steps.

The explainer below walks through both behaviors on real examples, then compares the family against frontier models on BIRD Dev.


One model that folds in both traditional strategies

Text-to-SQL has historically followed two approaches, and each trades away something important.

Single-shot models generate the entire query in one turn. They are inexpensive to serve, but they must infer everything from the schema, which can produce logically incorrect queries. Frontier pipelines instead retrieve context, generate candidates, critique them, and then select an answer. This can maximize accuracy, but every question requires several expensive frontier calls and multiple database round trips. That cost makes such pipelines hard to place on the hot path.

SQRL combines both in a single model. Easy questions stay short, while ambiguous questions earn an inspection. The model pays the cost of looking only when the question needs it.

Training the decision to inspect

Giving a model database access does not teach it when or how to look. That behavior has to be trained, and execution-based training is unforgiving. If a reference query is itself wrong, a correct model answer receives the wrong reward. Feyn therefore cleaned the training pool first. Starting from BIRD and Spider, it removed examples whose reference SQL produced no usable result. Three model judges then reviewed the remaining pairs and dropped any query that did not answer its question as written. The test split combines a held-out Spider split with BIRD dev, and the rest of the data went into training.

The 35B-A3B teacher trained directly with CISPO, a reinforcement learning method from MiniMax’s M1 work. CISPO clips the importance-sampling weights rather than the policy ratio, which preserves gradient signal from rare but decisive tokens. For each question, the model produced eight complete trajectories. Feyn executed every final query and rewarded a result that matched the reference, a binary signal that ignores wording and checks only the returned rows.

Group-relative training needs variation inside each group. Eight correct or eight failed attempts carry no signal about which decisions helped. Feyn therefore trained on the ‘mixed zone,’ where only some of the eight attempts succeeded, so every group could reinforce the choices that separated a correct trajectory from an incorrect one. That is how the teacher learned when to inspect.

To make the behavior deployable, Feyn team sampled complete teacher trajectories and kept only runs whose final SQL returned the correct result. This produced about 10,200 examples, each preserving the reasoning, exploration queries, observations, and final answer. The 4B and 9B students were fine-tuned on these trajectories, then refined with the same CISPO execution reward. SQRL builds on the Qwen3.5 and Qwen3.6 model families.

Performance across the family

Feyn evaluated SQRL on BIRD Dev, scoring a query correct when it returns the same result as the reference. SQRL-35B-A3B scores 70.60% and activates about 3B parameters per token. The 9B student holds nearly all of that at 69.80%. SQRL-4B reaches 68.80%, matching Claude Opus 4.6 on this evaluation in a model small enough to host anywhere, so your schema, queries, and observations stay on infrastructure you control.

In Feyn’s reported comparison, the frontier field trails: Claude 4.5 Sonnet at 67.34%, Qwen3-Coder-480B-A35B at 66.17%, GLM-4.7 at 63.82%, DeepSeek-R1 at 61.67%, and Kimi-K2-Thinking at 60.63%.

Deployment notes

Feyn recommends SQRL-9B as the default checkpoint, with SQRL-4B for the tightest budgets and SQRL-35B-A3B for the highest accuracy. The 9B model serves with vLLM:

vllm serve feyninc/sqrl-9b \
  --served-model-name sqrl-9b \
  --gpu-memory-utilization 0.90 \
  --max-model-len 32768

The application loop is small. Keep database execution read-only, and return each observation to the model until it emits an answer. One caveat matters. Do not enable a serving-layer reasoning parser. The action protocol appears in the content after the closing tag, so stripping that content removes the model’s or action. Parse the raw message content and preserve everything after the final think tag. The model cards contain the complete system prompt and a reference harness.

Key Takeaways

  • SQRL is a text-to-SQL model family that runs read-only probes to inspect a database before committing to a final query.
  • Feyn reports SQRL-35B-A3B at 70.6% execution accuracy on BIRD Dev, above Claude Opus 4.6 at 68.77% in the same evaluation.
  • The flagship distills into 4B and 9B students; SQRL-4B matches Opus on this test while staying self-hostable.
  • Training cleaned BIRD and Spider, rewarded execution matches, and used CISPO plus distillation to teach the model when to inspect.
  • All three checkpoints are open on Hugging Face and serve with vLLM through a read-only harness that feeds observations back to the model.
  • SQRL is built by Feyn. You can find the team on GitHub, Hugging Face, and X.


Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

YOU MAY ALSO LIKE

Sony Files Another Lawsuit Against AI Music Generator Udio

Meta Open-Sources Astryx: An Agent-Ready React Design System With 150+ Accessible Components, Seven Themes, and a CLI

Credit: Source link

ShareTweetSendSharePin

Related Posts

Sony Files Another Lawsuit Against AI Music Generator Udio
AI & Technology

Sony Files Another Lawsuit Against AI Music Generator Udio

July 21, 2026
Meta Open-Sources Astryx: An Agent-Ready React Design System With 150+ Accessible Components, Seven Themes, and a CLI
AI & Technology

Meta Open-Sources Astryx: An Agent-Ready React Design System With 150+ Accessible Components, Seven Themes, and a CLI

July 21, 2026
Amazon’s Adaptive Display For Fire TVs Is Officially Rolling Out Today
AI & Technology

Amazon’s Adaptive Display For Fire TVs Is Officially Rolling Out Today

July 20, 2026
The First UL 3700-Compliant Plug-In Solar Microinverter Is Now Available In The US
AI & Technology

The First UL 3700-Compliant Plug-In Solar Microinverter Is Now Available In The US

July 20, 2026
Next Post
Top NYC business group opposes Gov. Hochul’s one-year data center ban

Top NYC business group opposes Gov. Hochul's one-year data center ban

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
EXPLAINED: WHY DID IBM CRASH TODAY?!?

EXPLAINED: WHY DID IBM CRASH TODAY?!?

July 15, 2026
GameStop CEO Cohen Discusses eBay Bid, Video Game Software

GameStop CEO Cohen Discusses eBay Bid, Video Game Software

July 19, 2026
Google Cloud’s Always-On Memory Agent Replaces RAG and Embeddings With Continuous LLM Consolidation on Gemini 3.1 Flash-Lite

Google Cloud’s Always-On Memory Agent Replaces RAG and Embeddings With Continuous LLM Consolidation on Gemini 3.1 Flash-Lite

July 18, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!