MapCoder: Multi-Agent Code Generation for Competitive Problem Solving

被引:0
|
作者
Islam, Md. Ashraful [1 ]
Ali, Mohammed Eunus [1 ]
Parvez, Md Rizwan [2 ]
机构
[1] Bangladesh Univ Engn & Technol BUET, Dept Comp Sci & Engn, Dhaka, Bangladesh
[2] Qatar Comp Res Inst QCRI, Doha, Qatar
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:4912 / 4944
页数:33
相关论文
共 50 条
  • [31] The multi-agent rendezvous problem
    Lin, J
    Morse, AS
    Anderson, BDO
    42ND IEEE CONFERENCE ON DECISION AND CONTROL, VOLS 1-6, PROCEEDINGS, 2003, : 1508 - 1513
  • [32] THE MULTI-AGENT PLANNING PROBLEM
    Kalmar-Nagy, Tamas
    Giardini, Giovanni
    ICAART 2011: PROCEEDINGS OF THE 3RD INTERNATIONAL CONFERENCE ON AGENTS AND ARTIFICIAL INTELLIGENCE, VOL 1, 2011, : 296 - 305
  • [33] The Multi-Agent Transportation Problem
    Bachor, Pascal
    Bergdoll, Rolf-David
    Nebel, Bernhard
    THIRTY-SEVENTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 37 NO 10, 2023, : 11525 - 11532
  • [34] Solving optimization problem using multi-agent model based on belief interaction
    Guo Dongwei
    Liu Yanbin
    Zhang Na
    Wang Kangping
    SIMULATED EVOLUTION AND LEARNING, PROCEEDINGS, 2006, 4247 : 120 - 125
  • [35] Search modes for the cooperative multi-agent system solving the vehicle routing problem
    Barbucha, Dariusz
    NEUROCOMPUTING, 2012, 88 : 13 - 23
  • [36] Solving Operating Theater Facility Layout Problem using a Multi-Agent System
    Chraibi, Abdelahad
    Kharraja, Said
    Osman, Ibrahim H.
    Elbeqqali, Omar
    2014 INTERNATIONAL CONFERENCE ON CONTROL, DECISION AND INFORMATION TECHNOLOGIES (CODIT), 2014, : 207 - 212
  • [37] Multi-agent Approach for Solving the Dynamic Home Health Care Routing Problem
    Ramiro Lopez-Santana, Eduyn
    Alberto Espejo-Diaz, Julian
    Andres Mendez-Giraldo, German
    APPLIED COMPUTER SCIENCES IN ENGINEERING, 2016, 657 : 188 - 200
  • [38] A new spring net approach to distributed problem solving in multi-agent systems
    Feng, X
    Shuai, DX
    IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON INTELLIGENT AGENT TECHNOLOGY, PROCEEDINGS, 2004, : 417 - 420
  • [39] Multi-Agent System for solving Dynamic Operating Theater Facility Layout Problem
    Chraibi, Abdelahad
    Kharraja, Said
    Osman, Ibrahim H.
    Elbeqqali, Omar
    IFAC PAPERSONLINE, 2015, 48 (03): : 1146 - 1151
  • [40] Problem-solving in multi-agent systems: A novel generalized particle model
    Shuai, Dianxun
    Shuai, Qing
    Dong, Yuming
    Huang, Liangjun
    FIRST INTERNATIONAL MULTI-SYMPOSIUMS ON COMPUTER AND COMPUTATIONAL SCIENCES (IMSCCS 2006), PROCEEDINGS, VOL 2, 2006, : 322 - +