Abstract
Multi-LLM systems harness the complementary strengths of diverse Large Language Models, achieving performance and efficiency gains unattainable by a single model. In existing designs, LLMs communicate through text, forcing internal representations to be transformed into output token sequences. This process both loses rich semantic information and incurs token-by-token generation latency. Motivated by these limitations, we ask: Can LLMs communicate beyond text? Oracle experiments show that enriching the KV-Cache semantics can improve response quality without increasing cache size, supporting KV-Cache as an effective medium for inter-model communication. Thus, we propose Cache-to-Cache (C2C), a new paradigm for direct semantic communication between LLMs. C2C uses a neural network to project and fuse the source model's KV-cache with that of the target model to enable direct semantic transfer. A learnable gating mechanism selects the target layers that benefit from cache communication. Compared with text communication, C2C utilizes the deep, specialized semantics from both models, while avoiding explicit intermediate text generation. Experiments show that C2C achieves 8.5-10.5% higher average accuracy than individual models. It further outperforms the text communication paradigm by approximately 3.0-5.0%, while delivering an average 2.0x speedup in latency.
Introduction
When multiple Large Language Models (LLMs) collaborate, they typically use a Text-to-Text (T2T) interface. One model generates a text summary or reasoning chain, and the next model reads it. However, this traditional approach creates three major bottlenecks: information loss, semantic ambiguity, and high latency.
High-dimensional internal representations are compressed into linear text strings, losing nuanced semantic "signals" that the model's hidden layers originally captured. Furthermore, natural language is inherently vague; a specific technical term or structural marker, such as an HTML tag, might be misinterpreted by the receiving model. Finally, T2T requires sequential, token-by-token decoding, adding significant time to the total inference process.
The Cache-to-Cache (C2C) Paradigm
To address these challenges, we introduce the Cache-to-Cache (C2C) framework. C2C treats the KV-Cache (the memory of previous tokens' keys and values) as the primary medium of communication. Instead of generating text, a "Sharer" model passes its KV-cache to a "Receiver" model through a specialized Cache Fuser.
Architecture and Alignment
The C2C fuser consists of three main components:
- Projection Module: A neural network that maps the Sharer's internal representation space into the Receiver's space, allowing models from different families (e.g., Qwen and Llama) to communicate.
- Dynamic Weighting Module: An input-aware layer that decides how much weight to give to the Sharer’s information for each specific query.
- Learnable Gate: A binary-like switch that determines which specific layers of the Receiver should receive the fused information. Deeper layers typically benefit more from this semantic enrichment.
To ensure compatibility across different model families, we implement Token Alignment (re-encoding strings to match tokenizers) and Terminal Layer Alignment. During training, the LLMs themselves remain frozen; only the small C2C fuser modules are trained using standard next-token prediction loss.
Experimental Evaluation
We evaluated C2C using a robust mix of datasets, including OpenHermes-2.5 for training and benchmarks like OpenBookQA, MMLU-Redux, and GSM8K for reasoning and mathematics. For long-context performance, we utilized LongBench.
Key Results
- Accuracy Gains: C2C outperformed individual models by 6.4% to 14.2% on average across various benchmarks.
- Superiority to Text: Compared to the T2T paradigm, C2C was 3.1% to 5.4% more accurate, demonstrating that direct semantic transfer is more effective than text summaries.
- Massive Speedup: By avoiding the slow process of generating intermediate text tokens, C2C achieved an average 2.5× speedup in latency, with some cases reaching up to 14.4×.
- Semantic Enrichment: Mathematical analysis confirmed that the "effective rank" of the Receiver's KV-cache increased significantly after fusion, proving that richer semantics were successfully injected.
Discussion and Future Work
While C2C offers significant improvements, it faces the "Weak Sharer" problem, where a less capable model might provide noisy information to a stronger one. Additionally, scaling to a large community of models currently requires $O(N^2)$ pairwise fusers.
Future work will focus on extending C2C to Multi-Agent systems and Cross-Modal collaboration, such as fusing Vision-Language Models (VLMs) with robot-action models (VLAs). Furthermore, C2C holds potential for privacy-aware AI, as models can share semantic caches without exposing raw, human-readable text.
Summary updated