Assemble Your Crew: Automatic Multi-agent Communication Topology Design via Autoregressive Graph Generation

Shiyuan Li, Yixin Liu, Qingsong Wen, Chengqi Zhang, Shirui Pan

TL;DR

Instead of pruning pre-defined templates, ARG-DESIGNER builds multi-agent collaboration teams from scratch using autoregressive graph generation. By dynamically selecting agent roles and communication links based on a task query, it achieves state-of-the-art performance while using significantly fewer tokens and remaining flexible enough to incorporate new agent roles without retraining.

What Problem Does This Paper Address?

Large Language Model (LLM) agents are powerful, but complex tasks often require a "crew" of agents working together. The effectiveness of these Multi-Agent Systems (MAS) depends heavily on their collaboration topology—the map of who talks to whom.

Most existing research relies on a "template graph modification" paradigm. You start with a fixed, often over-engineered team (e.g., a Project Manager, a Coder, and a Tester) and use algorithms to prune unnecessary connections. This approach has two major flaws:

  1. Redundancy: It often keeps unnecessary agents or links, wasting computational tokens.
  2. Limited Extensibility: If you want to add a new type of expert (like a "Lawyer" or "Security Analyst"), you usually have to redefine the template and retrain the entire system.

The authors argue that building a team should be more like real-world recruiting: starting from a task description and adding exactly the right experts one by one.

Methods

The authors propose ARG-DESIGNER, which treats MAS design as a conditional autoregressive graph generation task.

The comparison of two paradigms: (a) template graph modification and (b) autoregressive graph generation.

The Architecture

The model uses a hierarchical architecture based on Gated Recurrent Units (GRUs) to generate the graph in steps:

  • Node Generation: The model predicts the next agent role to add. Crucially, it uses metric learning—representing roles as embeddings in a shared space. This allows the system to select from an "extensible role pool" and even recognize new roles added at inference time.
  • Edge Generation: Once a node is added, the model decides which existing agents it should receive information from, creating directed communication links.
  • Termination: The process continues until the model generates a special END token.

Curriculum Learning

To train a model that is both effective and efficient, the authors use a two-stage strategy:

  1. Stage 1 (Exploration): The model learns to build successful (but potentially complex) graphs from a rich dataset of diverse configurations.
  2. Stage 2 (Efficiency Fine-tuning): The model is fine-tuned on a dataset of "pruned" successful graphs, teaching it to achieve the same results with the minimum number of agents and links.
The pipeline of ARG-DESIGNER, including (a) MAS communication topology generation and (b) model training.

Datasets

The model was evaluated across six diverse benchmarks covering three main categories:

  • General Reasoning: MMLU.
  • Mathematical Reasoning: GSM8K, MultiArith, SVAMP, and AQuA.
  • Code Generation: HumanEval.

Training data was synthetically generated by pairing tasks with various graph configurations and keeping only those that successfully solved the problem.

Key Insights and Ideas

  • Generative vs. Subtractive: Building a graph from scratch (generative) is fundamentally more flexible than starting with a "complete" graph and removing pieces (subtractive). It avoids the "cold start" problem of needing to know the team size in advance.
  • The Power of Sparsity: The efficiency fine-tuning stage proved vital. It showed that MAS performance doesn't just come from more communication, but from better-targeted communication.
  • Zero-Shot Extensibility: Because the model uses role embeddings rather than a fixed classifier, you can drop a brand-new agent role (like a "Lawyer") into the pool, and the model can immediately figure out where that expert fits into a workflow based on the role's description.

Key Results

  • State-of-the-Art Performance: ARG-DESIGNER outperformed all baselines, including specialized learning-based models like G-Designer. It achieved an average score of 92.78% across benchmarks, compared to 90.04% for the next best competitor.
  • Token Efficiency: On the GSM8K math dataset, ARG-DESIGNER achieved top-tier accuracy while using 50% fewer tokens than G-Designer. This is a massive win for reducing API costs and latency.
  • Robustness: The system proved more resilient to "prompt injection" attacks (adversarial attempts to disrupt an agent) than fixed topologies, likely because its generated structures are more fault-tolerant.
The prompt token cost comparison.

Limitations and Future Work

While ARG-DESIGNER is a significant step forward, the authors and the architecture suggest a few areas for further exploration:

  • Node Ordering: Like many autoregressive graph models, the order in which nodes are generated can impact the final structure. Exploring different ordering strategies could further optimize the results.
  • Dynamic Execution: Currently, the topology is designed before the agents start working. A future iteration could allow the graph to evolve during the task execution if agents realize they need a different expert midway through.
  • LLM Sensitivity: The performance of the designer is tied to the underlying LLM's ability to understand task requirements; as LLMs improve, the "designer" will likely become even more sophisticated.

Summary updated

BibTeX
@inproceedings{li2026assemble,
  author = {Shiyuan Li and Yixin Liu and Qingsong Wen and Chengqi Zhang and Shirui Pan},
  title = {{Assemble Your Crew: Automatic Multi-agent Communication Topology Design via Autoregressive Graph Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i28.39481},
}
Figure