TL;DR
Current multi-LLM systems communicate through text, a slow and "lossy" process that discards rich internal information. This paper introduces Cache-to-Cache (C2C), a paradigm that allows models to communicate by directly sharing and fusing their internal KV-Caches. This high-bandwidth approach achieves up to 14.2% higher accuracy than individual models and delivers a 2.5× speedup over traditional text-based communication.
What Problem Does This Paper Address?
When we want two Large Language Models (LLMs) to collaborate, we typically use a "Text-to-Text" (T2T) interface: Model A generates a text response, and Model B reads that text as input. The authors argue this is fundamentally flawed for three reasons:
- Information Bottleneck: LLMs have high-dimensional internal representations. Forcing them to compress these into a linear string of text loses "rich semantic information."
- Ambiguity: Natural language is inherently vague. A model might fail to convey precise structural or contextual nuances through words alone.
- Latency: Text generation is sequential (token-by-token). Waiting for one model to finish "talking" before the next starts "thinking" creates a massive speed bottleneck.
The authors ask: Can LLMs communicate beyond text? They propose using the KV-Cache—the internal memory LLMs use to store context—as a direct medium for inter-model communication.
Methods
The core of the proposal is the C2C Fuser, a neural module designed to bridge the gap between two different LLMs (a "Sharer" and a "Receiver").
The process involves three main steps:
- Model Alignment: Since different models use different tokenizers and have different numbers of layers, C2C uses a "terminal alignment" strategy (matching layers from the output side backward) and a "maximal-coverage" token mapping to ensure the models are "looking" at the same things.
- The Fuser Architecture:
- Projection Module: A neural network projects the Sharer’s KV-Cache into the Receiver’s representation space.
- Dynamic Weighting: An input-aware layer reweights the information based on the specific query.
- Learnable Gate: A Gumbel-sigmoid gate decides, layer-by-layer, whether to inject the Sharer's context or rely solely on the Receiver's original cache.
- Training: The LLMs themselves remain "frozen" (no weights are changed). Only the small C2C fuser is trained using a standard next-token prediction loss, essentially teaching the Receiver how to "read" the Sharer's mind.
Datasets
The authors evaluated C2C across a wide variety of models (Qwen, Llama, Gemma) and tasks:
- Training: Primarily the OpenHermes-2.5 dataset (500k samples) and LongBench-E for long-context training.
- Evaluation Benchmarks:
- MMLU-Redux & C-Eval: General knowledge and multi-discipline reasoning.
- OpenBookQA & ARC-Challenge: Fact-based and scientific reasoning.
- LongBenchV1: Testing how the system scales with long sequences.
- GSM8K: Mathematical word problems.
Key Insights and Ideas
- KV-Cache is "Convertible": Through t-SNE visualizations, the authors show that while raw caches from different models live in different "neighborhoods" of mathematical space, a simple projection can successfully map one into the other.
- Semantic Enrichment: An "Oracle" experiment proved that you can improve a model's accuracy by enriching its cache with information from another model without increasing the number of tokens it has to process.
- Layer-Specific Benefits: Not all layers benefit from communication. The fuser's gating mechanism found that general-purpose tasks prefer broad activation, while specialized tasks (like math) benefit from a "sparser" selection of specific layers.
- Effective Rank Increase: By fusing caches, the "effective rank" (a measure of information richness) of the Receiver's KV-Cache increases, meaning it literally contains more useful semantic "dimensions" than it did before.
Key Results
- Accuracy Gains: C2C achieved 6.4–14.2% higher average accuracy than individual models.
- Outperforming Text: It beat the standard T2T communication paradigm by 3.1–5.4% in accuracy.
- Massive Speedup: Because C2C avoids the slow process of generating intermediate text, it delivered an average 2.5× speedup in latency. In some specific cases (like when the Sharer is very verbose), the speedup reached 14.41×.
- Robustness: The system works even when the Sharer is a "base" model that can't follow instructions well, as long as its internal semantic understanding is strong.
Limitations and Future Work
- The "Weak Sharer" Problem: If the Sharer model is significantly weaker or noisier than the Receiver, it can actually degrade performance—a limitation shared by text-based communication.
- Pairwise Scaling: Currently, C2C is designed for pairs of models. Scaling this to a "swarm" of $N$ models would require $O(N^2)$ fusers. The authors suggest a "unified latent space" approach in the appendix to bring this down to $O(N)$.
- Cross-Modal Potential: The authors suggest that this "cache-sharing" could eventually allow Vision-Language Models (VLMs) to communicate directly with robotic action models (VLAs) without needing a text intermediary.
- Privacy: While not fully explored, the authors note that sharing KV-Caches might be more private than sharing text, as it doesn't explicitly expose the "thought process" in human-readable form.
Summary updated