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

SWE-Residual:评估编码智能体的起始状态鲁棒性

SWE-Residual: Evaluating Starting-State Robustness of Coding Agents

The University of Hong Kong(香港大学);The University of British Columbia(不列颠哥伦比亚大学);University of Tokyo(东京大学);University of North Texas(北德克萨斯大学);Tencent(腾讯)

Jinze Li, Weijie Liu, Jinfeng Xu, Shuo Yang, Xin Yang, Yang Zhang, Yijin Wang, Zifei Shan, Edith C. H. Ngai

AI总结:

本文提出SWE-Residual基准,评估编码智能体在起始状态含前期工作时的鲁棒性,实验发现前沿智能体成功率显著下降、排名反转,揭示了干净启动评估未捕捉的能力差距。

摘要:

软件工程(SWE)基准是衡量编码智能体能力的主要方式:将智能体置于代码仓库或机器环境中,为其提供任务请求,并通过隐藏测试对其进行评判。然而,这些基准几乎总是让智能体从干净状态(不包含该任务的前期工作)开始运行。但在实际场景中,智能体往往会继续完成开发者或其他智能体已完成的工作,且这些工作被报告为已完成,却未指出存在的错误或缺失部分。本文提出SWE-Residual,这是一个用于评估起始状态鲁棒性的基准,起始状态鲁棒性指的是当任务的起始状态已包含该任务的前期工作时,智能体仍能保持任务性能的能力。SWE-Residual包含198个残差状态,这些状态来自DeepSWE和Terminal-Bench中的111个任务,其中前期工作修改了代码仓库或整个机器环境。每个残差状态都是前序智能体将其工作提交为完成后留下的状态,尽管隐藏测试仍未通过。被评估的智能体仅收到原始请求和该状态,没有前序智能体的轨迹或任何尝试失败的迹象;由于请求和隐藏测试未发生变化,起始状态是与源基准的唯一差异。在五个前沿智能体上的实验显示,与干净启动相比,DeepSWE上的成功率下降了20.6至53.5个百分点,Terminal-Bench上的成功率下降了20.6至34.9个百分点,且DeepSWE上的智能体排名发生了反转。失败的延续表现出一种被称为接受偏差的模式:智能体将继承的工作视为待完成任务的定义,而非对照请求检查这些工作。在DeepSWE的失败运行中,58.9%至88.2%的智能体提交的测试与之前完全相同,尽管它们在干净启动时通过了大部分此类测试。因此,SWE-Residual揭示了干净启动评估未捕捉到的能力差距。

英文摘要:

Software engineering (SWE) benchmarks are the primary way to measure the capabilities of coding agents: an agent is placed in a code repository or machine environment, given a request, and judged by hidden tests. These benchmarks almost always start the agent from a clean state that contains no earlier work on the task. In practice, however, agents often continue work that a developer or another agent has already done and reported as complete, with no indication of what remains incorrect or missing. We introduce SWE-Residual, a benchmark for Starting-State Robustness: the ability to maintain performance on a task when the starting state already contains earlier work on that task. SWE-Residual contains 198 Residual States drawn from 111 tasks in DeepSWE and Terminal-Bench, where the earlier work modifies a code repository or a whole machine environment. Each Residual State is the state a predecessor agent left behind after submitting its work as complete, although the hidden tests still fail. The evaluated agent receives only the original request and this state, without the predecessor's trajectory or any sign that the attempt failed; because the request and hidden tests are unchanged, the starting state is the only difference from the source benchmark. Across five frontier agents, success drops by 20.6--53.5 percentage points on DeepSWE and 20.6--34.9 points on Terminal-Bench relative to a Clean Start, and agent rankings on DeepSWE reverse. Failed continuations show a pattern we call acceptance bias: agents treat the inherited work as the definition of what remains to be done instead of checking it against the request. On DeepSWE, in 58.9--88.2% of failed runs, they submit with exactly the same tests failing, although they pass most of these tests from a Clean Start. SWE-Residual thus exposes a capability gap that clean-start evaluation does not capture.

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

↑