Enabling Agents to Communicate Entirely in Latent Space

Zhuoyun Du, Runze Wang, Huiyu Bai, Zouying Cao, Xiaoyong Zhu, Yu Cheng, Bo Zheng, Wei Chen, Haochao Ying

TL;DR

Interlat introduces a paradigm where LLM-based agents communicate directly via continuous latent states (hidden layers) rather than discrete natural language text. This "telepathic" approach preserves rich, parallel reasoning paths that text discards, works seamlessly across different model families, and can be aggressively compressed to achieve up to a 24× inference speedup while outperforming traditional Chain-of-Thought prompting on complex tasks.

What Problem Does This Paper Address?

Multi-agent LLM systems typically collaborate using natural language. While human-readable, text forces an LLM to compress its rich, high-dimensional internal states into a single linear sequence of discrete tokens (such as a Chain-of-Thought plan).

This downsampling process is inherently lossy—it discards alternative reasoning paths and introduces substantial computational redundancy because much of the generated text serves linguistic coherence rather than task-critical information. This language bottleneck can lead to ambiguity, coordination failures, and high communication latency in multi-agent workflows.

Methods

The authors propose Interlat (Inter-agent Latent Space Communication). Instead of decoding hidden states into text tokens to pass to another agent, the sender agent directly transmits the sequence of its last-layer hidden states ($H$) to the receiver agent.

Figure 1: A comparison of Interlat with language-space communication. In language space, an agent transmits a discrete token sequence [xi, xi+1, . . . , xi+j+1] (e.g., a CoT plan) to another. In Interlat, the model leverages its last hidden states as a representation of its internal “thought”, processed by a communication adapter, and then transmits them directly to the other agent, enabling communication entirely in latent space with higher expressive capacity.

Key components of the method include:

  • Communication Adapter: A lightweight multi-head attention (MHA) and projection layer that maps the sender's latents into the receiver's input embedding space.
  • Thought Separation Loss ($L_{sep}$): To ensure the receiver actually attends to and utilizes this latent information, the authors introduce an objective based on Jensen-Shannon divergence that forces the model to distinguish between task-matched latents and mismatched latents from other tasks.
  • Plan-Aligned Regulation ($L_{align}$): A regularization loss that prevents the model from exploiting the separation loss by shifting probability mass toward idiosyncratic tokens, keeping it anchored to the task utility.
  • Curriculum Learning: To stabilize the training process, a token-to-latent curriculum stochastically mixes early communication positions with standard token embeddings, gradually phasing in pure latent communication.
  • Latent Space Compression: To mitigate the latency of long latent trajectories, they train a separate reasoning model to autoregressively generate compact latent messages directly in the latent space (without decoding to tokens), guided by geometric alignment and uncertainty-weighted agreement losses.

Datasets

The framework was evaluated on two distinct benchmarks:

  • Alfworld: A text-based environment simulating embodied household tasks (e.g., "put two watches in the dresser") that requires long-horizon perception, planning, and sequential action execution.
  • MATH: A benchmark for multi-step symbolic mathematical reasoning, used to test the framework's generalization to non-interactive, highly complex reasoning across various difficulty levels (Levels 3 to 5).

Key Insights and Ideas

  • Preventing "Premature Collapse": On highly complex tasks (like MATH Level 5), forcing an LLM to linearize its thoughts into text acts as a restrictive bottleneck. Latent communication allows the model to maintain a superposition of parallel hypotheses in continuous space, enabling a broader search that text decoding blocks.
  • Cross-Family Telepathy: Remarkably, Interlat works even when the sender and receiver belong to entirely different model families (e.g., feeding Qwen-derived latents into a LLaMA actor). Because they operate on distinct latent manifolds, this success demonstrates that latent communication encodes model-agnostic, task-relevant semantics rather than just exploiting family-specific activation shortcuts.
  • Informed Exploration: Agents communicating via latents naturally exhibit more thorough exploratory behavior in interactive environments. This increased trajectory length correlates with higher success rates, meaning the agents are engaging in structured exploration rather than random wandering.

Key Results

  • Outperforming Baselines: Interlat consistently outperformed both fine-tuned Chain-of-Thought (CoT) and single-agent baselines on Alfworld across multiple backbones (Qwen2.5-7B/0.5B and LLaMA3.1-8B).
  • Hard Task Superiority: On the most challenging MATH Level 5 problems, Interlat inverted the typical trend where latent reasoning underperforms text, beating the strong CoT baseline (15.80% vs 15.05%).
  • Massive Latency Reduction: Through latent-space compression training, reasoning trajectories were compressed down to just 8 latent vectors. This achieved up to a 24× reduction in communication latency (dropping end-to-end message generation time from 9.19 seconds to 0.20 seconds) while maintaining competitive performance.
  • Structured Reorganization: PCA visualizations confirmed that the communication adapter successfully aligns and clusters the latent representations into clear, task-specific semantic regions.

Limitations and Future Work

  • The Closed-Source Barrier: Interlat fundamentally relies on accessing internal model representations (specifically last-layer hidden states). This makes it inapplicable to closed-source or API-only models like GPT-4 or Claude.
  • Loss of Human Interpretability: Trading language for latents means human operators can no longer read the agents' "thoughts" inline, which significantly complicates debugging, safety auditing, and alignment monitoring.
  • Topology Scaling: The study primarily focused on controlled 2-agent and 3-agent setups. Scaling entirely latent communication to larger, heterogeneous agent ecosystems with dynamic roles, tool use, and external memory remains an open challenge.

Summary updated

Abstract

While natural language is the de facto communication medium for LLM-based agents, it presents a fundamental constraint. The process of downsampling rich, internal latent states into discrete tokens inherently limits the depth and nuance of information that can be transmitted, thereby hindering collaborative problem-solving. Inspired by telepathy, which bypasses symbolic language in communication, we propose Interlat (Inter-agent Latent Space Communication), a paradigm that leverages the continuous last hidden states of an LLM as a representation of its thought for direct communication (termed latent communication). An additional learned compression process further compresses latent communication via latent space reasoning. Experiments demonstrate that Interlat outperforms both fine-tuned chain-of-thought (CoT) prompting and single-agent baselines, even across heterogeneous models, promoting more exploratory behavior and enabling genuine utilization of latent information. Further compression not only substantially accelerates inference by up to 24 times but also maintains competitive performance through an efficient information-preserving mechanism. We position this work as a feasibility study of entirely latent space inter-agent communication, and our results highlight its potential, offering valuable insights for future research. Our code is available at https://github.com/XiaoDu-flying/Interlat.
BibTeX
@inproceedings{du2026enabling,
  author = {Zhuoyun Du and Runze Wang and Huiyu Bai and Zouying Cao and Xiaoyong Zhu and Yu Cheng and Bo Zheng and Wei Chen and Haochao Ying},
  title = {{Enabling Agents to Communicate Entirely in Latent Space}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1248},
}
Figure