Elamur Research⌕
☰
home / papers / 2024 / Training Software Engineering Agents and Verifiers with SWE-Gym

Training Software Engineering Agents and Verifiers with SWE-Gym

Paper · 2024 · Jiayi Pan; Xingyao Wang; Graham Neubig; Navdeep Jaitly; Heng Ji; Alane Suhr; and Yizhe Zhang

Summary

Open-weight software engineering (SWE) agents have lagged behind systems built on proprietary models, partly because no environment existed for training them on realistic repository-level work. The authors introduce SWE-Gym, which provides 2,438 real GitHub-issue tasks from 11 Python repositories. Each task includes an executable runtime with dependencies already installed, unit tests, and a natural-language problem statement. The repositories are disjoint from SWE-Bench to avoid contamination. The tests provide reward signals. The authors use these to fine-tune Qwen-2.5 coder models inside two scaffolds: OpenHands, by learning from successful sampled trajectories, and MoatlessTools, through self-improvement via rejection sampling. They also train verifiers, which are outcome-supervised reward models that rank candidate trajectories at inference time. Fine-tuning improves resolution rates by up to 19% absolute. Combining the agents with verifiers reaches 32.0% on SWE-Bench Verified and 26.0% on SWE-Bench Lite, a new best among open-weight agents. Performance keeps rising with more training trajectories and more rollouts, which suggests that sampling compute, not dataset size, is the current limit. The environment, models and trajectories are released publicly.

Key points

  • Released resources:
    • SWE-Gym: 2,438 tasks.
    • SWE-Gym Lite: 230 easier, self-contained tasks for quick prototyping.
    • SWE-Gym Raw: 64,689 issues from 358 repositories, without executable environments.
  • OpenHands result: A 32B Qwen-2.5 coder fine-tuned on only 491 trajectories improves to 15.3% on SWE-Bench Lite (+12.3) and 20.6% on SWE-Bench Verified (+13.6).
  • MoatlessTools result: Self-improvement through rejection sampling fine-tuning reaches up to 19.7% on SWE-Bench Lite.
  • Verifier scaling: Selecting the best of several rollouts gives roughly log-linear gains. In the MoatlessTools setting with k = 8, a 32B verifier lifts a 32B policy from 19.7% to 26.3% on Lite, while a 7B verifier stops improving after k = 4.
  • Data scaling: Experiments that vary the number of trajectories, unique instances and repositories show no saturation, indicating that task and repository diversity are not yet bottlenecks.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Fields, topics and concepts

📚 Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksInformation Systems · 1,730 worksSoftware · 119 works

🧭 Topics 1Research subjects and languages the work is about.Code & programming languages · 168 works

Cite

Cite as Jiayi Pan; Xingyao Wang; Graham Neubig; Navdeep Jaitly; Heng Ji; Alane Suhr; and Yizhe Zhang. 2024. Training Software Engineering Agents and Verifiers with SWE-Gym. arXiv:2412.21139.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2412.21139 · arXiv 2412.21139

@misc{suhr2024training,
  title = {{Training Software Engineering Agents and Verifiers with SWE-Gym}},
  author = {Jiayi Pan; Xingyao Wang; Graham Neubig; Navdeep Jaitly; Heng Ji; Alane Suhr; and Yizhe Zhang},
  year = {2024},
  doi = {10.48550/arxiv.2412.21139},
  eprint = {2412.21139},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2412.21139}
}

References

3 references, 0 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Akkaya, I., Andrychowicz, M., Chociej, M., Litwin, M., McGrew, B., Petron, A., Paino, A., Plappert, M., Powell, G., Ribas, R., et al. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019. 2. Self-Improvement with Reinforcement Learning Despite notable progress, our self-impr… find
  2. Badertdinov, I., Trofimova, M., Anapolskiy, Y., Abramov, S., Zainullina, K., Golubev, A., Polezhaev, S., Litvintseva, D., Karasik, S., Fisin, F., Skvortsov, S., Nekrashevich, M., Shevtsov, A., and Yangel, B. Scaling data collection for training software engineering agents. Nebius blog, 2024. 3. Huma… find
  3. Bai, H., Zhou, Y., Cemri, M., Pan, J., Suhr, A., Levine, S., and Kumar, A. Digirl: Training in-the-wild device-control agents with autonomous reinforcement learning. ArXiv, abs/2406.11896, 2024. URL https://api.semanticscholar.org/CorpusID:270562229. — [arXiv:2406.11896](https://arxiv.org/abs/2406.11896) ↗

Updated

This page in Markdown → https://md.research.elamur.ai/free/en/papers/pan-2024-training-software-engineering-agents/