Scaling Large-Language-Model-based Multi-Agent Collaboration

Chen Qian, Zihao Xie, Yifei Wang, Wei Liu, Yufan Dang, Zhuoyun Du, Weize Chen, Cheng Yang, Zhiyuan Liu, Maosong Sun · DOI

TL;DR

This paper introduces MACNET, a novel framework for scaling multi-agent collaboration using directed acyclic graphs. They demonstrate that increasing the number of agents leads to a "collaborative scaling law" with logistic growth in performance, and that irregular network topologies can outperform regular ones, suggesting a new avenue for enhancing LLM capabilities beyond individual model scaling.

What Problem Does This Paper Address?

While large language models (LLMs) have shown remarkable progress, they often struggle with complex reasoning that extends beyond textual boundaries. Multi-agent collaboration has emerged as a promising solution, where diverse agents work together to achieve better outcomes than any single agent. However, existing research has largely focused on small numbers of agents (typically fewer than ten), leaving a significant gap in understanding how performance scales with a larger number of collaborating agents. This paper aims to bridge this gap by investigating the "collaborative scaling law" – how performance changes as the number of agents increases – and proposing a scalable architecture to facilitate this.

Methods

The core of the proposed solution is the Multi-Agent Collaboration Network (MACNET). This framework structures agents into a directed acyclic graph (DAG), where each node represents an "actor" agent responsible for generating artifacts, and each edge represents a "critic" agent that provides directional instructions. This setup creates a functional bipartition of labor and prevents information backflow.

For interactive reasoning, MACNET employs a topological ordering of the agents. This ensures that agents process information in a specific sequence, with each round involving two adjacent agents refining a previous artifact. Crucially, only the refined artifact, not the entire dialogue history, is propagated, which helps prevent context explosion and enhances scalability. The paper also introduces a memory control mechanism that distinguishes between short-term (working memory within an interaction) and long-term memory (retaining only the final artifact). This is vital for managing context and preventing performance degradation in large networks.

Datasets

The paper evaluates MACNET on several publicly available benchmarks:

  • MMLU (Massive Multitask Language Understanding): Assessed for general world knowledge and logical inference capabilities using accuracy.
  • HumanEval: Used for function-level code generation, evaluated by pass@k.
  • SRDD (Software Requirements Dataset): Evaluated on repository-level software development tasks using metrics like completeness, executability, and consistency.
  • CommonGen-Hard: Assessed for coherent sentence generation with discrete concepts, using a comprehensive metric including grammar, fluency, and logic.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Collaborative Scaling Law: Performance doesn't just increase linearly with more agents; it follows a logistic growth pattern, similar to neural scaling laws but occurring much earlier. This suggests that agent collaboration can be a "shortcut" to enhanced intelligence without extensive retraining.
  • Irregular Topologies Shine: Counterintuitively, network topologies that are less structured (e.g., random, mesh) often outperform more regular ones (e.g., chain, tree). This might be due to better exploration of diverse aspects and avoiding information overload.
  • Small-World Properties Matter: Topologies exhibiting small-world characteristics (dense local clustering with short global paths) show superior performance, likely by facilitating efficient information flow and discovery.
  • Divergence Over Convergence: Topologies that favor divergence (more child nodes than parent nodes) generally outperform convergent ones. This allows for smoother artifact propagation and refinement, whereas aggregation at convergent nodes can be challenging.
  • Emergent Abilities at Smaller Scales: Collaborative emergence happens at significantly smaller scales (around 100 agents) compared to neural emergence (billions of parameters), making it a more accessible path to advanced AI capabilities.

Key Results

  • MACNET consistently outperforms baseline methods across various datasets and topologies.
  • The system successfully supports collaboration among over a thousand agents.
  • Irregular topologies (e.g., MACNET-RANDOM, MACNET-MESH) generally achieve higher quality artifacts compared to regular ones (e.g., MACNET-CHAIN, MACNET-TREE).
  • The "collaborative scaling law" shows a logistic growth in performance as the number of agents increases, with collaborative emergence observed around 100 agents.
  • For instance, on the SRDD dataset, MACNET-CHAIN achieved an accuracy of 0.8056, outperforming other baselines. On CommonGen, MACNET-STAR reached 0.7382.

Limitations and Future Work

  • Scaling Horizon: While MACNET scales to over a thousand agents, the paper acknowledges that there are limits to this scaling. Future work aims to explore these limits and understand the optimal balance of agent numbers and network structure.
  • Extrapolating Scaling: The authors aim to extrapolate traditional scaling from training to inference, reducing the need for resource-intensive retraining by leveraging inference-time procedural thinking.
  • Topology Optimization: The paper suggests that finding optimal topologies requires an empirical search strategy, balancing network scale and clustering coefficients. Future work could focus on automated methods for discovering these optimal structures.
  • Generalizability: While MACNET shows promise, further research is needed to fully understand how to generalize these findings across a wider range of tasks and domains.

Summary updated

BibTeX
@inproceedings{qian2025scaling,
  author = {Chen Qian and Zihao Xie and Yifei Wang and Wei Liu and Yufan Dang and Zhuoyun Du and Weize Chen and Cheng Yang and Zhiyuan Liu and Maosong Sun},
  title = {{Scaling Large-Language-Model-based Multi-Agent Collaboration}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=K3n5jPkrU6},
}
Figure