Abstract
Multi-agent systems (MAS) extend large language models (LLMs) from independent single-model reasoning to coordinative system-level intelligence. While existing LLM agents depend on text-based mediation for reasoning and communication, we introduce LatentMAS, an end-to-end training-free framework that enables pure latent collaboration. By exchanging internal hidden representations and KV caches, LatentMAS achieves up to 14.6% higher accuracy than single-model baselines while providing 4x-4.3x faster end-to-end inference and reducing token usage by over 80%.
Introduction: The Text-Based Bottleneck
In traditional Multi-Agent Systems, agents communicate using natural language—a "text-based mediation" where one agent's output becomes the next agent's input. While intuitive, this approach has three major drawbacks:
- Information Bottleneck: Discrete tokens are a "lossy" representation of a model's complex internal reasoning.
- Computational Overhead: Generating long chains of text is slow and expensive, requiring a full pass through the model's vocabulary head for every token.
- Error Compounding: Small linguistic ambiguities in early stages can derail the entire multi-agent pipeline.
LatentMAS addresses these by skipping text entirely, letting agents "think" and "talk" using raw internal embeddings.
Methodology
LatentMAS introduces an end-to-end pipeline for pure latent collaboration that requires no additional training. Theoretical analysis establishes that latent thoughts are exponentially more expressive than discrete tokens, with a complexity advantage of $O(d_h / \log |V|)$. The core components include:
- Auto-regressive Latent Thoughts: Instead of decoding hidden states into tokens, an agent treats its last-layer hidden embeddings as the input for the next reasoning step.
- Input-Output Distribution Alignment ($W_a$): To prevent "representation drift" where high-level hidden states diverge from the input manifold, a linear alignment operator (calculated via ridge regression) maps these thoughts back into a valid input space.
- Latent Working Memory Transfer: The system shares Key-Value (KV) caches between agents. When an agent takes over, it inherits the entire computational context of the predecessor's reasoning, ensuring lossless communication.
Key Results
LatentMAS consistently outperformed both single-model and text-based MAS baselines across nine diverse benchmarks, including math (AIME, GSM8K), science (GPQA, MedQA), and coding (HumanEval+).
Performance and Accuracy
The framework achieved an average of 13.3% higher accuracy than single models and significantly outperformed text-based MAS (TextMAS).
Efficiency and Speed
By bypassing the expensive token decoding process for intermediate reasoning steps, LatentMAS provides massive speedups and token savings.
- Inference Speed: The system is 4.0x to 4.3x faster than traditional text-based approaches.
- Token Efficiency: It reduces system-wise token usage by 70.8% to 83.7%.
Conclusion
LatentMAS demonstrates that latent-space collaboration is a highly effective, training-free method for enhancing LLM multi-agent systems. By preserving the continuity and fidelity of internal representations, it achieves superior reasoning quality with substantial efficiency gains. Future work will focus on enabling collaboration between heterogeneous model architectures.
Summary updated