Self-Edit: Fault-Aware Code Editor for Code Generation
Not on the map. Why?
Cited by 24 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Large language models (LLMs) have demonstrated an impressive ability to generate codes on competitive programming tasks. However, with limited sample numbers, LLMs still suffer from poor accuracy. Inspired by the process of human programming, we propose a generate-and-edit approach named Self-Edit that utilizes execution results of the generated code from LLMs to improve the code quality on the competitive programming task. We execute the generated code on the example test case provided in the question and wrap execution results into a supplementary comment. Utilizing this comment as guidance, our fault-aware code editor is employed to correct errors in the generated code. We perform extensive evaluations across two competitive programming datasets with nine different LLMs. Compared to directly generating from LLMs, our approach can improve the average of pass@1 by 89% on APPS-dev, 31% on APPS-test, and 48% on HumanEval over nine popular code generation LLMs with parameter sizes ranging from 110M to 175B. Compared to other post-processing methods, our method demonstrates superior accuracy and efficiency.
Key facts. Cited by 110 papers in the map (data through 7 Oct 2026). Builds on 19 of its 41 references that are in the map. First posted on arXiv 6 May 2023.
Builds on
19 of 41 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2022Natural Language to Code Translation with Executioncited by 122
- 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
7 more
- 2022Coder Reviewer Reranking for Code Generationcited by 83
- 2021Generate & Rank: A Multi-task Framework for Math Word Problemscited by 82
- 2020Text Generation by Learning from Demonstrationscited by 64
- 2022Interactive Code Generation via Test-Driven User-Intent Formalizationcited by 50
- 2023SkCoder: A Sketch-based Approach for Automatic Code Generationcited by 40
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2023AceCoder: Utilizing Existing Code to Enhance Code Generationcited by 25
Built on by
Citing papers per year: 2023: 17; 2024: 42; 2025: 30; 2026: 21.
110 papers.
Sort:
By area:
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 236
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 161
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimizationcited by 84
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
38 more
- 2023Lemur: Harmonizing Natural Language and Code for Language Agentscited by 71
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
- 2024Confidence Matters: Revisiting Intrinsic Self-Correction Capabilities of Large Language Modelscited by 47
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2023Watermarking Conditional Text Generation for AI Detection: Unveiling Challenges and a Semantic-Aware Watermark Remedycited by 45
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
- 2024VLATest: Testing and Evaluating Vision-Language-Action Models for Robotic Manipulationcited by 43
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verificationcited by 39
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
- 2024LeDex: Training LLMs to Better Self-Debug and Explain Codecited by 39
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generationcited by 33
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Modelscited by 32
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 28
- 2024Search-Based LLMs for Code Optimizationcited by 27
- 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agentcited by 24
- 2024Tools Fail: Detecting Silent Errors in Faulty Toolscited by 23
- 2025QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checkscited by 22
- 2024Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL Translationcited by 21
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2024Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generationcited by 21
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?cited by 20
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2025Learning to Generate Unit Tests for Automated Debuggingcited by 16
- 2023Coffee: Boost Your Code LLMs by Fixing Bugs with Feedbackcited by 15
- 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
50 most cited of 110 All 110 (JSON)
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generation1 Aug 2026
- 2026Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems9 Jul 2026
- 2026REFLEX: Reflective Evolution from LLM Experience15 Jun 2026
- 2026Code Is More Than Text: Uncertainty Estimation for Code Generation8 Jun 2026
- 2026FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement2 Jun 2026
- 2026STRIDE: Learnable Stepwise Language Feedback for LLM Reasoning13 May 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZ9 Apr 2026
- 2026An Empirical Analysis of Static Analysis Methods for Detection and Mitigation of Code Library Hallucinations9 Apr 2026
- 2026Coding with Eyes: Visual Feedback Unlocks Reliable GUI Code Generating and Debugging14 Mar 2026
- 2026ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning6 Mar 2026
38 more
- 2026AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework3 Mar 2026
- 2026Your Code Agent Can Grow Alongside You with Structured Memory25 Feb 2026
- 2026AgentLTV: An Agent-Based Unified Search-and-Evolution Framework for Automated Lifetime Value Prediction25 Feb 2026
- 2026LogitsCoder: Towards Efficient Chain-of-Thought Path Search via Logits Preference Decoding for Code Generation15 Feb 2026
- 2026Beyond Quantity: Trajectory Diversity Scaling for Code Agents3 Feb 2026
- 2026Adaptive Confidence Gating in Multi-Agent Collaboration for Efficient and Optimized Code Generation29 Jan 2026
- 2026IntentCoding: Amplifying User Intent in Code Generation20 Jan 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2026Advancing Language Models for Code-related Tasks8 Jan 2026
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning24 Nov 2025
- 2025ExPairT-LLM: Exact Learning for LLM Code Selection by Pairwise Queries13 Nov 2025
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learning2 Nov 2025
- 2025Iterative Critique-Refine Framework for Enhancing LLM Personalization28 Oct 2025
- 2025GAPO: Robust Advantage Estimation for Real-World Code LLMs22 Oct 2025
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generation22 Oct 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025
- 2025LNE-Blocking: An Efficient Framework for Contamination Mitigation Evaluation on Large Language Models18 Sep 2025
- 2025ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation2 Sep 2025
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Tasks18 Aug 2025
- 2025SLoW: Select Low-frequency Words! Automatic Dictionary Selection for Translation on Large Language Models25 Jul 2025
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairing20 Jul 2025
- 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedback23 Jun 2025
- 2025CADReview: Automatically Reviewing CAD Programs with Error Detection and Correction28 May 2025
- 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debugging21 May 2025
- 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Grounding12 May 2025
- 2025Sailing by the Stars: A Survey on Reward Models and Learning Strategies for Learning from Rewards5 May 2025
- 2025CodeBC: A More Secure Large Language Model for Smart Contract Code Generation in Blockchain28 Apr 2025
- 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation5 Apr 2025
- 2025SRLCG: Self-Rectified Large-Scale Code Generation with Multidimensional Chain-of-Thought and Dynamic Backtracking1 Apr 2025
- 2025debug-gym: A Text-Based Environment for Interactive Debugging27 Mar 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2025Towards Automated Smart Contract Generation: Evaluation, Benchmarking, and Retrieval-Augmented Repair3 Mar 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation15 Feb 2025
- 2025Learning to Generate Unit Tests for Automated Debugging3 Feb 2025
- 2025Successor-Generator Planning with LLM-generated Heuristics30 Jan 2025
- 2025QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checks20 Jan 2025
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap20 Jan 2025
50 newest of 110 All 110 (JSON)
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimizationcited by 84
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2023Lemur: Harmonizing Natural Language and Code for Language Agentscited by 71
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generationcited by 33
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agentcited by 24
- 2025QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checkscited by 22
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
12 most cited of 22 All 22 (JSON)
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems9 Jul 2026
- 2026AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework3 Mar 2026
- 2026Your Code Agent Can Grow Alongside You with Structured Memory25 Feb 2026
- 2026AgentLTV: An Agent-Based Unified Search-and-Evolution Framework for Automated Lifetime Value Prediction25 Feb 2026
- 2026Beyond Quantity: Trajectory Diversity Scaling for Code Agents3 Feb 2026
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generation22 Oct 2025
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Tasks18 Aug 2025
- 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation5 Apr 2025
- 2025debug-gym: A Text-Based Environment for Interactive Debugging27 Mar 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2025QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checks20 Jan 2025
12 newest of 22 All 22 (JSON)
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 236
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 161
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verificationcited by 39
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Modelscited by 32
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2024Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generationcited by 21
- 2025Sailing by the Stars: A Survey on Reward Models and Learning Strategies for Learning from Rewardscited by 14
- 2023MoTCoder: Elevating Large Language Models with Modular of Thought for Challenging Programming Taskscited by 9
12 most cited of 18 All 18 (JSON)
- 2026STRIDE: Learnable Stepwise Language Feedback for LLM Reasoning13 May 2026
- 2026LogitsCoder: Towards Efficient Chain-of-Thought Path Search via Logits Preference Decoding for Code Generation15 Feb 2026
- 2026Adaptive Confidence Gating in Multi-Agent Collaboration for Efficient and Optimized Code Generation29 Jan 2026
- 2025GAPO: Robust Advantage Estimation for Real-World Code LLMs22 Oct 2025
- 2025Sailing by the Stars: A Survey on Reward Models and Learning Strategies for Learning from Rewards5 May 2025
- 2025SRLCG: Self-Rectified Large-Scale Code Generation with Multidimensional Chain-of-Thought and Dynamic Backtracking1 Apr 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2024Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation19 Dec 2024
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models7 Nov 2024
- 2024Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Models2 Nov 2024
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar 2024
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar 2024
12 newest of 18 All 18 (JSON)
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
- 2024Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Modelscited by 3
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairingcited by 0
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairing20 Jul 2025
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement9 Dec 2024
- 2024Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Models1 Mar 2024
- 2026REFLEX: Reflective Evolution from LLM Experiencecited by 1
- 2026REFLEX: Reflective Evolution from LLM Experience15 Jun 2026
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
- 2024Confidence Matters: Revisiting Intrinsic Self-Correction Capabilities of Large Language Modelscited by 47
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
12 most cited of 63 All 63 (JSON)
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generation1 Aug 2026
- 2026Code Is More Than Text: Uncertainty Estimation for Code Generation8 Jun 2026
- 2026FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement2 Jun 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZ9 Apr 2026
- 2026An Empirical Analysis of Static Analysis Methods for Detection and Mitigation of Code Library Hallucinations9 Apr 2026
- 2026Coding with Eyes: Visual Feedback Unlocks Reliable GUI Code Generating and Debugging14 Mar 2026
- 2026ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning6 Mar 2026
- 2026IntentCoding: Amplifying User Intent in Code Generation20 Jan 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2026Advancing Language Models for Code-related Tasks8 Jan 2026
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning24 Nov 2025
12 newest of 63 All 63 (JSON)