mlsanityData to 7 Oct 2026

DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Training

arXiv 2608.07147 ↗First posted 7 Aug 2026cs.AIcited by 1

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

  1. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  2. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  4. 2024Executable Code Actions Elicit Better LLM Agents1 Feb

Other references · 49

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  7. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  8. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  9. 2017Deep reinforcement learning from human preferencescited by 3,846
  10. 2023Let's Verify Step by Stepcited by 3,598
  11. 2021Program Synthesis with Large Language Modelscited by 3,509
  12. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
37 more
  1. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  2. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  3. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  4. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  5. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
  6. 2023Teaching Large Language Models to Self-Debugcited by 963
  7. 2023A General Theoretical Paradigm to Understand Learning from Human Preferencescited by 906
  8. 2021Measuring Coding Challenge Competence With APPScited by 879
  9. 2025Group Sequence Policy Optimizationcited by 788
  10. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  11. 2023CogAgent: A Visual Language Model for GUI Agentscited by 692
  12. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  13. 2025Process Reinforcement through Implicit Rewardscited by 478
  14. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  15. 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 442
  16. 2022CodeT: Code Generation with Generated Testscited by 369
  17. 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
  18. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  19. 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
  20. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  21. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
  22. 2025Skywork Open Reasoner 1 Technical Reportcited by 161
  23. 2023Self-planning Code Generation with Large Language Modelscited by 121
  24. 2025Reinforcement Learning for Long-Horizon Interactive LLM Agentscited by 103
  25. 2025Memp: Exploring Agent Procedural Memorycited by 88
  26. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
  27. 2026SkillClaw: Let Skills Evolve Collectively with Agentic Evolvercited by 76
  28. 2024Can Language Models Solve Olympiad Programming?cited by 70
  29. 2025LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMscited by 67
  30. 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
  31. 2025OJBench: A Competition Level Code Benchmark For Large Language Modelscited by 22
  32. 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignmentcited by 22
  33. 2025ICPC-Eval: Probing the Frontiers of LLM Reasoning with Competitive Programming Contestscited by 12
  34. 2026GAGPO: Generalized Advantage Grouped Policy Optimizationcited by 6
  35. 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoningcited by 5
  36. 2026Role-Agent: Bootstrapping LLM Agents via Dual-Role Evolutioncited by 4
  37. 2023Lightweight Self-Knowledge Distillation with Multi-source Information Fusioncited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Cross-Benchmark Transfer from RL on Agentic Coding Tasks
  2. 2025MURPHY: Feedback-Aware GRPO with Retrospective Credit Assignment for Multi-Turn Code Generation
  3. 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents
  4. 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
  5. 2026Groupwise Agentic Grading and Advantage Redistribution for Code Agent RL
  6. 2026What Does Multi-Harness RL Learn? Credit Assignment and Portability in Coding Agents
  7. 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agents
  8. 2026Reinforcement Learning via Self-Distillation