Training Software Engineering Agents and Verifiers with SWE-Gym

Jiayi Pan, Xingyao Wang, Graham Neubig, N. Jaitly, Heng Ji +2 more
2/12/2026

No official code found. Best implementation: SWE-Gym/SWE-Gym (729 stars, Apache-2.0, last commit 2025-07-29).

Abstract

We present SWE-Gym, the first environment for training real-world software engineering (SWE) agents. SWE-Gym contains 2,438 real-world Python task instances, each comprising a codebase with an executable runtime environment, unit tests, and a task specified in natural language. We use SWE-Gym to train language model based SWE agents, achieving up to 19% absolute gains in resolve rate on the popular SWE-Bench Verified and Lite test sets. We also experiment with inference-time scaling through verifiers trained on agent trajectories sampled from SWE-Gym. When combined with our fine-tuned SWE agents, we achieve 32.0% and 26.0% on SWE-Bench Verified and Lite, respectively, reflecting a new state-of-the-art for open-weight SWE agents. To facilitate further research, we publicly release SWE-Gym, models, and agent trajectories.

View on arXivView PDF

Code Implementations(1)

SWE-Gym/SWE-GymCommunity100%
Apache-2.0

Code for Paper: Training Software Engineering Agents and Verifiers with SWE-Gym [ICML 2025]

72945Python, Jupyter NotebookNov 4, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{pan2026training,
  title  = {Training Software Engineering Agents and Verifiers with SWE-Gym},
  author = {Jiayi Pan and Xingyao Wang and Graham Neubig and N. Jaitly and Heng Ji and Alane Suhr and Yizhe Zhang},
  year   = {2026},
  eprint = {2412.21139},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.21139},
  journal = {ICML 2024 2024}
}

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/2412.21139.svg)](https://codeofpaper.com/paper/2412.21139)

Discussion