终止滞后:编码智能体提前解决问题却停止过晚
Termination Lag: Coding Agents Solve Early but Stop Late
AI总结:
该研究刻画编码智能体的终止滞后现象,发现多数成功运行在初始编辑时就得到正确解,但智能体后续仍会投入大量精力,部分情况会撤销正确解导致最终结果错误。
摘要:
编码智能体在停止处理任务前很久就能很好地解决该任务。我们通过记录并测试执行过程中生成的每个不同仓库补丁,在5种模型、2种智能体框架和3个SWE-bench数据集上刻画了“终止滞后”——即智能体首次生成正确补丁到运行结束之间的步数。我们的分析显示,38%至82%的成功运行在初始源代码编辑时就获得了正确解决方案。然而,智能体在获得正确补丁后仍会投入大量精力,在SWE-bench Verified和Multilingual的成功运行中,Qwen3-Coder的解决方案后步骤中位数占比为35%至37%,Laguna-XS.2则为54%至60%。智能体将这些额外步骤的大部分时间用于验证自身工作和探索仓库。在小部分案例(1%至8%)中,这种持续活动会导致智能体撤销此前的正确补丁,使最终解决方案出错。
英文摘要:
Coding agents can solve a task well before they stop working on it. We characterize \emph{termination lag}--the number of steps between an agent's first correct patch and the end of its run--across five models, two agent frameworks, and three SWE-bench datasets by recording and testing every distinct repository patch generated during execution. Our analysis reveals that 38--82% of successful runs achieve a correct solution on their initial source-code edit. However, agents continue to expend substantial effort after correct patches, with post-solution steps accounting for a median of 35--37% for Qwen3-Coder and 54--60% for Laguna-XS.2 in successful runs on SWE-bench Verified and Multilingual. Agents spend most of these additional steps verifying their work and exploring the repository. In a small fraction of cases (1--8%), this continued activity leads agents to undo their earlier correct patch, leaving the final solution incorrect.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。