Recursive Multi-Agent Systems

Jiaru Zou, Rui Pan, Ruizhong Qiu, Pan Lu, Shizhe Diao, Jindong Jiang, Hanghang Tong, Tong Zhang, Markus J. Buehler, Jingrui He, James Zou

TL;DR

RecursiveMAS is a novel framework that scales multi-agent language model systems by shifting agent collaboration entirely into a continuous, recursive latent space loop. By replacing slow, token-heavy textual communication with a lightweight RecursiveLink module, it achieves an average 8.3% accuracy boost across diverse reasoning benchmarks while delivering up to a 2.4× inference speedup and a 75.6% reduction in token usage.

What Problem Does This Paper Address?

While multi-agent systems (MAS) have emerged as a powerful way to scale LLM performance by combining specialized capabilities (e.g., planners, critics, solvers), they face severe operational bottlenecks. Traditional MAS rely on text-mediated communication: one agent generates a full text response, which the next agent must decode, read, and process.

This introduces massive latency, inflates token costs, and creates a fundamental optimization bottleneck. Because text generation involves discrete token selection, it is non-differentiable. This makes it incredibly difficult to co-optimize the entire multi-agent system using gradient-based methods, often leading to gradient vanishing across multi-round interactions. RecursiveMAS addresses this by asking: Can we scale agent collaboration through recursion directly within a unified latent space?

Methods

RecursiveMAS casts the entire multi-agent system as a continuous, looped recursive computation trace. Instead of passing text, agents pass hidden representations (latent thoughts) through a lightweight module called RecursiveLink:

  • Inner RecursiveLink: A two-layer residual projection module within each agent that manages "dense-to-shallow" transitions, feeding an agent's last-layer hidden states back into its own input space for iterative auto-regressive latent thought generation.
  • Outer RecursiveLink: A module that handles "cross-model" transitions, mapping hidden dimensions across heterogeneous agents (e.g., bridging a Qwen model to a Llama model) so they can seamlessly condition on each other's latent states.

To train this architecture without updating the massive underlying parameters of the frozen LLMs, the authors propose a two-stage Inner-Outer Loop Training Paradigm:

  1. Inner-Loop (Model-Level): Warm-starts individual agents to generate stable latent thoughts by aligning their hidden outputs with their standard input embedding space using a cosine similarity regression loss.
  2. Outer-Loop (System-Level): Unrolls the multi-agent loop for $n$ forward rounds. Gradients from the final textual cross-entropy loss are backpropagated through the entire recursive trace, optimizing the outer links based on their global contribution to the final answer.

Datasets

The framework was evaluated across 9 diverse, reasoning-heavy benchmarks:

  • Mathematical Reasoning: MATH500, AIME2025, AIME2026
  • Scientific & Medical Tasks: GPQA-Diamond, MedQA
  • Code Generation: LiveCodeBench-v6, MBPP Plus
  • Search-based QA: HotpotQA, Bamboogle

Training data was curated by rewriting samples from open datasets like s1K, m1k, OpenCodeReasoning, and ARPO-SFT into role-specific targets matching the multi-agent topologies.

Key Insights and Ideas

  • Bypassing the Vocabulary Space: Traditional text-based communication incurs an expensive per-step decoding cost of $\mathcal{O}(m|V|d_h)$, where $|V|$ is the vocabulary size. RecursiveMAS replaces this with a latent space transformation costing only $\mathcal{O}(md_h^2)$. Since $d_h \ll |V|$, this yields massive computational savings.
  • Mathematical Proof of Gradient Stability: The authors prove theoretically (Theorem 4.1) that text-based recursive training inherently suffers from gradient vanishing (gradient norm close to 0) when tokens are highly confident. Conversely, the continuous residual connections in RecursiveLink maintain stable, near-constant gradients (norm close to 1), making whole-system co-optimization mathematically viable.
  • Structure-Agnostic Flexibility: The framework seamlessly adapts to multiple common multi-agent collaboration patterns, including Sequential-Style (Planner-Critic-Solver), Mixture-Style (Domain Specialists), Distillation-Style (Expert-Learner), and Deliberation-Style (Reflector-Tool Caller).
RecursiveMAS demonstrates robust generalization and performance scaling across diverse multi-agent collaboration styles.

Key Results

  • Performance Scaling: As recursion depth ($r$) increases, RecursiveMAS shows a clean upward scaling trend in accuracy, outperforming text-based multi-agent baselines by an average of 8.3% at $r=3$.
  • Inference Acceleration: By avoiding intermediate text generation, the framework achieves a 1.2× to 2.4× end-to-end inference speedup.
  • Token Efficiency: Token overhead is drastically reduced, saving between 34.6% (at $r=1$) and 75.6% (at $r=3$) of total tokens compared to text-based alternatives.
  • Resource Efficiency: Compared to standard tuning methods like LoRA or Full-SFT on the same multi-agent tasks, RecursiveMAS requires the lowest peak GPU memory (15.29 GB) and the fewest trainable parameters (13.12M), while delivering the highest average accuracy (74.9%).

Limitations and Future Work

Not explicitly discussed in the paper.

Summary updated

BibTeX
@inproceedings{zou2026recursive,
  author = {Jiaru Zou and Rui Pan and Ruizhong Qiu and Pan Lu and Shizhe Diao and Jindong Jiang and Hanghang Tong and Tong Zhang and Markus J. Buehler and Jingrui He and James Zou},
  title = {{Recursive Multi-Agent Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ML0KFwGcPG},
}
Figure