LatentMAS lets language model agents coordinate in latent space instead of long text traces, aiming for fewer tokens and faster multi-agent inference without extra training.
Overview
LatentMAS is a multi-agent reasoning framework that shifts collaboration from token-based messaging into a model’s latent space. Agents pass latent thoughts through shared working memory rather than lengthy textual reasoning chains.
The approach emphasizes training-free latent-space alignment, compatibility with Hugging Face models and optional vLLM backends, and support for sequential and hierarchical multi-agent setups. Published work reports lower token use and shorter wall-clock time compared with text-based multi-agent baselines on math, science, commonsense, and code benchmarks.
The open release includes code to reproduce LatentMAS, text-based multi-agent baselines, and single-agent experiments across datasets such as GSM8K, GPQA, ARC, MBPP+, HumanEval+, and MedQA. Optional vLLM integration can split generation and latent rollout across GPUs.
Community extensions branch into scientific modeling, kNN latent retrieval, hybrid LLM and non-LLM agents, and related research prototypes built on the same ideas.
Key features
- Latent-space agent communication
- Shared latent working memory
- Training-free alignment option
- Hugging Face model support
- Optional vLLM acceleration
- Sequential and hierarchical MAS modes
- Benchmark reproduction scripts
- Hybrid HF and vLLM pipeline
Use cases
- Multi-step math and science reasoning
- Code generation benchmarks
- Reducing token cost in agent teams
- Research on continuous latent reasoning