RecursiveLink: Residual Module for RecursiveMAS
- 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 denote a Transformer agent’s last-layer hidden state, and a sequence of latent state vectors across steps.
- Inner RecursiveLink :
where , ; is GELU. This architecture maintains and refines an agent’s internal latent semantics through direct residual connections.
- Outer RecursiveLink :
Here, 0 projects agent 1’s hidden state into the input-embedding space of agent 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 3, after processing tokens up to time 4, the next input embedding is produced as
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 6 produces 7 latent vectors 8, transfer to agent 9 is mediated by
0
The resulting embedding block is concatenated to 1’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 2 agents and 3 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
4
for each agent, regressing latent thoughts to the ground-truth embedding.
- Outer-loop (System-level): The entire system is unrolled for 5 recursion rounds, yielding final prediction 6. The loss is
7
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 8, hidden dimension 9, prompt length 0, latent steps 1, and agent count 2:
- Text-based Recursive MAS:
3
- RecursiveMAS with RecursiveLink:
4
Because 5, per-step computational cost is reduced by approximately a factor 6.
Gradient stability is mathematically justified: with standard initialization and confident token distributions (entropy 7), the norm of the Jacobian for text-based pathways
8
vanishes, while the residual pathway maintains
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 0, demonstrating the following end-to-end advantages over text-based baselines:
| Recursion Round 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.