Focused-DPO: Enhancing Code Generation Through Focused Preference Optimization on Error-Prone Points
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Code generation models have shown significant potential for automating programming tasks. However, the challenge of generating accurate and reliable code persists due to the highly complex and long-reasoning nature of the task. Even state-of-the-art models often fail in code generation due to small errors, which can drastically affect the overall functionality of code. Our study identifies that current models tend to produce errors concentrated at specific error-prone points, which significantly impacts the accuracy of the generated code. To address this issue, we introduce Focused-DPO, a framework that enhances code generation by directing preference optimization towards these critical error-prone areas. This approach builds on Direct Preference Optimization, emphasizing accuracy in parts prone to errors. Additionally, we develop a method called Error-Point Identification, which constructs a dataset that targets these problematic points without requiring costly human annotations. Our experiments on benchmarks such as HumanEval(+), MBPP(+), and LiveCodeBench demonstrate that Focused-DPO significantly improves the precision and reliability of code generation, reducing common errors and enhancing overall code quality. By focusing on error-prone points, Focused-DPO advances the accuracy and functionality of model-generated code.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 4 of its 20 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
4 of 20 references.
Closest ancestors · 1
Same direction, newest first
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
Other references · 3
Built on by
Citing papers per year: 2025: 8; 2026: 6.
14 papers.
Sort:
By area:
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 223
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 18
- 2025Exploring the Potential of Diffusion Large Language Models in Code Generationcited by 16
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4
- 2026MARTI-MARS2: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generationcited by 3
- 2025Computational Thinking Reasoning in Large Language Modelscited by 2
- 2025Learning to Align Human Code Preferencescited by 1
- 2026SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignmentcited by 1
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensuscited by 1
- 2026Decomposing the Delta: What Do Models Actually Learn from Preference Pairs?cited by 1
- 2026Function-Level Execution Feedback for Code Preference Optimization23 Aug 2026
- 2026SignDPO: Multi-level Direct Preference Optimisation for Skeleton-based Gloss-free Sign Language Translation20 Apr 2026
- 2026Decomposing the Delta: What Do Models Actually Learn from Preference Pairs?9 Apr 2026
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus31 Mar 2026
- 2026MARTI-MARS2: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generation8 Feb 2026
- 2026SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignment8 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Exploring the Potential of Diffusion Large Language Models in Code Generation14 Sep 2025
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generation27 Aug 2025
- 2025Learning to Align Human Code Preferences27 Jul 2025
- 2025Computational Thinking Reasoning in Large Language Models3 Jun 2025
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization29 May 2025
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 18
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4
- 2025Learning to Align Human Code Preferencescited by 1
- 2026SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignmentcited by 1
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensuscited by 1
- 2026Decomposing the Delta: What Do Models Actually Learn from Preference Pairs?cited by 1
- 2026SignDPO: Multi-level Direct Preference Optimisation for Skeleton-based Gloss-free Sign Language Translationcited by 0
- 2026SignDPO: Multi-level Direct Preference Optimisation for Skeleton-based Gloss-free Sign Language Translation20 Apr 2026
- 2026Decomposing the Delta: What Do Models Actually Learn from Preference Pairs?9 Apr 2026
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus31 Mar 2026
- 2026SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignment8 Jan 2026
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generation27 Aug 2025
- 2025Learning to Align Human Code Preferences27 Jul 2025
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization29 May 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 223
- 2026MARTI-MARS2: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generationcited by 3
- 2025Computational Thinking Reasoning in Large Language Modelscited by 2
- 2026MARTI-MARS2: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generation8 Feb 2026
- 2025Computational Thinking Reasoning in Large Language Models3 Jun 2025
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?31 Mar 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Teaching Your Models to Understand Code via Focal Preference Alignment
- 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiency
- 2025Improving LLM-Generated Code Quality with GRPO
- 2024Thinking Before Running! Efficient Code Generation with Thorough Exploration and Optimal Refinement
- 2024The Impact of Prompt Programming on Function-Level Code Generation
- 2025VFocus: Better Verilog Generation from Large Language Model via Focused Reasoning
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation
- 2024Learning Code Preference via Synthetic Evolution