mlsanityData to 14 Oct 2026

SelfEvolve: A Code Evolution Framework via Large Language Models

arXiv 2306.02907 ↗First posted 5 Jun 2023cs.CL cs.SEcited by 43

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have already revolutionized code generation, after being pretrained on publicly available code data. However, while various methods have been proposed to augment LLMs with retrieved knowledge and enhance the quality of code generation, the performance of these retrieval-based methods is limited by the strength of the retrievers used. In addition, while LLMs show great emergent ability, they still struggle to produce the correct code in one turn. To address these challenges, we propose a novel two-step pipeline, called autoknow, that leverages LLMs as both knowledge providers and self-reflective programmers. Unlike retrieval-based methods, autoknow~obtains the knowledge from input prompts and generates intermediate code based on the generated knowledge. After that, autoknow~asks LLM to act as an expert programmer to perform debugging for the generated code. This is achieved by receiving the error message from the interpreter, without requiring special test cases for correctness verification. We evaluate autoknow~on three code generation datasets, including DS-1000 for data science code, HumanEval for software engineering code, and TransCoder for C++-to-Python translation. Our empirical experiments show that autoknow~outperforms strong baselines by a significant margin on all datasets. We also conduct exhaustive analytical experiments to validate the effectiveness of the two stages of autoknow, and find that both are superior to other prompting-based methods. Further scalability analysis demonstrates that autoknow~can be adapted to other more advanced models, such as GPT-4, and bring consistent efficacy improvement.

Key facts. Cited by 43 papers in the map (data through 14 Oct 2026). Builds on 48 of its 54 references that are in the map. First posted on arXiv 5 Jun 2023.

Builds on

48 of 54 references.

References · 48

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  8. 2021Program Synthesis with Large Language Modelscited by 3,637
  9. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  10. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  11. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  12. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
36 more
  1. 2019Language Models as Knowledge Bases?cited by 1,936
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  3. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  4. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  5. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  7. 2023Teaching Large Language Models to Self-Debugcited by 988
  8. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  10. 2021Measuring Coding Challenge Competence With APPScited by 902
  11. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  12. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
  13. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  14. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
  15. 2023Augmented Language Models: a Surveycited by 403
  16. 2022CodeT: Code Generation with Generated Testscited by 384
  17. 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 353
  18. 2023Faithful Chain-of-Thought Reasoningcited by 288
  19. 2020Unsupervised Translation of Programming Languagescited by 263
  20. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  21. 2022A Review on Language Models as Knowledge Basescited by 157
  22. 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
  23. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
  24. 2022Natural Language to Code Translation with Executioncited by 124
  25. 2023InferFix: End-to-End Program Repair with LLMscited by 114
  26. 2018Mapping Language to Code in Programmatic Contextcited by 104
  27. 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 94
  28. 2022Language Models Can Teach Themselves to Program Bettercited by 78
  29. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  30. 2020Synthesize, Execute and Debug: Learning to Repair for Neural Program Synthesiscited by 39
  31. 2023In-Context Learning with Many Demonstration Examplescited by 39
  32. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  33. 2021Controllable Semantic Parsing via Retrieval Augmentationcited by 35
  34. 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 32
  35. 2022Training and Evaluating a Jupyter Notebook Data Science Assistantcited by 31
  36. 2017Dynamic Neural Program Embedding for Program Repaircited by 23

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 6; 2024: 17; 2025: 15; 2026: 5.

43 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  2. 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 240
  3. 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 238
  4. 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 205
  5. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 178
  6. 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
  7. 2025From AI for Science to Agentic Science: A Survey on Autonomous Scientific Discoverycited by 77
  8. 2024Large Language Model for Table Processing: A Surveycited by 52
  9. 2023Let Models Speak Ciphers: Multiagent Debate through Embeddingscited by 51
  10. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  11. 2024Can Language Models Perform Robust Reasoning in Chain-of-thought Prompting with Noisy Rationales?cited by 41
  12. 2025ChemAgent: Self-updating Library in Large Language Models Improves Chemical Reasoningcited by 41
31 more
  1. 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
  2. 2025Revisit Self-Debugging with Self-Generated Tests for Code Generationcited by 22
  3. 2024SwarmBrain: Embodied agent for real-time strategy game StarCraft II via large language modelscited by 19
  4. 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
  5. 2026Position: Agentic Evolution is the Path to Evolving LLMscited by 16
  6. 2023Can Large Language Models Find And Fix Vulnerable Software?cited by 15
  7. 2024Agent Alignment in Evolving Social Normscited by 15
  8. 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
  9. 2025Truly Self-Improving Agents Require Intrinsic Metacognitive Learningcited by 15
  10. 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidancecited by 12
  11. 2025Feedback Friction: LLMs Struggle to Fully Incorporate External Feedbackcited by 11
  12. 2025Learning to Reason Over Time: Timeline Self-Reflection for Improved Temporal Reasoning in Language Modelscited by 10
  13. 2025Execution Guided Line-by-Line Code Generationcited by 10
  14. 2025Can LLMs Generate Reliable Test Case Generators? A Study on Competition-Level Programming Problemscited by 9
  15. 2024Towards Building Specialized Generalist AI with System 1 and System 2 Fusioncited by 8
  16. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 8
  17. 2024Automating Thought of Search: A Journey Towards Soundness and Completenesscited by 7
  18. 2026How Many Tries Does It Take? Iterative Self-Repair in LLM Code Generation Across Model Scales and Benchmarkscited by 5
  19. 2023Self-Infilling Code Generationcited by 3
  20. 2025RISE: Reasoning Enhancement via Iterative Self-Exploration in Multi-hop Question Answeringcited by 3
  21. 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learningcited by 2
  22. 2024Translate-and-Revise: Boosting Large Language Models for Constrained Translationcited by 2
  23. 2024Self-Explained Keywords Empower Large Language Models for Code Generationcited by 2
  24. 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMscited by 2
  25. 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedbackcited by 2
  26. 2024Automatic Robotic Development through Collaborative Framework by Large Language Modelscited by 1
  27. 2024Training Agents with Weakly Supervised Feedback from Large Language Modelscited by 1
  28. 2025UI-Evol: Automatic Knowledge Evolving for Computer Use Agentscited by 1
  29. 2026Unlocking LLM Code Correction with Iterative Feedback Loopscited by 1
  30. 2025Kodezi Chronos: A Debugging-First Language Model for Repository-Scale Code Understandingcited by 0
  31. 2026Simulation-Aware In-Context Policy Improvement for LLM-Aided Analog Layout Refinementcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  2. 2024An Empirical Study on Self-correcting Large Language Models for Data Science Code Generation
  3. 2025SelfRACG: Enabling LLMs to Self-Express and Retrieve for Code Generation
  4. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
  5. 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs
  6. 2024EVOR: Evolving Retrieval for Code Generation
  7. 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
  8. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency