Building Coding Agents via Entropy-Enhanced Multi-Turn Preference Optimization
On the map: LLM reasoning → Reinforcement learning for reasoning
also in 2 more
Abstract (arXiv)
Software engineering presents complex, multi-step challenges for Large Language Models (LLMs), requiring reasoning over large codebases and coordinated tool use. The difficulty of these tasks is exemplified by benchmarks like SWE-bench, where current LLMs still struggle to resolve real-world issues. A promising approach to enhance performance is test-time scaling (TTS), but its gains are heavily dependent on the diversity of model outputs. While standard alignment methods such as Direct Preference Optimization (DPO) and Kahneman-Tversky Optimization (KTO) are effective at aligning model outputs with human preferences, this process can come at the cost of reduced diversity, limiting the effectiveness of TTS. Additionally, existing preference optimization algorithms are typically designed for single-turn tasks and do not fully address the complexities of multi-turn reasoning and tool integration required for interactive coding agents. To bridge this gap, we introduce EntroPO, an entropy-enhanced framework that adapts existing preference optimization algorithms to the multi-turn, tool-assisted setting. EntroPO augments the preference objective to explicitly preserve policy entropy and generalizes learning to optimize over multi-turn interactions rather than single-turn responses. We validate EntroPO by fine-tuning a diverse suite of models from different families and sizes (up to 106B parameters).To maximize performance gains from TTS, we further propose a hybrid best-trajectory selection scheme combining a learned verifier model with model free approaches. On the SWEBENCH leaderboard, our approach establishes new state-of-the-art results among open-weight models. A 30B parameter model trained with EntroPO ranks 1st on SWEBENCH-LITE and 4th on SWEBENCH-VERIFIED on the open-weight leaderboard, surpassed only by models with over 10x more parameters(e.g., >350B).
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 49 of its 63 references that are in the map. First posted on arXiv 15 Sep 2025.
Builds on
49 of 63 references.
Closest ancestors · 4
Same direction, newest first
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution25 Feb
- 2025Diverse Preference Optimization30 Jan
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Model29 May
- 2017Proximal Policy Optimization Algorithms20 Jul
Other references · 45
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
- 2025Gemma 3 Technical Reportcited by 1,824
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
33 more
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 963
- 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
- 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 562
- 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 467
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
- 2023Understanding the Effects of RLHF on LLM Generalisation and Diversitycited by 396
- 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 350
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
- 2024AutoCodeRover: Autonomous Program Improvementcited by 278
- 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMscited by 273
- 2024Is DPO Superior to PPO for LLM Alignment? A Comprehensive Studycited by 262
- 2024Direct Language Model Alignment from Online AI Feedbackcited by 260
- 2023Does Writing with Language Models Reduce Content Diversity?cited by 192
- 2023Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence Constraintscited by 174
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2025Beyond Ten Turns: Unlocking Long-Horizon Agentic Search with Large-Scale Asynchronous RLcited by 150
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 132
- 2025Is Best-of-N the Best of Them? Coverage, Scaling, and Optimality in Inference-Time Alignmentcited by 97
- 2024Curiosity-driven Red-teaming for Large Language Modelscited by 88
- 2025Don't Overthink it. Preferring Shorter Thinking Chains for Improved LLM Reasoningcited by 85
- 2025Scaling Test-Time Compute Without Verification or RL is Suboptimalcited by 84
- 2023Search-in-the-Chain: Interactively Enhancing Large Language Models with Search for Knowledge-intensive Taskscited by 73
- 2024Preserving Diversity in Supervised Fine-Tuning of Large Language Modelscited by 70
- 2024Building Math Agents with Multi-Turn Iterative Preference Learningcited by 66
- 2024Direct Multi-Turn Preference Optimization for Language Agentscited by 64
- 2024One fish, two fish, but not the whole sea: Alignment reduces language models' conceptual diversitycited by 58
- 2025Skywork-SWE: Unveiling Data Scaling Laws for Software Engineering in LLMscited by 26
- 2024Knowledge Entropy Decay during Language Model Pretraining Hinders New Knowledge Acquisitioncited by 16
- 2025First Finish Search: Efficient Test-Time Scaling in Large Language Modelscited by 9
- 2025De Novo Molecular Design Enabled by Direct Preference Optimization and Curriculum Learningcited by 5
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026SWE-AGILE: A Software Agent Framework for Efficiently Managing Dynamic Reasoning Contextcited by 6
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspectivecited by 4
- 2026DART-SD: Diamond-topology Aware Retrieval and Tuning for Self-Distillation of Multi-Turn Tool-Calling Agentscited by 2
- 2026Entropy-informed Decoding: Adaptive Information-Driven Branchingcited by 0
- 2026Quality, Not Just Outcome: A Structural Scoring Framework for Selecting Coding-Agent Trajectories for Supervised Fine-Tuningcited by 0
- 2026Quality, Not Just Outcome: A Structural Scoring Framework for Selecting Coding-Agent Trajectories for Supervised Fine-Tuning9 Oct 2026
- 2026DART-SD: Diamond-topology Aware Retrieval and Tuning for Self-Distillation of Multi-Turn Tool-Calling Agents19 Aug 2026
- 2026Entropy-informed Decoding: Adaptive Information-Driven Branching10 May 2026
- 2026SWE-AGILE: A Software Agent Framework for Efficiently Managing Dynamic Reasoning Context13 Apr 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective9 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2026Scaling Agentic Verifier for Competitive Coding
- 2025Learning to Align Human Code Preferences
- 2025SPOGW: a Score-based Preference Optimization method via Group-Wise comparison for workflows
- 2025DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree Traversal
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus
- 2024Self-supervised Preference Optimization: Enhance Your Language Model with Preference Degree Awareness
- 2025DEPO: Dual-Efficiency Preference Optimization for LLM Agents
- 2026Disentangling Optimization Scale from Preference Scale in DPO