paper-with-me

홈 › Papers

Robust Learning of Diverse Code Edits

2025-03-05 · Tushar Aggarwal, Swayam Singh, Abhijeet Awasthi, Aditya Kanade, Nagarajan Natarajan

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.

📄 PDF Abstract BibTeX arXiv:2503.03656

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationInstruction FollowingSynthetic Data Generation

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar Papers 제목 키워드 기반

Enhancing Genetic Improvement Mutations Using Large Language Models

2023-10-18 · Alexander E. I. Brownlee, James Callan, Karine Even-Mendoza, Alina Geiger 외

Large language models (LLMs) have been successfully applied to software engineering tasks, including program repair. However, their application in search-based techniques such as Genetic Improvement (GI) is still largely…

Program Repair

Molecule Edit Graph Attention Network: Modeling Chemical Reactions as Sequences of Graph Edits

2020-06-27 · Mikołaj Sacha, Mikołaj Błaż, Piotr Byrski, Paweł Dąbrowski-Tumański 외

The central challenge in automated synthesis planning is to be able to generate and predict outcomes of a diverse set of chemical reactions. In particular, in many cases, the most likely synthesis pathway cannot be appli…

DecoderGraph AttentionRetrosynthesisSingle-step retrosynthesis

Exploring Attribute Variations in Style-based GANs using Diffusion Models

2023-11-27 · Rishubh Parihar, Prasanna Balaji, Raghav Magazine, Sarthak Vora 외

Existing attribute editing methods treat semantic attributes as binary, resulting in a single edit per attribute. However, attributes such as eyeglasses, smiles, or hairstyles exhibit a vast range of diversity. In this w…

AttributeDenoisingDiversity

HoReN: Normalized Hopfield Retrieval for Large-Scale Sequential Model Editing

2026-05-02 · Yuan Fang, Yi Xie, Xuming Ran arxiv

Large language models encode vast factual knowledge that can become outdated or incorrect after deployment, yet retraining is prohibitively costly. This motivates lifelong model editing, which updates targeted behavior w…

GrACE: Generation using Associated Code Edits

2023-05-23 · Priyanshu Gupta, Avishree Khare, Yasharth Bajpai, Saikat Chakraborty 외

Developers expend a significant amount of time in editing code for a variety of reasons such as bug fixing or adding new features. Designing effective methods to predict code edits has been an active yet challenging area…

Bug fixingCode GenerationDiversity