arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.12569cs.CLcs.SE
收藏

SWE-Duel:面向代码智能体的自扩展竞技场

SWE-Duel: Towards a Self-Scaling Arena for Coding Agents

School of Computing and Information Systems(计算与信息系统学院);Singapore Management University(新加坡管理大学)

Wei Minn, Zhensu Sun, Lwin Khin Shar, David Lo

AI总结:

本文提出SWE-Duel自扩展代码智能体竞技场,通过红蓝回合互评估,锦标赛显示GPT-5.5是最强缺陷修复者,Claude Opus 4.8是最强任务作者,任务难度随编写能力提升而扩展。

摘要:

静态代码基准在发布时即固定,随着时间推移,其任务会泄露到训练数据中,更强的智能体最终会对其达到饱和状态。我们认为,基准应旨在实现自扩展:其任务和预言机在评估时创建,因此不存在预先泄露的内容,且其难度由参与的智能体设定,而非在发布时固定。我们引入SWE-Duel,这是一个竞技场,其中两个代码智能体通过镜像红蓝回合相互评估。在每个回合中,红方智能体在三个上下文隔离的会话中处理一个真实仓库,它提出并实现一个带有功能测试的新功能,然后在该功能中嵌入一个细微的错误,同时附上密封的错误触发测试。生成的拉取请求仅在满足以下两个条件时才被接受:(1)它通过功能测试和仓库的现有测试,且恰好未通过错误测试;(2)同一智能体的新会话可以在不知情的情况下修复该错误,这排除了无法解决的任务。随后,蓝方智能体在未被告知存在错误的情况下审查该拉取请求,仅当其修订通过所有三个测试套件时才获胜,之后两个智能体交换角色。我们在五种语言的15个仓库上,对11个模型-工具参与者运行了一场包含1500个回合的锦标赛。领先者以不同方式获胜:带有Codex CLI的GPT-5.5作为最强求解器排名第一,修复了它审查的98.3%的缺陷;带有mini-swe-agent的Claude Opus 4.8作为最强任务作者排名第二,红方胜率为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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑