NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AMAT: Automated Multi-Agent Topology Design via Reinforcement Learning

Shijie Zheng, Zhiqiang Pu, Hao Ma, Tianyi Hu, Xiaolin Ai, Yi PanCOLM 2026

TL;DR

AMAT (Automated Multi-Agent Topology Design) is a reinforcement learning framework that automates the creation of optimal collaboration structures for LLM-based multi-agent systems. By shifting from expensive, one-off online searches to a persistent, learned policy, AMAT achieves state-of-the-art performance while being up to 3.8x faster at inference than existing automated methods.

What Problem Does This Paper Address?

Large Language Model (LLM) multi-agent systems (MAS) are powerful, but their "topology"—the specific way agents are connected and the order in which they communicate—is notoriously hard to design. Currently, researchers either hand-craft these structures (which is labor-intensive and often sub-optimal) or use automated heuristic searches like Monte Carlo Tree Search (MCTS).

However, existing automated search methods suffer from two major flaws:

  1. Ephemeral Experience: The knowledge gained during a search for one problem doesn't transfer. If you give the system a new problem, it has to start the expensive search process all over again.
  2. Value-Agnostic Optimization: Most search methods focus purely on accuracy, often resulting in "over-engineered" architectures that are slow and expensive to run. They lack a global "value signal" to balance performance against computational cost.

Methods

AMAT recasts the design of multi-agent systems as an offline Meta-Policy Learning problem. Instead of searching for a topology for every new task, it trains a neural network to generate the best topology.

Key technical components include:

  • Constrained Markov Decision Process (CMDP): The authors model the step-by-step construction of a Directed Acyclic Graph (DAG)—where nodes are agents and edges are data flows—as a reinforcement learning task.
  • Self-Bootstrapping RL: During training, the system uses MCTS as a "policy improvement operator" to explore the vast space of possible topologies. The high-quality structures found by MCTS are then distilled into a Graph Transformer policy-value network.
  • Dual-Buffer Experience Replay: To prevent the model from forgetting successful designs, AMAT uses two buffers: a "Recent Buffer" for current exploration and an "Expert Buffer" to permanently store high-performing topologies.
  • Multi-Objective Reward: The reward function doesn't just look at task success; it penalizes token consumption, latency, and structural redundancy, pushing the model toward the Pareto frontier of efficiency and accuracy.
  • Search-Free Inference: This is the "killer feature." Once trained, the MCTS is dropped. The learned policy can generate an optimal topology in a single forward pass, drastically reducing test-time latency.
Figure 1: The overall framework of AMAT.

Datasets

The authors evaluated AMAT across five authoritative benchmarks in three domains:

  • Code Generation: HumanEval and MBPP.
  • Mathematical Reasoning: GSM8K and MATH (specifically focusing on difficult Level-5 problems).
  • Question Answering: HotpotQA.

They used a standard 1:4 train-to-test split to ensure the model was learning generalizable design principles rather than just memorizing specific solutions.

Key Insights and Ideas

  • Amortizing Search: The core "aha" moment is that topology design knowledge is reusable. By internalizing search trajectories into neural weights, the system transforms a slow search process into a fast generation process.
  • Emergent Design Patterns: The model discovers domain-specific "motifs." For code generation, it tends to build iterative self-reflection loops. For question answering, it favors parallel generation followed by a "voter" node to reach consensus.
  • Cross-Task Generalization: Remarkably, a policy trained on one dataset (like GSM8K) can be applied to a different one (like MATH) without any fine-tuning and still outperform specialized search-based baselines. This suggests the model is learning fundamental "collaboration primitives."

Key Results

AMAT consistently outperformed both handcrafted and automated baselines:

  • Superior Accuracy: It achieved an average score of 80.50% across all benchmarks, outperforming the strongest automated baselines, MaAS (77.73%) and AFlow (76.86%). The gains were most significant on the difficult MATH benchmark (+7.28% over MaAS).
  • Massive Speedups: On the MATH benchmark, AMAT completed inference in just 6 minutes, compared to 19 minutes for MaAS and 23 minutes for AFlow (a 3.2x–3.8x speedup).
  • Cost Efficiency: The training API cost for AMAT was only $2.65, a fraction of AFlow’s $22.50, thanks to its more efficient exploration and distillation process.
Table 1: Performance comparison across five benchmarks using GPT-4o-mini-0718. We re- port Pass@1 (%) for code generation tasks (HumanEval, MBPP), Accuracy (%) for mathemat- ical reasoning tasks (GSM8K, MATH), and F1 score (%) for question answering (HotpotQA). The best results are in bold and the second-best results are underlined. For AMAT, addi- tional run-level statistics, including standard deviation, standard error, and 95% confidence intervals, are reported in Appendix E.

Limitations and Future Work

  • Fixed Operator Library: AMAT currently selects from a predefined library of agent roles (e.g., Generator, Voter, Reflector). Future work could involve having the RL agent design the internal prompts or "personas" of these agents as well.
  • DAG Constraints: The current framework is limited to Directed Acyclic Graphs. While this covers most common MAS patterns, it doesn't yet support open-ended cyclic debates or complex persistent memory states.
  • Search Space Scale: The experiments were constrained to topologies with at most 6 nodes. Scaling this to much larger "swarms" of agents remains an open challenge.

Summary updated

BibTeX
@inproceedings{zheng2026amat,
  author = {Shijie Zheng and Zhiqiang Pu and Hao Ma and Tianyi Hu and Xiaolin Ai and Yi Pan},
  title = {{AMAT: Automated Multi-Agent Topology Design via Reinforcement Learning}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=NwUWyiJZ3M},
}
Figure