atlas

Research map / Large language models / Instruction and fine-tuning

EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Builds EffiInstruct, a 65k-task instruction dataset where multiple LLM-generated solutions are executed locally and the fastest/least-memory one is kept, then fine-tunes code LLMs (EffiCoder) to improve both correctness and efficiency.

Problem

LLM-generated code is correct but often much less efficient in execution time and memory than canonical human solutions, and existing code instruction-tuning datasets focus only on correctness.

Approach

Generate multiple candidate solutions per task with several LLMs, profile each by local execution on generated test cases, keep the most efficient (lowest time and memory) as the SFT target, and fine-tune open code LLMs on this efficiency-selected data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune Qwen2.5-Coder-7B-Instruct on EffiInstructQwen2.5-Coder-7B-Instruct · EffiBenchpass@1 (%): 44.8 -> 57.7Helped
Fine-tune Qwen2.5-Coder-7B-Instruct on EffiInstructQwen2.5-Coder-7B-Instruct · EffiBenchET (s): 0.31 to 0.16; 48.4%Helped
Fine-tune Qwen2.5-Coder-7B-Instruct on EffiInstructQwen2.5-Coder-7B-Instruct · HumanEvalPluspass@1 (%): 76.2 -> 78.0Helped
Fine-tune Qwen2.5-Coder-7B-Instruct on EffiInstructQwen2.5-Coder-7B-Instruct · EvoEval_creativepass@1 (%): 44.0 -> 44.0No clear effect
Fine-tune Qwen2.5-Coder-7B-Instruct on EffiInstructQwen2.5-Coder-7B-Instruct · DS-1000pass@1 (%): 17.00% to 35.70%Helped
Fine-tune DeepSeek-Coder-6.7B-Instruct on EffiInstructDeepSeek-Coder-6.7B-Instruct · DS-1000pass@1 (%): 37.50%No clear effect
Fine-tune CodeLlama-7b-hf on EffiInstruct rather than PIE (All)CodeLlama-7b-hf · HumanEvalPluspass@1: 19.5% to 31.1%Helped
Fine-tune CodeLlama-7b-hf on EffiInstruct rather than MercuryCodeLlama-7b-hf · HumanEvalPluspass@1: 9.1% to 31.1%Helped
Use PIE HQ instead of the CodeLlama-7b-hf baselineCodeLlama-7b-hf · EffiBenchET: 1.02 -> 1.14Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SelfCodeAlign CodeFeedback-Filtered-Instruction Tested-143k-Python-Alpaca Glaive-Code-Assistant Magicoder-Evol-Instruct-110K Dolphin-Coder Magicoder-OSS-Instruct-75K Self-OSS-Instruct-SC2-Exec-Filter-50K APPS

Benchmarks: EffiBench HumanEvalPlus MBPPPlus EvoEval DS-1000 HumanEval-X ENAMEL

Metrics: pass@1 execution time (ET) normalized execution time (NET) max memory usage (MU) total memory usage (TMU) normalized TMU (NTMU) eff@1

Baselines: PIE Mercury EffiLearner Code Alpaca WizardCoder OSS-Instruct

Builds on: Self-Instruct Evol-Instruct OSS-Instruct SelfCodeAlign PIE

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