Papers
Topics
Authors
Recent
Search
2000 character limit reached

RecursiveLink: Residual Module for RecursiveMAS

Updated 3 July 2026
  • RecursiveLink is a lightweight two-layer residual projection module that supports in-distribution latent thought generation and cross-agent latent state transfer in RecursiveMAS.
  • It integrates inner and outer link operations to refine hidden states and project latent information across heterogeneous Transformer-based agents without text decoding.
  • Empirical benchmarks show notable gains in accuracy, speed, and token efficiency, underscoring its value for iterative, multi-agent collaboration.

RecursiveLink is a lightweight two-layer residual projection module enabling in-distribution latent thought generation and cross-agent latent state transfer in recursive multi-agent systems (RecursiveMAS). It is engineered to align latent distributions both within and among heterogeneous Transformer-based agents while eschewing intermediate text decoding and encoding. RecursiveLink plays a central role in the efficient, stable, and accurate computation underlying recursive collaboration between agents operating entirely in latent space (Yang et al., 28 Apr 2026).

1. Formalism and Architecture

Each agent in RecursiveMAS incorporates two distinct RecursiveLink modules: an “inner link” dedicated to auto-regressive latent thought generation, and an “outer link” for transferring latent state information to other agents. Let hRdhh \in \mathbb{R}^{d_h} denote a Transformer agent’s last-layer hidden state, and HRm×dhH \in \mathbb{R}^{m \times d_h} a sequence of latent state vectors across mm steps.

  • Inner RecursiveLink Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}:

Rin(h)=h+W2σ(W1h)\mathcal R_{\rm in}(h) = h + W_2\,\sigma(W_1 h)

where W1Rdmid×dhW_1 \in \mathbb{R}^{d_{\text{mid}} \times d_h}, W2Rdh×dmidW_2 \in \mathbb{R}^{d_h \times d_{\text{mid}}}; σ\sigma is GELU. This architecture maintains and refines an agent’s internal latent semantics through direct residual connections.

  • Outer RecursiveLink Rout:RdhiRdhj\mathcal{R}_{\text{out}}: \mathbb{R}^{d_{h_i}} \rightarrow \mathbb{R}^{d_{h_j}}:

Rout(h)=W3h+W2σ(W1h)\mathcal R_{\rm out}(h) = W_3 h + W_2\,\sigma(W_1 h)

Here, HRm×dhH \in \mathbb{R}^{m \times d_h}0 projects agent HRm×dhH \in \mathbb{R}^{m \times d_h}1’s hidden state into the input-embedding space of agent HRm×dhH \in \mathbb{R}^{m \times d_h}2.

This arrangement enables unified latent-space communication, preserving agent-specific features and facilitating heterogeneous agent collaboration without text conversion.

2. Latent-space Generation and Agent Coordination

RecursiveLink enables two core operations:

  • In-distribution Latent Thoughts Generation: Within an agent HRm×dhH \in \mathbb{R}^{m \times d_h}3, after processing tokens up to time HRm×dhH \in \mathbb{R}^{m \times d_h}4, the next input embedding is produced as

HRm×dhH \in \mathbb{R}^{m \times d_h}5

This process is entirely conducted in continuous latent space, where the agent generates subsequent hidden states auto-regressively.

  • Cross-agent Latent State Transfer: After agent HRm×dhH \in \mathbb{R}^{m \times d_h}6 produces HRm×dhH \in \mathbb{R}^{m \times d_h}7 latent vectors HRm×dhH \in \mathbb{R}^{m \times d_h}8, transfer to agent HRm×dhH \in \mathbb{R}^{m \times d_h}9 is mediated by

mm0

The resulting embedding block is concatenated to mm1’s prompt, eliminating the need for expensive and information-destroying text decoding/re-encoding.

A plausible implication is that this methodology fosters both efficiency and fidelity in multi-agent pipelines where heterogeneous architectures and tasks are present.

3. Integration with Recursive Multi-Agent Optimization

RecursiveLink is deeply integrated into the recursive loop architecture of RecursiveMAS. The system functions as a single looped transformer chain across mm2 agents and mm3 recursion rounds. Each agent sequentially performs in-distribution latent thought generation and receives cross-agent state transfers, updating prompt sequences accordingly.

Training follows a nested inner- and outer-loop structure:

  • Inner-loop (Agent-level): Minimizes

mm4

for each agent, regressing latent thoughts to the ground-truth embedding.

  • Outer-loop (System-level): The entire system is unrolled for mm5 recursion rounds, yielding final prediction mm6. The loss is

mm7

with shared credit assignment via backpropagation through all inner and outer RecursiveLinks.

This structure supports global co-optimization across recursion and agents, assigning credit for both internal reasoning and cross-agent communication.

4. Computational Efficiency and Gradient Stability

The module architecture yields notable runtime and optimization benefits. For a vocabulary size mm8, hidden dimension mm9, prompt length Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}0, latent steps Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}1, and agent count Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}2:

  • Text-based Recursive MAS:

Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}3

  • RecursiveMAS with RecursiveLink:

Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}4

Because Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}5, per-step computational cost is reduced by approximately a factor Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}6.

Gradient stability is mathematically justified: with standard initialization and confident token distributions (entropy Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}7), the norm of the Jacobian for text-based pathways

Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}8

vanishes, while the residual pathway maintains

Rin:RdhRdh\mathcal{R}_{\text{in}}: \mathbb{R}^{d_h} \rightarrow \mathbb{R}^{d_h}9

ensuring stable gradients through recursion.

5. Empirical Performance and Practical Gains

RecursiveLink delivers substantial improvements on empirical benchmarks. Across nine tasks spanning mathematics, science, medicine, search, and code generation, RecursiveMAS with RecursiveLink was evaluated at recursion depths Rin(h)=h+W2σ(W1h)\mathcal R_{\rm in}(h) = h + W_2\,\sigma(W_1 h)0, demonstrating the following end-to-end advantages over text-based baselines:

Recursion Round Rin(h)=h+W2σ(W1h)\mathcal R_{\rm in}(h) = h + W_2\,\sigma(W_1 h)1 Accuracy Gain Speedup Factor Token Reduction
1 +3.4% ×1.2 –34.6%
2 +6.0% ×1.9 –65.5%
3 +7.2% ×2.4 –75.6%

The average gains are 8.3% in accuracy, 1.2×–2.4× in end-to-end inference speedup, and 34.6%–75.6% reduction in token usage relative to the text-based recursive multi-agent system benchmark (Yang et al., 28 Apr 2026).

6. Implications and Context in Multi-Agent Systems

RecursiveLink’s latent-space, residual design preserves information across agents and recursion rounds, in contrast with text-mediated communciation approaches that incur high overhead and information loss. A plausible implication is an improved capacity for iterative, distributed reasoning and task-solving, especially in domains requiring complex collaboration or cross-domain semantics between heterogeneous agents. RecursiveLink integrates seamlessly with unified inner-outer loop co-optimization and achieves stable, end-to-end differentiability—a critical feature for scaling multi-agent deep learning systems efficiently.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

Whiteboard

Follow Topic

Get notified by email when new papers are published related to RecursiveLink.