SWE-Duel:迈向编码智能体的自扩展竞技场
研究论文 · 2026/10/12
静态编码基准在发布时即固定,其任务会随时间泄漏到训练数据中,更强的智能体最终会使其饱和。我们认为基准应追求自我扩展:任务和判定在评估时创建,因此没有预先存在的内容可泄漏,难度由参与智能体而非发布时固定。我们提出 SWE-Duel,一个竞技场,其中两个编码智能体通过镜像的红蓝回合相互评估。每回合中,红方智能体在三个上下文隔离的会话中处理真实仓库,提出并实现带功能测试的新功能,然后在该功能中嵌入一个细微缺陷以及密封的触发缺陷测试。生成的拉取请求仅在以下条件下被接纳:(1) 通过功能测试和仓库现有测试,同时恰好失败于缺陷测试;(2) 同一智能体的新会话能盲修该缺陷,从而排除不可解任务。蓝方智能体随后在不知存在缺陷的情况下审查拉取请求,仅当其修订通过所有三个测试套件时获胜,然后两智能体交换角色。我们在 5 种语言的 15 个仓库上,对 11 个模型-工具组合参与者进行了 1500 回合的锦标赛。领先者以不同方式获胜:GPT-5.5 搭配 Codex CLI 作为最强求解者排名第一,修复了其审查的 98.3% 缺陷;Claude Opus 4.8 搭配 mini-swe-agent 作为最强任务作者排名第二,红方胜率 27.3%。最后,在同一模型家族内,最新版本编写的任务击败固定参考求解者的频率远高于旧版本(42.9% 对 4.0%),初步表明任务难度随任务编写能力而扩展。
该研究提出了一种创新的自我扩展基准方法,通过智能体对抗生成动态任务,有望解决静态基准的数据泄漏和饱和问题,并为评估编码智能体提供了新范式。
Static coding benchmarks are fixed at release. Over time their tasks leak into training data, and stronger agents eventually saturate them. We argue that a benchmark should instead aim to be self-scaling: its tasks and oracles are created at evaluation time, so no content exists in advance to leak, and its difficulty is set by the participating agents rather than fixed at release. We introduce SWE-Duel, an arena in which two coding agents evaluate each other over mirrored Red-Blue turns. In each turn, the Red agent works on a real repository across three context-isolated sessions. It proposes and implements a new feature with feature tests, then embeds a subtle bug in that feature along with sealed bug-triggering tests. The resulting pull request is admitted only if (1) it passes the feature tests and the repository's existing tests while failing exactly the bug tests, and (2) a fresh session of the same agent can repair the bug blind, which rules out unsolvable tasks. The Blue agent then reviews the pull request without being told a bug exists. It wins only if its revision passes all three test suites, and then the two agents swap roles. We run a tournament among 11 model-harness participants on 15 repositories in five languages for 1,500 turns. The leaders win in different ways. GPT-5.5 with Codex CLI ranks first as the strongest solver, repairing 98.3% of the defects it reviews. Claude Opus 4.8 with mini-swe-agent ranks second as the strongest task author, with a 27.3% Red win rate. Finally, within one model family, tasks written by the newest version defeat a fixed-reference solver far more often than those of older versions (42.9% vs. 4.0%), giving preliminary evidence that task difficulty scales with task authoring capability.