scimeatlas

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

NAACL 2025Large language models › Agents, code and mathapproach: Execution-based code verificationopen problems in this approach30 citations (OpenAlex)

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 changedWhereMeasuredEffect
fine-tune with DPO on self-generated preference pairs instead of leaving BaseCodeLlama-13B · MBPPpass@1: 23.70 -> 34.10 (DPO_PvF)Improved
fine-tune with SFT on self-generated solutionsCodeLlama-13B · HumanEvalpass@100: 87.20 -> 85.40 (SFT25)Hurt
use DPO instead of SFT (ablation)CodeLlama-7B · MBPPpass@1: 25.40 (SFT25) -> 30.20 (DPO_PvF)Improved
use quick-vs-slow DPO pairs (DPO_QvS) instead of Baseaveraged over model sizes · MBPP and HumanEvalmedian runtime: up to 6% in-domain, up to 3% out-of-domain fasterImproved
train with SFT instead of using Baseaveraged over model sizes · MBPP and HumanEvalmedian runtimeHurt
use DPO instead of Baseaveraged over model sizes · MBPP and HumanEvalmedian code length: up to 48% shorter on MBPP, 23% on HumanEvalImproved
train with SFT100 using all solutions incl. slowestCodeLlama-13B · MBPPmedian code length (chars): 223 -> 523Hurt
optimise only passed-vs-failed pairs (DPO_PvF) instead of including runtime (ablation)DPO · runtimeruntimeHurt
use dynamic solution selection instead of static pairs (ablation)StarCoder-1B · MBPP/HumanEvalpass@1Improved
increase model size from 1B to 13BDPO models · MBPPpass@1Improved
use DPO_All instead of BaseStarCoder-1B · HumanEvalmedian runtime: 150930 -> 232759Hurt

Open problems this paper states

Open problems in execution-based code verification

Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?

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