TRANSMISSION // 2606.17821v2

A smarter route from questions to SQL

Source published

DecoSearch routes database questions to direct or multi-step SQL generation, then uses execution feedback to repair queries or plans. Its development-set results are promising, with important limits.

AI-generated conceptual illustration for A smarter route from questions to SQL
AI-generated conceptual illustration; not documentary evidence.

Turning a plain-language question into a database query is not just translation: a system must identify relevant tables, combine information correctly and sometimes reason through several steps. DecoSearch tries to match that work to a question’s difficulty—and revise its plan when a subquery fails or returns no rows.

Why the route matters

A person might ask, “Which patients meet these conditions?” A database needs precise SQL instructions: which tables to consult, how they connect and what filters or calculations to apply. A language model can produce a fluent-looking query that still uses the wrong join or misses a step in the requested logic.

DecoSearch, described in an arXiv preprint, treats errors as problems that can arise at different levels. A query may contain a fixable SQL mistake, such as a bad column reference; it may express the task in an unsuitable way; or the underlying reasoning plan may be flawed. The authors propose routing questions and failures to different stages rather than repeatedly generating the same kind of query.

From schema pruning to plan repair

A Schema Selector uses language-model calls to identify relevant keywords, tables and columns, reducing the schema information passed to later steps. A Judger then assesses whether a question is manageable directly or needs decomposition. Questions judged manageable take the direct route: the system generates and executes one SQL query. Questions judged complex skip that route and proceed to a structured decomposition. If a direct query fails to execute, the system falls through to decomposition.

For decomposition, a model represents smaller questions as a directed acyclic graph, or DAG. The graph records which subtasks depend on earlier results. Independent subtasks can be handled separately; later queries can use results from earlier ones. To guide this stage, the system retrieves three similar question-and-decomposition examples from a knowledge base built from successful runs on the benchmark training split.

When a subtask’s SQL fails to execute or returns an empty result, an SQL Refiner gets one chance to repair it using execution feedback. If the problem persists, a Topology Refiner can propose a revised graph—for example, by splitting a subtask or restructuring dependencies—and the system can retry within a limited budget. Invalid or unchanged revisions are rejected. If no viable revision is made, or the budget runs out, the system accepts the best available result for the failing node and continues downstream; this does not guarantee a correct final answer.

The framework is called training-free because it does not fine-tune the language model for this pipeline. It still uses prompts, retrieved examples and multiple model calls.

What the tests found

The authors evaluate execution accuracy: whether a query’s result set semantically matches the reference result. They canonicalize result sets to account for row and column ordering and certain formatting differences. On the BIRD and Spider development sets, DecoSearch reports scores of 70.53% and 88.31%, respectively, using a DeepSeek backbone. The authors say these results surpass the training-free baselines in their comparison. These are benchmark scores, not estimates of accuracy on arbitrary live databases.

A separate comparison on the full BIRD development set used a shared GPT-5.4-mini backbone. In that setup, DecoSearch scored 68.58%, ahead of CHESS by 1.89 percentage points and DeepEye-SQL by 9.13 points. These results come from a different evaluation setup, so the scores should not be treated as interchangeable.

An ablation—a test that removes parts of a system—offers clues about what mattered. On a 770-question BIRD subset, always decomposing questions lowered accuracy by 10.65 percentage points compared with the full pipeline. Removing decomposition lowered it by 1.43 points; removing topology refinement, by 0.78 points; and removing schema selection, by 1.82 points. In this experiment, routing was especially important: applying the more elaborate approach to every question performed worse.

The authors also report improvements over direct-generation baselines when DecoSearch was paired with fine-tuned models on BIRD: 10.67 percentage points for XiYanSQL-7B, 5.61 for GPT-5-mini and 3.52 for OmniSQL-7B. These are reported comparisons, not evidence that the wrapper will improve every model or database.

What remains uncertain

Execution feedback is both a strength and a boundary. DecoSearch can use SQL errors and empty results to trigger repairs, but it requires access to a database where queries can be run. A query that executes successfully but returns a semantically wrong answer may not trigger correction. The authors identify this as a limitation of execution-guided methods.

The evidence comes from the authors’ experiments in an arXiv preprint. The benchmark results do not establish how the system would perform in other settings; that is a cautious inference from the scope of the reported evaluations, not a result demonstrated by the paper. More broadly, a repaired query or plan is not necessarily a correct one.

Source: DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQL, arXiv preprint.

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.

  • A two-stage check for AI-generated database queries

    Shared method: Both papers filter database schema elements before SQL generation: DecoSearch uses a Schema Selector, while VCoT-SQL uses staged Pre-SQL, Column, and Value retrieval. This is a shared schema-filtering method, not evidence that the systems or their performance are equivalent.

    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.

    • 2606.17821v2 — Original paper

      Excerpt reference: static/papers/2606.17821v2.md:224-302
      Basis: Paper text
      Source file SHA-256: dab04dd48ebcd21b772023b4d961e01485140d2c86da741630aaef206a28d5b9

    • 2611.00815v1 — Original paper

      Excerpt reference: static/papers/2611.00815v1.md:80-155
      Basis: Paper text
      Source file SHA-256: e0285c457ca253c6132c0b0e86f716547853ab70372c85cc100d82997a16b0a8

  • When an AI Queries a Database, How Does It Know What You Mean?

    Supporting evidence: The survey characterizes schema linking and value grounding as persistent Text-to-SQL challenges; DecoSearch’s BIRD ablation reports lower execution accuracy without its Schema Selector. These findings are compatible with the bounded point that schema selection can matter, but the survey is broad and the ablation is system- and benchmark-specific.

    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.

    • 2606.17821v2 — Original paper

      Excerpt reference: static/papers/2606.17821v2.md:817-945
      Basis: Paper text
      Source file SHA-256: dab04dd48ebcd21b772023b4d961e01485140d2c86da741630aaef206a28d5b9

    • 2611.00171v1 — Original paper

      Excerpt reference: static/papers/2611.00171v1.md:2471-2512
      Basis: Paper text
      Source file SHA-256: f06b2f45df70a3f71494dc6e85c5008afb5a7182d870443a295e6d29b6f3375d

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