Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructions
Not on the map. Why?
Abstract (arXiv)
A significant amount of research is focused on developing and evaluating large language models for a variety of code synthesis tasks. These include synthesizing code from natural language, synthesizing tests from code, and synthesizing explanations of code. In contrast, the behavior of instructional code editing with LLMs is understudied. These are tasks in which the model is provided a block of code and an instruction to modify the code. The editing instruction may ask for a feature to be added or removed, describe a bug and ask for a fix, or ask for a different kind of solution. We introduce a carefully crafted benchmark of code editing tasks and use it to evaluate several cutting edge LLMs. Our evaluation exposes a significant gap between the capabilities of state-of-the-art open and closed models. For example, even GPT-3.5-Turbo is better than the best open model at code editing tasks. We also introduce a new, carefully curated, permissively licensed training dataset of code editing tasks coupled with natural language instructions. Using this training dataset, we show that we can fine-tune open Code LLMs to significantly improve their code editing capabilities, closing the gap between open and closed models. All code, data, and models are available at https://github.com/nuprl/CanItEdit.
Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). Builds on 36 of its 60 references that are in the map. First posted on arXiv 11 Dec 2023.
Builds on
36 of 60 references.
References · 36
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 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
- 2023Teaching Large Language Models to Self-Debugcited by 963
24 more
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
- 2021Deduplicating Training Data Makes Language Models Bettercited by 705
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2022Automated Repair of Programs from Large Language Modelscited by 71
- 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
- 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2023Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMscited by 45
- 2023Generating High-Precision Feedback for Programming Syntax Errors using Large Language Modelscited by 34
- 2023StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Codecited by 32
- 2023GrACE: Generation using Associated Code Editscited by 16
- 2023Coffee: Boost Your Code LLMs by Fixing Bugs with Feedbackcited by 15
- 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
- 2017Boosting Automatic Commit Classification Into Maintenance Activities By Utilizing Source Code Changescited by 8
- 2023Do Machine Learning Models Produce TypeScript Types That Type Check?cited by 6
Built on by
Citing papers per year: 2024: 10; 2025: 19; 2026: 17.
46 papers.
Sort:
By area:
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inferencecited by 173
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
- 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositoriescited by 52
- 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 46
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 29
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 21
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modificationscited by 20
- 2024Learning Code Preference via Synthetic Evolutioncited by 19
34 more
- 2025RepoMaster: Autonomous Exploration and Understanding of GitHub Repositories for Complex Task Solvingcited by 19
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generationcited by 14
- 2026Stable-DiffCoder: Pushing the Frontier of Code Diffusion Large Language Modelcited by 12
- 2026Agent-as-a-Router: Agentic Model Routing for Coding Taskscited by 10
- 2026LLMs Corrupt Your Documents When You Delegatecited by 9
- 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?cited by 8
- 2024RES-Q: Evaluating Code-Editing Large Language Model Systems at the Repository Scalecited by 7
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Modelscited by 7
- 2024CursorCore: Assist Programming through Aligning Anythingcited by 6
- 2026Scaling Agentic Verifier for Competitive Codingcited by 5
- 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?cited by 4
- 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
- 2025AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humanscited by 4
- 2025Robust Learning of Diverse Code Editscited by 2
- 2025Next Edit Prediction: Learning to Predict Code Edits from Context and Interaction Historycited by 2
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Modelscited by 2
- 2025HyperEdit: Unlocking Instruction-based Text Editing in LLMs via Hypernetworkscited by 2
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
- 2025mrCAD: Multimodal Refinement of Computer-aided Designscited by 1
- 2026Edit, But Verify: An Empirical Audit of Instructed Code-Editing Benchmarkscited by 1
- 2026Copy-as-Decode: Grammar-Constrained Parallel Prefill for LLM Editingcited by 1
- 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Codecited by 1
- 2026To Add Is Machine, To Delete Is Human: Measuring and Mitigating Deletion Avoidance in LLM Code Editingcited by 1
- 2025Diff-XYZ: A Benchmark for Evaluating Diff Understandingcited by 0
- 2025Excision Score: Evaluating Edits with Surgical Precisioncited by 0
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Studycited by 0
- 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
- 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?cited by 0
- 2026CROCODIL: Cross-Model Code Editing with LLMscited by 0
- 2026When Models Edit Too Much: On the Fidelity of Minimal Code Editscited by 0
- 2026How Should Diffusion Language Models Edit Code?cited by 0
- 2026ChartRevise: A Dataset and Evaluation Protocol for Exact Chart Editing via Codecited by 0
- 2026ChartRevise: A Dataset and Evaluation Protocol for Exact Chart Editing via Code29 Sep 2026
- 2026How Should Diffusion Language Models Edit Code?29 Sep 2026
- 2026When Models Edit Too Much: On the Fidelity of Minimal Code Edits3 Sep 2026
- 2026CROCODIL: Cross-Model Code Editing with LLMs3 Sep 2026
- 2026To Add Is Machine, To Delete Is Human: Measuring and Mitigating Deletion Avoidance in LLM Code Editing30 Jul 2026
- 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Code27 Jul 2026
- 2026Agent-as-a-Router: Agentic Model Routing for Coding Tasks22 Jun 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?28 Apr 2026
- 2026Copy-as-Decode: Grammar-Constrained Parallel Prefill for LLM Editing20 Apr 2026
- 2026LLMs Corrupt Your Documents When You Delegate17 Apr 2026
- 2026Edit, But Verify: An Empirical Audit of Instructed Code-Editing Benchmarks6 Apr 2026
34 more
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?4 Mar 2026
- 2026Scaling Agentic Verifier for Competitive Coding4 Feb 2026
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2026Stable-DiffCoder: Pushing the Frontier of Code Diffusion Large Language Model22 Jan 2026
- 2025HyperEdit: Unlocking Instruction-based Text Editing in LLMs via Hypernetworks14 Dec 2025
- 2025Excision Score: Evaluating Edits with Surgical Precision24 Oct 2025
- 2025Diff-XYZ: A Benchmark for Evaluating Diff Understanding14 Oct 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humans26 Sep 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generation22 Aug 2025
- 2025Next Edit Prediction: Learning to Predict Code Edits from Context and Interaction History13 Aug 2025
- 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inference4 Aug 2025
- 2025Seed-Coder: Let the Code Model Curate Data for Itself4 Jun 2025
- 2025RepoMaster: Autonomous Exploration and Understanding of GitHub Repositories for Complex Task Solving27 May 2025
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models5 May 2025
- 2025mrCAD: Multimodal Refinement of Computer-aided Designs28 Apr 2025
- 2025EditLord: Learning Code Transformation Rules for Code Editing10 Mar 2025
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generation5 Mar 2025
- 2025Robust Learning of Diverse Code Edits5 Mar 2025
- 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?24 Feb 2025
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modifications19 Feb 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2024SelfCodeAlign: Self-Alignment for Code Generation31 Oct 2024
- 2024Agent-as-a-Judge: Evaluate Agents with Agents14 Oct 2024
- 2024CursorCore: Assist Programming through Aligning Anything9 Oct 2024
- 2024Learning Code Preference via Synthetic Evolution4 Oct 2024
- 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositories11 Sep 2024
- 2024RES-Q: Evaluating Code-Editing Large Language Model Systems at the Repository Scale24 Jun 2024
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Models20 Jun 2024
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligence7 May 2024
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar 2024
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generators6 Mar 2024
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositoriescited by 52
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2026Agent-as-a-Router: Agentic Model Routing for Coding Taskscited by 10
- 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?cited by 8
- 2026Scaling Agentic Verifier for Competitive Codingcited by 5
- 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?cited by 4
- 2025AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humanscited by 4
- 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?cited by 0
- 2026Agent-as-a-Router: Agentic Model Routing for Coding Tasks22 Jun 2026
- 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?28 Apr 2026
- 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?4 Mar 2026
- 2026Scaling Agentic Verifier for Competitive Coding4 Feb 2026
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humans26 Sep 2025
- 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?24 Feb 2025
- 2024Agent-as-a-Judge: Evaluate Agents with Agents14 Oct 2024
- 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositories11 Sep 2024
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
- 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 46
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 29
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 21
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modificationscited by 20
- 2024Learning Code Preference via Synthetic Evolutioncited by 19
- 2025RepoMaster: Autonomous Exploration and Understanding of GitHub Repositories for Complex Task Solvingcited by 19
- 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generationcited by 14
- 2026Stable-DiffCoder: Pushing the Frontier of Code Diffusion Large Language Modelcited by 12
12 most cited of 33 All 33 (JSON)
- 2026ChartRevise: A Dataset and Evaluation Protocol for Exact Chart Editing via Code29 Sep 2026
- 2026When Models Edit Too Much: On the Fidelity of Minimal Code Edits3 Sep 2026
- 2026CROCODIL: Cross-Model Code Editing with LLMs3 Sep 2026
- 2026To Add Is Machine, To Delete Is Human: Measuring and Mitigating Deletion Avoidance in LLM Code Editing30 Jul 2026
- 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Code27 Jul 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026LLMs Corrupt Your Documents When You Delegate17 Apr 2026
- 2026Edit, But Verify: An Empirical Audit of Instructed Code-Editing Benchmarks6 Apr 2026
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2026Stable-DiffCoder: Pushing the Frontier of Code Diffusion Large Language Model22 Jan 2026
- 2025HyperEdit: Unlocking Instruction-based Text Editing in LLMs via Hypernetworks14 Dec 2025
12 newest of 33 All 33 (JSON)