Toward Training Superintelligent Software Agents through Self-Play SWE-RL

Yuxiang Wei, Zhiqing Sun, Emily McMilin, Jonas Gehring, David Zhang +4 more
12/21/2025
cs.SEcs.AIcs.CL

No official code found. Best implementation: Uni-IDE/AvaAI.SoftwareEngineering (0 stars, GPL-3.0, last commit 2025-12-27).

Abstract

While current software agents powered by large language models (LLMs) and agentic reinforcement learning (RL) can boost programmer productivity, their training data (e.g., GitHub issues and pull requests) and environments (e.g., pass-to-pass and fail-to-pass tests) heavily depend on human knowledge or curation, posing a fundamental barrier to superintelligence. In this paper, we present Self-play SWE-RL (SSR), a first step toward training paradigms for superintelligent software agents. Our approach takes minimal data assumptions, only requiring access to sandboxed repositories with source code and installed dependencies, with no need for human-labeled issues or tests. Grounded in these real-world codebases, a single LLM agent is trained via reinforcement learning in a self-play setting to iteratively inject and repair software bugs of increasing complexity, with each bug formally specified by a test patch rather than a natural language issue description. On the SWE-bench Verified and SWE-Bench Pro benchmarks, SSR achieves notable self-improvement (+10.4 and +7.8 points, respectively) and consistently outperforms the human-data baseline over the entire training trajectory, despite being evaluated on natural language issues absent from self-play. Our results, albeit early, suggest a path where agents autonomously gather extensive learning experiences from real-world software repositories, ultimately enabling superintelligent systems that exceed human capabilities in understanding how systems are constructed, solving novel challenges, and autonomously creating new software from scratch.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

# Inspire. https://x.com/aakashg0/status/2004480416301085133 https://x.com/YuxiangWei9/status/2003541373853524347 # Paper: [Toward Training Superintelligent Software Agents through Self-Play SWE-RL](https://arxiv.org/abs/2512.18552)

00Dec 27, 20259 months agoGPL-3.0

Similar Papers

Cite this paper

@article{wei2025toward,
  title  = {Toward Training Superintelligent Software Agents through Self-Play SWE-RL},
  author = {Yuxiang Wei and Zhiqing Sun and Emily McMilin and Jonas Gehring and David Zhang and Gabriel Synnaeve and Daniel Fried and Lingming Zhang and Sida Wang},
  year   = {2025},
  eprint = {2512.18552},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.18552v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.18552.svg)](https://codeofpaper.com/paper/2512.18552)

Discussion