mlsanityData to 7 Oct 2026

Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructions

arXiv 2312.12450 ↗First posted 11 Dec 2023cs.SE cs.AI cs.LGcited by 46

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  7. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  10. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  11. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  12. 2023Teaching Large Language Models to Self-Debugcited by 963
24 more
  1. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  2. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
  3. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
  4. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  5. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
  6. 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
  7. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  8. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
  9. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  10. 2023InferFix: End-to-End Program Repair with LLMscited by 113
  11. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
  12. 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
  13. 2022Automated Repair of Programs from Large Language Modelscited by 71
  14. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  15. 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
  16. 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
  17. 2023Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMscited by 45
  18. 2023Generating High-Precision Feedback for Programming Syntax Errors using Large Language Modelscited by 34
  19. 2023StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Codecited by 32
  20. 2023GrACE: Generation using Associated Code Editscited by 16
  21. 2023Coffee: Boost Your Code LLMs by Fixing Bugs with Feedbackcited by 15
  22. 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
  23. 2017Boosting Automatic Commit Classification Into Maintenance Activities By Utilizing Source Code Changescited by 8
  24. 2023Do Machine Learning Models Produce TypeScript Types That Type Check?cited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 10; 2025: 19; 2026: 17.

46 papers.

Sort:

By area:

  1. 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
  2. 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inferencecited by 173
  3. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
  4. 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
  5. 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositoriescited by 52
  6. 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 46
  7. 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
  8. 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
  9. 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 29
  10. 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 21
  11. 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modificationscited by 20
  12. 2024Learning Code Preference via Synthetic Evolutioncited by 19
34 more
  1. 2025RepoMaster: Autonomous Exploration and Understanding of GitHub Repositories for Complex Task Solvingcited by 19
  2. 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16
  3. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
  4. 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generationcited by 14
  5. 2026Stable-DiffCoder: Pushing the Frontier of Code Diffusion Large Language Modelcited by 12
  6. 2026Agent-as-a-Router: Agentic Model Routing for Coding Taskscited by 10
  7. 2026LLMs Corrupt Your Documents When You Delegatecited by 9
  8. 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?cited by 8
  9. 2024RES-Q: Evaluating Code-Editing Large Language Model Systems at the Repository Scalecited by 7
  10. 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Modelscited by 7
  11. 2024CursorCore: Assist Programming through Aligning Anythingcited by 6
  12. 2026Scaling Agentic Verifier for Competitive Codingcited by 5
  13. 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?cited by 4
  14. 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
  15. 2025AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humanscited by 4
  16. 2025Robust Learning of Diverse Code Editscited by 2
  17. 2025Next Edit Prediction: Learning to Predict Code Edits from Context and Interaction Historycited by 2
  18. 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Modelscited by 2
  19. 2025HyperEdit: Unlocking Instruction-based Text Editing in LLMs via Hypernetworkscited by 2
  20. 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
  21. 2025mrCAD: Multimodal Refinement of Computer-aided Designscited by 1
  22. 2026Edit, But Verify: An Empirical Audit of Instructed Code-Editing Benchmarkscited by 1
  23. 2026Copy-as-Decode: Grammar-Constrained Parallel Prefill for LLM Editingcited by 1
  24. 2026Learning from 53.6K Real-World Developer Edits of AI-Generated Codecited by 1
  25. 2026To Add Is Machine, To Delete Is Human: Measuring and Mitigating Deletion Avoidance in LLM Code Editingcited by 1
  26. 2025Diff-XYZ: A Benchmark for Evaluating Diff Understandingcited by 0
  27. 2025Excision Score: Evaluating Edits with Surgical Precisioncited by 0
  28. 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Studycited by 0
  29. 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
  30. 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?cited by 0
  31. 2026CROCODIL: Cross-Model Code Editing with LLMscited by 0
  32. 2026When Models Edit Too Much: On the Fidelity of Minimal Code Editscited by 0
  33. 2026How Should Diffusion Language Models Edit Code?cited by 0
  34. 2026ChartRevise: A Dataset and Evaluation Protocol for Exact Chart Editing via Codecited by 0