Ambig-SWE: 交互式代理以克服软件工程中的不充分性
Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
AI总结:
Ambig-SWE研究LLM代理在交互式代码生成中处理不充分指令的能力,通过检测不充分性、提问澄清和利用交互提升性能,发现交互能显著提高74%的性能。
摘要:
AI代理越来越多地被用于自动化任务,通常基于不充分的用户指令。为了弥补缺失信息而做出不恰当的假设,或未能提出澄清问题,可能导致次优结果、由于工具误用导致的安全风险以及计算资源的浪费。在本工作中,我们研究了LLM代理在交互式代码生成设置中处理不充分指令的能力,通过评估专有和开源模型在三个关键步骤上的表现:(a)检测不充分性,(b)提出有针对性的澄清问题,(c)利用交互提高不充分场景中的性能。我们介绍了Ambig-SWE,这是SWE-Bench Verified的不充分变体,专门设计用于在模糊性和交互下评估代理行为。我们的发现表明,模型难以区分明确和不充分的指令。然而,当模型与不充分输入交互时,它们能够有效地从用户那里获取关键信息,从而在性能上显著提高,比非交互设置提高74%,突显了有效交互的价值。我们的研究突显了当前最先进模型在复杂软件工程任务中处理缺失信息的关键差距,并将评估分为不同的步骤,以实现有针对性的改进。
英文摘要:
AI agents are increasingly being deployed to automate tasks, often based on underspecified user instructions. Making unwarranted assumptions to compensate for the missing information and failing to ask clarifying questions can lead to suboptimal outcomes, safety risks due to tool misuse, and wasted computational resources. In this work, we study the ability of LLM agents to handle underspecified instructions in interactive code generation settings by evaluating proprietary and open-weight models on their performance across three key steps: (a) detecting underspecificity, (b) asking targeted clarification questions, and (c) leveraging the interaction to improve performance in underspecified scenarios. We introduce Ambig-SWE, an underspecified variant of SWE-Bench Verified, specifically designed to evaluate agent behavior under ambiguity and interaction. Our findings reveal that models struggle to distinguish between well-specified and underspecified instructions. However, when models interact for underspecified inputs, they effectively obtain vital information from the user leading to significant improvements in performance, up to 74% over the non-interactive settings, underscoring the value of effective interaction. Our study highlights critical gaps in how current state-of-the-art models handle missing information in complex software engineering tasks and structures the evaluation into distinct steps to enable targeted improvements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。