Research map / Large language models / Alignment and preferences
Focused-DPO: Enhancing Code Generation Through Focused Preference Optimization on Error-Prone Points
Kechi Zhang, Ge Li, Jia Li, Yihong Dong, Jia Li, Zhi Jin
Peking University · Key Lab of High Confidence Software Technology · Tsinghua University
Read the paperPlace an idea next to itCheck your own paper ↗
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
- HumanEval leaderboard pass@1 92.7 · rank 33 of 261 papers
- MBPP leaderboard pass@1 84.7 · rank 24 of 165 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply Focused-DPO | Qwen2.5-Coder-Instruct-7B · HumanEval+ | pass@1: 0.841 -> 0.878 | Improved |
| apply Focused-DPO | Qwen2.5-Coder-Instruct-7B · MBPP+ | pass@1: 0.714 -> 0.762 | Improved |
| apply Focused-DPO | Qwen2.5-Coder-Instruct-7B · LiveCodeBench Hard | pass@1: 0.034 -> 0.048 | Improved |
| apply Focused-DPO | MagiCoder-S-DS-6.7B · HumanEval | pass@1: 0.732 -> 0.823 | Improved |
| apply Focused-DPO after SFT and a first DPO stage | DeepSeekCoder-base-6.7B · HumanEval | pass@1: 0.8354 -> 0.8719 | Improved |
| use Focused-DPO instead of standard DPO | Qwen2.5-Coder-Instruct-7B · MBPP+ | pass@1: 0.743 -> 0.762 | Improved |
| use error-prone identification instead of Step-DPO dataset construction (ablation) | Focused-DPO · HumanEval+ | pass@1: 0.8537 -> 0.8780 | Improved |
| use error-prone identification instead of git-diff construction (ablation) | Focused-DPO · MBPP+ | pass@1: 0.7539 -> 0.7619 | Improved |
| set w_focused to 2 instead of 1 (ablation) | Focused-DPO · HumanEval+ | pass@1: 0.8720 -> 0.8780 | Improved |
| set w_focused to 2 instead of 5 (ablation) | Focused-DPO · HumanEval+ | pass@1: 0.7683 -> 0.8780 | Improved |
| exclude suffix from rejected reward (ablation) | Focused-DPO · HumanEval+ | pass@1: 0.8659 -> 0.8780 | Improved |
| double training data from 5k to 10k (ablation) | Focused-DPO · HumanEval+ / MBPP+ | pass@1: 0.878 -> 0.878 (HumanEval+); 0.761 -> 0.756 (MBPP+) | No clear effect |
Later papers that compared with this method
1 later accepted paper reports Focused-DPO as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- Alignment with Fill-In-the-Middle for Enhancing Code Generation (EMNLP 2025 · better on 1 of 1 shared result)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Not extensively compared with online RL alignment techniques such as DeepSeek-R1.” → Only offline DPO-style training was tested, not online RL such as GRPO or PPO. (an open problem in DPO design choices)
Open problems in DPO design choices
Which DPO design choices still help at larger scale, with online training and under human evaluation?
- Validated on models of about 7B or 8B, with larger ones untested. · 24 papers state it
- Each added hyperparameter must be tuned, and its best value varies by setting. · 15 papers state it
- Only offline DPO-style training was tested, not online RL such as GRPO or PPO. · 11 papers state it
Closest papers by meaning
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.85)
- Training Language Models to Generate Quality Code with Program Analysis Feedback (NeurIPS 2025 · similarity 0.85)
- Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling (NeurIPS 2026 · similarity 0.85)
- Teaching Large Language Models to Self-Debug (ICLR 2024 · similarity 0.85)
- Mercury: A Code Efficiency Benchmark for Code Large Language Models (NeurIPS 2024 · similarity 0.85)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.85)
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.