DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Training
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Reinforcement learning with Verifiable Reward (RLVR) has emerged as a powerful paradigm for training coding agents, where the execution feedback from compilation and tests provides objective verification. However, unlike agent tasks, coding agents face a unique and finer-grained credit assignment challenge: at each step, coding actions simultaneously pack varying changes into different regions of a code version, which makes the contribution of independent change indistinguishable. Existing RLVR methods mostly leverage the outcome reward or step-level reward, which fails to dive into a code diff and makes unique properties of coding actions invisible to training. In this paper, we propose Diff-in-Diff Policy Optimization (DiDPO), a critic-free RL method that constructs fine-grained credit units directly from the structure of code diffs. DiDPO organizes multi-turn coding interactions into multiple thought--action steps and discovers code diffs across sampled trajectories. It then selects anchors by aggregating highly similar sub-diffs split from each whole diff by our ``groupability score'', which provides the splitting schema that optimally balances the semantic scope of anchors and the group mass they may form. Finally these anchors form advantage groups and project the diff-level advantage back to individual response tokens. Experiments on long-horizon coding and reasoning benchmarks show that DiDPO significantly outperforms strong agentic RL baselines. On Qwen2.5-7B-Coder, DiDPO exceeds comparable methods by over 10% and narrows the gap with far larger models, offering a principled framework for fine-grained credit assignment in coding agent training. We also open-source verl-code, an agentic rl codebase that supports various RL methods and coding benchmarks.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 53 of its 63 references that are in the map. First posted on arXiv 7 Aug 2026.
Builds on
53 of 63 references.
Closest ancestors · 4
Same direction, newest first
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 49
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 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
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2023Let's Verify Step by Stepcited by 3,598
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
37 more
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023A General Theoretical Paradigm to Understand Learning from Human Preferencescited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2025Group Sequence Policy Optimizationcited by 788
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2023CogAgent: A Visual Language Model for GUI Agentscited by 692
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2025Process Reinforcement through Implicit Rewardscited by 478
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 442
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2025Skywork Open Reasoner 1 Technical Reportcited by 161
- 2023Self-planning Code Generation with Large Language Modelscited by 121
- 2025Reinforcement Learning for Long-Horizon Interactive LLM Agentscited by 103
- 2025Memp: Exploring Agent Procedural Memorycited by 88
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2026SkillClaw: Let Skills Evolve Collectively with Agentic Evolvercited by 76
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2025LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMscited by 67
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2025OJBench: A Competition Level Code Benchmark For Large Language Modelscited by 22
- 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignmentcited by 22
- 2025ICPC-Eval: Probing the Frontiers of LLM Reasoning with Competitive Programming Contestscited by 12
- 2026GAGPO: Generalized Advantage Grouped Policy Optimizationcited by 6
- 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoningcited by 5
- 2026Role-Agent: Bootstrapping LLM Agents via Dual-Role Evolutioncited by 4
- 2023Lightweight Self-Knowledge Distillation with Multi-source Information Fusioncited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Cross-Benchmark Transfer from RL on Agentic Coding Tasks
- 2025MURPHY: Feedback-Aware GRPO with Retrospective Credit Assignment for Multi-Turn Code Generation
- 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents
- 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
- 2026Groupwise Agentic Grading and Advantage Redistribution for Code Agent RL
- 2026What Does Multi-Harness RL Learn? Credit Assignment and Portability in Coding Agents
- 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agents
- 2026Reinforcement Learning via Self-Distillation