Agent 与自动化 4.0 · 优秀 2026-10-23 · 论文

From Faulty Claims to Incorrect Patches: An Empirical Study of Task-Grounded Reasoning in Coding...

推理模型的 coding agent 会在思维链里对代码需求和候选修法下大量可核验论断这篇分析 SWE-bench Pro 上四个开源权重推理模型的 400 条轨迹:任务相关推理只占 CoT token 的 18.5%,却平均每条轨迹产出 191 个原子论断,其中至少 9.6% 是错的;错误论断出现在 96.7% 的成功轨迹里,所以有错论断本身是弱信号;但 188 个错误补丁里三分之二能溯源到某条错误论断,把那条论断纠正后,agent 在 89.0% 的案例里修好了对应缺陷

打开原文回到归档

From Faulty Claims to Incorrect Patches: An Empirical Study of Task-Grounded Reasoning in Coding Agents

  • ID: 0e3c87a0
  • 原文链接: https://arxiv.org/abs/2610.32338
  • PDF: https://arxiv.org/pdf/2610.32338
  • 作者: You Wang, Jinjun Huang, Zhonghao Jiang, et al.
  • 日期: 2026-10-23
  • 分类: agents
  • 来源类型: paper
  • 标签: coding-agents, chain-of-thought, swe-bench, failure-analysis, reasoning
  • 质量评分: 4/5
  • 抓取时间: 2026-10-27T23:54:36

中文导读

推理模型的 coding agent 会在思维链里对代码、需求和候选修法下大量可核验论断。这篇分析 SWE-bench Pro 上四个开源权重推理模型的 400 条轨迹:任务相关推理只占 CoT token 的 18.5%,却平均每条轨迹产出 191 个原子论断,其中至少 9.6% 是错的;错误论断出现在 96.7% 的成功轨迹里,所以「有错论断」本身是弱信号;但 188 个错误补丁里三分之二能溯源到某条错误论断,把那条论断纠正后,agent 在 89.0% 的案例里修好了对应缺陷。

为什么值得关注

错误补丁大多能溯源到一条可核验的错误论断:CoT 论断核查比动作序列重放更能定位 agent 失败。元数据与摘要经 opencli arxiv paper 直取核对,结论数字以论文摘要为准。

关键信息

  • 论文标题: From Faulty Claims to Incorrect Patches: An Empirical Study of Task-Grounded Reasoning in Coding Agents
  • 作者: You Wang, Jinjun Huang, Zhonghao Jiang, et al.
  • arXiv: https://arxiv.org/abs/2610.32338
  • 发布时间: 2026-10-23
  • 关联标签: coding-agents, chain-of-thought, swe-bench, failure-analysis, reasoning

English Abstract

Large language model (LLM)-based coding agents increasingly resolve real-world software engineering tasks, yet still fail on many of them. Prior trajectory studies characterize these failures through task-agnostic patterns of agent behavior, such as repeated actions. However, an agent may follow a sound workflow yet act on a faulty understanding of the existing code, the task requirements, or a candidate fix. Reasoning models, which power most state-of-the-art coding agents, reveal this understanding in their native chain-of-thought (CoT), whose claims about the task can be checked against the facts. Yet it remains unclear how many such checkable claims the CoT contains, how many are faulty, and whether faulty claims actually cause incorrect patches. We present the first empirical study of such claims, which we term task-grounded reasoning, analyzing 400 trajectories of four open-weight reasoning models on SWE-bench Pro. We extract atomic claims from the CoT with an LLM, assess them against evidence gathered by an LLM agent, and manually trace the defects of incorrect patches back to faulty claims, confirming each link with a claim-corrected replay. Task-grounded reasoning covers only 18.5% of the CoT tokens, yet yields 191 atomic claims per trajectory, at least 9.6% of which are faulty. Faulty claims also occur in 96.7% of the resolved trajectories, so their mere presence is a weak signal of failure. Yet two thirds of the 188 incorrect patches trace back to faulty claims. Correcting such a claim makes the agent fix the linked defect in 89.0% of the cases, and correcting all such claims resolves 11.7% of the failed tasks. Our findings show that the CoT carries task-specific signals for diagnosing and repairing agent failures, but exploiting them requires pinpointing the few faulty claims that actually cause patch defects.

Obsidian Notes

  • 来源笔记: OpenClaw定时任务/论文流水线/2026-10-27-论文流水线.md
  • 抓取方式: opencli arxiv paper 2610.32338 -f json(元数据 + 摘要)