arXiv:2610.24248cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24248

Probing Ambiguity: Adversarial Intent Resolution for Robust Text-to-SQL

Youbing Yin, Xujun Peng, Muhammad S. Uddin, Erin Babinsky, Daben Liu, Anoop Kumar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Text-to-SQL systems typically assume a one-to-one mapping between natural-language queries and correct SQL translations. In practice, however, many queries are inherently ambiguous, admitting multiple valid interpretations that yield distinct outputs. We introduce Adversarial Intent Resolution (AIR), a multi-agent framework that actively probes and resolves such ambiguity without any task-specific training. AIR first constructs competing interpretations, verifies through SQL execution that they produce genuinely different results, and generates targeted clarification questions grounded in the observed data differences. Evaluating on leading benchmarks for ambiguous questions, AIR demonstrates strong performance, efficiency, and robust cross-benchmark transferability. On the AMBROSIA benchmark under schema-only context—a realistic production setting where exposing the full database is infeasible—AIR outperforms IntentRL, the state-of-the-art reinforcement learning model, across all metrics (e.g., F1 0.679 vs. 0.618). Crucially, AIR exhibits only ~7% performance degradation without the full database, compared to ~20% for IntentRL. On the AmbiQT benchmark, where ambiguity arises from schema design rather than linguistic structure, AIR achieves higher F1 under both context settings without any benchmark-specific adaptation.

1 Introduction

Text-to-SQL systems have made remarkable progress, with recent LLM-based approaches achieving over 85% execution accuracy on benchmarks like Spider (Yu et al., 2018; Lei et al., 2025) and BIRD (Li et al., 2024b) through in-context learning (Gao et al., 2023; Pourreza and Rafiei, 2024) and fine-tuning (Li et al., 2024a). These advances bring closer the promise of natural-language database interfaces, enabling non-technical users to query complex schema without writing SQL. Yet this progress rests on a critical assumption: that each natural-language question maps to exactly one correct SQL translation.

In practice, this assumption is fundamentally at odds with how humans formulate questions. Consider: “Show $150 wellness programs and day spas.” Should the price filter apply to both wellness programs and day spas, or only wellness programs? Under one interpretation the answer is two rows; under the other, six rows, a very different result set. This is not an edge case. Ambiguous queries routinely admit multiple valid SQL translations that return different results (Bhaskar et al., 2023; Saparina and Lapata, 2025a).

Yet the dominant paradigm maps each question to a single SQL query and declares success (Yao et al., 2026; Singh et al., 2026; Liu et al., 2026). Even when systems are explicitly prompted for diverse outputs, they overwhelmingly generate surface-level variants of the top prediction rather than structurally distinct alternatives (Bhaskar et al., 2023). Diversity-promoting decoding strategies such as beam search and nucleus sampling fail to explore genuinely different interpretations. A recent work trains models via reinforcement learning (RL) to generate multiple candidate interpretations (Saparina and Lapata, 2026), but still treats ambiguity as a generation problem rather than a probing and verification problem. Moreover, in realistic production settings the full database may not be available as the context to LLM due to privacy, latency, and cost constraints, restricting the LLM to schema-level context only. It remains unclear how these approaches perform when schema-only is used as context to guide disambiguation.

We propose Adversarial Intent Resolution (AIR), a multi-agent framework that requires no task-specific training and resolve ambiguity through adversarial probing, actively attempting to construct a competing interpretation. An Anchor agent proposes the most likely interpretation; an

Adversary agent, constrained to diverge, actively constructs alternatives; and execution-based verification retains only interpretation pairs that produce different data—constituting a constructive proof of ambiguity.

We evaluate AIR on AMBROSIA (Saparina and Lapata, 2025a) and AmbiQT (Bhaskar et al., 2023). On AMBROSIA, under schema-only context, the realistic production setting, AIR outperforms IntentRL (Saparina and Lapata, 2026), the RL-trained state-of-the-art, across all metrics (e.g., F1 0.679 vs. 0.618). AIR degrades only one-third as much as IntentRL when moving from full database to schema-only context. With full database available, AIR achieves competitive recall (0.818 vs. 0.854) while generating fewer outputs (1.76 vs. 5.00 per query). On AmbiQT, AIR achieves higher F1 without any benchmark-specific adaptation.

Our main contributions are:

  1. We develop a multi-agent framework that uncovers ambiguity through adversarial probing, verifies it through execution-based divergence, and resolves it through contrastive clarification, requiring no task-specific training.

  2. We show that AIR outperforms the RL-trained state-of-the-art on all metrics under schema-only context, the realistic production setting, and more crucially, with only one-third the degradation.

  3. We demonstrate transferability to new ambiguity types without explicit benchmark-specific adaptation.

References (14)