AI 编程 4.0 · 优秀 2026-11-23 · 论文

Improving Repair Agents with Cause-Chain Diagnoses

FORECAST 给修复 Agent 提供故障诊断:从通过与失败测试的执行中推断一条 cause chain简短的执行特征序列(条件数据流),解释失败运行在哪里分岔附在 issue 后,任何从 issue 构建 prompt 的 Agent 都受益,无需改动 Agent在 SWE-bench Lite 全部 300 个 issue五个修复 Agent两个模型上评估:Haiku 4.5 解决率从 48.5% 升到 70.9%,Qwen3.5 从 31.2% 升到 56.1%,开源模型带诊断后反超不带诊断的商业模型;增益在重复运行和已运行过诊断所用测试的 Agent 上依然成立

打开原文回到归档

Improving Repair Agents with Cause-Chain Diagnoses

  • ID: d7502d0b
  • 原文链接: https://arxiv.org/abs/2611.30574
  • 作者: Marius Smytzek, Martin Eberlein, Lars Grunske, Andreas Zeller
  • 日期: 2026-11-23
  • 更新: 2026-11-23
  • 分类: coding
  • 来源类型: paper
  • 标签: repair-agents, debugging, swe-bench, diagnosis
  • 质量评分: 4/5
  • 抓取时间: 2026-11-25T04:22:30Z

中文导读

FORECAST 把失败诊断前置给修复 agent:从通过/失败测试的执行差异中推断一条 cause chain——解释失败运行在哪里分叉的短执行特征序列(条件、数据流等)——追加到 agent 收到的 issue 里。因为任何从 issue 构建 prompt 的 agent 都能受益,无需改动 agent 本身。在 SWE-bench Lite 全部 300 个 issue、5 个修复 agent、两个模型(Claude Haiku 4.5 与开源 Qwen3.5)上,所有 agent 的解决率都显著提升:Haiku 4.5 从 48.5% 升到 70.9%,Qwen3.5 从 31.2% 升到 56.1%——开源模型带诊断后反超不带诊断的商业模型。增益在重复运行间保持,对已经在运行这些测试的 agent 也依然有效。

为什么值得关注

方法便宜且通用:不碰 agent,只改 issue 输入,把找失败原因从各 agent 各自为战变成共享的执行证据。+22/+25 个百分点的提升在 SWE-bench Lite 上幅度相当大,开源模型加诊断反超商业模型裸跑的组合,对成本敏感的团队有直接参考价值。

关键信息

  • 标题:Improving Repair Agents with Cause-Chain Diagnoses
  • arXiv:2611.30574,2026-11-23,cs.SE
  • 问题:修复 agent 与读 bug 报告的开发者起点相同,需要先弄清程序如何失败才能修复;失败定位目前由各 agent 自行完成
  • 方法:FORECAST 从通过/失败测试的执行中推断 cause chain(解释失败分叉的短执行特征序列:条件、数据流等),追加进 issue;不改 agent,任何从 issue 构建 prompt 的 agent 均受益
  • 结果:SWE-bench Lite 全 300 issue × 5 agent × 2 模型(Claude Haiku 4.5、Qwen3.5):Haiku 4.5 48.5%→70.9%,Qwen3.5 31.2%→56.1%;开源模型带诊断反超商业模型裸跑;增益跨重复运行保持,对已运行相关测试的 agent 仍有效

English Summary

FORECAST gives repair agents a failure diagnosis before they attempt a fix. From the executions of passing and failing tests it infers a cause chain, a short sequence of execution features (conditions, data flow) explaining where failing runs diverge, and appends it to the issue the agent receives, so any agent that builds its prompts from the issue benefits without modification. Evaluated on all 300 SWE-bench Lite issues with five repair agents and two models (Claude Haiku 4.5 and open-weight Qwen3.5), every agent resolves significantly more issues: 48.5% to 70.9% for Haiku 4.5 and 31.2% to 56.1% for Qwen3.5, meaning the open-weight model with the diagnosis surpasses the commercial model without it. Gains persist across repeated runs and for agents that already run the tests the diagnosis is derived from.

Obsidian Notes

  • 元数据与摘要由 opencli arxiv paper 2611.30574 -f json 抓取(abstract 全文锚定)。
  • 中文导读、关键信息与 English Summary 锚定在摘要声明的设置与数字上(标题一致性已程序断言)。