Research map / Large language models / Agents, code and math
Code-Optimise: Self-Generated Preference Data for Correctness and Efficiency
Leonidas Gee, Milan Gritta, Gerasimos Lampouras, Ignacio Iacobacci
University of Sussex · Huawei Technologies
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
6improved
5hurt
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| fine-tune with DPO on self-generated preference pairs instead of leaving Base | CodeLlama-13B · MBPP | pass@1: 23.70 -> 34.10 (DPO_PvF) | Improved |
| fine-tune with SFT on self-generated solutions | CodeLlama-13B · HumanEval | pass@100: 87.20 -> 85.40 (SFT25) | Hurt |
| use DPO instead of SFT (ablation) | CodeLlama-7B · MBPP | pass@1: 25.40 (SFT25) -> 30.20 (DPO_PvF) | Improved |
| use quick-vs-slow DPO pairs (DPO_QvS) instead of Base | averaged over model sizes · MBPP and HumanEval | median runtime: up to 6% in-domain, up to 3% out-of-domain faster | Improved |
| train with SFT instead of using Base | averaged over model sizes · MBPP and HumanEval | median runtime | Hurt |
| use DPO instead of Base | averaged over model sizes · MBPP and HumanEval | median code length: up to 48% shorter on MBPP, 23% on HumanEval | Improved |
| train with SFT100 using all solutions incl. slowest | CodeLlama-13B · MBPP | median code length (chars): 223 -> 523 | Hurt |
| optimise only passed-vs-failed pairs (DPO_PvF) instead of including runtime (ablation) | DPO · runtime | runtime | Hurt |
| use dynamic solution selection instead of static pairs (ablation) | StarCoder-1B · MBPP/HumanEval | pass@1 | Improved |
| increase model size from 1B to 13B | DPO models · MBPP | pass@1 | Improved |
| use DPO_All instead of Base | StarCoder-1B · HumanEval | median runtime: 150930 -> 232759 | Hurt |
Open problems this paper states
- “All experiments use Python only, leaving other programming languages unanalysed.” → Evaluated on Python or one other language only. (an open problem in execution-based code verification)
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- Mercury: A Code Efficiency Benchmark for Code Large Language Models (NeurIPS 2024 · similarity 0.89)
- Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization (NeurIPS 2025 · similarity 0.87)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.87)
- On-Policy Optimization with Group Equivalent Preference for Multi-Programming Language Understanding (NeurIPS 2025 · similarity 0.86)
- Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling (NeurIPS 2026 · similarity 0.86)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.86)
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.