mlsanityData to 14 Oct 2026

AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation

arXiv 2504.04220 ↗First posted 5 Apr 2025cs.SEcited by 8

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

Abstract (arXiv)

Recently, researchers have proposed many multi-agent frameworks for function-level code generation, which aim to improve software development productivity by automatically generating function-level source code based on task descriptions. A typical multi-agent framework consists of Large Language Model (LLM)-based agents that are responsible for task planning, code generation, testing, debugging, etc. Studies have shown that existing multi-agent code generation frameworks perform well on ChatGPT. However, their generalizability across other foundation LLMs remains unexplored systematically. In this paper, we report an empirical study on the generalizability of four state-of-the-art multi-agent code generation frameworks across six open-source LLMs with varying parameter sizes, architectures, and performance levels. Our study reveals the unstable generalizability of existing frameworks on diverse foundation LLMs. Based on the findings obtained from the empirical study, we propose AdaCoder, a novel adaptive planning, multi-agent framework for function-level code generation. AdaCoder has two phases. Phase-1 is an initial code generation step without planning, which uses an LLM-based coding agent and a script-based testing agent to unleash LLM's native power, identify cases beyond LLM's power, and determine the errors hindering execution. Phase-2 adds a rule-based debugging agent and an LLM-based planning agent for iterative code generation with planning. Our evaluation shows that AdaCoder achieves higher generalizability on diverse LLMs. Compared to the best baseline MapCoder, AdaCoder is on average 27.69% higher in Pass@1, 16 times faster in inference, and 12 times lower in token consumption.

Key facts. Cited by 8 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 44 of its 70 references that are in the map. First posted on arXiv 5 Apr 2025.

Builds on

44 of 70 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  2. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
  3. 2023Self-collaboration Code Generation via ChatGPT15 Apr

Other references · 41

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  8. 2021Program Synthesis with Large Language Modelscited by 3,637
  9. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  10. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  11. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  12. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
29 more
  1. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  2. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  3. 2023Teaching Large Language Models to Self-Debugcited by 988
  4. 2021Measuring Coding Challenge Competence With APPScited by 902
  5. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  6. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  7. 2023Textbooks Are All You Needcited by 569
  8. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
  9. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  10. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  11. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
  12. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  13. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
  14. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  15. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 197
  16. 2023SantaCoder: don't reach for the stars!cited by 170
  17. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
  18. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  19. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
  20. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  21. 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
  22. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  23. 2024Automatic Programming: Large Language Models and Beyondcited by 36
  24. 2024ConStat: Performance-Based Contamination Detection in Large Language Modelscited by 33
  25. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  26. 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptionscited by 26
  27. 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
  28. 2024Assessing AI-Based Code Assistants in Method Generation Taskscited by 5
  29. 2017Systematic Mapping Study of Template-based Code Generationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

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

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025A Survey on Code Generation with LLM-based Agents
  2. 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
  3. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  4. 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generation
  5. 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation
  6. 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization
  7. 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
  8. 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap