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

选择而非标注:用于程序歧义消除的多选查询合成

Choose, Don't Label: Multiple-Choice Query Synthesis for Program Disambiguation

University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Pennsylvania(宾夕法尼亚大学)

Celeste Barnaby, Danny Ding, Osbert Bastani, Isil Dillig

AI总结:

本文提出一种基于多选查询的主动学习方法,通过高阶行为选项帮助用户澄清意图,生成直观且高效的查询以解决程序歧义问题。

摘要:

代码的高层规范本质上是模糊的,现有系统通过交互技术帮助用户澄清意图。然而,大多数方法依赖于标注示例,这往往容易出错且难以捕捉用户意图。本文介绍了一种基于多选查询的程序歧义消除新主动学习范式。在此范式中,系统会提供一组小的高层行为作为多选选项,用户只需选择意图的选项。技术上,每个答案选项对应一个Hoare三元组,该三元组表征一组语义相似的候选程序。这种表述使系统能够形式化推理查询的信息量和可解释性,并支持系统构建最优查询。基于这一见解,我们开发了一种新的主动学习算法,并在名为Socrates的工具中实现,该工具自动合成信息丰富的多选查询以解决程序歧义。我们评估了Socrates在四个领域中的表现,涵盖符号和神经符号设置。结果表明,Socrates生成的查询直观易答,且收敛效率高。最重要的是,Socrates比现有方法更可靠地识别出目标程序,同时保持了竞争性的运行时间性能。

英文摘要:

High-level specifications of code are inherently ambiguous, and prior systems have explored interactive techniques to help users clarify their intent and resolve such ambiguities. However, most existing approaches elicit supervision through labeled examples, which are often error-prone and may fail to capture user intent. This paper introduces a new active learning paradigm for program disambiguation based on multiple-choice queries. In this paradigm, the system presents a small set of high-level behaviors as multiple-choice options, and the user simply selects the intended one. Technically, each answer option corresponds to a Hoare triple that characterizes a cluster of semantically similar candidate programs. This formulation enables formal reasoning about the informativeness and interpretability of queries, and supports systematic construction of optimal queries. Building on this insight, we develop a new active learning algorithm and implement it in a tool called Socrates, which automatically synthesizes informative multiple-choice queries for program disambiguation. We evaluate Socrates across four domains spanning both symbolic and neurosymbolic settings and show that it produces intuitive, easy-to-answer queries and achieves efficient convergence. Most importantly, Socrates identifies the intended program more reliably than existing methods, while maintaining competitive runtime performance.

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

↑