mlsanityData to 7 Oct 2026

Revisit Self-Debugging with Self-Generated Tests for Code Generation

arXiv 2501.12793 ↗First posted 22 Jan 2025cs.SE cs.AIcited by 21

On the map: Synthetic data and self-improvement for LLMs → Code and instruction data synthesis

Abstract (arXiv)

Large language models (LLMs) have shown significant advancements in code generation, but still face challenges on tasks beyond their basic capabilities. Recently, the notion of self-debugging has been proposed to boost the performance of code generation by leveraging execution feedback from tests. Despite its promise, the availability of high-quality tests in real-world scenarios is limited. In this context, self-debugging with self-generated tests is a promising solution but lacks a full exploration of its limitations and practical potential. Therefore, we investigate its efficacy on diverse programming problems. To deepen our understanding, we propose two distinct paradigms for the process: post-execution and in-execution self-debugging. Within the scope of self-contained Python programming tasks, we find that post-execution self-debugging struggles on basic problems but shows potential for improvement on competitive ones, due to the bias introduced by self-generated tests. On the other hand, in-execution self-debugging enables LLMs to mitigate the bias by solely leveraging intermediate states during execution, thereby enhancing code generation.

Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Placed in Code and instruction data synthesis, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 16 of its 31 references that are in the map. First posted on arXiv 22 Jan 2025.

Builds on

16 of 31 references.

References · 16

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  7. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  8. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  9. 2023Self-collaboration Code Generation via ChatGPTcited by 255
  10. 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 100
  11. 2024A Survey on Self-Evolution of Large Language Modelscited by 86
  12. 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
4 more
  1. 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
  2. 2024LeDex: Training LLMs to Better Self-Debug and Explain Codecited by 39
  3. 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
  4. 2023TraceFixer: Execution Trace-Driven Program Repaircited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 10; 2026: 11.

21 papers.

Sort:

By area:

  1. 2025VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generationcited by 13
  2. 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generationcited by 8
  3. 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7
  4. 2025The Debugging Decay Index: Rethinking Debugging Strategies for Code LLMscited by 5
  5. 2026How Many Tries Does It Take? Iterative Self-Repair in LLM Code Generation Across Model Scales and Benchmarkscited by 5
  6. 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Actioncited by 4
  7. 2026REAgent: Requirement-Driven LLM Agents for Software Issue Resolutioncited by 4
  8. 2025InfCode-C++: Intent-Guided Semantic Retrieval and AST-Structured Search for C++ Issue Resolutioncited by 3
  9. 2026Self-Authored Verification Is Unreliable in Heuristic Self-Improving Agentscited by 3
  10. 2026CP-SynC: Multi-Agent Zero-Shot Constraint Modeling in MiniZinc with Synthesized Checkerscited by 2
  11. 2025Complementarity-driven Representation Learning for Multi-modal Knowledge Graph Completioncited by 1
  12. 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensuscited by 1
9 more
  1. 2026Agentic MIP Research: Accelerated Constraint Handler Generationcited by 1
  2. 2026Selection Without Signal, Recovery Through Expression: A Measurement Study of Post-Hoc Falsification Operators for Frozen Small Code Modelscited by 1
  3. 2025Mutual Evidential Deep Learning for Medical Image Segmentationcited by 0
  4. 2025Co-Evidential Fusion with Information Volume for Medical Image Segmentationcited by 0
  5. 2025Adaptive Fuzzy Time Series Forecasting via Partially Asymmetric Convolution and Sub-Sliding Window Fusioncited by 0
  6. 2026Inference-Time Code Selection via Symbolic Equivalence Partitioningcited by 0
  7. 2026COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generationcited by 0
  8. 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generationcited by 0
  9. 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2023Teaching Large Language Models to Self-Debug
  2. 2025SELF-REDRAFT: Eliciting Intrinsic Exploration-Exploitation Balance in Test-Time Scaling for Code Generation
  3. 2024An Empirical Study on Self-correcting Large Language Models for Data Science Code Generation
  4. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  5. 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
  6. 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models
  7. 2026On the risk of coding before testing: An empirical study on LLM-based test generation workflow
  8. 2025Learning to Generate Unit Tests for Automated Debugging