通过高效动态分析赋能自主调试代理
Empowering Autonomous Debugging Agents with Efficient Dynamic Analysis
AI总结:
本文提出Agent-centric Debugging Interface,通过函数级交互和Frame Lifetime Trace提升自主调试代理效率,在SWE-bench验证集上实现63.8%的任务解决率,成本仅为1.28美元/任务。
摘要:
自主代理在自动化程序修复中代表软件工程的前沿,但其效果常受限于事后粗粒度执行反馈。尽管集成传统交互调试器似乎是自然解决方案,但其低级逐行交互范式对基于LLM的代理来说成本效率低下,导致预算耗尽和无生产力循环。为缓解此问题,我们引入Agent-centric Debugging Interface(ADI),一种面向成本效率的端到端自主交互接口。具体而言,Agent-centric Debugging Interface实现了函数级交互范式,由Frame Lifetime Trace(一个封装函数状态执行轨迹的综合数据结构)和一组高层导航命令驱动。我们在SWE-bench基准上的广泛评估证明了ADI的有效性和效率。通过简单地为基本代理配备ADI,它成功解决了SWE-bench验证集上的63.8%的任务,甚至在使用Claude-Sonnet-3.7时略微优于高度优化和高投资的Claude-Tools代理,平均成本为1.28美元/任务。此外,我们通过将ADI作为即插即用组件集成到现有SOTA代理中,展示了其通用性,在解决的任务上实现了6.2%至18.5%的一致增益。这些结果表明,Agent-centric Debugging Interface可以为现有自主代理提供通用且高效的增强。
英文摘要:
Autonomous agents for automated program repair represent a promising frontier in software engineering, yet their effectiveness is often hindered by reliance on post-mortem, coarse-grained execution feedback. While integrating traditional interactive debuggers seems a natural solution, their low-level, line-by-line interaction paradigm turns out to be cost-inefficient for LLM-based agents, leading to exhausted budgets and unproductive loops. To mitigate this, we introduce Agent-centric Debugging Interface (ADI), a novel agent-centric debugging interface designed for cost-efficient, end-to-end autonomous interaction. Specifically, Agent-centric Debugging Interface realizes a function-level interaction paradigm, powered by our Frame Lifetime Trace, a comprehensive data structure encapsulating a function's stateful execution trace, and a set of high-level navigational commands. Our extensive evaluation on the SWE-bench benchmark demonstrates the effectiveness and efficiency of ADI. By simply equipping a basic agent with ADI, it successfully resolves 63.8\% of the tasks on the SWE-bench Verified set, even slightly outperforming the highly optimized and high-investment Claude-Tools agent, at an average cost of USD 1.28 per task with Claude-Sonnet-3.7. Furthermore, we demonstrate ADI's generality by integrating it as a plug-and-play component into existing SOTA agents, delivering consistent gains ranging from 6.2\% to 18.5\% on the resolved tasks. These results indicate that Agent-centric Debugging Interface can provide a general and efficient enhancement for existing autonomous agents.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。