atlas

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

NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Low-rank adaptation variants

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 a multi-stage synthetic code-edit data pipeline (127K examples) and SeleKT, a sparse-projection adaptation method, to produce NextCoder code-editing models that retain code generation ability.

Problem

Code LMs struggle with diverse natural-language-driven code edits, and naive fine-tuning on code-edit data causes catastrophic forgetting of code generation and general abilities.

Approach

Periodically select the top-k parameters by magnitude of the task vector (relative to the fixed base model) after dense full fine-tuning, projecting back to a sparse update, instead of fixing the trainable parameters a priori as in PEFT methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply SeleKT fine-tuningQwenCoder-2.5-7B · CanItEditaccuracy (%): 39.3 -> 50.5Helped
Apply SeleKT fine-tuningDeepSeekCoder-6.7B · CanItEditaccuracy (%): 35.3 -> 40.0Helped
Fine-tune on synthetic code-editing data instead of CommitPackFTDeepSeekCoder-6.7B · Aideraccuracy (%): 21.1 -> 33.8Helped
Use SeleKT instead of SFTQwenCoder-2.5-7B · HumanEval+accuracy (%): 79.3 -> 84.8Helped
Use SeleKT instead of SFTQwenCoder-2.5-7B · CanItEditaccuracy (%): 30.6 -> 50.5Helped
Fine-tune using SeleKTQwenCoder-2.5-32B · HumanEvalFixaccuracy (%): 90.2 -> 88.9Hurt
Fine-tune using SeleKTQwenCoder-2.5-32B · GSM8Kaccuracy (%): 93.71 -> 92.65Hurt
Fine-tune using SeleKTQwenCoder-2.5-32B · MMLUaccuracy (%): 71.9 -> 72.7Helped
Use sparsity α=0.05 instead of α=0.2 (ablation)SeleKT on QwenCoder-2.5-7B · CanItEditaccuracy (%): 45.7 -> 50.5Helped
Use sparsity α=0.05 instead of α=0.5 (ablation)SeleKT on QwenCoder-2.5-7B · Aideraccuracy (%): 54.9 -> 65.7Helped
Periodically update the base model after projection (ablation)SeleKT on QwenCoder-2.5-7B · Aideraccuracy (%): 65.7 -> 55.6Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CommitPackFT StarCoder seed code synthetic code-edit data (GPT-4o and Llama-3.3-70B generated) HumanEvalFix CanItEdit NoFunEval Aider Aider Polyglot HumanEval+ MBPP+ GSM8K MMLU

Benchmarks: CanItEdit HumanEvalFix NoFunEval Aider Aider Polyglot HumanEval+ MBPP+ GSM8K MMLU

Metrics: execution accuracy accuracy NoFunEval score (static analysis, runtime, DiffBLEU)

Baselines: GPT-4o Llama-3-70B-Instruct DeepSeekCoder-33B DeepSeekCoder-V2-16B QwenCoder-2.5-32B LoRA TIES SFT DeepSeek-R1-Qwen-7B Llama-3-8B-Instruct

Builds on: LoRA TIES merging OSS-Instruct CommitPackFT robust fine-tuning (WiSE-FT)

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