mlsanityData to 14 Oct 2026

Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency

arXiv 2505.02133 ↗First posted 4 May 2025cs.SEcited by 9

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

The use of large language models (LLMs) for automated code generation has emerged as a significant focus within AI research. As these pretrained models continue to evolve, their ability to understand and generate complex code structures has opened new possibilities for automating intricate programming tasks for the sake of accurate code generation. Although contemporary foundational models demonstrate promoting results, researchers continue to explore optimal post-training strategies to enhance code quality. These include supervised fine-tuning, retrieval-augmented generation (RAG), debugging, and many others. In this paper, we combine two widely used approaches namely multi-agent collaboration and runtime execution information-based debugging, for improving code generation functionality, reliability, and practical applicability. We perform an empirical study in order to extend the evaluation of the individual strategies as well as the proposed composition of the activities of both strategies. Our study use 19 LLMs to examines the performance of individual and the proposed strategies, offering comprehensive insights into how different programming activities compositions and training paradigms influence code generation effectiveness. In particular, we implement a chained system that combines both strategies to assess their combined impact on functional accuracy, code reliability, and generation latency using two benchmark datasets commonly used for code generation. Our findings provide valuable insights for organizations seeking robust AI-driven coding solutions by guiding them in selecting models that can better adapt to complex post-training strategies, ultimately fostering the adoption of more effective and reliable code generation technologies.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 38 of its 45 references that are in the map. First posted on arXiv 4 May 2025.

Builds on

38 of 45 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidance2 Oct
  2. 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug
  3. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
  4. 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar
  5. 2023ChatDev: Communicative Agents for Software Development16 Jul
  6. 2023Self-collaboration Code Generation via ChatGPT15 Apr

Other references · 32

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  5. 2024GPT-4o System Cardcited by 4,588
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2023Qwen Technical Reportcited by 3,344
  9. 2023Mistral 7Bcited by 3,164
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  11. 2024Qwen2 Technical Reportcited by 2,120
  12. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
20 more
  1. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  2. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  3. 2024Mixtral of Expertscited by 1,823
  4. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  6. 2023Teaching Large Language Models to Self-Debugcited by 988
  7. 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
  8. 2023StarCoder: may the source be with you!cited by 799
  9. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  10. 2023Zephyr: Direct Distillation of LM Alignmentcited by 506
  11. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  12. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  13. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  14. 2024Scaling Large Language Model-based Multi-Agent Collaborationcited by 241
  15. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
  16. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  17. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  18. 2024CYCLE: Learning to Self-Refine the Code Generationcited by 42
  19. 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
  20. 2024ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generationcited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 4.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025A Survey on Code Generation with LLM-based Agents
  2. 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
  3. 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis
  4. 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
  5. 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debugging
  6. 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
  7. 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
  8. 2025AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents