自信且错误:编码智能体中的无声语义失败
Confident and Wrong: Silent Semantic Failures in Coding Agents
AI总结:
本文揭示编码智能体在任务完成率与可信度之间存在系统性偏差,提出“无声语义失败”这一危险模式,并建议通过多次运行的测试验证正确率来评估智能体。
摘要:
随着编码智能体进入生产工作流,团队不仅需要知道智能体是否完成任务,还需要知道其行为是否可信。我们表明,完成率和可信度存在显著且系统的偏差。在50个SWE-bench Verified任务的1750条轨迹上,我们比较了四个前沿模型在多次运行中的表现,并将提交率与测试验证解决率分开。GPT-5在100%的运行中提交了补丁,但仅解决了44%;Llama 4提交了99%但解决了18%;而Gemini尽管提交最少(70%),却解决了比GPT-5更多的任务(50%对44%)。这些差距并非随机:它们集中在一个我们称为“无声语义失败”的危险失败模式中。定性上,在一个有缺陷的任务中,智能体在所有五次运行中都提交了看似合理的补丁,但没有一个通过,这是重复的相同误解而非随机错误。定量上,它主导了失败,覆盖了Llama 4的80%失败运行和GPT-5的68%,并且它是不可见的:结果自信且一致地错误,因此基于完成度和一致性的监控在智能体不应被信任时看起来都健康。轻量级的编辑前提示无法缩小差距。第二个探针隔离了行动本能:给定一个已修复的缺陷,正确的做法是不干预,但大多数模型仍然编辑了正确的代码。这种行动偏差——在不需要行动时行动——正是完成度指标所奖励的。主线是度量:提交率衡量行动,但信任需要有效性。因此评估必须跟上:通过多次运行的测试验证正确率来评分智能体,报告其不确定性,并奖励那些知道何时不行动的智能体。
英文摘要:
As coding agents move into production workflows, teams need to know not only whether an agent completes a task, but whether its action can be trusted. We show that completion and trustworthiness diverge sharply and systematically. Across 1,750 trajectories on 50 SWE-bench Verified tasks, we compare four frontier models over repeated runs and separate submit rate from test-verified resolve rate. GPT-5 submits a patch on 100% of runs but resolves only 44%; Llama 4 submits on 99% but resolves 18%; and Gemini, despite submitting least often at 70%, resolves more tasks than GPT-5 (50% versus 44%). These gaps are not random: they concentrate in one dangerous failure mode we call silent semantic failure. Qualitatively, on a buggy task the agent submits a plausible-looking patch on all five runs, yet none pass, the same misinterpretation repeated rather than random error. Quantitatively, it dominates failure, covering 80% of Llama 4's failing runs and 68% of GPT-5's, and it is invisible: the outcomes are confidently and consistently wrong, so completion-based and consistency-based monitoring both look healthy exactly when the agent should not be trusted. Lightweight pre-edit prompts do not close the gap. A second probe isolates the instinct to act: given an already-fixed bug, where the right move is to abstain, most models still edit the correct code. This action bias, acting when no action is warranted, is exactly what completion metrics reward. The throughline is measurement: submit rate captures action, but trust requires validity. So evaluation must catch up: score agents by test-verified correctness over repeated runs, report its uncertainty, and reward those that know when not to act.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。