arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.21645cs.DBcs.CL
收藏

询问关键问题:用于交互式文本到SQL的分歧引导歧义检测

Asking What Matters: Disagreement-Guided Ambiguity Detection for Interactive Text-to-SQL

Hong Kong Polytechnic University(香港理工大学);Jinan University(暨南大学);Jilin University(吉林大学);Beihang University(北京航空航天大学)

Su Dong, Jiayan Lin, Yujia Liu, Zijin Hong, Qinggang Zhang, Feiran Huang, Xiao Huang

AI总结:

本文提出DisGuAD框架,利用合理SQL解释间的分歧识别关键歧义,在交互式文本到SQL任务中提升了任务成功率、关键歧义覆盖率及静态框架的奖励。

摘要:

交互式文本到SQL任务要求大语言模型(LLM)智能体不仅要生成可执行的SQL语句,还要在有限的交互预算内决定需要澄清的不确定性。然而,当前的澄清策略存在三个局限:(i)它们仅针对表面歧义,未测试其对SQL的影响;(ii)它们忽略了模式路径或领域知识中隐含的歧义;(iii)它们将有限的回合用于无重点或冗余的问题。这些局限凸显了一个关键挑战:在目标SQL未知前识别出对SQL有影响的歧义。本文提出DisGuAD,即分歧引导歧义检测框架,专门用于澄清选择。DisGuAD将合理SQL解释间的分歧作为不确定性对最终查询重要性的直接证据。具体而言,它构建查询词清单,通过互补探测族引出对比SQL解释,比较其规范SQL组件,并将重复差异归因于面向用户的澄清目标。随后,轻量级优先级排序与对话状态机制选择一个高影响的未解决目标进行澄清。在BIRD-Interact Lite和Full数据集上使用两种LLM骨干的实验表明,任务成功率和澄清质量均有持续提升。与原始交互策略相比,DisGuAD将归一化奖励提升了4.40至8.97个百分点,整体关键歧义覆盖率从48.62%升至82.75%,从45.76%升至85.14%。其澄清信号还在保持SQL生成器固定的情况下,将两个独立设计的静态文本到SQL框架的奖励提升了最多13.97个百分点。这些结果证明,合理SQL查询间的分歧为选择对下游生成重要的澄清目标提供了可操作的证据。

英文摘要:

Interactive text-to-SQL requires an LLM agent not only to generate executable SQL, but also to decide which uncertainty to clarify within a limited interaction budget. However, current clarification policies have three limitations: (i) they target surface ambiguity without testing its SQL impact; (ii) they miss ambiguities implicit in schema routes or domain knowledge; and (iii) they spend limited turns on unfocused or redundant questions. These limitations expose a critical challenge: identifying SQL-impacting ambiguity before the intended SQL is known. In this paper, we propose DisGuAD, a Disagreement-Guided Ambiguity Detection framework that specializes clarification selection. DisGuAD treats disagreement among plausible SQL interpretations as direct evidence of which uncertainty matters to the final query. Specifically, it constructs a query-term inventory, elicits contrastive SQL interpretations through complementary probe families, compares their canonical SQL components, and attributes recurring differences to user-facing clarification targets. A lightweight prioritization and dialogue-state mechanism then selects one high-impact unresolved target for clarification. Experiments on BIRD-Interact Lite and Full with two LLM backbones demonstrate consistent improvements in task success and clarification quality. Compared with the original interaction policy, DisGuAD improves normalized Reward by 4.40--8.97 points and raises overall critical-ambiguity coverage from 48.62% to 82.75% and from 45.76% to 85.14%. Its clarification signals further improve two independently designed static text-to-SQL frameworks by up to 13.97 Reward points while keeping their SQL generators fixed. These results demonstrate that disagreement among plausible SQL queries provides actionable evidence for selecting clarification targets that matter to downstream generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑