arXiv cs.AI· Kilian Lieret, Jeffrey Jian Ma, Rahul Kindi, Yuxiang Wei, Jeremy Ma, Sten Sootla, Parth Thakkar, Chao Beyond Zhou, Pengcheng Yin, Rui Hou, Ofir Press, John Yang·· 3 小时前精选AI 评分61
SWE-sweep 基准论文:智能体能否自主发现并修复 bug
SWE-sweep: Can Agents Autonomously Find and Fix Bugs?
AI 导读
研究团队发布 SWE-sweep 基准,测试智能体在不知 bug 性质与位置的情况下,能否在代码库中自主发现并修复尽可能多的 bug。基准覆盖 22 种语言、100 个仓库共 4,068 个 bug,含 NumPy、OpenCV、Lean 4;评测 7 个大语言模型后发现最佳智能体仅解决 4.7% 的 bug,难点主要在发现而非修复,测试时扩展有效但收益递减。
推荐理由
基准把任务从修复已知 issue 提升到自主发现 bug,最佳智能体只解决 4.7%,给出了现有编码智能体与自主维护之间的量化差距。
正文 · 原文
Authors:Kilian Lieret, Jeffrey Jian Ma, Rahul Kindi, Yuxiang Wei, Jeremy Ma, Sten Sootla, Parth Thakkar, Chao Beyond Zhou, Pengcheng Yin, Rui Hou, Ofir Press, John Yang
Abstract:Most existing software engineering benchmarks evaluate coding agents on concrete, well-specified tasks, commonly by providing a codebase together with a user-reported issue to resolve. However, as users delegate increasingly broad outcomes to coding agents, the natural next step is for agents to determine not only how to perform useful work, but also what useful work needs to be done. An agent entrusted with a repository should be able to decide what is broken, which problems matter, and how to solve them before they are reported.
We introduce SWE-sweep, a benchmark for this open-ended setting. Given a codebase containing many concurrent bugs and no information about their nature or location, an agent must autonomously discover and fix as many bugs as possible. For each repository, we collect real GitHub issue-pull request pairs, then identify a single commit where the maximum number of bugs are present at the same time. Each repair is evaluated against hidden tests from the corresponding pull request, along with the existing test suite to check for regressions. Success requires agents to explore and understand a large codebase over long-horizon work, repair bugs without introducing regressions, and manage interactions among fixes that are not independent.
SWE-sweep encompasses 4,068 bugs across 22 programming languages and 100 repositories, including NumPy (Python), OpenCV (C++), and Lean 4 (Lean). We evaluate 7 LMs and find that the best agent resolves only 4.7 percent of all bugs, with the challenge generally lying in discovering bugs rather than repairing them. We further study simple test-time scaling approaches and find that they are effective but yield diminishing returns. SWE-sweep exposes a substantial gap between resolving reported issues and autonomously maintaining software.
| Comments: | 64 pages, 26 figures, 29 tables; includes appendices |
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.35250 [cs.SE] |
| (or arXiv:2611.35250v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2611.35250 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Kilian Adriano Lieret [view email]
[v1]
Wed, 25 Nov 2026 21:43:50 UTC (2,111 KB)
来源:arXiv cs.AI · arxiv.org