Evaluating LLMs on Conversational Text-to-SQL under Chain Ambiguity and Intent Drift
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Evaluating LLMs on Conversational Text-to-SQL under Chain Ambiguity and Intent Drift Yujia Liu1* , Jiayan Lin1* , Zijin Hong2*† , Zheng Yuan2 , Shengyuan Chen2 , Hao Chen3 Qinggang Zhang4 , Xiao Huang2 , Feiran Huang5† 1 Jinan University 2 The Hong Kong Polytechnic University 3 City University of Macau 4 Jilin University 5 Beihang University yujialiu@stu2023.jnu.edu.cn; ljiayan@stu2023.jnu.edu.cn zijin.hong@connect.polyu.hk; xiao.huang@polyu.edu.hk; huangfr@buaa.edu.cn
arXiv:2608.29543v1 [cs.CL] 30 Aug 2026
Abstract Recent advances in large language models (LLMs) have established conversational textto-SQL as a practical interface between users and databases, often involving multiple turns of clarification and revision. However, existing benchmarks primarily evaluate execution accuracy, leaving the unfolding and shifting of user intent across turns largely uncovered. To address this, we introduce TIDE-B ENCH, a benchmark for conversaTIonal text-to-SQL under chain ambiguity and intent Drift Evaluation, targeting two recurring patterns: chain ambiguity, where an underspecified question triggers layered clarification with conditional dependencies, and intent drift, where the user retracts and replaces a previously committed request element. Built on 514 anchor SQLs from BIRD, TIDE-B ENCH comprises 1,542 samples and introduces dedicated metrics for chain identification and drift recognition-resolution beyond execution accuracy. Evaluating 12 advanced LLMs reveals a persistent chain identification bottleneck unaffected by clarification frequency, a wide drift recognition-resolution gap, and overlap between failure modes when jointly activated. The corresponding code of TIDE-B ENCH is released for further research1 .
1
Introduction
The advent of large language models (LLMs) has established text-to-SQL (Hong et al., 2025; Liu et al., 2025a) as a practical interface between users and structured databases. In real deployments, this interaction is rarely single-turn: users and agents converse over multiple rounds, refining requests and seeking clarification before SQL is produced (Yu et al., 2019a; Huo et al., 2026). Even agents that perform well in single-turn evaluation can fail once conversation becomes part of the task (Yu et al., 2018; Li et al., 2023; Lei et al., 2025). * All authors contributed equally to this research. † 1
Corresponding author. https://github.com/Rcrossmeister/TIDE-Bench
A. Two interaction patterns in conversational Text-to-SQL Incorrect SQL
Top customers Spending it from the West By spending or by tenure? is — exclude region? refunds?
Actually, forget the rankings ...
Accuracy 76.5
L1
L2
top customers ranked by spending
L2 depends on L1
contact emails for West accounts
B. In Text-to-SQL research ?
Covered or improved by prior work
Schema - level table join column
Implementation ranking rounding ordering
Under-explored
aggregation
null handling
Chain Ambiguity
Linguistic
Knowledge missing facts
incomplete knowledge
scope
User Intent Drift
vague terms
attachment
Figure 1: (A) Two conversational patterns that challenge text-to-SQL. (B) Neither is covered by existing text-toSQL benchmarks or standard evaluation protocols.
However, how does user intent actually unfold and shift across turns, and are current agents equipped to handle it? Figure 1 illustrates two recurring interaction patterns in multi-turn dialogue. First, an underspecified question may trigger chain ambiguity: a layered clarification process in which a later clarification is conditionally dependent on the resolution of an earlier one, going beyond turnlocal ambiguity studied in prior work (Bhaskar et al., 2023; Saparina and Lapata, 2024; Dong et al., 2025). Second, a user may retract and replace a committed request element mid-conversation, a non-monotonic shift we term user intent drift. These two interaction patterns raise two critical concerns: 1) Chain dependency is not captured by turn-local ambiguity, as resolving each clarification in isolation says nothing about whether the agent recognizes the dependency between layers; 2) Commitment dynamics are not captured by end-to-end accuracy, as a single execution match cannot tell whether the agent registered the retraction or merely happened to land on the right query. Existing conversational text-to-SQL benchmarks (Yu et al., 2019b,a; Sun et al., 2025; Huo et al., 2026) measure multi-turn SQL accuracy, while a related line of work (Bhaskar et al., 2023;
Saparina and Lapata, 2024; Dong et al., 2025; Ding et al., 2026) also defines turn-local ambiguity taxonomies for individual utterances. However, these efforts either evaluate dialogue execution as a single end-to-end number or restrict ambiguity to one turn at a time, leaving open how agents handle cross-turn dependency and retraction. In this context, effectively evaluating how text-to-SQL agents handle these dialogue-level interaction patterns remains a significant challenge. As a solution, this paper introduces TIDE-B ENCH, a benchmark for conversaTIonal text-to-SQL under chain ambiguity and intent Drift Evaluation, which operationalizes chain ambiguity through a counterfactual test for conditional dependency and intent drift through a non-monotonicity test over commitment sets derived from SQL abstract syntax trees. Specifically, TIDE-B ENCH is built around a paired factorial design over 514 anchor SQLs from BIRD (Li et al., 2023): each anchor spawns three samples activating chain ambiguity alone and intent drift alone and together, so that performance differences are attributable to the activated interaction patterns rather than others. The resulting 1,542 samples are produced through a four-stage pipeline with automated validation and human verification. Beyond execution accuracy, TIDE-B ENCH introduces dedicated metrics for chain-layer identification and drift recognition-resolution. Overall, our main contributions are summarized as follows: • We identify and formalize chain ambiguity and user intent drift as two underexamined dialogue-level interaction patterns in conversational text-to-SQL, and operationalize each through a counterfactual test for conditional dependency and a non-monotonicity test over commitment sets for systematic evaluation. • We introduce TIDE-B ENCH, a benchmark of 514 anchor SQLs and 1,542 paired samples constructed through a four-stage pipeline with automated validation and human verification, whose design attributes performance differences to the activated interaction patterns. • We evaluate 12 advanced LLMs on TIDEB ENCH and also diagnose three key distinct failure modes: a persistent chain identification bottleneck unaffected by ask behavior, a drift recognition-resolution gap concentrated on retraction-target inference, and a joint penalty where the two failures occur on overlapping rather than independent samples.
2
Problem Formalization
Real-world text-to-SQL systems often operate in multi-turn interactions, where a user’s intent may be underspecified at first and clarified over time. During this process, the intended SQL query may evolve as the user resolves ambiguity or revises a prior choice. We formalize two key interaction patterns: chain ambiguity and user intent drift. 2.1
Chain Ambiguity
Definition. A sample exhibits chain ambiguity when an underspecified user query induces two layers of clarification: L1 (layer one) and L2 (layer two), such that the existence, scope, or framing of L2 is conditionally dependent on the resolution of L1. Each layer offers two semantically plausible interpretations of the query. This conditional dependency distinguishes chain ambiguity from two stacked independent ambiguities, where simply resolving L1 leaves L2’s semantic content unaffected. Counterfactual Test. To distinguish chain ambiguity from independent stacking, we use the following counterfactual test (Pearl, 2009): if L1 were resolved with its alternative choice, would L2 still be posed as the same question? The test yields one of three verdicts: (i) Eliminated, where L2’s premise vanishes under the L1 alternative and the question becomes vacuous; (ii) Transformed, where L2 must be reframed through changes to its referent, vocabulary, or scope; and (iii) Invariant, where L2 can be asked verbatim, indicating semantic independence. A sample qualifies as chain-ambiguous only when the verdict is eliminated or transformed; samples judged invariant are rejected at this stage. Worked Example. For the dialogue in Figure 2, the L1 alternative tenure measures duration rather than a monetary quantity, so L2’s question about excluding refunds no longer has a valid referent. The verdict for this example is therefore eliminated. 2.2
User Intent Drift
Definition. User intent drift is a non-monotonic revision in which at least one previously established commitment is withdrawn or replaced. Unlike cooperative continuation, which retains all prior commitments, drift requires revising the dialogue state and discarding withdrawn requirements from the resulting query but may also introduce new commitments. To formalize this definition, the user’s committed intent at each dialogue turn is represented
TIDE-BENCH Construction
Example Dialogue
Counterfactual Test
Anchor SQL
Show me our top customers from the West region.
Core idea: determine whether L2 depends on L1.
Chain Injection
Counterfactually resolve L1 with its alternative and check whether L2 must change as well
Generate a two-layer clarification chain
Layer 1 ranking metric tenure | total spending
Layer 2 spending definition include | exclude refunds
Question : If L1 = tenure, could "exclude refunds?" still be asked?
By total spending. L2 changes
Pass
Generate drift utterance + post-drift SQL
Yes, exclude refunds. SELECT name FROM customers WHERE region = 'West' ORDER BY (total_spend - refunds) DESC LIMIT 10 Actually, forget the rankings — just send me contact emails for everyone in our West region accounts.
Drift Subtypes Value-level Pre-drift SQL y*
Projection-level
Constraint-level forget rankings Intent
Drift
return contact emails
Not Chain
Two-Stage Validation ① Formal validation
② Semantic validation
-- AST-based
Post-drift SQL y’
-- LLM cross-validation
SQL parses & executes result(y′) ≠ result(y*)
drift utterance ↔ y′ untargeted commitments preserved
subtype scope satisfied
Triplet Assembly y* = terminus
invariant
Fail
Chain
S(y′) ⊈ S(y*)
Chain Only
L2 stays the same
eliminated / transformed
Drift Injection
Drift Only y* = origin
SELECT email FROM customers WHERE region = 'West'
Joint Samples y* = midpoint
SELECT email FROM customers WHERE region = 'West'
drift
Human Validation
Figure 2: Left: motivating dialogue illustrating chain ambiguity (L1/L2 clarification with conditional dependency) and user intent drift (non-monotonic retraction of a prior commitment). Right: overview of the TIDE-B ENCH four-stage construction pipeline (anchor selection, chain injection, drift injection, and triplet assembly; see §3).
by a SQL query y encoding the intent accumulated up to that turn and a corresponding commitment set S(y) directly extracted from its full abstract syntax tree. The set covers filtering predicates, projections, grouping and ordering keys, aggregation filters, and row-limit and offset specifications (Appendix A). Let Spre = S(ypre ) and Spost = S(ypost ). Non-Monotonicity Test. Drift occurs iff Spre ⊈ Spost . The test itself places no restriction on added commitments, Spost \ Spre , and allows removal and replacement while excluding no-change updates and pure additions. Each dialogue contains one controlled drift event, which may affect multiple commitments. This design keeps the pre- and postdrift targets identifiable under the paired design. Drift Subtypes. The benchmark distinguishes three subtypes: (i) Value-level, which replaces only one predicate literal while preserving predicate structure; (ii) Constraint-level, which removes one or more filtering predicates and makes no other uery changes; and (iii) Projection-level, which changes only output-side commitments while preserving all filtering predicates. Algorithm 1 operationalizes this decision process, first applying the non-monotonicity test and then assigning each accepted drift update to one of the three subtypes.
3
TIDE-B ENCH Construction
We describe the construction of TIDE-B ENCH. The benchmark is built around a paired design that isolates each interaction pattern from the anchor.
3.1
Paired Factorial Design
TIDE-B ENCH uses a paired factorial design: each BIRD anchor SQL y ∗ that passes construction filters spawns three samples sharing the anchor but activating different interaction patterns: Cy∗ (Chainonly), Dy∗ (Drift-only), and Jy∗ (Joint). Pairing by anchor controls for schema complexity, domain difficulty, and surface ambiguity, attributing performance differences to the activated patterns rather than any uncontrolled anchor-specific confounds. 3.2
Construction Pipeline
Building on this design, our construction pipeline proceeds in four stages: anchor selection, chain injection, drift injection, and triplet assembly (Figure 2, right). We summarize each stage below; full prompts, judge configurations, and associated validation checks are instead deferred to Appendix B. Anchor selection. Candidate anchors are drawn from BIRD (Li et al., 2023), retaining only SQLs that (i) execute on their SQLite database, (ii) carry enough structural complexity for two-layer chain injection, and (iii) admit at least one drift subtype from § 2.2. Stratified sampling balances complexity tiers and source splits, totaling 830 anchors. Chain injection. For each anchor, an advanced LLM (GPT-5.1) generates the two-layer clarification structure (L1, L2), an underspecified initial question, chosen responses, and unchosen alternatives, conditioned on the anchor SQL as the canonical L1 + L2 target. Two independent judges (GPT-
Algorithm 1: User Intent Drift Operationalization Require: Queries ypre and ypost Ensure: Drift status or subtype Notation: W(y): filtering commitments in y O(y) = S(y) \ W(y): output-side commitments in y LitReplace(Wpre , Wpost ): one predicate literal changes; its structure and all other filters remain fixed % Extract commitments 1: Spre ← S(ypre ); Spost ← S(ypost ) 2: Set Wt ← W(yt ) and Ot ← O(yt ) for t ∈ {pre, post} % Test non-monotonicity 3: if Spre ⊆ Spost then 4: return N OT D RIFT 5: end if % Assign drift subtype 6: if Opre = Opost and LitReplace(Wpre , Wpost ) then 7: return VALUE - LEVEL 8: end if 9: if Opre = Opost and Wpost ⊊ Wpre then 10: return C ONSTRAINT- LEVEL 11: end if 12: if Wpre = Wpost and Opre ⊈ Opost then 13: return P ROJECTION - LEVEL 14: end if 15: return R EJECT
5.3-Codex, DeepSeek-V4-Pro) apply the counterfactual test (§ 2.1) and discard invariant candidates. This stage retains 695/830 candidates (83.7%), with 94.7% overall inter-judge agreement. A final LLM rewrite of BIRD’s evidence field removes clauses pre-resolving L1 or L2 while faithfully preserving schema-essential mappings (Appendix B). Drift injection. For each chain-validated anchor, the same generator produces a drift utterance and ∗ post-drift target ypost conditioned on a pre-assigned subtype. Each pair passes two stages. AST-level validation enforces parseability, executability, result distinctness, the non-monotonicity condition Spre ⊈ Spost , and subtype-specific scope constraints. LLM cross-validation (Claude-Sonnet-4.6, DeepSeek-V4-Pro) assesses semantic validity beyond formal checks, namely faithfulness to the drift turn and preservation of non-targeted structural elements. The two stages are complementary: AST checks enforce the definition, while crossvalidation guards against drifts pass checks but misalign with semantic intent. AST validation retains 554/695 (79.7%); cross-validation retains 514/554 (92.8%), with 96.6% overall inter-judge agreement. Triplet assembly. Surviving chain and drift constructions are paired by anchor to form 514 triplets (1,542 samples), each consisting of matched Chain-
Split
Majority Acc.
Strict Acc.
Fleiss’ κ
C HAIN - ONLY D RIFT- ONLY
93.2 95.6
84.8 87.6
0.82 0.80
J OINT
88.4
76.8
0.77
Overall
92.4
83.1
0.81
Table 1: Human validation on 250 stratified triplets. Majority requires ≥ 3/5 annotators per item; strict requires unanimity. Fleiss’ κ uses binary accept/reject verdicts.
only, Drift-only, and Joint instances built over the same anchor SQL and sharing the same schema. This pairing supports controlled performance comparisons across all the three interaction settings. 3.3
Human Validation
Beyond the automated filters above, we additionally verify the quality and construct validity of TIDE-B ENCH through human annotation. We conduct a stratified audit over 250 triplets (750 samples), balanced across sample type, drift subtype, counterfactual verdict, and SQL complexity tier. Each sample is independently annotated by five annotators with NLP and production SQL backgrounds, blind to automated verdicts produced during construction. Rather than a holistic judgment, we use a per-item checklist that operationalizes the definitions in § 2; the full checklist and annotator details appear in Appendix C for reproducibility. We report majority acceptance (≥3/5 annotators pass every applicable item) and strict acceptance (unanimity). Overall majority and strict acceptance are 92.4% and 83.1% (Table 1; all Fleiss’ κ > 0.77). Counterfactual dependency and nonmonotonic retraction pass on 93.4% and 94.8% respectively, while joint transition coherence is slightly lower at 91.6%, as it requires both interaction patterns to be validated jointly in the dialogue. 3.4
Dataset Statistics
TIDE-B ENCH comprises 514 triplets and 1,542 benchmark samples (514 each of Chain-only, Driftonly, Joint). Anchors are partitioned into basic, intermediate, and advanced tiers by a rule-based score combining anchor-SQL structure with chainand drift-induced factors. Drift subtypes are evenly covered: value level 34.0%, constraint-level 31.3%, and projection-level 34.6%. Counterfactual verdicts are balanced between eliminated (49.4%) and transformed (50.6%), while the overall complexity is mostly intermediate (61.3%), with basic and advanced tiers at 26.5% and 12.3%, respectively.
Metric Full Name DEA
Dialogue Execution Accuracy
AR
Ask Rate
L1-IR
L1 Identification Rate
L2-IRp
L2 Identification Rate
JIR
Joint Identification Rate
DRR
Drift Recognition Rate
DRA
Drift Resolution Accuracy
Definition Qnτ 1 P
Set
∗ i=1 EX(yi , yi ) τ ∈S |S| 1 P τ ∈S 1[τ contains a clarification] |S| P 1 τ ∈S 1[∃ t : ρt = L1] |S| 1 P τ ∈S 1[∃ t : ρt = L2] |S| 1 P
τ ∈S 1[∃ t1 , t2 : ρt1 = L1 ∧ ρt2 = L2] |S| P 1 τ ∈S 1[Rec(τ )] |S| 1 P ∗ τ ∈S 1 Rec(τ ) ∧ EX(ypost , ypost ) |S|
all all C, J C, J C, J D, J D, J
Table 2: TIDE-B ENCH metrics spanning four behavioral facets: execution accuracy (DEA), clarification behavior (AR), chain-layer identification (L1-IR, L2-IRp , JIR), and drift handling (DRR, DRA). C, D, J denote Chain-only, Drift-only, and Joint sample sets. L2-IRp uses the p-protocol (§ 4.1); all other metrics use the f -protocol instead.
4
Evaluation Protocol
Building on the construction in § 3, this section specifies how each TIDE-B ENCH sample is turned into an evaluation run for the experiments below. 4.1
Interaction Setup
Each TIDE-B ENCH sample defines a dialogue task where an agent interacts with a user simulator (§ 4.2) over a database D with schema S. The dialogue begins with the user’s initial question u1 and proceeds in alternating turns (u1 , a1 , u2 , a2 , . . .). Each agent turn ai is either a clarification request or candidate SQL query against D; the simulator returns ui+1 . For Drift-only and Joint samples, the harness injects the pre-annotated drift turn verbatim after the agent’s first SQL query, ensuring deterministic drift content across evaluation runs. f -protocol and p-protocol. Each sample is evaluated under two protocols. The f -protocol (full) starts from u1 , requiring the agent to elicit and resolve both clarification layers for Chain-only and Joint samples. The p-protocol (L1-primed) prepopulates the history with a synthetic three-turn L1 resolution: the initial question, annotated L1 clarification, and canonical L1 answer. It marks the simulator’s L1 state as resolved before the first live turn. The p-protocol isolates L2, testing whether agents miss it once L1 is no longer a confound. Full harness parameter settings appear in Appendix D. 4.2
User Simulator
The simulator follows the two-stage functiondriven design of recent advance (Huo et al., 2026), with three minor adaptations for TIDE-B ENCH’s two-layer chain structure (Appendix E). The router
decisions ρt used by the metrics below are produced at each user turn responding to an agent clarification. We validate the simulator on USERSIMGUARD and on agent–simulator traces independently labeled by five SQL experts (Fleiss’ κ = 0.802); full configuration provided in Appendix E. 4.3
Metrics
Seven metrics span four behavioral facets: execution accuracy, clarification behavior, chain-layer identification and drift handling. All are computed as proportions over a sample set S of a given type. Notation. Let τ denote a dialogue trajectory containing nτ ∈ {1, 2} SQL queries y1 , . . . , ynτ paired with y1∗ , . . . , yn∗ τ . Chain-only samples have nτ = 1, while Drift-only and Joint samples have nτ = 2, with y1 = ypre and y2 = ypost . Let EX(y, y ∗ ) ∈ {0, 1} denote execution match, i.e., equivalent result sets modulo row order; ρt ∈ {L1, L2, Other} denote the router decision (§ 4.2) for the agent’s clarification at turn t; and S(y) denote the commitment set of y (§ 2.2). Define Rec(τ ) := S(ypre ) ⊈ S(ypost ) as the nonmonotonicity condition used for drift recognition. Metric definitions. The seven metrics are defined in Table 2. DEA requires every SQL query in a trajectory to pass execution match. AR measures whether the agent asks, regardless of layer, providing a baseline clarification rate. L1-IR, L2-IRp , and JIR measure whether the agent surfaces clarification requests routed to the corresponding layer within a trajectory, with L2-IRp evaluated under the p-protocol to isolate L2 from L1 confounds. DRR captures whether the agent’s commitment sets exhibit the required non-monotonic change after the
#
Model
Drift-only
Chain-only
Joint
Value
Constraint
Projection
All
Value
Constraint
Projection
All
1 Claude-Sonnet-4.6
35.9
47.7
44.2
43.4
45.1
31.2
20.2
31.4
27.8
2 Qwen2.5-72B
32.4
44.3
41.1
44.0
43.2
30.1
21.5
28.6
26.8
3 o4-mini
32.9
42.6
41.1
40.0
41.2
31.2
21.5
27.4
26.8
4 GPT-4o
30.9
46.0
38.7
44.6
43.2
27.8
22.1
29.7
26.7
5 GPT-5.4
32.5
43.2
36.8
42.3
40.9
27.8
20.9
29.7
26.3
6 Llama-3.3-70B
32.7
40.3
39.3
38.9
39.5
29.5
22.1
26.9
26.3
7 o3-mini
32.6
40.9
37.4
38.9
39.1
29.5
18.4
28.6
25.7
8 Gemini-2.5-Flash
31.6
39.2
42.9
33.1
38.3
27.3
20.2
27.4
25.1
9 Grok-4.1-Fast
30.4
41.5
36.2
41.7
39.9
29.0
18.4
25.1
24.3
10 Qwen-Max
30.5
40.3
43.6
40.6
41.4
28.4
20.9
21.7
23.7
11 DeepSeek-V4-Flash
27.3
40.9
39.9
39.4
40.1
21.6
17.8
26.9
22.2
12 Grok-4-Fast
25.9
36.9
33.7
38.9
36.6
19.9
14.7
22.9
19.3
Table 3: DEA (%) under the paired factorial design. The best and second-best results per column are in bold and underlined, respectively. Chain-only reports strict execution accuracy; Drift-only and Joint report end-to-end accuracy broken down by drift subtype; All denotes aggregate performance, and higher metric values are better.