mlsanityData to 13 Oct 2026

From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debugging

arXiv 2410.01215 ↗First posted 2 Oct 2024cs.CL cs.AI cs.PLcited by 46

Not on the map. Why?

Cited by 21 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

While large language models have made significant strides in code generation, the pass rate of the generated code is bottlenecked on subtle errors, often requiring human intervention to pass tests, especially for complex problems. Existing LLM-based debugging systems treat generated programs as monolithic units, failing to address bugs at multiple levels of granularity, from low-level syntax errors to high-level algorithmic flaws. In this paper, we introduce Multi-Granularity Debugger (MGDebugger), a hierarchical code debugger by isolating, identifying, and resolving bugs at various levels of granularity. MGDebugger decomposes problematic code into a hierarchical tree structure of subfunctions, with each level representing a particular granularity of error. During debugging, it analyzes each subfunction and iteratively resolves bugs in a bottom-up manner. To effectively test each subfunction, we propose an LLM-simulated Python executor, which traces code execution and tracks important variable states to pinpoint errors accurately. Extensive experiments demonstrate that MGDebugger outperforms existing debugging systems, achieving an 18.9% improvement in accuracy over seed generations in HumanEval and a 97.6% repair success rate in HumanEvalFix. Furthermore, MGDebugger effectively fixes bugs across different categories and difficulty levels, demonstrating its robustness and effectiveness.

Key facts. Cited by 46 papers in the map (data through 13 Oct 2026). Builds on 60 of its 91 references that are in the map. First posted on arXiv 2 Oct 2024.

Builds on

60 of 91 references.

References · 60

  1. 2023GPT-4 Technical Reportcited by 18,278
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,986
  5. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,156
  6. 2021Program Synthesis with Large Language Modelscited by 3,573
  7. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,181
  8. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,693
  9. 2019Fine-Tuning Language Models from Human Preferencescited by 2,139
  10. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,951
  11. 2022Competition-Level Code Generation with AlphaCodecited by 1,445
  12. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,362
38 more
  1. 2023Teaching Large Language Models to Self-Debugcited by 972
  2. 2021Measuring Coding Challenge Competence With APPScited by 891
  3. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 743
  4. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 651
  5. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 560
  6. 2023Reinforced Self-Training (ReST) for Language Modelingcited by 492
  7. 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 454
  8. 2024Training Language Models to Self-Correct via Reinforcement Learningcited by 413
  9. 2022CodeT: Code Generation with Generated Testscited by 377
  10. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 328
  11. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 280
  12. 2023Self-collaboration Code Generation via ChatGPTcited by 257
  13. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 243
  14. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 235
  15. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 229
  16. 2023Universal Self-Consistency for Large Language Model Generationcited by 200
  17. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  18. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 194
  19. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 184
  20. 2023Planning with Large Language Models for Code Generationcited by 182
  21. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  22. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  23. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  24. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 122
  25. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 112
  26. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
  27. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 75
  28. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  29. 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 63
  30. 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 61
  31. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
  32. 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
  33. 2024CYCLE: Learning to Self-Refine the Code Generationcited by 42
  34. 2023Conversational Automated Program Repaircited by 41
  35. 2024LeDex: Training LLMs to Better Self-Debug and Explain Codecited by 40
  36. 2020Synthesize, Execute and Debug: Learning to Repair for Neural Program Synthesiscited by 39
  37. 2024A Deep Dive into Large Language Models for Automated Bug Localization and Repaircited by 39
  38. 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 2; 2025: 21; 2026: 23.

46 papers.

Sort:

By area:

  1. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 65
  2. 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 59
  3. 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 58
  4. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 53
  5. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 43
  6. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
  7. 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 38
  8. 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
  9. 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debuggingcited by 31
  10. 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositoriescited by 21
  11. 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
  12. 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 18
34 more
  1. 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
  2. 2026Reasoning in Trees: Improving Retrieval-Augmented Generation for Multi-Hop Question Answeringcited by 13
  3. 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 13
  4. 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issuescited by 10
  5. 2025Execution Guided Line-by-Line Code Generationcited by 10
  6. 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
  7. 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 8
  8. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latencycited by 8
  9. 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
  10. 2026Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generationcited by 7
  11. 2025ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generationcited by 6
  12. 2025RepoDebug: Repository-Level Multi-Task and Multi-Language Debugging Evaluation of Large Language Modelscited by 5
  13. 2026VimRAG: Navigating Massive Visual Context in Retrieval-Augmented Generation via Multimodal Memory Graphcited by 5
  14. 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoringcited by 5
  15. 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debuggingcited by 4
  16. 2026Code Is More Than Text: Uncertainty Estimation for Code Generationcited by 4
  17. 2025MLDebugging: Towards Benchmarking Code Debugging Across Multi-Library Scenarioscited by 3
  18. 2025Fed-SE: Federated Self-Evolution for Privacy-Constrained Multi-Environment LLM Agentscited by 3
  19. 2026LLM Agents Can See Code Repositoriescited by 3
  20. 2026Repo0: Design-Driven Zero-to-All Code Generationcited by 3
  21. 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedbackcited by 2
  22. 2025HyperAgent: Leveraging Hypergraphs for Topology Optimization in Multi-Agent Communicationcited by 2
  23. 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learningcited by 2
  24. 2025Analyzing Code Injection Attacks on LLM-based Multi-Agent Systems in Software Developmentcited by 2
  25. 2026ClassEval-Pro: A Cross-Domain Benchmark for Class-Level Code Generationcited by 2
  26. 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
  27. 2026The Architecture of Errors: From Universal Impossibility to Patch-Local LLM Reliabilitycited by 1
  28. 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidencecited by 1
  29. 2026Deep Learning-based Method for Expressing Knowledge Boundary of Black-Box LLMcited by 0
  30. 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Executioncited by 0
  31. 2026ShredBench: Evaluating the Semantic Reasoning Capabilities of Multimodal LLMs in Document Reconstructioncited by 0
  32. 2026DecompRL: Solving Harder Problems by Learning Modular Code Generationcited by 0
  33. 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Explorationcited by 0
  34. 2026GraphAHA: Graph-Based Adaptive Search with Heterogeneous Actions for Test-Time Code Generationcited by 0