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 条
  • [41] Three-tier multi-agent approach for solving traveling salesman problem
    Yan, Shi-Liang
    Zhou, Ke-Feng
    PRICAI 2006: TRENDS IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2006, 4099 : 813 - 817
  • [42] A column generation approach to the coalition formation problem in multi-agent systems
    Tombus, Ö
    Bilgiç, T
    COMPUTERS & OPERATIONS RESEARCH, 2004, 31 (10) : 1635 - 1653
  • [43] Avoiding paradoxes in multi-agent competitive routing
    Altman, E
    El Azouzi, R
    Pourtallier, O
    COMPUTER NETWORKS-THE INTERNATIONAL JOURNAL OF COMPUTER AND TELECOMMUNICATIONS NETWORKING, 2003, 43 (02): : 133 - 146
  • [44] Reinforcement Learning for Multi-Agent Competitive Scenarios
    Coutinho, Manuel
    Reis, Luis Paulo
    2022 IEEE INTERNATIONAL CONFERENCE ON AUTONOMOUS ROBOT SYSTEMS AND COMPETITIONS (ICARSC), 2022, : 130 - 135
  • [45] Generalising the Dining Philosophers Problem: Competitive Dynamic Resource Allocation in Multi-agent Systems
    De Masellis, Riccardo
    Goranko, Valentin
    Gruner, Stefan
    Timm, Nils
    MULTI-AGENT SYSTEMS, EUMAS 2018, 2019, 11450 : 30 - 47
  • [46] A novel deterministic multi-agent solving method
    Kohinata, Kenta
    Kurihara, Takuya
    Shindo, Takuya
    Jin'no, Kenya
    2015 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC 2015): BIG DATA ANALYTICS FOR HUMAN-CENTRIC SYSTEMS, 2015, : 1758 - 1763
  • [47] Multi-agent algorithms for solving graphical games
    Vickrey, D
    Koller, D
    EIGHTEENTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE (AAAI-02)/FOURTEENTH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE (IAAI-02), PROCEEDINGS, 2002, : 345 - 351
  • [48] Conflict solving into the multi-agent distributed planning
    Mandiau, R
    Piechowiak, S
    1998 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS, VOLS 1-5, 1998, : 1421 - 1426
  • [49] On the Gradient Method for Solving Multi-Agent Systems
    Konnov I.V.
    Kashuba A.Y.
    Journal of Mathematical Sciences, 2022, 267 (4) : 487 - 493
  • [50] Semantic-based dynamic positioning mechanism for problem solving in multi-agent systems
    Li Qing-shan
    Chu Hua
    Xue Bao-ye
    Zhang Chao
    JOURNAL OF CENTRAL SOUTH UNIVERSITY, 2014, 21 (02) : 618 - 628