Saved in:
Bibliographic Details
Main Authors: Peng, Yulin, Hou, Haowen, Zhu, Xinxin, He, Ying Tiffany, Yu, F. Richard
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.15707
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908891076362240
author Peng, Yulin
Hou, Haowen
Zhu, Xinxin
He, Ying Tiffany
Yu, F. Richard
author_facet Peng, Yulin
Hou, Haowen
Zhu, Xinxin
He, Ying Tiffany
Yu, F. Richard
contents Large Language Models (LLMs) have made significant progress in handling complex programming tasks. However, current methods rely on manual model selection and fixed workflows, which limit their ability to adapt to changing task complexities. To address this, we propose SEMAG, a Self-Evolutionary Multi-Agent code Generation framework that mimics human coding practices. It decomposes programming tasks into stages, including planning, coding, debugging, and discussion, while adapting workflows to task difficulty. Its self-evolutionary agents can access the latest models in real time and automatically upgrade the backbone model. SEMAG sets new state-of-the-art Pass@1 accuracy across benchmarks. Using identical backbone models, SEMAG outperforms prior methods by 3.3% on CodeContests. When augmented with self-evolutionary model selection that automatically identifies optimal backbones, SEMAG reaches 52.6%, showcasing both framework effectiveness and adaptability to evolving LLM capabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2603_15707
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle SEMAG: Self-Evolutionary Multi-Agent Code Generation
Peng, Yulin
Hou, Haowen
Zhu, Xinxin
He, Ying Tiffany
Yu, F. Richard
Software Engineering
Artificial Intelligence
Large Language Models (LLMs) have made significant progress in handling complex programming tasks. However, current methods rely on manual model selection and fixed workflows, which limit their ability to adapt to changing task complexities. To address this, we propose SEMAG, a Self-Evolutionary Multi-Agent code Generation framework that mimics human coding practices. It decomposes programming tasks into stages, including planning, coding, debugging, and discussion, while adapting workflows to task difficulty. Its self-evolutionary agents can access the latest models in real time and automatically upgrade the backbone model. SEMAG sets new state-of-the-art Pass@1 accuracy across benchmarks. Using identical backbone models, SEMAG outperforms prior methods by 3.3% on CodeContests. When augmented with self-evolutionary model selection that automatically identifies optimal backbones, SEMAG reaches 52.6%, showcasing both framework effectiveness and adaptability to evolving LLM capabilities.
title SEMAG: Self-Evolutionary Multi-Agent Code Generation
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2603.15707