Lune

ICML2025Top-tier venue

Training Software Engineering Agents and Verifiers with SWE-Gym

Jiayi Pan, Xingyao Wang, Graham Neubig, Navdeep Jaitly, Heng Ji, Alane Suhr, Yizhe Zhang

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 stateof-the-art for open-weight SWE agents. To facilitate further research, we publicly release SWE-Gym, models, and agent trajectories. 1 1 UC Berkeley 2 UIUC 3 CMU 4 Apple.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

79 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Self-Challenging Language Model Agents cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale cites SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks
  • Let's Verify Step by Step cites Training language models to follow instructions with human feedback
  • Scaling Long-Horizon Agent via Context Folding cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks cites SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution
  • SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers79

  1. SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software EvolutionYuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux et al.NeurIPS 2025 · 291 citations
  2. Scaling Long-Horizon Agent via Context FoldingWeiwei Sun, Lu Miao, Zhan Ling, Kang Liu et al.ICML 2026 · 104 citations
  3. SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security TasksHwiwon Lee, Ziqi Zhang, Hanxiao Lu, Lingming ZhangNeurIPS 2025 · 86 citations
  4. CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at ScaleZhun Wang, Tianneng Shi, Jingxuan He, Matthew Cai et al.ICLR 2026 · 83 citations
  5. Self-Challenging Language Model AgentsYifei Zhou, Sergey Levine, Jason E. Weston, Xian Li et al.NeurIPS 2025 · 52 citations

Builds on21

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Let's Verify Step by StepHunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards et al.ICLR 2024 · 3,045 citations
  3. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  4. SWE-agent: Agent-Computer Interfaces Enable Automated Software EngineeringJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret et al.NeurIPS 2024 · 2,059 citations
  5. SGLang: Efficient Execution of Structured Language Model ProgramsLianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun et al.NeurIPS 2024 · 1,586 citations

Related papers

  1. SWE-Dev: Building Software Engineering Agents with Training and Inference ScalingHaoran Wang, Zhenyu Hou, Yao Wei, Jie Tang et al.ACL Findings 2025 · 3 citations
  2. Hybrid-Gym: Training Coding Agents to Generalize Across TasksYiqing Xie, Emmy Liu, Gaokai Zhang, Nachiket Kotalwar et al.ICML 2026 · 4 citations
  3. Can Agent Fix Agent Issues?Alfin Wijaya Rahardja, Junwei Liu, Weitong Chen, Zhenpeng Chen et al.NeurIPS 2025 · 4 citations
  4. SWE-rebench V2: Language-Agnostic SWE Task Collection at ScaleIbragim Badertdinov, Maksim Nekrashevich, Anton Shevtsov, Aleksandr GolubevICML 2026 · 13 citations
  5. SWE-RM: Execution-free Feedback for Software Engineering AgentsKaShun SHUM, Binyuan Hui, Jiawei Chen, Lei Zhang et al.ICLR 2026 · 24 citations
Dusk over the sea between two cliffs drawn in fine vertical lines