arrow
Return

ComplexAgents: Complex Code Generation Framework Based on Multi-agents and Large Language Model

delete2026-01-01
delete0
PRE
AI
S
Shan Gao
Z
Zhiping Cai *
Y
Yu Wang
DOI:10.1007/978-3-031-93254-0_11delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
The rapidly developed large language models (LLMs) have been utilized for code generation. However, existing LLM-based code generation approaches, while effective on simple tasks, often suffer from performance issues on complex tasks that require complex reasoning and understanding such as APPS+ datasets. Inspired by the team collaboration paradigm of software development, we proposes ComplexAgents, an LLM-based multi-agent code generation framework to address the problem of unsatisfactory and inefficient complex code generation. Specifically, ComplexAgents pioneers incorporating typical human workflows (the waterfall model) into complex code generation. By assigning different roles to various agents, ComplexAgents effectively breaks down complex tasks into a series of manageable subtasks and integrates them efficiently, thereby improving the accuracy and efficiency of code generation. Experimental results show that, ComplexAgents achieve improvements of 40.1% and 1.4%, respectively, in Pass@1 over the basic LLM agent (GPT-4-Turbo) on the tasks HumanEval and MBPP. Furthermore, when applied to the complex code generation tasks such as APPS+, ComplexAgents achieved 70.4%, 49.6%, and 20.6% Pass@1 in three different difficulty categories of tasks: Introductory, Interview, and Competition, respectively, while the state-of-the-art technology (sota) only achieved 59.7%, 23.5%, and 8.6%, which demonstrates that our approach holds significant promise for real-world code generation.
Keywords:
Large Language Models
Multi-Agents
Code Generation
A Survey on Large Language Models for Code Generation
err2026-02-01
err33
PREAI
errJiang, Juyong; Wang, Fan; Shen, Jiasi; Kim, Sungju; Kim, Sunghun
errShare
errSave
GeoColab: an LLM-based multi-agent collaborative framework for geospatial code generation
err2025-11-06
err0
errOAAI
errHuayi Wu; Haoyue Jiao; Shuyang Hou; Jianyuan Liang; Zhangxiao Shen; Anqi Zhao; Yaxian Qing; Fengying Jin; Xuefeng Guan; Zhipeng Gui
errShare
errSave
AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
err2025-12-12
err0
PREAI
errYueheng Zhu; Chao Liu; Xuan He; Xiaoxue Ren; Zhongxin Liu; Ruwei Pan; Hongyu Zhang
errShare
errSave
Self-Planning Code Generation with Large Language Models
err2024-09-27
err0
errOAAI
errJiang, Xue; Dong, Yihong; Wang, Lecheng; Fang, Zheng; Shang, Qiwei; Li, Ge; Jin, Zhi; Jiao, Wenpin
errShare
errSave
Large Language Model-Based Method for HVAC System Control Code Automatic Generation
err2026-04-27
err0
errOAAI
errRuiqin Jiang; Ke Xia; Jiahua Huang; Jie Lu
errShare
errSave
A large language model-based multi-agent framework for sustainable industrial design
err2026-04-17
err0
errOAAI
errVasileios Alevizos; Nikitas Gerolimos; Dimitris Georgantzelis; George A. Papakostas
errShare
errSave

Journal

C
COLLABORATIVE COMPUTING: NETWORKING, APPLICATIONS AND WORKSHARING, COLLABORATECOM 2024, PT II
IF:
0
Papers:
16
Citations:
0

Organization

hunan university of arts & science cover
hunan university of arts & science
Scholars:
743
Papers: 665
Citations: 701
N
national university of defense technology - china
Scholars:
1.8W
Papers: 1.4W
Citations: 1.7W
Cited Papers

Cited Papers

CERT: Continual Pre-training on Sketches for Library-oriented Code Generation
err2022-07-01
err0
errOAAI
errDaoguang Zan; Bei Chen; Dejian Yang; Zeqi Lin; Minsu Kim; Bei Guan; Yongji Wang; Weizhu Chen; Jian-Guang Lou
errShare
errSave
CodeBERT: A Pre-Trained Model for Programming and Natural Languages
err2020-01-01
err0
errOAAI
errZhangyin Feng; Daya Guo; Duyu Tang; Nan Duan; Xiaocheng Feng; Ming Gong; Linjun Shou; Bing Qin; Ting Liu; Daxin Jiang; Ming Zhou
errShare
errSave
errShare
errSave
A Brief Overview of ChatGPT: The History, Status Quo and Potential Future Development
err2023-05-01
err351
PREAI
errWu, Tianyu; He, Shizhu; Liu, Jingping; Sun, Siqi; Liu, Kang; Han, Qing-Long; Tang, Yang
errShare
errSave
no more