mlsanityData to 14 Oct 2026

Large Language Model Guided Self-Debugging Code Generation

arXiv 2502.02928 ↗First posted 5 Feb 2025cs.SE cs.AIcited by 8

Not on the map. Why?

Abstract (arXiv)

Automated code generation is gaining significant importance in intelligent computer programming and system deployment. However, current approaches often face challenges in computational efficiency and lack robust mechanisms for code parsing and error correction. In this work, we propose a novel framework, PyCapsule, with a simple yet effective two-agent pipeline and efficient self-debugging modules for Python code generation. PyCapsule features sophisticated prompt inference, iterative error handling, and case testing, ensuring high generation stability, safety, and correctness. Empirically, PyCapsule achieves up to 5.7% improvement of success rate on HumanEval, 10.3% on HumanEval-ET, and 24.4% on BigCodeBench compared to the state-of-art methods. We also observe a decrease in normalized success rate given more self-debugging attempts, potentially affected by limited and noisy error feedback in retention. PyCapsule demonstrates broader impacts on advancing lightweight and efficient code generation for artificial intelligence systems.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 18 of its 36 references that are in the map. First posted on arXiv 5 Feb 2025.

Builds on

18 of 36 references.

References · 18

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  4. 2021Program Synthesis with Large Language Modelscited by 3,637
  5. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
  6. 2023Teaching Large Language Models to Self-Debugcited by 988
  7. 2023ChatDev: Communicative Agents for Software Developmentcited by 919
  8. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  9. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  10. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
  11. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
  12. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
6 more
  1. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  2. 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 67
  3. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 53
  4. 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
  5. 2024An Empirical Study on Usage and Perceptions of LLMs in a Software Engineering Projectcited by 28
  6. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancementcited by 28

Built on by

Cited by year (2026 to 14 Oct)

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

8 papers.