mlsanityData to 7 Oct 2026

EditLord: Learning Code Transformation Rules for Code Editing

arXiv 2504.15284 ↗First posted 10 Mar 2025cs.SE cs.CR cs.LGcited by 4

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

  1. 2023Let's Verify Step by Stepcited by 3,598
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  3. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  4. 2023Teaching Large Language Models to Self-Debugcited by 963
  5. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
  6. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  7. 2022Large Language Models Can Self-Improvecited by 656
  8. 2023Language Models can Solve Computer Taskscited by 371
  9. 2023Self-collaboration Code Generation via ChatGPTcited by 255
  10. 2022Exploring Length Generalization in Large Language Modelscited by 204
  11. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  12. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
38 more
  1. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  2. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
  3. 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
  4. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  5. 2024Self-Discover: Large Language Models Self-Compose Reasoning Structurescited by 108
  6. 2023Learning Performance-Improving Code Editscited by 103
  7. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
  8. 2022Natural Attack for Pre-trained Models of Codecited by 72
  9. 2022Automated Repair of Programs from Large Language Modelscited by 71
  10. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
  11. 2019Adversarial Examples for Models of Codecited by 61
  12. 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 55
  13. 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 51
  14. 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
  15. 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
  16. 2024LLM4Decompile: Decompiling Binary Code with Large Language Modelscited by 38
  17. 2020Adversarial Robustness for Codecited by 36
  18. 2023Finding Inductive Loop Invariants using Large Language Modelscited by 35
  19. 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
  20. 2023Ranking LLM-Generated Loop Invariants for Program Verificationcited by 33
  21. 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
  22. 2023InstructCoder: Instruction Tuning Large Language Models for Code Editingcited by 28
  23. 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
  24. 2024Code Representation Learning At Scalecited by 26
  25. 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
  26. 2023Refining Decompiled C Code with Large Language Modelscited by 24
  27. 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
  28. 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 22
  29. 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
  30. 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
  31. 2024Learning Code Preference via Synthetic Evolutioncited by 19
  32. 2023GrACE: Generation using Associated Code Editscited by 16
  33. 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
  34. 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMscited by 8
  35. 2024RES-Q: Evaluating Code-Editing Large Language Model Systems at the Repository Scalecited by 7
  36. 2024Combining LLM Code Generation with Formal Specifications and Reactive Program Synthesiscited by 7
  37. 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performancecited by 6
  38. 2024CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Naturecited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.