mlsanityData to 14 Oct 2026

Aligning CodeLLMs with Direct Preference Optimization

arXiv 2410.18585 ↗First posted 24 Oct 2024cs.AI cs.LGcited by 9

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

  1. 20243D-Properties: Identifying Challenges in DPO and Charting a Path Forward11 Jun
  2. 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferences14 Mar

Other references · 20

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2017Proximal Policy Optimization Algorithmscited by 15,215
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2023Qwen Technical Reportcited by 3,344
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  10. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  11. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  12. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
8 more
  1. 2023StarCoder: may the source be with you!cited by 799
  2. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  3. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  4. 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMscited by 273
  5. 2023SantaCoder: don't reach for the stars!cited by 170
  6. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
  7. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  8. 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 52

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 7; 2026: 2.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025When Data is the Algorithm: A Systematic Study and Curation of Preference Optimization Datasets
  2. 2024Optimizing LLMs with Direct Preferences: A Data Efficiency Perspective
  3. 2025Provably Convergent Primal-Dual DPO for Constrained LLM Alignment
  4. 2025Less is More: Improving LLM Alignment via Preference Data Selection
  5. 2024Insights into Alignment: Evaluating DPO and its Variants Across Multiple Tasks
  6. 2024Unified Preference Optimization: Language Model Alignment Beyond the Preference Frontier
  7. 2024Cal-DPO: Calibrated Direct Preference Optimization for Language Model Alignment
  8. 2025Proximalized Preference Optimization for Diverse Feedback Types: A Decomposed Perspective on DPO