问而未问:自然语言数据查询中的决策覆盖问题 Asking but Missing: Decision Coverage in Natural-Language Data Querying 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-18
👁️ 预览文献
💡 AI 中文简介
研究关注大语言模型将自然语言问题翻译为可执行程序时,能否识别问题中隐含的多种计算解释。作者提出“欠指定决策完成”(UDC)概念,并设计“接地代码生成”(GCG)诊断协议,将识别未解决决策、利用证据解决决策、翻译为代码三个阶段分开评估。在BIRD-Pandas数据集上测试12个模型发现,回答澄清问题能提升执行准确率,但主要难点在于模型难以识别哪些问题需要澄清。
领域自然语言处理 / 自然语言接口与代码生成
适合谁读需要一定专业背景(自然语言处理、数据库查询或大模型评估方向的研究者与开发者)
核心贡献1. 提出“欠指定决策完成”(UDC)概念,揭示模型在生成代码前默默采用假设而非识别未解决决策的问题;2. 设计“接地代码生成”(GCG)诊断协议,将决策识别、决策解决与代码生成分阶段评估,定位错误根源。
关键数据在BIRD-Pandas数据集上评估12个模型;回答澄清问题能持续提升执行准确率,但仍有大量错误;主要困难在于识别需要澄清的问题而非回答澄清问题。
推荐理由如果你关心大模型做数据查询时为何总“自作主张”,这篇论文用清晰的诊断框架告诉你:问题出在“该问却没问”,而非“问了答不对”。
关键词["自然语言数据查询", "大语言模型", "决策覆盖", "欠指定决策完成", "接地代码生成", "澄清问题"]

原文摘要

查看英文原文摘要

Large language models are increasingly used to translate natural language questions about structured data into executable programs. A fundamental challenge is recognizing when a question admits multiple computational interpretations and identifying the decisions needed to resolve them. We investigate whether language models recognize these unresolved decisions before generating code, or silently adopt assumptions that may lead to incorrect results. We refer to the latter behavior as Underspecified Decision Completion (UDC). To distinguish different causes of UDC, we introduce Grounded Code Generation (GCG), a diagnostic protocol that separates the identification of unresolved decisions, their resolution using evidence, and their translation into executable code. By examining each stage separately, we can determine where the decisions responsible for incorrect results were first missed or mishandled. We evaluate this framework on BIRD-Pandas with twelve models. The results show that answering clarification questions consistently improves execution accuracy, yet substantial errors remain. Our findings suggest that the main difficulty lies not in answering clarification questions, but in recognizing which questions need to be asked in the first place.