Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learning
On the map: LLM reasoning → Reinforcement learning for reasoning
also in 1 more
Abstract (arXiv)
Research on applications of reinforcement learning (RL) to large language models has mostly been focused on single-turn problems, such as mathematical reasoning or single-shot code generation. While these problems can be viewed as token-level multi-turn Markov decision processes (MDPs), this view corresponds to a degenerate case of multi-turn interaction where the environment provides no feedback. This contrasts with many real-world domains, such as software engineering (SWE), which require rich multi-turn interactions with a stateful environment that responds to each action with a non-trivial observation. To bridge this gap, we demonstrate the successful application of RL to this general regime. Our methodology begins with rejection fine-tuning (RFT) using execution feedback to train a policy to follow instructions and formatting effectively, followed by a synchronous RL pipeline using DAPO for iterative improvement. Applying this pipeline to Qwen2.5-72B-Instruct, we increase its Pass@1 on the SWE-bench Verified benchmark from 11% to 39%, substantially improving upon the 20% RFT baseline. On the May and June splits of SWE-rebench, the resulting agent achieves Pass@1 of 35% and 31% respectively, competitive with even larger models such as DeepSeek-V3-0324 or Qwen3-235B-A22B, demonstrating that our methodology offers a practical approach for training capable agents for multi-turn interactive tasks using open-weight models.
Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 19 of its 33 references that are in the map. First posted on arXiv 5 Aug 2025.
Builds on
19 of 33 references.
Closest ancestors · 3
Same direction, newest first
- 2025Curriculum Reinforcement Learning from Easy to Hard Tasks Improves LLM Reasoning7 Jun
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scale18 Mar
- 2017Proximal Policy Optimization Algorithms20 Jul
Other references · 16
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 140
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 127
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
4 more
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 74
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 57
- 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agentscited by 9
Built on by
Citing papers per year: 2025: 9; 2026: 25.
34 papers.
Sort:
By area:
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195
- 2025UserRL: Training Interactive User-Centric Agent via Reinforcement Learningcited by 27
- 2026SWE-World: Building Software Engineering Agents in Docker-Free Environmentscited by 21
- 2026CUA-Gym: Scaling Verifiable Training Environments and Tasks for Computer-Use Agentscited by 21
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Masterycited by 20
- 2026Composer 2 Technical Reportcited by 20
- 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Trainingcited by 18
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2025The Best of N Worlds: Aligning Reinforcement Learning with Best-of-N Sampling via max@k Optimisationcited by 16
- 2025Supervised Reinforcement Learning: From Expert Trajectories to Step-wise Reasoningcited by 11
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
- 2026DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollbackcited by 10
22 more
- 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agentscited by 5
- 2025Fast LLM Post-training via Decoupled and Fastest-of-N Speculationcited by 4
- 2026AceGRPO: Adaptive Curriculum Enhanced Group Relative Policy Optimization for Autonomous Machine Learning Engineeringcited by 4
- 2026Mach-Mind-4-Flash Technical Reportcited by 4
- 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agentscited by 3
- 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesiscited by 3
- 2026RepoLaunch: Automating Build and Management of Code Repositories across Languages and Platformscited by 2
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Modelscited by 2
- 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agentscited by 1
- 2025PIPer: On-Device Environment Setup via Online Reinforcement Learningcited by 0
- 2025EARL: Efficient Agentic Reinforcement Learning Systems for Large Language Modelscited by 0
- 2026GeoMind: An Agentic Workflow for Lithology Classification with Reasoned Tool Invocationcited by 0
- 2026Rethinking Agentic Reinforcement Learning In Large Language Modelscited by 0
- 2026Signal Reshaping for GRPO in Weak-Feedback Agentic Code Repaircited by 0
- 2026Struct-Searcher: Agentic Structural Thinking Advances Multimodal Deep Information Seekingcited by 0
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 0
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
- 2026One to More, More to One: Category-Aware Iterative Expert Training for Software Engineering Agentscited by 0
- 2026SWE-MILE: Asynchronous Potential-Induced Milestone Credit Assignment for Long-Horizon Software Engineering Agentscited by 0
- 2026GlyphBench: A Playground for Language-Model Reinforcement Learningcited by 0
- 2026GlyphBench: A Playground for Language-Model Reinforcement Learning28 Sep 2026
- 2026SWE-MILE: Asynchronous Potential-Induced Milestone Credit Assignment for Long-Horizon Software Engineering Agents26 Sep 2026
- 2026One to More, More to One: Category-Aware Iterative Expert Training for Software Engineering Agents20 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesis7 Sep 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents18 Aug 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models14 Jul 2026
- 2026Mach-Mind-4-Flash Technical Report10 Jul 2026
- 2026Dockerless: Environment-Free Program Verifier for Coding Agents26 Jun 2026
- 2026Struct-Searcher: Agentic Structural Thinking Advances Multimodal Deep Information Seeking5 Jun 2026
22 more
- 2026CUA-Gym: Scaling Verifiable Training Environments and Tasks for Computer-Use Agents25 May 2026
- 2026DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollback21 May 2026
- 2026Signal Reshaping for GRPO in Weak-Feedback Agentic Code Repair8 May 2026
- 2026Rethinking Agentic Reinforcement Learning In Large Language Models30 Apr 2026
- 2026GeoMind: An Agentic Workflow for Lithology Classification with Reasoned Tool Invocation23 Apr 2026
- 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agents9 Apr 2026
- 2026From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agents2 Apr 2026
- 2026Composer 2 Technical Report25 Mar 2026
- 2026RepoLaunch: Automating Build and Management of Code Repositories across Languages and Platforms5 Mar 2026
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery10 Feb 2026
- 2026AceGRPO: Adaptive Curriculum Enhanced Group Relative Policy Optimization for Autonomous Machine Learning Engineering8 Feb 2026
- 2026SWE-World: Building Software Engineering Agents in Docker-Free Environments3 Feb 2026
- 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training3 Feb 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection8 Dec 2025
- 2025Fast LLM Post-training via Decoupled and Fastest-of-N Speculation20 Nov 2025
- 2025Supervised Reinforcement Learning: From Expert Trajectories to Step-wise Reasoning29 Oct 2025
- 2025The Best of N Worlds: Aligning Reinforcement Learning with Best-of-N Sampling via max@k Optimisation27 Oct 2025
- 2025EARL: Efficient Agentic Reinforcement Learning Systems for Large Language Models7 Oct 2025
- 2025PIPer: On-Device Environment Setup via Online Reinforcement Learning29 Sep 2025
- 2025UserRL: Training Interactive User-Centric Agent via Reinforcement Learning24 Sep 2025
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Survey2 Sep 2025
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195
- 2025UserRL: Training Interactive User-Centric Agent via Reinforcement Learningcited by 27
- 2026SWE-World: Building Software Engineering Agents in Docker-Free Environmentscited by 21
- 2026CUA-Gym: Scaling Verifiable Training Environments and Tasks for Computer-Use Agentscited by 21
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Masterycited by 20
- 2026Composer 2 Technical Reportcited by 20
- 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Trainingcited by 18
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollbackcited by 10
- 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agentscited by 5
12 most cited of 24 All 24 (JSON)
- 2026GlyphBench: A Playground for Language-Model Reinforcement Learning28 Sep 2026
- 2026SWE-MILE: Asynchronous Potential-Induced Milestone Credit Assignment for Long-Horizon Software Engineering Agents26 Sep 2026
- 2026One to More, More to One: Category-Aware Iterative Expert Training for Software Engineering Agents20 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesis7 Sep 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents18 Aug 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models14 Jul 2026
- 2026Mach-Mind-4-Flash Technical Report10 Jul 2026
- 2026Dockerless: Environment-Free Program Verifier for Coding Agents26 Jun 2026
- 2026CUA-Gym: Scaling Verifiable Training Environments and Tasks for Computer-Use Agents25 May 2026
12 newest of 24 All 24 (JSON)
- 2025Supervised Reinforcement Learning: From Expert Trajectories to Step-wise Reasoningcited by 11
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
- 2026Rethinking Agentic Reinforcement Learning In Large Language Modelscited by 0
- 2026Signal Reshaping for GRPO in Weak-Feedback Agentic Code Repaircited by 0
- 2026Struct-Searcher: Agentic Structural Thinking Advances Multimodal Deep Information Seekingcited by 0
- 2026Struct-Searcher: Agentic Structural Thinking Advances Multimodal Deep Information Seeking5 Jun 2026
- 2026Signal Reshaping for GRPO in Weak-Feedback Agentic Code Repair8 May 2026
- 2026Rethinking Agentic Reinforcement Learning In Large Language Models30 Apr 2026
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection8 Dec 2025
- 2025Supervised Reinforcement Learning: From Expert Trajectories to Step-wise Reasoning29 Oct 2025
- 2025The Best of N Worlds: Aligning Reinforcement Learning with Best-of-N Sampling via max@k Optimisationcited by 16
- 2026AceGRPO: Adaptive Curriculum Enhanced Group Relative Policy Optimization for Autonomous Machine Learning Engineeringcited by 4
- 2026RepoLaunch: Automating Build and Management of Code Repositories across Languages and Platformscited by 2
- 2025PIPer: On-Device Environment Setup via Online Reinforcement Learningcited by 0
- 2026RepoLaunch: Automating Build and Management of Code Repositories across Languages and Platforms5 Mar 2026
- 2026AceGRPO: Adaptive Curriculum Enhanced Group Relative Policy Optimization for Autonomous Machine Learning Engineering8 Feb 2026
- 2025The Best of N Worlds: Aligning Reinforcement Learning with Best-of-N Sampling via max@k Optimisation27 Oct 2025
- 2025PIPer: On-Device Environment Setup via Online Reinforcement Learning29 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Practitioner's Guide to Multi-turn Agentic Reinforcement Learning
- 2025SWE-RM: Execution-free Feedback For Software Engineering Agents
- 2025Information Gain-based Policy Optimization: A Simple and Effective Approach for Multi-Turn Search Agents
- 2026RTPO: Reverse-Turn Policy Optimization for Stabilizing Agentic RL Training
- 2025Stabilizing Long-term Multi-turn Reinforcement Learning with Gated Rewards
- 2025Reinforcement Learning for Long-Horizon Interactive LLM Agents
- 2025RLFactory: A Plug-and-Play Reinforcement Learning Post-Training Framework for LLM Multi-Turn Tool-Use
- 2026FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents