Decision models challenge LLMs in semantic SQL query engines, study finds
An arXiv study reports that small decision models can match or beat much larger LLMs at answering natural-language predicates in SQL, at a fraction of the cost.
In plain words
Some databases let users filter rows with plain-language questions, and today they usually ask a large language model to answer each one. The papers describe decision models, small models that return a probability for each possible answer instead of generating text. In the reported experiments these small models often answered as accurately as far larger LLMs while costing much less.
What was announced
Semantic query processing engines evaluate natural-language predicates inside SQL by prompting LLMs, often escalating decisions a cheaper model is unsure of to a larger model. The study's authors treat the reference, meaning what an answer is judged against, as a variable: each decision is scored against both human-entered gold labels and what the text says, with engines calibrated per reference. On SemBench and on DecideBench, a new benchmark combining decisions through joins, quantifiers, negation and aggregates, they report that without labels a 9B decision model matches or beats a 120B LLM on most SemBench queries it can answer, at a twelfth of the cost. With 200 labels per predicate, the best decision model outperformed every open-weight LLM against gold, and escalating uncertain decisions to an LLM mostly made answers worse.
The study ran on DecideSQL, an open-source Python engine built on DuckDB in which decision models, LLMs, cascades and recorded decisions are interchangeable. It treats a predicate as a probabilistic relation, stores decisions keyed by decider, question and text so they are not requested twice, and lets calibration maps target a reference of the user's choice. The authors report it answers every benchmark query from its store in tens of milliseconds on a laptop. Against the text rather than gold labels, which engine wins depends on what a predicate is taken to mean.
What it does not show
- Both papers are abstracts, so methods, full results and peer review status are not visible in the supplied evidence.
- The reported accuracy, cost and speed figures come from the authors' own benchmarks and engine, with no independent confirmation.
- Results cover the SemBench and DecideBench queries described; performance on other workloads is not established.
Sources
Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract; arXiv: abstract.
Updates and corrections
No corrections so far.
First published 5 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.