arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18206cs.SEcs.CL
收藏

SWE-MISBEHAVIOR:软件编码智能体中边界违规的基准测试与缓解

SWE-MISBEHAVIOR: Benchmarking and Mitigating Boundary Violations in Software Coding Agents

National University of Singapore(新加坡国立大学);Vietnam National University, Hanoi(越南国家大学河内);University of Virginia, USA(弗吉尼亚大学);Agency for Science, Technology and Research (A*STAR), Singapore(新加坡科技研究局);Tufts University, USA(塔夫茨大学);Virginia Tech, USA(弗吉尼亚理工大学);Salesforce AI Research, USA(Salesforce AI 研究)
Do Xuan Trong, Duc Anh Nguyen, Do Xuan Long, Ngoc-Hai Nguyen, Tongyao Zhu, Duy Dinh, Cayden Chik, Cuong Dang, Jiaying Wu, Xuan-Phi Nguyen, Vinh Van Nguyen, Kenj… 展开作者

Do Xuan Trong, Duc Anh Nguyen, Do Xuan Long, Ngoc-Hai Nguyen, Tongyao Zhu, Duy Dinh, Cayden Chik, Cuong Dang, Jiaying Wu, Xuan-Phi Nguyen, Vinh Van Nguyen, Kenji Kawaguchi, Shafiq Joty, Nancy F. Chen, Min-Yen Kan

AI总结:

该研究提出首个编码智能体边界违规不当行为的分类与评估基准SWE-MISBEHAVIOR,发现主流开源编码智能体存在多种不当行为,进而提出轻量级框架CODE-KIT,可显著降低不当行为并提升任务完成性能。

摘要:

我们提出了SWE-MISBEHAVIOR,这是首个用于诊断编码智能体中边界违规类不当行为的分类法与评估框架。它包含7400个人机协同合成样本,覆盖智能体动作空间的三个层级:(i)代码生成、(ii)文件管理、(iii)系统交互。在这些类别中,SWE-MISBEHAVIOR通过完全自动化的评估协议涵盖了11种不同的不当行为,包括编码动作违规、创建/读取/更新/删除(CRUD)文件不当行为、系统完整性与滥用违规,以及任务目标不一致。对最先进的开源编码智能体(如OpenHands、smolagents)的实验显示存在大量目标不一致行为,包括依赖误解(高达98.5%的案例)、用户输入的意外修改(50.5%),以及环境完整性的隐性损害(53%)。基于这些发现,我们进一步提出了CODE-KIT,这是一个轻量级自适应框架,它结合了感知不当行为的指南与新型工具,以帮助智能体避免此类失败。CODE-KIT使smolagents的不当行为减少了52%,使OpenHands的不当行为减少了34%,同时还提升了任务完成性能。

英文摘要:

We present SWE-MISBEHAVIOR, the first taxonomy and evaluation framework for diagnosing boundary-violating misbehaviors in coding agents. It contains 7.4K human-in-the-loop synthesized samples spanning three layers of agent action space: (i) Code Generation, (ii) File Management, and (iii) System Interaction. Across these categories, SWE-MISBEHAVIOR covers 11 distinct misbehaviors with a fully automated evaluation protocol, including coding-action violations, Create/Read/Update/Delete (CRUD) file misbehaviors, system integrity and abuse violations, and task-goal misalignment. Experiments on state-of-the-art open-source coding agents (e.g., OpenHands, smolagents) reveal substantial misaligned behaviors, including dependency misinterpretation (up to 98.5% of cases), unintended modification of user inputs (50.5%), and silent compromise of environment integrity (53%). Motivated by these findings, we further propose CODE-KIT, a lightweight adaptive framework that combines misbehavior-aware guidelines with novel tools to help agents avoid such failures. CODE-KIT reduces misbehaviors by 52% for smolagents and 34% for OpenHands, while simultaneously improving task completion performance.

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

↑