Aligning CodeLLMs with Direct Preference Optimization
On the map: LLM alignment / RLHF / preference optimisation → LLM preference optimization methods
Abstract (arXiv)
The last year has witnessed the rapid progress of large language models (LLMs) across diverse domains. Among them, CodeLLMs have garnered particular attention because they can not only assist in completing various programming tasks but also represent the decision-making and logical reasoning capabilities of LLMs. However, current CodeLLMs mainly focus on pre-training and supervised fine-tuning scenarios, leaving the alignment stage, which is important for post-training LLMs, under-explored. This work first identifies that the commonly used PPO algorithm may be suboptimal for the alignment of CodeLLM because the involved reward rules are routinely coarse-grained and potentially flawed. We then advocate addressing this using the DPO algorithm. Based on only preference data pairs, DPO can render the model rank data automatically, giving rise to a fine-grained rewarding pattern more robust than human intervention. We also contribute a pipeline for collecting preference pairs for DPO on CodeLLMs. Studies show that our method significantly improves the performance of existing CodeLLMs on benchmarks such as MBPP and HumanEval.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in LLM preference optimization methods, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 22 of its 33 references that are in the map. First posted on arXiv 24 Oct 2024.
Builds on
22 of 33 references.
Closest ancestors · 2
Same direction, newest first
- 20243D-Properties: Identifying Challenges in DPO and Charting a Path Forward11 Jun
- 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferences14 Mar
Other references · 20
- 2023GPT-4 Technical Reportcited by 18,396
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Qwen Technical Reportcited by 3,344
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
8 more
- 2023StarCoder: may the source be with you!cited by 799
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMscited by 273
- 2023SantaCoder: don't reach for the stars!cited by 170
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
- 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 52
Built on by
Citing papers per year: 2025: 7; 2026: 2.
9 papers.
- 2025Can We Generate Images with CoT? Let's Verify and Reinforce Image Generation Step by Stepcited by 131
- 2025The Best Instruction-Tuning Data are Those That Fitcited by 52
- 2025A Survey of Direct Preference Optimizationcited by 36
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Teaching Your Models to Understand Code via Focal Preference Alignmentcited by 10
- 2025TGDPO: Harnessing Token-Level Reward Guidance for Enhancing Direct Preference Optimizationcited by 5
- 2026CROP: Expert-Aligned Image Cropping via Compositional Reasoning and Optimizing Preferencecited by 1
- 2025From Noisy Traces to Stable Gradients: Bias-Variance Optimized Preference Optimization for Aligning Large Reasoning Modelscited by 0
- 2026FiMI Banking: A Sovereign Model for Indian Retail Bankingcited by 0
- 2026FiMI Banking: A Sovereign Model for Indian Retail Banking3 Sep 2026
- 2026CROP: Expert-Aligned Image Cropping via Compositional Reasoning and Optimizing Preference9 May 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025From Noisy Traces to Stable Gradients: Bias-Variance Optimized Preference Optimization for Aligning Large Reasoning Models6 Oct 2025
- 2025TGDPO: Harnessing Token-Level Reward Guidance for Enhancing Direct Preference Optimization17 Jun 2025
- 2025A Survey of Direct Preference Optimization12 Mar 2025
- 2025Teaching Your Models to Understand Code via Focal Preference Alignment4 Mar 2025
- 2025The Best Instruction-Tuning Data are Those That Fit6 Feb 2025
- 2025Can We Generate Images with CoT? Let's Verify and Reinforce Image Generation Step by Step23 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025When Data is the Algorithm: A Systematic Study and Curation of Preference Optimization Datasets
- 2024Optimizing LLMs with Direct Preferences: A Data Efficiency Perspective
- 2025Provably Convergent Primal-Dual DPO for Constrained LLM Alignment
- 2025Less is More: Improving LLM Alignment via Preference Data Selection
- 2024Insights into Alignment: Evaluating DPO and its Variants Across Multiple Tasks
- 2024Unified Preference Optimization: Language Model Alignment Beyond the Preference Frontier
- 2024Cal-DPO: Calibrated Direct Preference Optimization for Language Model Alignment
- 2025Proximalized Preference Optimization for Diverse Feedback Types: A Decomposed Perspective on DPO