scimeatlas

Research map / Large language models / Alignment and preferences

CodeDPO: Aligning Code Models with Self Generated and Verified Source Code

Kechi Zhang, Ge Li, Yihong Dong, Jingjing Xu, Jun Zhang, Jing Su, Yongfei Liu, Zhi Jin

ACL 2025Large language models › Alignment and preferencesapproach: DPO design choicesopen problems in this approach83 citations (OpenAlex)

Peking University · Key Lab of High Confidence Software Technology · ByteDance

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
12improved
1hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add CodeDPO to SFT modelMagiCoder-S-DS-6.7B · HumanEvalpass rate (%): 73.17 -> 83.54Improved
Add CodeDPO to base modelStarCoder2-7B · HumanEvalpass rate (%): 35.40 -> 48.17Improved
Rank code by self-validation score instead of filtering with all generated tests (ablation)CodeDPO data construction (DeepSeekCoder-1.3B) · HumanEvalpass rate (%): 34.75 -> 42.07Improved
Rank code by self-validation score instead of number of passed tests (ablation)CodeDPO data construction (DeepSeekCoder-1.3B) · HumanEvalpass rate (%): 37.19 -> 42.07Improved
Use self-validation ranking instead of random preference pairs (ablation)CodeDPO data construction (DeepSeekCoder-1.3B) · HumanEvalpass rate (%): 21.34 -> 42.07Improved
Self-validation score as ranking signal (ablation)Code ranking on HumanEval · HumanEval ground-truth correlationSpearman: 0.7724 -> 0.8598Improved
Train with DPO instead of SFT on best solution (ablation)CodeDPO (DeepSeekCoder-1.3B) · HumanEvalpass rate (%): 39.02 -> 42.07Improved
Train with DPO instead of KTO (ablation)CodeDPO (DeepSeekCoder-1.3B) · HumanEval+pass rate (%): 35.98 -> 38.04Improved
Increase training data from 25% to 75% (ablation)CodeDPO (DeepSeekCoder-1.3B) · HumanEvalpass rate (%): 32.92 -> 41.46Improved
Add CodeDPOMagic-DS-6.7B · DS-1000 torch and tfpass rate (%): torch 25.0 -> 23.5; tf 33.3 -> 31.1Hurt
Add CodeDPOMagic-DS-6.7B · DS-1000 averagepass rate (%): 37.1 -> 38.7Improved
Add CodeDPODeepSeek-Coder-6.7B base · LiveCodeBench mediumpass rate (%): 7.4 -> 12.2Improved

Open problems this paper states

Open problems in DPO design choices

Which DPO design choices still help at larger scale, with online training and under human evaluation?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy