Can resolving ambiguity in natural language first improve SQL parsing?
Exploring whether generating unambiguous English interpretations before mapping to SQL queries could better handle the ambiguities that plague text-to-SQL systems. This matters because ambiguity is a fundamental language challenge that standard end-to-end approaches tend to gloss over.
The paper proposes a "modular approach that resolves ambiguity using natural language interpretations before mapping these to logical forms (e.g., SQL queries)," arguing this works better than asking a parser to predict multiple SQL queries directly. For an ambiguous question like "return the rating of each hotel," the system first produces unambiguous readings in plain English (star rating vs. guest review score) and only then maps each reading to its own SQL query. The authors report this "disambiguate first parse later" strategy "improves the coverage of interpretations for ambiguous questions and generalizes across annotation styles, database structures, and ambiguity types," reaching "the best single interpretation coverage of 92%" on AmbiQT and the best results on the out-of-domain Ambrosia benchmark on three of four metrics, though full coverage there stays low at 19%.
The mechanism exploits rather than fights a known LLM weakness: the paper notes LLMs, "like humans, resolve ambiguous questions by gravitating toward preferred, default interpretations," so a first LLM pass is used purely to generate those default readings. A second, specially trained "infilling model" then reviews the question and the default interpretations and generates whichever readings were missed, rather than trying to correct the generator's bias directly. To train the infilling model without hand-labeled interpretations, the authors "exploit the fact that generated interpretations can be converted to SQL queries which we execute to verify whether they are correct and to establish which interpretations are missing" — execution, not annotation, supplies the training signal.
This sits alongside Can systems surface ambiguity instead of guessing user intent?, which tackles the same text-to-SQL ambiguity problem but keeps a user in the loop, resolving one variable at a time through a visual interface; this paper instead removes the user entirely, generating and infilling all interpretations up front as an "overton response" the system presents without interaction. It also gives a concrete fix for the failure documented in Can language models recognize when text is deliberately ambiguous? — rather than treating the default-interpretation bias as a deficit to eliminate, it treats the bias as a usable first-pass signal that a second model then fills in. And it directly engages the gap named in Are standard NLP benchmarks hiding how LLMs fail at ambiguity? by evaluating on AmbiQT and Ambrosia, two benchmarks built specifically to retain ambiguous instances rather than filter them out.
The excerpt does not report how an "overton" response of several SQL interpretations actually lands with end users compared to a clarifying question — Do clarifying dialogues help LLMs answer better than rewritten inputs? suggests the dialogue act of asking may itself matter, a comparison this paper does not run. The method is also validated only on text-to-SQL; the authors' own framing of interpretations as "intermediate representations" suggests portability to other semantic parsing tasks, but the excerpt reports no results outside this domain.
Inquiring lines that read this note 3
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Why do language models systematically fail at ambiguity recognition?Related concepts in this collection 5
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can systems surface ambiguity instead of guessing user intent?
When database queries are ambiguous, should systems ask for clarification or make their best guess? This explores whether making the system's reasoning visible helps users disambiguate faster.
same text-to-SQL ambiguity problem, but this paper removes the user and generates all interpretations up front rather than resolving them interactively
-
Can language models recognize when text is deliberately ambiguous?
Explores whether LLMs can identify and handle multiple valid interpretations in a single phrase—a core human language skill that appears largely absent in current models despite their fluency on standard tasks.
names the default-interpretation bias this paper exploits as a usable signal rather than treats as pure deficit
-
Are standard NLP benchmarks hiding how LLMs fail at ambiguity?
Do benchmark design practices that exclude ambiguous examples systematically obscure a fundamental limitation in how language models handle linguistic ambiguity? This matters because it could mean our measures of progress are misleading.
this paper evaluates on AmbiQT and Ambrosia, benchmarks built to retain the ambiguity most benchmarks filter out
-
Do clarifying dialogues help LLMs answer better than rewritten inputs?
When resolving ambiguous inputs, does the format matter? This explores whether LLMs perform better when given clarifying questions and answers versus minimal-edit disambiguated rewrites containing equivalent information.
contrasts generating interpretations without a dialogue turn against the clarifying-question alternative this paper does not test
-
How much does text-to-SQL parsing itself limit coverage?
Even when natural language interpretations are correct and unambiguous, text-to-SQL parsers still fail to generate valid SQL for half of queries. This asks how much of the overall error budget comes from parsing capability rather than disambiguation.
Qualifies A: even with gold interpretations, parsing error dominates, since full SQL coverage reaches only 49%
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Disambiguate First, Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic Parsing
- PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Querying
- SParC: Cross-Domain Semantic Parsing in Context
- Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions
- Knowing but Not Showing: LLMs Recognize Ambiguity but Rarely Ask Clarifying Questions
- CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databases
- Aligning Language Models to Explicitly Handle Ambiguity
- It Depends: Resolving Referential Ambiguity in Minimal Contexts with Commonsense Knowledge
Original note title
disambiguating before text-to-SQL parsing boosts interpretation coverage by exploiting llms bias toward default readings