已完成但仍在工作:编码智能体何时应停止的随时评估
Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop
AI总结:
本研究针对编码智能体测试通过后仍继续工作的问题,通过随时评估方法,在SWE-bench Verified数据集上发现提前停止可获1%-57%的事后节省,提出的规则可节省23%,微调智能体模仿规则可省30%,明确了提前停止的机遇与风险。
摘要:
编码智能体通常在自身测试通过后仍继续工作。这项额外工作是否能改进补丁,以及提前停止能节省多少成本?我们通过随时评估来研究这些问题:重放记录的运行,用隐藏测试对中间补丁评分,并测量每一步产生的成本。对于仅停止运行或选择更早补丁的策略,只要重放保留相关状态,这就允许在不生成新轨迹的情况下进行配对比较。在SWE-bench Verified上的两个框架中,8个开源模型的约6000次运行中,我们发现持续工作的价值存在显著差异。在通过自我测试时可获得的事后节省幅度因模型和框架而异,从不足1%到57%不等。一项在同一补丁通过两次后停止的规则在预注册复现中节省了23%,但预注册质量测试未确立非劣性。我们通过测量规则触发的频率、之后补丁变化的频率,以及这些变化是修复还是破坏补丁来解释这些差异。微调智能体以模仿该规则在6个随机种子上节省了30%,而质量保留仍不确定。我们的结果有助于识别提前停止的机遇与风险。
英文摘要:
Coding agents often continue working after their own tests pass. Does this additional work improve the patch, and how much could be saved by stopping earlier? We study these questions through anytime evaluation: replaying recorded runs, scoring intermediate patches with hidden tests, and measuring the cost incurred at each step. For policies that only stop a run or select an earlier patch, this allows paired comparisons without generating new trajectories, provided replay preserves the relevant states. Across about 6,000 runs of eight open models in two scaffolds on SWE-bench Verified, we find substantial differences in the value of continued work. The hindsight saving available at passing self-tests ranges from under 1% to 57%, depending on the model and scaffold. A rule that stops after the same patch passes twice saves 23% in a preregistered replication, but the preregistered quality test does not establish non-inferiority. We explain these differences by measuring how often a rule fires, how often the patch changes afterwards, and whether those changes repair or break it. Fine-tuning agents to imitate the rule saves 30% over six seeds, while quality preservation remains uncertain. Our results help identify both the opportunities and the risks of early stopping.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。