EditLord: Learning Code Transformation Rules for Code Editing
Not on the map. Why?
Abstract (arXiv)
Code editing is a foundational task in software development, where its effectiveness depends on whether it introduces desired code property changes without changing the original code's intended functionality. Existing approaches often formulate code editing as an implicit end-to-end task, omitting the fact that code-editing procedures inherently consist of discrete and explicit steps. Thus, they suffer from suboptimal performance and lack of robustness and generalization. We introduce EditLord, a code editing framework that makes the code transformation steps explicit. Our key insight is to employ a language model (LM) as an inductive learner to extract code editing rules from the training code pairs as concise meta-rule sets. Such rule sets will be manifested for each training sample to augment them for finetuning or assist in prompting- and iterative-based code editing. EditLord outperforms the state-of-the-art by an average of 22.7% in editing performance and 58.1% in robustness while achieving 20.2% higher functional correctness across critical software engineering and security applications, LM models, and editing modes.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 50 of its 64 references that are in the map. First posted on arXiv 10 Mar 2025.
Builds on
50 of 64 references.
References · 50
- 2023Let's Verify Step by Stepcited by 3,598
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2022Large Language Models Can Self-Improvecited by 656
- 2023Language Models can Solve Computer Taskscited by 371
- 2023Self-collaboration Code Generation via ChatGPTcited by 255
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
38 more
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2024Self-Discover: Large Language Models Self-Compose Reasoning Structurescited by 108
- 2023Learning Performance-Improving Code Editscited by 103
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
- 2022Natural Attack for Pre-trained Models of Codecited by 72
- 2022Automated Repair of Programs from Large Language Modelscited by 71
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2019Adversarial Examples for Models of Codecited by 61
- 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 55
- 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 51
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
- 2024LLM4Decompile: Decompiling Binary Code with Large Language Modelscited by 38
- 2020Adversarial Robustness for Codecited by 36
- 2023Finding Inductive Loop Invariants using Large Language Modelscited by 35
- 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
- 2023Ranking LLM-Generated Loop Invariants for Program Verificationcited by 33
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
- 2023InstructCoder: Instruction Tuning Large Language Models for Code Editingcited by 28
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
- 2024Code Representation Learning At Scalecited by 26
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
- 2023Refining Decompiled C Code with Large Language Modelscited by 24
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 22
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
- 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
- 2024Learning Code Preference via Synthetic Evolutioncited by 19
- 2023GrACE: Generation using Associated Code Editscited by 16
- 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMscited by 8
- 2024RES-Q: Evaluating Code-Editing Large Language Model Systems at the Repository Scalecited by 7
- 2024Combining LLM Code Generation with Formal Specifications and Reactive Program Synthesiscited by 7
- 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performancecited by 6
- 2024CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Naturecited by 6
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2026From Completion to Editing: Unlocking Context-Aware Code Infilling via Search-and-Replace Instruction Tuningcited by 5
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Modelscited by 2
- 2025GAPO: Robust Advantage Estimation for Real-World Code LLMscited by 0
- 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026From Completion to Editing: Unlocking Context-Aware Code Infilling via Search-and-Replace Instruction Tuning19 Jan 2026
- 2025GAPO: Robust Advantage Estimation for Real-World Code LLMs22 Oct 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025