TRANSMISSION // 2612.00949v1

Do Semantic Query Engines Need LLMs?

Source published

An abstract-only account of a benchmark study comparing decision models with large language models for natural-language predicates inside SQL—and why the evaluation reference matters.

AI-generated conceptual illustration for Do Semantic Query Engines Need LLMs?
AI-generated conceptual illustration; not documentary evidence.

A SQL query can ask whether a review is positive, not just whether a number exceeds a threshold. This preprint tests whether such natural-language decisions require large language models, and finds that the answer depends in part on the evaluation reference.

A database query can do more than match numbers or dates. It can also ask whether a review is positive or whether text meets a criterion. These natural-language tests, called semantic predicates, allow SQL queries to filter records by meaning. Semantic query processing engines evaluate those predicates with models, sometimes sending decisions a smaller model is unsure about to a larger one.

Oktie Hassanzadeh, Long Vu and Dharmashankar Subramanian ask whether these engines need large language models (LLMs). They compare LLMs with decision models: models designed for fixed-answer tasks, such as yes/no, choices or scores, that provide a probability for each possible answer.

Two ways to judge a decision

The study treats the reference used to evaluate a model as part of the experiment. It scores decisions against two references: “gold” labels entered by people and what the text says. The authors also calibrate each engine using labels from the same reference against which it is scored. This matters because the reported winner can depend on the reference—and, when assessing the text, on what a predicate is taken to mean.

The distinction is not simply between a correct and incorrect model in every possible sense. A result against human-entered labels does not automatically tell us how a system fares against the text-based reference, or vice versa.

Testing models in SQL queries

The experiments use SemBench and DecideBench. The authors describe DecideBench as a new benchmark in which decisions are combined through database operations including joins, quantifiers, negation and aggregates. Such combinations let the benchmark test decisions as part of more involved queries, rather than only as isolated judgments.

The researchers built DecideSQL, a DuckDB-based engine that can use decision models, LLMs, cascades or recorded decisions. A cascade sends some decisions from one model to another. The abstract reports results both without labels and with 200 labels per predicate; it does not give further detail about those labels or the full experimental setup.

What the abstract reports

Without labels, a 9-billion-parameter decision model matched or beat a 120-billion-parameter LLM on most SemBench queries it could answer. The authors report that the decision model did so at one-twelfth the cost. The qualification matters: the claim concerns the SemBench queries the model could answer, not every query or task.

With 200 labels per predicate, the best decision model answered DecideBench queries more accurately than every open-weight LLM when evaluated against the gold labels. The abstract also says that escalating uncertain decisions to an LLM—and taking that model’s answer as final—mostly made results worse in this setting.

Against the text-based reference, which engine won depended on what a predicate was taken to mean. That finding underscores why a benchmark score needs context: the reference and the interpretation of a natural-language predicate affect what is being measured.

What we cannot conclude

These results suggest that decision models can be competitive in the tested semantic-query settings; they do not establish that they can replace LLMs across database tasks. The abstract does not provide the detailed methods and results needed to assess how performance varied across queries, how the benchmarks were constructed, or how the cost comparison was calculated. Nor does the abstract establish performance on other datasets or in deployment. These are limits on what can be assessed from the available evidence, not claims that the study itself tested and failed in those settings.

This account is based on the paper’s abstract, because the full text was not available in the supplied source material. The paper is identified as an arXiv preprint, and the available information does not establish peer-review status. Its findings should therefore be read as a reported benchmark comparison, not as a general verdict on which model type is best.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • How Taxi helps inspect AI-agent behavior at scale

    Shared method: Both papers use probabilistic decision models for bounded semantic judgments rather than relying solely on generated text: the origin study evaluates them as SQL predicates, while Taxi uses Jev-style decisions for taxonomy routing and trajectory evaluation. The tasks and evidence differ, and Taxi describes these integrations as experimental rather than demonstrating comparable benchmark performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.00949v1 — Original paper

      Excerpt reference: static/papers/2612.00949v1.md:13-106
      Basis: Paper text
      Source file SHA-256: b32b3ebd6977b5cf9d6ebbebb7c69f7c80523447055aedb24615a6d9dde1b205

    • 2611.31457v1 — Original paper

      Excerpt reference: static/papers/2611.31457v1.md:140-212
      Basis: Paper text
      Source file SHA-256: 385c646416f85f8337e8945f4dd4e0ed923c3e237ee7c7b654651256afa87d93

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.