Robust Learning of Diverse Code Edits
Not on the map. Why?
Abstract (arXiv)
Software engineering activities frequently involve edits to existing code. However, contemporary code language models (LMs) lack the ability to handle diverse types of code-edit requirements. In this work, we attempt to overcome this shortcoming through (1) a novel synthetic data generation pipeline and (2) a robust model adaptation algorithm. Starting with seed code examples and diverse editing criteria, our pipeline generates high-quality samples comprising original and modified code, along with natural language instructions in different styles and verbosity. Today's code LMs come bundled with strong abilities, such as code generation and instruction following, which should not be lost due to fine-tuning. To ensure this, we propose a novel adaptation algorithm, SeleKT, that (a) leverages a dense gradient-based step to identify the weights that are most important for code editing, and (b) does a sparse projection onto the base model to avoid overfitting. Using our approach, we obtain a new series of models NextCoder (adapted from QwenCoder-2.5) that achieves strong results on five code-editing benchmarks, outperforming comparable size models and even several larger ones. We show the generality of our approach on two model families (DeepSeekCoder and QwenCoder), compare against other fine-tuning approaches, and demonstrate robustness by showing retention of code generation and general problem-solving abilities post adaptation. We opensource the models, synthetic dataset, and implementation at https://aka.ms/nextcoder.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 31 of its 45 references that are in the map. First posted on arXiv 5 Mar 2025.
Builds on
31 of 45 references.
References · 31
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2024GPT-4o System Cardcited by 4,467
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
19 more
- 2023StarCoder: may the source be with you!cited by 790
- 2021Robust fine-tuning of zero-shot modelscited by 785
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2013An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networkscited by 711
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2022Surgical Fine-Tuning Improves Adaptation to Distribution Shiftscited by 205
- 2024Synthetic Data (Almost) from Scratch: Generalized Instruction Tuning for Language Modelscited by 99
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2023LM-Cocktail: Resilient Tuning of Language Models via Model Mergingcited by 44
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2023Trainable Projected Gradient Method for Robust Fine-tuningcited by 37
- 2024SELF-GUIDE: Better Task-Specific Instruction Following via Self-Synthetic Finetuningcited by 32
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 22
- 2024SAFT: Towards Out-of-Distribution Generalization in Fine-Tuningcited by 12
- 2021Automated Learning Rate Scheduler for Large-batch Trainingcited by 10
- 2024Merge to Learn: Efficiently Adding Skills to Language Models with Model Mergingcited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.