ARCS: Towards Precise Text-to-SQL via Structured Disambiguation

Yihao Hu, Yanlin Feng, Naoki Otani, Nikita Bhutani

TL;DR

This paper introduces Structured Disambiguation, a new interaction paradigm that replaces tedious back-and-forth chat with a constrained UI (like multiple-choice and sliders) to resolve ambiguous natural language queries in text-to-SQL systems. To evaluate this, the authors released ARCS, a challenging new benchmark featuring real-world databases and complex, multi-layered ambiguities that current frontier models, including GPT-6-sol, still struggle to solve reliably.

What Problem Does This Paper Address?

While modern LLMs have become remarkably good at generating SQL from clear instructions, real-world users rarely provide perfect specifications. A question like "What was the total sales revenue?" seems simple but is deeply ambiguous: Does it include canceled orders? Is it before or after discounts?

Existing benchmarks often use "over-specified" questions that bypass these real-world hurdles. When ambiguity is addressed, it’s usually through conversational clarification—asking the user "What do you mean by X?" This is cognitively taxing for users and inefficient for systems. The authors argue that ambiguity in text-to-SQL is "intersectional," arising from the friction between messy natural language and specific, often redundant, database schemas.

Methods

The authors propose a shift from recall-based interaction (free-form chat) to recognition-based interaction (structured UI). Their framework, Structured Disambiguation, operates in three phases:

  1. Disambiguation: The system identifies "ambiguity points" in the user's question. These are categorized as finite (a set of discrete interpretations, like choosing between two columns) or infinite (unbounded values, like a numeric threshold for "high" balance).
  2. User Interaction: Instead of chatting, the user is presented with an interaction panel. They resolve finite points via multiple-choice selections and infinite points via value sliders.
  3. SQL Generation: The system generates a parameterized SQL query. As the user interacts with the UI, the query and the resulting data table update dynamically, allowing for immediate feedback and comparison.
Figure 1: Comparison of conversational disambiguation and structured disambiguation. Structured disambiguation allows users to compare and select interpretations for multiple ambiguity points based on the SQL queries and execution results.

Datasets

The authors introduce ARCS (Ambiguity Resolution Corpus for SQL). Unlike previous benchmarks that injected artificial noise into small datasets, ARCS is built on six large, unmodified real-world databases (e.g., GitHub repos, banking, retail) totaling 8.3 GB.

Key features of ARCS include:

  • 311 task instances derived from 101 unique, naturally ambiguous questions.
  • A two-dimensional taxonomy: Categorizing ambiguities by their linguistic source (Semantic vs. Syntactic) and their database mapping (Column, Table, Value, or Computation).
  • Complete Annotations: Every valid interpretation and its corresponding SQL query are mapped, allowing researchers to separate "disambiguation errors" from "SQL generation errors."
Figure 2: Illustration of the ARCS taxonomy on a curated database.

Key Insights and Ideas

  • Disambiguation is the Primary Bottleneck: The "aha moment" of the study is that models are actually quite good at writing SQL once the intent is clear, but they are surprisingly poor at identifying that a question is ambiguous in the first place.
  • The "Recognition vs. Recall" Advantage: By providing a structured UI, the system reduces the user's cognitive load. Users don't have to remember schema details; they just have to recognize which interpretation matches their intent.
  • Disparity in Frontier Models: The researchers found that models with similar SQL-writing capabilities (like GPT-5 and Gemini-3-pro) had wildly different scores in disambiguation recall. This suggests that "ambiguity awareness" is an underrepresented objective in current LLM training.
  • Reasoning Effort Scales Disambiguation: For "thinking" models, increasing the reasoning budget significantly improved their ability to spot ambiguities, more so than it improved their raw SQL generation accuracy.

Key Results

  • High Difficulty: Even the most advanced model tested, gpt-6-sol, achieved only 51.77% end-to-end execution accuracy on ARCS.
  • Open-Source Gap: No open-source model exceeded 27% accuracy, highlighting a massive performance gap in handling complex, real-world ambiguity.
  • Efficiency: Structured disambiguation required significantly lower "User Effort" (measured by token interaction) compared to conversational methods while maintaining or exceeding accuracy.
  • Error Analysis: The most common failure mode was the model generating an executable SQL query that simply didn't match the user's intended interpretation, often because it failed to recognize a computation or syntactic ambiguity.
Examples of task instances in ARCS

Limitations and Future Work

  • Annotation Cost: Creating ARCS was extremely labor-intensive, requiring roughly 2.5 hours of expert annotation per question. Scaling this to even larger datasets remains a challenge.
  • User Simulator Biases: The evaluation relies on an LLM-based user simulator. While the authors used a two-stage process to prevent information leakage, a simulator may not perfectly capture the unpredictability of a human user.
  • Future Directions: The authors suggest that future work should focus on "ambiguity-aware" training for LLMs and exploring how structured disambiguation can be integrated into more complex, multi-turn data exploration workflows.

Summary updated

BibTeX
@misc{hu2026arcs,
  author = {Yihao Hu and Yanlin Feng and Naoki Otani and Nikita Bhutani},
  title = {{ARCS: Towards Precise Text-to-SQL via Structured Disambiguation}},
  year = {2026},
  eprint = {2610.09396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.09396},
}
Figure