mlsanityData to 7 Oct 2026

Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learning

arXiv 2508.03501 ↗First posted 5 Aug 2025cs.LG cs.CL cs.SEcited by 34

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

  1. 2025Curriculum Reinforcement Learning from Easy to Hard Tasks Improves LLM Reasoning7 Jun
  2. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scale18 Mar
  3. 2017Proximal Policy Optimization Algorithms20 Jul

Other references · 16

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  6. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  7. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  8. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  9. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
  10. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 140
  11. 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 127
  12. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
4 more
  1. 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
  2. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 74
  3. 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 57
  4. 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agentscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 25.

34 papers.

Sort:

By area:

  1. 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195
  2. 2025UserRL: Training Interactive User-Centric Agent via Reinforcement Learningcited by 27
  3. 2026SWE-World: Building Software Engineering Agents in Docker-Free Environmentscited by 21
  4. 2026CUA-Gym: Scaling Verifiable Training Environments and Tasks for Computer-Use Agentscited by 21
  5. 2026Immersion in the GitHub Universe: Scaling Coding Agents to Masterycited by 20
  6. 2026Composer 2 Technical Reportcited by 20
  7. 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Trainingcited by 18
  8. 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
  9. 2025The Best of N Worlds: Aligning Reinforcement Learning with Best-of-N Sampling via max@k Optimisationcited by 16
  10. 2025Supervised Reinforcement Learning: From Expert Trajectories to Step-wise Reasoningcited by 11
  11. 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
  12. 2026DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollbackcited by 10
22 more
  1. 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
  2. 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
  3. 2026From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agentscited by 5
  4. 2025Fast LLM Post-training via Decoupled and Fastest-of-N Speculationcited by 4
  5. 2026AceGRPO: Adaptive Curriculum Enhanced Group Relative Policy Optimization for Autonomous Machine Learning Engineeringcited by 4
  6. 2026Mach-Mind-4-Flash Technical Reportcited by 4
  7. 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agentscited by 3
  8. 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesiscited by 3
  9. 2026RepoLaunch: Automating Build and Management of Code Repositories across Languages and Platformscited by 2
  10. 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Modelscited by 2
  11. 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agentscited by 1
  12. 2025PIPer: On-Device Environment Setup via Online Reinforcement Learningcited by 0
  13. 2025EARL: Efficient Agentic Reinforcement Learning Systems for Large Language Modelscited by 0
  14. 2026GeoMind: An Agentic Workflow for Lithology Classification with Reasoned Tool Invocationcited by 0
  15. 2026Rethinking Agentic Reinforcement Learning In Large Language Modelscited by 0
  16. 2026Signal Reshaping for GRPO in Weak-Feedback Agentic Code Repaircited by 0
  17. 2026Struct-Searcher: Agentic Structural Thinking Advances Multimodal Deep Information Seekingcited by 0
  18. 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 0
  19. 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
  20. 2026One to More, More to One: Category-Aware Iterative Expert Training for Software Engineering Agentscited by 0
  21. 2026SWE-MILE: Asynchronous Potential-Induced Milestone Credit Assignment for Long-Horizon Software Engineering Agentscited by 0
  22. 2026GlyphBench: A Playground for Language-Model Reinforcement Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025A Practitioner's Guide to Multi-turn Agentic Reinforcement Learning
  2. 2025SWE-RM: Execution-free Feedback For Software Engineering Agents
  3. 2025Information Gain-based Policy Optimization: A Simple and Effective Approach for Multi-Turn Search Agents
  4. 2026RTPO: Reverse-Turn Policy Optimization for Stabilizing Agentic RL Training
  5. 2025Stabilizing Long-term Multi-turn Reinforcement Learning with Gated Rewards
  6. 2025Reinforcement Learning for Long-Horizon Interactive LLM Agents
  7. 2025RLFactory: A Plug-and-Play Reinforcement Learning Post-Training Framework for LLM Multi-Turn Tool-Use
  8. 2026FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents