mlsanityData to 7 Oct 2026

InstructCoder: Instruction Tuning Large Language Models for Code Editing

arXiv 2310.20329 ↗First posted 31 Oct 2023cs.CL cs.SEcited by 28

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  8. 2021Program Synthesis with Large Language Modelscited by 3,509
  9. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  10. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  11. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  12. 2023Code Llama: Open Foundation Models for Codecited by 2,105
18 more
  1. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  2. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  3. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  4. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  5. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
  6. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  7. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  8. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  9. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  10. 2023Is ChatGPT a Good NLG Evaluator? A Preliminary Studycited by 420
  11. 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
  12. 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learningcited by 161
  13. 2023Learning Performance-Improving Code Editscited by 103
  14. 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
  15. 2018Learning to Represent Editscited by 34
  16. 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
  17. 2020Patching as Translation: the Data and the Metaphorcited by 18
  18. 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 14; 2026: 8.

28 papers.

Sort:

By area:

  1. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
  2. 2024MMCode: Benchmarking Multimodal Large Language Models for Code Generation with Visually Rich Programming Problemscited by 38
  3. 2025Genius: A Generalizable and Purely Unsupervised Self-Training Framework For Advanced Reasoningcited by 24
  4. 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16
  5. 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
  6. 2025Speculative Decoding: Performance or Illusion?cited by 13
  7. 2025Risk Assessment Framework for Code LLMs via Leveraging Internal Statescited by 8
  8. 2024Training Language Models on Synthetic Edit Sequences Improves Code Synthesiscited by 7
  9. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinementcited by 6
  10. 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokenscited by 5
  11. 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projectscited by 4
  12. 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
16 more
  1. 2025Efficiency vs. Alignment: Investigating Safety and Fairness Risks in Parameter-Efficient Fine-Tuning of LLMscited by 4
  2. 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
  3. 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
  4. 2024AMR-Evol: Adaptive Modular Response Evolution Elicits Better Knowledge Distillation for Large Language Models in Code Generationcited by 1
  5. 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learningcited by 1
  6. 2025Automatic Qiskit Code Refactoring Using Large Language Modelscited by 1
  7. 2025Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Expertscited by 1
  8. 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
  9. 2026Measurement of Generative AI Workload Power Profiles for Whole-Facility Data Center Infrastructure Planningcited by 1
  10. 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Codecited by 1
  11. 2025TACOS: Open Tagging and Comparative Scoring for Instruction Fine-Tuning Data Selectioncited by 0
  12. 2026Reward-Free Code Alignment from Pretrained or Fine-Tuned LLM: Unpacking the Trade-offs for Code Generationcited by 0
  13. 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarkingcited by 0
  14. 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generationcited by 0
  15. 2026EdiTikZ: Scientific Figure Editing from Revision Trajectoriescited by 0
  16. 2026Diffs vs. Whole Files: An Empirical Comparison of Iterative Edit-Based and Direct Generation for Flutter/Dart Code Modelscited by 0