InstructCoder: Instruction Tuning Large Language Models for Code Editing
Not on the map. Why?
Abstract (arXiv)
Code editing encompasses a variety of pragmatic tasks that developers deal with daily. Despite its relevance and practical usefulness, automatic code editing remains an underexplored area in the evolution of deep learning models, partly due to data scarcity. In this work, we explore the use of Large Language Models (LLMs) to edit code based on user instructions. Evaluated on a novel human-written execution-based benchmark dubbed EditEval, we found current models often struggle to fulfill the instructions. In light of this, we contribute InstructCoder, the first instruction-tuning dataset designed to adapt LLMs for general-purpose code editing, containing high-diversity code-editing tasks such as comment insertion, code optimization, and code refactoring. It consists of over 114,000 instruction-input-output triplets and covers multiple distinct code editing scenarios. The collection process starts with filtered commit data sourced from GitHub Python repositories as seeds. Subsequently, the dataset is systematically expanded through an iterative process, where both seed and generated tasks are used to prompt ChatGPT for more data. Our findings reveal that open-source LLMs fine-tuned on InstructCoder can significantly enhance the accuracy of code edits, exhibiting superior code-editing performance matching advanced proprietary LLMs. The datasets and the source code are publicly available at https://github.com/qishenghu/CodeInstruct.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 30 of its 48 references that are in the map. First posted on arXiv 31 Oct 2023.
Builds on
30 of 48 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
18 more
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023Is ChatGPT a Good NLG Evaluator? A Preliminary Studycited by 420
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learningcited by 161
- 2023Learning Performance-Improving Code Editscited by 103
- 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
- 2018Learning to Represent Editscited by 34
- 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
- 2020Patching as Translation: the Data and the Metaphorcited by 18
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9
Built on by
Citing papers per year: 2024: 6; 2025: 14; 2026: 8.
28 papers.
Sort:
By area:
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
- 2024MMCode: Benchmarking Multimodal Large Language Models for Code Generation with Visually Rich Programming Problemscited by 38
- 2025Genius: A Generalizable and Purely Unsupervised Self-Training Framework For Advanced Reasoningcited by 24
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
- 2025Speculative Decoding: Performance or Illusion?cited by 13
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal Statescited by 8
- 2024Training Language Models on Synthetic Edit Sequences Improves Code Synthesiscited by 7
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinementcited by 6
- 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokenscited by 5
- 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projectscited by 4
- 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
16 more
- 2025Efficiency vs. Alignment: Investigating Safety and Fairness Risks in Parameter-Efficient Fine-Tuning of LLMscited by 4
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
- 2024AMR-Evol: Adaptive Modular Response Evolution Elicits Better Knowledge Distillation for Large Language Models in Code Generationcited by 1
- 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learningcited by 1
- 2025Automatic Qiskit Code Refactoring Using Large Language Modelscited by 1
- 2025Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Expertscited by 1
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
- 2026Measurement of Generative AI Workload Power Profiles for Whole-Facility Data Center Infrastructure Planningcited by 1
- 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Codecited by 1
- 2025TACOS: Open Tagging and Comparative Scoring for Instruction Fine-Tuning Data Selectioncited by 0
- 2026Reward-Free Code Alignment from Pretrained or Fine-Tuned LLM: Unpacking the Trade-offs for Code Generationcited by 0
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarkingcited by 0
- 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generationcited by 0
- 2026EdiTikZ: Scientific Figure Editing from Revision Trajectoriescited by 0
- 2026Diffs vs. Whole Files: An Empirical Comparison of Iterative Edit-Based and Direct Generation for Flutter/Dart Code Modelscited by 0
- 2026Diffs vs. Whole Files: An Empirical Comparison of Iterative Edit-Based and Direct Generation for Flutter/Dart Code Models5 Sep 2026
- 2026EdiTikZ: Scientific Figure Editing from Revision Trajectories1 Sep 2026
- 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Code27 Jul 2026
- 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generation15 Jul 2026
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking27 Jun 2026
- 2026Reward-Free Code Alignment from Pretrained or Fine-Tuned LLM: Unpacking the Trade-offs for Code Generation27 Jun 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Measurement of Generative AI Workload Power Profiles for Whole-Facility Data Center Infrastructure Planning8 Apr 2026
- 2025Speculative Decoding: Performance or Illusion?31 Dec 2025
- 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokens10 Dec 2025
- 2025Efficiency vs. Alignment: Investigating Safety and Fairness Risks in Parameter-Efficient Fine-Tuning of LLMs1 Nov 2025
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
16 more
- 2025Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Experts23 Sep 2025
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generation22 Aug 2025
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectories4 Aug 2025
- 2025TACOS: Open Tagging and Comparative Scoring for Instruction Fine-Tuning Data Selection4 Jul 2025
- 2025Automatic Qiskit Code Refactoring Using Large Language Models17 Jun 2025
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal States20 Apr 2025
- 2025Genius: A Generalizable and Purely Unsupervised Self-Training Framework For Advanced Reasoning11 Apr 2025
- 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learning12 Mar 2025
- 2025EditLord: Learning Code Transformation Rules for Code Editing10 Mar 2025
- 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projects4 Feb 2025
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement7 Nov 2024
- 2024Training Language Models on Synthetic Edit Sequences Improves Code Synthesis3 Oct 2024
- 2024AMR-Evol: Adaptive Modular Response Evolution Elicits Better Knowledge Distillation for Large Language Models in Code Generation1 Oct 2024
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis9 Aug 2024
- 2024Continual Learning of Large Language Models: A Comprehensive Survey25 Apr 2024
- 2024MMCode: Benchmarking Multimodal Large Language Models for Code Generation with Visually Rich Programming Problems15 Apr 2024
- 2025Speculative Decoding: Performance or Illusion?cited by 13
- 2025Speculative Decoding: Performance or Illusion?31 Dec 2025
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal Statescited by 8
- 2024Training Language Models on Synthetic Edit Sequences Improves Code Synthesiscited by 7
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinementcited by 6
- 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projectscited by 4
- 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
- 2025Efficiency vs. Alignment: Investigating Safety and Fairness Risks in Parameter-Efficient Fine-Tuning of LLMscited by 4
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
- 2024AMR-Evol: Adaptive Modular Response Evolution Elicits Better Knowledge Distillation for Large Language Models in Code Generationcited by 1
- 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learningcited by 1
12 most cited of 19 All 19 (JSON)
- 2026Diffs vs. Whole Files: An Empirical Comparison of Iterative Edit-Based and Direct Generation for Flutter/Dart Code Models5 Sep 2026
- 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Code27 Jul 2026
- 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generation15 Jul 2026
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking27 Jun 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Measurement of Generative AI Workload Power Profiles for Whole-Facility Data Center Infrastructure Planning8 Apr 2026
- 2025Efficiency vs. Alignment: Investigating Safety and Fairness Risks in Parameter-Efficient Fine-Tuning of LLMs1 Nov 2025
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generation22 Aug 2025
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectories4 Aug 2025
- 2025Automatic Qiskit Code Refactoring Using Large Language Models17 Jun 2025
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal States20 Apr 2025
12 newest of 19 All 19 (JSON)