Self-Evolving Multi-Agent Collaboration Networks for Software Development

Yue Hu, Yuzhu Cai, Yaxin Du, Xinyu Zhu, Xiangrui Liu, Zijie Yu, Yuchen Hou, Shuo Tang, Siheng Chen

Introduction

Large Language Models (LLMs) have shown remarkable proficiency in writing isolated functions, but building entire software applications remains a significant hurdle. To bridge this gap, researchers have increasingly turned to Multi-Agent Collaboration (MAC) systems—frameworks where multiple LLM "agents" take on distinct roles like planner, coder, and reviewer.

However, current MAC systems rely heavily on rigid, human-designed workflows that struggle to adapt to the diverse demands of real-world software development. To address this, the authors introduce EvoMAC, a novel multi-agent system that dynamically updates its own workflow and agent prompts during test time using a "textual backpropagation" method. Alongside EvoMAC, they release rSDE-Bench, a challenging new benchmark for complex software generation featuring automated, requirement-aware evaluation.

The Problem: Rigid Workflows and Inadequate Benchmarks

While existing MAC systems (like ChatDev or MetaGPT) organize LLMs into functional pipelines, these hardcoded workflows often fail when faced with the specific, nuanced needs of a new task.

Furthermore, the field lacks robust benchmarks to test whole-software generation. Existing benchmarks either evaluate tiny, isolated snippets (like HumanEval) or rely on fuzzy, indirect metrics (like code similarity) that fail to prove whether the generated software actually works as intended.

The Solution: EvoMAC and Textual Backpropagation

To solve the rigidity of multi-agent systems, EvoMAC borrows concepts from traditional neural network training but applies them to text and agents at test time. Instead of updating numerical weights, EvoMAC updates the network's architecture and agent instructions based on environmental feedback.

Overview of the EvoMAC self-evolving paradigm, illustrating the forward pass through the MAC network and the textual backpropagation loop.

EvoMAC operates through three main components:

  1. Coding Team (Feed-Forward): A dynamically assembled team of LLM agents that breaks down the task, delegates responsibilities, and generates the software code.
  2. Testing Team & Environment (Loss Computation): A separate team of agents writes unit tests based on the initial software requirements. The generated code is run against these tests in a compiler. The resulting execution logs (passes, fails, and errors) serve as objective environmental feedback.
  3. Updating Team (Textual Backpropagation): An updating agent analyzes the execution logs to determine which coding agent made a mistake (acting as a textual gradient). It then updates the Coding Team by tweaking the faulty agent's prompt, adding new agents for missed subtasks, or removing agents whose jobs are complete.

This cycle repeats, allowing the agent network to self-evolve and iteratively fix its own architecture and code until the software passes all tests.

A detailed workflow example showing how EvoMAC's Coding, Testing, and Updating teams collaborate to identify and fix a bug in a Sokoban game.

Datasets: Introducing rSDE-Bench

To properly evaluate EvoMAC, the authors developed rSDE-Bench, a requirement-oriented software development benchmark containing 53 complex coding tasks and 616 specific requirements across two domains: Websites and Games. It includes both Basic and Advanced difficulty levels. Crucially, every requirement is paired with a black-box unit test, allowing for fully automated, accurate evaluation.

The system was also tested on HumanEval, a standard benchmark of 164 Python function completion problems, to verify its basic coding capabilities.

Key Insights and Results

  • Objective feedback beats LLM self-critique: Many recent systems ask an LLM to critique its own output. The authors found this often leads to bias and hallucinations, causing the system to confidently evolve in the wrong direction. Using a compiler and unit tests provides grounded, objective truth that keeps the agents on track.
  • Dynamic workflows are a game-changer: Letting the system add or remove agents on the fly based on specific task failures is significantly more effective than forcing every task through the same static pipeline.
  • Automated evaluation is highly reliable: By pairing specific requirements with black-box test cases, the automated evaluation in rSDE-Bench achieved a 99.22% correlation with human expert evaluators. This proves that expensive human review is not strictly necessary to accurately judge complex code generation.
  • Massive gains over single agents: Powered by GPT-4o-Mini, EvoMAC outperformed the base GPT-4o-Mini model by 26.48% on Website Basic tasks and 34.78% on Game Basic tasks in rSDE-Bench.
  • Beating SOTA Multi-Agent Systems: EvoMAC outperformed existing multi-agent frameworks (MetaGPT, AutoGen, MapCoder, Agentverse, ChatDev) by over 20% across rSDE-Bench tasks.
  • Strong function-level performance: On the standard HumanEval benchmark, EvoMAC achieved an impressive 94.51% pass rate, compared to 88.41% for the base model.

Limitations and Future Work

While EvoMAC shows massive improvements, the authors noted an "Error Complexity Plateau." Modular errors (like website page display issues) are fixed quickly during evolution, but complex, interconnected logic errors (like game state transitions) are much harder for the agents to resolve, causing performance to plateau after a few iterations on highly complex tasks.

In future work, the authors plan to introduce a reward model to further enhance the self-evolving paradigm's ability to learn from feedback. They also intend to expand rSDE-Bench to include a wider variety of software types beyond games and websites.

Summary updated

BibTeX
@inproceedings{hu2025self,
  author = {Yue Hu and Yuzhu Cai and Yaxin Du and Xinyu Zhu and Xiangrui Liu and Zijie Yu and Yuchen Hou and Shuo Tang and Siheng Chen},
  title = {{Self-Evolving Multi-Agent Collaboration Networks for Software Development}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=4R71pdPBZp},
}
Figure