AI 编程 5.0 · 必读 2026-11-05 · 论文

Accepted but Wrong: Silent Failures of LLM Code Repairs after API Migrations

预注册研究LLM修代码在运行时/API迁移后的静默失败:73个任务覆盖CPythonNode.jsSQLite的60个有据可查变更,所有候选都在真实运行时上对着隐藏契约执行典型输入上的全断言门会放走41.0%的错误修复;一条按release note写出的边界输入把错误释放率降到6.5%,盲测的GPT-5.6-luna写手三条输入做到7.0%;但面对加难的错误程序仍有15%-17%漏网,自测帮助有限,两个本地小模型写手未过预注册检验四个模型族里边界输入都显著降低错误释放且不牺牲正确完成率

打开原文回到归档

Accepted but Wrong: Silent Failures of LLM Code Repairs after API Migrations

  • ID: d5979cc0
  • 原文链接: https://arxiv.org/abs/2611.08269
  • PDF: https://arxiv.org/pdf/2611.08269v1
  • 作者: Xiaobo Chen, Genliang Zhu, Ziyuan Wang, Chu Wang
  • 日期: 2026-11-05
  • 更新: 2026-11-05
  • 分类: coding
  • 来源类型: paper
  • 标签: llm-code-repair, testing, api-migration, preregistration
  • 质量评分: 5/5
  • 抓取时间: 2026-11-08T12:31:46Z

中文导读

预注册研究LLM修代码在运行时/API迁移后的静默失败:73个任务覆盖CPythonNode.jsSQLite的60个有据可查变更,所有候选都在真实运行时上对着隐藏契约执行典型输入上的全断言门会放走41.0%的错误修复;一条按release note写出的边界输入把错误释放率降到6.5%,盲测的GPT-5.6-luna写手三条输入做到7.0%;但面对加难的错误程序仍有15%-17%漏网,自测帮助有限,两个本地小模型写手未过预注册检验四个模型族里边界输入都显著降低错误释放且不牺牲正确完成率

为什么值得关注

Typical-input test gates ship 41% wrong LLM repairs after API migrations; one edge input cuts it to 6.5%

73 个任务、60 处真实迁移变更、真实运行时配隐藏契约的预注册设计,让「典型输入测试门会放走多少错误修复」第一次有了可信数字:41.0%;按 release note 补一条边界输入就能降到 6.5%,对维护 LLM 代码修复评测或发布门禁的团队,是可以直接对照自己 CI 的做法。

关键信息

  • 论文标题:Accepted but Wrong: Silent Failures of LLM Code Repairs after API Migrations
  • 作者:Xiaobo Chen, Genliang Zhu, Ziyuan Wang, Chu Wang
  • arXiv:https://arxiv.org/abs/2611.08269
  • 发布时间:2026-11-05
  • arXiv 分类:cs.SE, cs.AI
  • 关联标签:llm-code-repair, testing, api-migration, preregistration

English Abstract

After a runtime or API migration, an LLM-repaired procedure can run cleanly yet return wrong results, and a release check on typical test inputs ships it. We report a preregistered study of 73 tasks covering 60 documented changes in CPython, Node.js and SQLite. Every candidate is executed on the real runtimes against withheld contracts. Over the complete repair space, the all-assertions gate on typical inputs released 0.410 of wrong repairs. One edge input written from the release note cut this to 0.065, and to 0.061 on 15 unseen clusters. Three inputs from a blind GPT-5.6-luna writer that never saw the program reached 0.070. Two further frozen stages enlarged the menu to 1491 fragments and then added 233 hard distractors that match the legacy output on typical inputs. The edge input (0.058) and the frontier-model writer (0.058) passed their preregistered tests. Yet 0.168 and 0.153 of the hard wrong programs still passed. Two local-model writers failed their preregistered tests. Across four model families, the edge input cut wrong releases per attempt in all three open-weight families on all three menus, for example from 0.233 to 0.057, without lowering correct completion. Self-tests helped less. A blind AI audit flagged 34 contracts as stricter than their requirements. Dropping the disputed checks changed 0 verdicts, but class-label disputes remain open. No model-written code was executed. Artifacts are available from the authors on request.

English Summary

Preregistered study of silent failures in LLM code repair after runtime/API migrations: 73 tasks covering 60 documented changes in CPython, Node.js, and SQLite, with every candidate executed on real runtimes against withheld contracts. Releasing on typical inputs under an all-assertions gate shipped 0.410 of wrong repairs; one edge input written from the release note cut this to 0.065, and three inputs from a blind GPT-5.6-luna writer that never saw the program reached 0.070. Yet 0.168 and 0.153 of hard wrong programs still passed, self-tests helped less, and two local-model writers failed preregistered tests. Across four model families the edge input cut wrong releases per attempt in all three open-weight families without lowering correct completion.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。