arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.22382cs.SEcs.AIcs.CL
收藏

引出规范:交互式澄清何时有帮助?

Eliciting Specifications: When Does Interactive Clarification Help?

Emergence AI

Mowafak Allaham, Aditya Vempaty, Ashish Jagmohan, Prasenjit Dey, Ravi Kokku

AI总结:

该研究探讨引出智能体(EA)能否通过交互式澄清改进Lean规范生成,在189个任务上对比不同模型配置与问题预算,发现跨模型流水线可提升准确率,同模型流水线无增益,后置条件是主要性能瓶颈。

摘要:

大语言模型(LLM)可从任务描述中生成Lean规范,但这些描述往往欠规范或存在歧义,可能遗漏验证器相关的边界情况,从而产生不完美的形式规范。我们研究引出智能体(EA)能否在形式化前通过向基于参考的模拟开发者寻求澄清,改进验证器检查的Lean规范。该智能体分解任务、识别未解决的决策、提出有限的澄清问题,并利用答案编写精炼的自然语言规范,随后由LLM形式化器将其转换为Lean。在189个Verina Lean 4规范生成任务上,我们比较单次生成与在k=3和k=10的问题预算下的引出(每个任务最多允许3或10个EA问题),涉及同模型和跨模型配置。同模型Claude Sonnet 4.6流水线在两个预算下的严格pass@1估计值均为负,表明引出并非通用的准确率提升手段。相比之下,Sonnet 4.6到GPT-5.6、Sonnet 4.6到Gemini 3.8 Flash的流水线具有正的严格估计值。最大的严格结果为65.6%,提升6.3个百分点(+12个任务),出现在Sonnet 4.6到GPT-5.6流水线中。8个条件中有6个具有正的编译条件估计值,编译输出的最大跨模型差异为+4.9个百分点。处理估计值在基础和高级拆分中也存在差异;最大的高级任务变化出现在k=10的Sonnet 4.6到GPT-5.6配置中,从42.0%升至50.6%。失败分析表明后置条件是性能下降的最大来源。这些发现表明,未来的自动形式化系统应将引出的自然语言规范视为中间产物,共同优化编译输出的语义正确性及澄清信息到Lean的可靠翻译。

英文摘要:

LLMs can generate Lean specifications from task descriptions, but those descriptions are often underspecified or ambiguous and may omit verifier-relevant edge cases, yielding imperfect formal specifications. We study whether an elicitation agent (EA) can improve verifier-checked Lean specifications by seeking clarification from a reference-grounded simulated developer before formalization. The agent decomposes the task, identifies unresolved decisions, asks bounded clarification questions, and uses the answers to write a refined natural-language specification that an LLM formalizer then translates into Lean. On 189 Verina Lean 4 specification-generation tasks, we compare single-shot generation with elicitation under question budgets of k=3 and k=10, allowing at most three or ten EA questions per task, across same-model and cross-model configurations. The same-model Claude Sonnet 4.6 pipeline has negative strict pass@1 estimates at both budgets, showing elicitation is not a uniform accuracy booster. In contrast, the Sonnet 4.6-to-GPT-5.6 and Sonnet 4.6-to-Gemini 3.8 Flash pipelines have positive strict estimates. The largest strict result reaches 65.6%, a +6.3-point change (+12 tasks), in the Sonnet 4.6-to-GPT-5.6 pipeline. Six of eight conditions have positive compile-conditional estimates, with a maximum cross-model difference of +4.9 points among compiling outputs. Treatment estimates also differ across the basic and advanced splits; the largest advanced-task change occurs in the Sonnet 4.6-to-GPT-5.6 configuration at k=10, from 42.0% to 50.6%. Failure analysis identifies postconditions as the largest source of degradation. These findings suggest future autoformalization systems should treat elicited natural-language specifications as intermediate artifacts and optimize jointly for semantic correctness among compiling outputs and reliable translation of clarified information into Lean.

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

↑