Dual-Cache Latent Space Communication between Heterogeneous Language Models
Jiyao Liu, Qi Zhang, Yaoyi Jia, Ziwen Kan, Song Wang
Key points
From the paper's conclusion- We introduce XKV, which lifts all three: learned-query attention pools both caches; self-attention over receiver-aligned layer tokens, with a learned layer map reconciling different depths, mixes the pooled summaries into a compact joint memory; and a shared position decoder lets every raw receiver cache position retrieve its own per-head-gated residual in the receiver's native KV geometry.
Abstract
Multi-agent LLM systems split work across models, so answering often requires knowledge that sits in another agent's context: a Sharer has encoded information that a Receiver needs to complete its task. They usually communicate by exchanging text, which puts autoregressive decoding on the critical path and reduces the exchange to a discrete message written without sight of the receiver's state. Recent latent protocols instead translate the sharer's key-value (KV) cache into the receiver's: C2C supports heterogeneous models but requires both to read the same input, while LCF-X removes this shared-context requirement through position-free sharer-cache pooling. Three restrictions remain: LCF-X compresses the sharer alone, supplies the same layer-local summary to every receiver position with no joint cross-layer memory to retrieve from, and assumes matched layer count and KV geometry. We introduce XKV, which lifts all three: learned-query attention pools both caches; self-attention over receiver-aligned layer tokens, with a learned layer map reconciling different depths, mixes the pooled summaries into a compact joint memory; and a shared position decoder lets every raw receiver cache position retrieve its own per-head-gated residual in the receiver's native KV geometry. Both models stay frozen and may differ in family, depth, KV-head count, head dimension, and tokenizer; only the translator is trained. Across 45 dataset-model-pair settings (six heterogeneous and three same-model ordered pairings, five datasets), XKV attains the highest macro score and best average rank, improving on LCF-X on every dataset (by 4.6 exact-match and 4.2 F1 points on ROPES) and surpassing text communication on four of the five, while training 76% fewer parameters and translating a cache pair 10.3x faster (5.8 vs. 59.9 ms); end to end, XKV is 26% faster than LCF-X and 6.8x faster than text communication.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Task-Oriented Key-Layer KV Communication for Efficient Latent Multi-Agent CollaborationarXiv · 2026
- Prefill-Free Cross-Family KV Cache Transfer for Heterogeneous Multi-Agent LLMsarXiv · 2026
- Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent SystemsarXiv · 2026
- LatComm: Reusable Context Compression for Latent Communication between Large Language ModelsarXiv · 2026
- XBridge: Entity-Grounded Latent Bridge for Heterogeneous LLM CommunicationarXiv · 2026
- Augment the Cache, Replace the Activation: A 2x2 Study of Internal-State SharingarXiv · 2026