• Home
  • Search
  • MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
  • Open Access IconOpen Access
  • Cite Icon28
  • https://doi.org/10.18653/v1/2024.acl-long.269Copy DOI Icon

MapCoder: Multi-Agent Code Generation for Competitive Problem Solving

  • Jan 1, 2024
  • Md Ashraful Islam +2 more
Show More
  • Abstract
  • Literature Map
  • Citations
  • Similar Papers
Abstract

Code synthesis, which requires a deep understanding of complex natural language (NL) problem descriptions, generation of code instructions for complex algorithms and data structures, and the successful execution of comprehensive unit tests, presents a significant challenge.Thus, while large language models (LLMs) demonstrate impressive proficiency in natural language processing (NLP), their performance in code generation tasks remains limited.In this paper, we introduce a new approach to code generation tasks leveraging the multi-agent prompting that uniquely replicates the full cycle of program synthesis as observed in human developers.Our framework, MapCoder, consists of four LLM agents specifically designed to emulate the stages of this cycle: recalling relevant examples, planning, code generation, and debugging.After conducting thorough experiments, with multiple LLMs ablations and analyses across eight challenging competitive problem-solving and program synthesis benchmarks-MapCoder showcases remarkable code generation capabilities, achieving their new state-of-the-art (pass@1) results-(HumanEval 93.9%, MBPP 83.1%, APPS 22.0%, CodeContests 28.5%, and xCodeEval 45.3%).Moreover, our method consistently delivers superior performance across various programming languages and varying problem difficulties.We open-source our framework at https://github.com/ Md-Ashraful-Pramanik/MapCoder.Dynamic Traversal Block (Elaborated View) Failed in sample I/O Failed in sample I/O max turn done back to planner agent Problem Write a python code for descending order sorting.The program will take an array and return a new array sorted in the reverse order.[1,2,

Similar Papers
  • Research Article
  • Citations51

Large language models for biomedicine: foundations, opportunities, challenges, and best practices.

  • Apr 24, 2024
  • Journal of the American Medical Informatics Association : JAMIA
  • Satya S Sahoo +8
  • Research Article
  • Citations2

Towards Secure Code Generation With LLMs: A Study on Common Weakness Enumeration

  • Dec 01, 2025
  • IEEE Transactions on Software Engineering
  • Jianguo Zhao +6
  • Research Article
  • Citations7

COFFE: A Code Efficiency Benchmark for Code Generation

  • Jun 19, 2025
  • Proceedings of the ACM on Software Engineering
  • Yun Peng +3
  • Research Article

#2924 Comparison of large language models and traditional natural language processing techniques in predicting arteriovenous fistula failure

  • May 23, 2024
  • Nephrology Dialysis Transplantation
  • Suman Lama +6
  • Research Article

Evaluating gpt-4 for zero-shot classification of bleeding and clotting events: Can large language models serve as second reviewers?

  • Nov 03, 2025
  • Blood
  • Samantha Rizzo +5
  • Research Article
  • Citations1

AI-Powered Code Generation Evaluating the Effectiveness of Large Language Models (LLMs) in Automated Software Development

  • Mar 31, 2023
  • Journal of Artificial Intelligence & Cloud Computing
  • Ravikanth Konda
  • Research Article

TaskEval: Assessing Difficulty of Code Generation Tasks for Large Language Models

  • Oct 28, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Florian Tambon +4
  • PDF
  • Research Article
  • Citations13

Advancements and Applications of Large Language Models in Natural Language Processing: A Comprehensive Review

  • Nov 26, 2024
  • Applied and Computational Engineering
  • Mengchao Ren
  • Research Article
  • Citations1

Evaluating the Test Adequacy of Benchmarks for LLMs on Code Generation

  • Jun 25, 2025
  • Journal of Software: Evolution and Process
  • Xiangyue Liu +5
  • Conference Article

Utilizing Chain of Thought to Generate Code from Challenging Programming Requirements

  • Feb 03, 2026
  • Emanalofi +2
  • Research Article
  • Citations1

Transforming scholarly landscapes: The influence of large language models on academic fields beyond computer science.

  • Jan 14, 2026
  • PloS one
  • Aniket Pramanick +3
  • Research Article
  • Citations7

Strengths and Weaknesses of LLM-Based and Rule-Based NLP Technologies and Their Potential Synergies

  • Jul 31, 2025
  • Electronics
  • Nikitas Ν Karanikolas +5
  • Research Article

Assessing the Latent Automated Program Repair Capabilities of Large Language Models using Round-Trip Translation

  • Oct 16, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Fernando Vallecillos Ruiz +3
  • Conference Article
  • Citations1

LLASP: Fine-tuning Large Language Models for Answer Set Programming

  • Nov 01, 2024
  • Erica Coppolillo +4
  • Preprint Article

Leveraging Pre-Trained Large Language Models for CSI Feedback in Massive MIMO Systems

  • Jul 19, 2025
  • Yiming Cui +4
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.