{"article":{"slug":"cache-to-cache-direct-semantic-communication-between-large-language-models","title":"Cache-to-Cache: Direct Semantic Communication Between Large Language Models","subtitle":null,"summary":"Fu et al. propose Cache-to-Cache (C2C): multi-LLM systems exchange KV-cache semantics directly instead of text tokens, aiming for richer inter-model communication with lower latency and token cost.","content_type":"research","language":"en","canonical_url":"https://arxiv.org/abs/2510.03215","author":{"name":"Tianyu Fu, Zihan Min, et al.","url":null,"person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"arXiv","url":"https://arxiv.org/","listing_slug":null,"listing":null},"topics":[{"name":"LLMs","slug":"llms","url":"https://listedarticles.com/topics/llms"},{"name":"Research","slug":"research","url":"https://listedarticles.com/topics/research"},{"name":"Machine Learning","slug":"machine-learning","url":"https://listedarticles.com/topics/machine-learning"},{"name":"AI","slug":"ai","url":"https://listedarticles.com/topics/ai"},{"name":"Performance","slug":"performance","url":"https://listedarticles.com/topics/performance"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":12056,"reading_minutes":52,"published_at":"2025-10-03T00:00:00.000Z","added_at":"2026-09-18T21:24:30.315Z","updated_at":"2026-09-18T21:24:30.315Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":false},"profile_url":"https://listedarticles.com/articles/cache-to-cache-direct-semantic-communication-between-large-language-models","markdown_url":"https://listedarticles.com/articles/cache-to-cache-direct-semantic-communication-between-large-language-models.md","example":false,"citation":"Tianyu Fu, Zihan Min, et al., arXiv. \"Cache-to-Cache: Direct Semantic Communication Between Large Language Models.\" 3 Oct 2025. https://arxiv.org/abs/2510.03215 (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://arxiv.org/abs/2510.03215"},"body_markdown":"# Cache-to-Cache: Direct Semantic Communication Between Large Language Models   Tianyu Fu \n\n###### Abstract \n\nMulti-LLM systems harness the complementary strengths of diverse Large Language Models, achieving performance and efficiency gains that are not attainable 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 6.4-14.2% higher average accuracy than individual models. It further outperforms the text communication paradigm by approximately 3.1-5.4%, while delivering an average 2.5× speedup in latency. Our code is available at [https://github.com/thu-nics/C2C](https://github.com/thu-nics/C2C).         \n\n## 1 Introduction  Figure 1: (a) Previous Text-to-Text (T2T) communication passes information through explicit text generation. (b) Our Cache-to-Cache (C2C) communication directly projects and merges KV-Cache with rich semantics from different LLMs.   \n\nWith the rapid progress of Large Language Models (LLMs) ([Guo et al., 2025](#bib.bib1); [Yang et al., 2025a](#bib.bib7); [OpenAI, 2025](#bib.bib2)), they are now applied across increasingly diverse domains and tasks. To meet versatile demands, LLMs are trained with distinct focuses, such as coding ([Hui et al., 2024](#bib.bib4)), mathematics ([Yang et al., 2024a](#bib.bib3)), visual understanding ([Bai et al., 2025](#bib.bib5)), edge computing ([Zhang et al., 2024b](#bib.bib6)), and so on. Meanwhile, general-purpose LLMs can also simulate specialized capabilities through prompt engineering, enabling flexible role adaptation across downstream applications.   \n\nLeveraging the diversity of LLMs, many multi-LLM systems are proposed to further enhance overall performance and efficiency ([Guo et al., 2024](#bib.bib8); [Tran et al., 2025](#bib.bib9)). In collaborative multi-LLM systems ([Li et al., 2023](#bib.bib11); [Wu et al., 2023](#bib.bib12)), LLMs are assigned distinct roles and proactively exchange text messages. Mirroring human collaboration, these systems accumulate partial understandings or sub-solutions from different agents via verbal communication. They harness the collective capabilities of multiple LLMs to solve complex problems that a single model cannot. By contrast, routing-based multi-LLM inference systems rely on passive context inheritance rather than active message exchange. These systems coordinate models of varying parameter sizes or reasoning depths for more dynamic and efficient responses ([Li et al., 2024](#bib.bib19); [Fu et al., 2025a](#bib.bib18); [Ong et al., 2024](#bib.bib20); [OpenAI, 2025](#bib.bib2)). Downstream models inherit the context from preceding models in multi-round conversations, then generate follow-up responses to the new questions based on their own understanding of the conversation history.   \n\nHowever, current text-to-text (T2T) interfaces restrict information exchange among LLMs, particularly when conveying rich or diverse semantic interpretations of a shared context. As illustrated in Figure [2](#S1.F2), these limitations arise from several inherent constraints of T2T communication. First, as a low-bandwidth medium, text introduces an information bottleneck. The high-dimensional internal representations must be repeatedly compressed into linear strings and then decompressed by the receiver LLM. When models differ in knowledge or assigned roles, some signals may be irrecoverable (e.g., interpreting <p> as a section marker). Second, natural language is inherently ambiguous, with idioms, underspecified references, and vague expressions. Although recent agent protocols aim to standardize text messages ([Anthropic, 2024](#bib.bib16); [Surapaneni et al., 2025](#bib.bib17)), rigid templates remain insufficient for flexible, open-domain collaboration. Third, T2T communication incurs noticeable latency. Every exchange requires exhaustive, token-by-token decoding of contextual explanations in sequence. These limitations motivate a key question: \n\nCan LLMs communicate beyond text?   \n\nIn this work, we explore using KV-Cache as the medium for LLM communication. KV-Cache is a naturally richer representation than text. It also enables fully parallel communication through direct projection, avoiding the slow sequential decoding in text exchanges. Our oracle experiments show that (1) enriching KV-Cache under the same context length increases accuracy, (2) KV-Cache is convertible between LLMs, (3) different LLMs encode distinct semantic understandings and contextual knowledge of the same input, reflecting their complementary strengths.   \n\nEncouraged by these findings, we propose Cache-to-Cache (C2C), a new paradigm for richer and faster multi-LLM communication. As shown in Figure [1](#S1.F1)(b), C2C projects the KV-Cache from a source model into the space of a target model and merges them through a neural cache fuser. Experiments show that C2C achieves 6.4-14.2% higher average accuracy than individual models. It further outperforms the T2T paradigm by approximately 3.1-5.4%, while delivering an average 2.5×\\times speedup in latency.   Figure 2:  Conceptual comparison of T2T and C2C communication in a Coder-Writer collaboration example. In T2T, the Coder’s ambiguous text instruction fails to convey the structural semantics of <p> as a paragraph separator, causing the Writer to misplace the content. C2C directly projects the Coder’s KV-Cache into the Writer, transferring both the semantic understanding and precise insertion location without intermediate text generation.     \n\n## 2 Related Work  \n\n### 2.1 KV-Cache Sharing and Reuse  \n\nBased on the similarity of KV-Cache between layers, intra-model cache sharing methods ([Yang et al., 2024b](#bib.bib23); [Wu and Tu, 2024](#bib.bib24); [Sun et al., 2024](#bib.bib25); [Brandon et al., 2024](#bib.bib26); [Wu et al., 2025](#bib.bib27)) have been proposed to reuse shallow layers’ KV-Cache for deeper layers to accelerate single LLM inference. Another research focus is to reuse a portion of KV-Cache (e.g., common prefix, reference documents) for the same model in multiple user queries ([Bang, 2023](#bib.bib28); [Ye et al., 2024](#bib.bib29); [Yao et al., 2024](#bib.bib34); [Qin et al., 2024](#bib.bib30); [Yang et al., 2025b](#bib.bib32); [Ye et al., 2025](#bib.bib50); [Eyuboglu et al., 2025](#bib.bib52)). DroidSpeak ([Liu et al., 2024a](#bib.bib31)) extends cache reuse to models fine-tuned from the same base model. Unlike existing works that focus on computational efficiency through cache reuse, our approach leverages the KV-Cache as a medium for semantic transfer between LLMs. Furthermore, unlike existing cache sharing methods that are restricted to only a single model or models with identical structure and size, our method supports sharing across different model families and varying model sizes.    \n\n### 2.2 Multi-LLM Systems  \n\nCollaborative multi-LLM systems. Collaborative systems treat multiple LLMs as peers that exchange information to improve collective performance. Chain-of-Agents ([Zhang et al., 2024c](#bib.bib33)) and MetaGPT ([Hong et al., 2023](#bib.bib10)) create sequential message flows where agents directly communicate using natural language interfaces. Mixture-of-Agents ([Wang et al., 2024](#bib.bib13)), DyLAN ([Liu et al., 2024b](#bib.bib14)), and Owl ([Hu et al., 2025](#bib.bib15)) introduce layered communication architectures. Target LLMs aggregate messages from multiple models using voting or summarization mechanisms. Multi-agent debate methods ([Estornell and Liu, 2024](#bib.bib35); [Liang et al., 2024](#bib.bib36); [Du et al., 2023](#bib.bib37)) involve iterative communication rounds, letting LLM agents discuss and refine responses. Recent works such as MCP [Anthropic (2024)](#bib.bib16) and A2A [Surapaneni et al. (2025)](#bib.bib17) establish formal text protocols beyond natural language, standardizing agent interaction and tool usage in collaborative multi-LLM systems. These approaches rely on text-level interfaces, where communication requires one model to generate text token-by-token and another to ingest it as input. Our work explores a deeper and more efficient collaboration ([Pidkuiko and Starkov, 2025](#bib.bib51); [Zheng et al., 2025b](#bib.bib53)) by directly sharing internal KV-Cache representations.   \n\nRouting-based multi-LLM inference systems. To accelerate LLM inference, several systems leverage multiple models with different capabilities and costs. Dynamic model selection methods ([OpenAI, 2025](#bib.bib2); [Ong et al., 2024](#bib.bib20); [Feng et al., 2024](#bib.bib41); [Ning et al., 2024](#bib.bib49)) route queries to different models with varying sizes and configurations to balance efficiency and performance. Token-level routing methods ([Zhang et al., 2024a](#bib.bib38); [Shen et al., 2024](#bib.bib39); [Zheng et al., 2025a](#bib.bib40); [Fu et al., 2025a](#bib.bib18)) enable finer-grained selection, utilizing smaller models for simple token generation within the reasoning process of complex tasks. While these systems achieve efficiency through strategic model switching, they either completely drop context from other models, or simply rely on their own understandings of the context. Without understanding sharing, smaller models cannot benefit from the richer representations already computed by larger models.     \n\n## 3 Method  \n\n### 3.1 Preliminaries  \n\nLLM inference. Autoregressive LLM inference involves two stages: prefill and decode. Prefill encodes the full input to produce the first output token; decode then generates subsequent tokens iteratively using the last token and the cached key–value (KV) states. Formally, let X[0:n]=[x0,…,xn−1]X_{[0:n]}=[x_{0},\\dots,x_{n-1}] be the input token sequence. After prefill, LLM produces a per-token KV-Cache 𝒞(X[0:n])=[c0,…,cn−1]∈ℝn×d\\mathcal{C}(X_{[0:n]})=[c_{0},\\dots,c_{n-1}]\\in\\mathbb{R}^{n\\times d}. For notation brevity, dd denotes the KV dimensionality that is flattened from all layers into a single vector per token. The range subscripts are omitted when clear. During decoding, with the current token yiy_{i} and caches from the input and the generated prefix, the next token is predicted as    yi+1=𝒫(yi∣𝒞(X)⊕𝒞(Y[0:i])),y_{i+1}=\\mathcal{P}\\!\\left(y_{i}\\mid\\mathcal{C}(X)\\,\\oplus\\,\\mathcal{C}(Y_{[0:i]})\\right),  (1)  \n\nwhere ⊕\\oplus denotes sequence-wise concatenation. The cache updates as 𝒞(Y[0:i+1])=𝒞(Y[0:i])⊕𝒞(yi)\\mathcal{C}(Y_{[0:i+1]})=\\mathcal{C}(Y_{[0:i]})\\oplus\\mathcal{C}(y_{i}).   \n\nLLM communication. In LLM communication scenarios, we define the LLM that provides contextual understanding or knowledge as Sharer, and the one that utilizes it as Receiver.    \n\n### 3.2 Oracles for Cache-to-Cache Communication  \n\nWe aim to explore whether LLMs can have direct semantic communication through KV-Cache. Specifically, we design two oracle experiments to answer the following questions: (1) Benefit: can a model’s capabilities be improved through KV-Cache semantic enrichment without extending sequence length? (2) Convertibility: can the KV-Cache of one model be effectively utilized by another model?   \n\n#### 3.2.1 Cache Enrichment Oracle  \n\nTo validate the benefit of cache enrichment, we first explore whether the semantic quality of KV-Cache can be improved without increasing its size. Few-shot prompting suggests this might work: providing exemplars EE before the question XX often improves accuracy. But does this arise from attending to more context tokens, or from EE enriching how XX is embedded in KV-Cache?   \n\nWe evaluate this via three setups: (1) Direct: prefill on XX only and decode with 𝒞⁡(X)\\mathcal{C}(X); (2) Few-shot: prefill on E⊕XE\\oplus X and decode with 𝒞⁡(E⊕X)\\mathcal{C}(E\\oplus X) (longer cache); (3) Oracle: prefill on E⊕XE\\oplus X but discard the exemplar segment and keep only the question-aligned slice    𝒞∗(X)=𝒞[|E|:|E|+|X|](E⊕X),\\mathcal{C}^{*}(X)\\;=\\;\\mathcal{C}_{[\\,|E|:|E|+|X|\\,]}(E\\oplus X),  (2)  \n\nso that decoding uses a question-length cache with no extra tokens. Here, |⋅||\\cdot| denotes sequence length. In Equation [1](#S3.E1), this corresponds to substituting 𝒞⁡(X)\\mathcal{C}(X) with 𝒞∗​(X)\\mathcal{C}^{*}(X) before decoding.   \n\nComparing Direct and Oracle isolates the effect of cache enrichment: any gain arises from the richer question embeddings induced by EE, not from attending to additional token caches as in Few-shot. As shown in Table [1](#S3.T1), the Oracle setup improves response quality at the same cache length.   \n\nAdditionally, we analyze how cache enrichment affects different transformer layers. Our findings show substantial variation across layers: while some layers benefit from cache enrichment, others experience performance degradation (details in Appendix [A.2.1](#A1.SS2.SSS1)). Furthermore, these layer-wise effects accumulate as more layers are augmented. As shown in Figure [4](#S3.F4), selectively applying cache enrichment to the top-performing layers (e.g., top-5) yields slightly higher accuracy than enriching all layers, while targeting the worst-performing layers leads to accuracy decline. This finding guides the gating mechanism of our cache fuser (Section [3.3.2](#S3.SS3.SSS2)).      \n Figure 3: T-SNE visualization of KV-Cache representations from the source (Qwen3-4B), target (Qwen3-0.6B), and the transformed cache. After transformation, the source cache falls within the target’s representation space.   \n Figure 4: Effect of selectively enriching different numbers of layers’ KV-Cache on accuracy. Enriching more best-performing layers yields increased accuracy, while enriching the worst-performing ones declines accuracy.         Method Cache Len. Cache Enrich. Acc. (%)  Direct |X||X| No 58.42  Few-shot |E|+|X||E|+|X| Yes 63.39  Oracle |X||X| Yes 62.34  \n Table 1: Cache enrichment experiment. Oracle prefills on exemplars (EE) and question (XX), then drops the exemplar cache before decoding, isolating semantic enrichment from cache length.      Average Effective Rank  Type Sharer Receiver C2C  K Cache 539 388 395  V Cache 689 532 560  \n Table 2: Average effective rank of KV-Cache from Sharer, Receiver, and the C2C-fused one. The increase after fusion indicates that C2C enriches the Receiver KV-Cache semantics.     \n\n#### 3.2.2 Cache Transformation Oracle  \n\nTo verify that one model’s KV-Cache can be utilized by another, we conducted cross-model transformation experiments. We train a 3-layer MLP to map the KV-Cache from a source LLM (Qwen3-4B) to a target LLM (Qwen3-0.6B), with more setups detailed in Appendix [A.3.2](#A1.SS3.SSS2).   \n\nT-SNE visualizations in Figure [3](#S3.F3) reveal that the raw KV-Caches of the two LLMs are far apart in representation space. After transformation, the mapped KV-Cache lies inside the target model’s representation space. These results demonstrate that KV-Caches from different models are generally convertible, as the transformed cache is covered by the target model’s representation space.   \n\nOne thing to note is that the transformed cache occupies only a smaller subset of the target’s space. It indicates that the source model’s semantic information cannot fully cover the target’s, despite the source being larger. This reflects inherent differences in how each model encodes context. Another observation also supports this interpretation: the correct-answer sets of different models exhibit limited overlap (Figure [7](#A1.F7)), despite the comparable aggregated accuracy of respective models. These findings suggest that if specialized contextual understanding from different models can be successfully projected and fused, it may harness the complementary strengths of the respective models.     \n\n### 3.3 C2C Design  \n\n#### 3.3.1 Overview  \n\nBuilding on the oracle experiments, we propose the C2C scheme. Its core objective is to extract useful contextual understanding or knowledge from one model (the Sharer) and fuse it into another model (the Receiver).   \n\nIn general, the C2C paradigm contains a set of key/value cache fusers ℱ\\mathcal{F} and a layer mapping strategy 𝒢\\mathcal{G}. During the prefill stage, fuser ℱn\\mathcal{F}_{n} takes the nnth layer cache of the Receiver Model 𝒞n​(X)\\mathcal{C}_{n}(X) and the corresponding 𝒢⁡(n)\\mathcal{G}(n)th layer cache of the Sharer Model 𝒞𝒢⁡(n)𝒮​(X)\\mathcal{C}^{\\mathcal{S}}_{\\mathcal{G}(n)}(X) and generates the corresponding fused cache with residual connection:    𝒞ℱ={𝒞n​(X)+ℱn​(𝒞n​(X),𝒞𝒢⁡(n)𝒮​(X))}n=1N\\mathcal{C}^{\\mathcal{F}}=\\left\\{\\mathcal{C}_{n}(X)+\\mathcal{F}_{n}\\!\\left(\\mathcal{C}_{n}(X),\\;\\mathcal{C}^{\\mathcal{S}}_{\\mathcal{G}(n)}(X)\\right)\\right\\}_{n=1}^{N}  (3)    \n\nDuring decoding, with the current token yiy_{i} and caches from the input and the generated prefix, the next token is predicted as:      yi+1=𝒫(yi|𝒞ℱ(X)⊕𝒞(Y[0:i]))y_{i+1}=\\mathcal{P}\\left(y_{i}\\middle|\\mathcal{C}^{\\mathcal{F}}(X)\\oplus\\mathcal{C}(Y_{[0:i]})\\right)  (4)    Figure 5:  Cache fuser architecture and training scheme. Fuser projects and combines KV-Caches, then adds the result to Receiver’s cache through a learnable gate. LLMs are frozen during training.     \n\n#### 3.3.2 Fuser Structure  \n\nTo enhance the Receiver’s KV-Cache without destructive overwriting of its information, the fuser is designed under a residual integration principle. As shown in Figure [5](#S3.F5), it contains three key modules:   \n\n(1) Projection module concatenates the Receiver’s KV-Cache with the Sharer’s KV-Cache, then processes the concatenated features through a projection layer followed by a feature fusion layer.   \n\n(2) Dynamic weighting module applies an input-aware head modulation layer to dynamically reweight the projected information.   \n\n(3) Learnable gate introduces a trainable per-layer gate value that decides whether to inject the Sharer’s context. The gate applies a Gumbel-sigmoid with temperature annealing to smoothly transition from differentiable during training to binary at inference.   \n\nWe also explore a more complex yet potentially more powerful fuser variant in Appendix [A.1.3](#A1.SS1.SSS3).    \n\n#### 3.3.3 Model Alignment  \n\nFusing KV-Caches across model families and sizes requires alignment at two levels: tokens and layers. For token alignment, different tokenizers may produce slightly varied token sequences for the same input. We align them by decoding each Receiver token into its string form and re-encoding it using the Sharer’s tokenizer. When one-to-many mappings occasionally occur, we select the Sharer token with maximal string coverage to preserve information. For layer alignment, we adopt a terminal alignment strategy: the final layers of both models are aligned first, then the penultimate layers, and so on in reverse order until reaching the shallower model’s first layer. Details in Appendices [A.1.1](#A1.SS1.SSS1) and [A.1.2](#A1.SS1.SSS2).    \n\n#### 3.3.4 Training Scheme  \n\nDuring training, we freeze both the Sharer and Receiver models, training only the C2C module for KV-Cache fusion. We employ standard next-token prediction loss on the Receiver’s response predictions, similar to supervised fine-tuning (SFT). The key difference is that the Receiver predicts responses conditioned on fused KV-Cache rather than its own.   \n\nThe training procedure consists of three stages: (1) Forward: both models encode the input context to produce their respective KV-Caches. (2) Fusion: the C2C module fuses both KV-Caches and replaces the Receiver’s cache. (3) Supervision: the Receiver prefills the response using the fused cache, and gradients backpropagate through C2C to minimize prediction loss.      \n\n## 4 Experiment  \n\n### 4.1 Setup  \n\nWe brief the experiment setups here, with more details in Appendix [A.3](#A1.SS3).   \n\nModels. We evaluate C2C across various model families, including Qwen2.5 ([Yang et al., 2024a](#bib.bib3); [Hui et al., 2024](#bib.bib4)), Qwen3 ([Yang et al., 2025a](#bib.bib7)), Llama3.2 ([Dubey et al., 2024](#bib.bib44)), and Gemma3 ([Team et al., 2025](#bib.bib45)). To test generalizability, we select different configurations for the Sharer-Receiver model combinations, including models of different generations (Qwen3 and Qwen2.5), different families (Qwen, Llama, and Gemma), different sizes (0.6B to 14B), different specializations (general, code, and math model), and different training stages (pretrained and instruction fine-tuned models). For ablative and diagnostic analyses (scaling behavior, ablation study, behavior analysis), we fix the Receiver and Sharer to Qwen3 models unless otherwise specified. This consistency eliminates confounders from model alignment and isolates the core impact of C2C.   \n\nBaselines. We compare C2C with two LLM collaboration methods to contextualize performance: (1) Text-to-Text (T2T) communication: models collaborate through an analyze-then-respond hand-off for each query. The Sharer generates an analytical text of key information to solve the input question. This text is concatenated with the original question and fed to the Receiver to mirror standard collaborative pipelines. Corresponding prompts are in Appendix [A.3.6](#A1.SS3.SSS6). (2) Query-level routing ([Ong et al., 2024](#bib.bib20)): models collaborate by selecting the appropriate LLM for different queries. We also include individual model performance (Sharer or Receiver alone) to establish a lower bound for collaborative gains.   \n\nBenchmarks. We evaluate on four widely used benchmarks spanning reasoning, knowledge, and language domains to ensure comprehensive coverage. OpenBookQA ([Mihaylov et al., 2018](#bib.bib46)) for fact-based reasoning, MMLU-Redux ([Gema et al., 2025](#bib.bib47)) for knowledge in the general domain, ARC-Challenge (ARC-C) ([Clark et al., 2018](#bib.bib21)) for scientific and logistic reasoning, and C-Eval ([Huang et al., 2023](#bib.bib22)) for comprehensive knowledge in the Chinese domain.   \n\nTraining dataset. To ensure the generalizability of C2C, we utilize the first 500k samples of the OpenHermes2.5 Dataset ([Teknium, 2023](#bib.bib42)), a general finetuning dataset, to train C2C fusers. To reduce training cost, we use MMLU as the training set for scaling behavior and behavior analysis experiments, unless otherwise specified.   \n\nEvaluation settings. We use average accuracy as the performance metric. We use text generation and answer extraction as the evaluation mode for C2C and baselines, with the max generation length set to 64 for multi-choice benchmarks. All experiments are conducted in the zero-shot setting with zero generation temperature to ensure reproducibility. We use average inference time as the efficiency metric, measured using a single NVIDIA A100 GPU with batch size one.    \n\n### 4.2 Main Results  \n\nPerformance. As shown in Table [4](#S4.T4), C2C consistently improves the Receiver model performance across different settings and benchmarks. Representative example output is provided in Appendix [A.4.4](#A1.SS4.SSS4). After applying C2C, accuracy increases by an average of 11.00%, 9.64%, and 11.88% across the three Sharers. Compared with text-to-text communication, C2C achieves an average accuracy increase of 5.36%, 4.15%, and 3.06%. Query-level routing prioritizes efficiency but limits accuracy to the better of the two original models. Notably, Qwen3-4B Base as the Sharer often ignores instructions, resulting in poor standalone performance and excessively long T2T communication times. In contrast, C2C bypasses this issue, highlighting an interesting use case in which a weaker instruction-tuned Receiver can leverage a stronger base model’s knowledge via C2C, even when base model cannot follow instructions. We also explore strong-to-weak communication (details in Appendix [A.2.2](#A1.SS2.SSS2)) using Qwen3-4B as the Sharer, showing that C2C effectively enables the Receiver to benefit from a stronger Sharer.   \n\nEfficiency. As shown in Table [4](#S4.T4), C2C achieves significant speedups of 3.46×\\times, 1.51×\\times, and 14.41×\\times over T2T by eliminating intermediate text generation. As detailed in Table [3](#S4.T3), T2T requires the Sharer to decode 80 output tokens, incurring 1312ms of decoding overhead, whereas C2C replaces this sequential decoding with parallel cache fusion in 90ms. Further analysis of Llama3.2-1B’s exceptionally fast inference is provided in Appendix [A.4.3](#A1.SS4.SSS3).   Table 3: Average token count and inference time breakdown on MMLU-Redux (Sharer: Qwen2.5-0.5B-Instruct, Receiver: Qwen3-0.6B). ∗Includes 90ms KV-Cache fusion time.      Text-to-Text Cache-to-Cache  Metric Receiver-only Sharer-only Sharer Receiver Sharer Receiver  Input Tokens 170 187 103 332 170 170  Output Tokens 11 19 80 10 0 12  Prefill Time (ms) 27 20 21 32 20 + 90∗ 27  Decode Time (ms) 281 326 1312 231 0 308  Total Time (ms) 308 346 1596 445    Table 4: Accuracy (%) and inference time (seconds) of different communication methods across four benchmarks. The Receiver is fixed as Qwen3-0.6B, paired with three different Sharers.   Sharer Task Metric Receiver Sharer Routing Text-to-Text Cache-to-Cache  Qwen2.5-0.5B MMLU-Redux Acc 35.53 38.42 35.58 41.03 42.92  Time 0.29 0.34 0.27 1.52 0.40  OpenBook Acc 39.20 45.60 40.80 44.00 52.60  Time 0.27 0.35 0.29 0.81 0.30  ARC-C Acc 41.04 42.09 40.70 49.48 54.52  Time 0.29 0.39 0.29 1.00 0.36  C-Eval Acc 32.04 40.21 34.61 35.88 41.77  Time 0.26 0.31 0.26 1.51 0.34  Llama3.2-1B MMLU-Redux Acc 35.53 32.30 33.38 43.32 44.42  Time 0.29 0.06 0.18 0.75 0.50  OpenBook Acc 39.20 32.60 36.40 41.20 47.80  Time 0.26 0.07 0.17 0.70 0.43  ARC-C Acc 41.04 33.57 37.22 50.00 53.39  Time 0.28 0.07 0.18 0.70 0.47  C-Eval Acc 32.04 31.31 31.92 35.27 40.77  Time 0.25 0.04 0.15 0.71 0.49  Qwen3-4B-Base MMLU-Redux Acc 35.53 1.03 16.39 43.87 43.95  Time 0.29 2.06 0.28 7.54 0.45  OpenBook Acc 39.20 2.20 22.20 46.40 53.20  Time 0.26 1.98 0.27 5.08 0.34  ARC-C Acc 41.04 1.48 19.65 53.91 55.39  Time 0.28 2.06 0.28 6.56 0.40  C-Eval Acc 32.04 5.65 15.10 38.92 42.79  Time 0.25 2.02 0.26 3.59 0.39     \n\n### 4.3 Scaling Behavior  Figure 6: Accuracy improvements (Δ\\DeltaAccuracy) on the MMLU-Redux benchmark. (a) C2C communication. (b) T2T communication. The xx-axis denotes the Sharer model from the Qwen2.5-Instruct series, while the curves correspond to Receiver models from the Qwen3 series. The accuracy improvements of C2C generally increase faster than T2T.   \n\nScaling sequence lengths. We evaluate how C2C scales with respect to sequence length on long-context tasks from the LongBenchV1 benchmark. All C2C fusers are trained and tested on different sets of LongBenchV1. As shown in Table [6](#S4.T6), C2C consistently outperforms text-to-text communication across all sequence-length intervals. This demonstrates C2C’s advantages across input length ranges. More detailed setups and results are in Appendices [A.2.2](#A1.SS2.SSS2) and [A.3.4](#A1.SS3.SSS4).        Length Receiver Sharer T2T C2C  0-4k 30.52 24.94 33.46 37.31  4-8k 26.03 23.18 29.70 34.01  8k+ 25.99 16.44 25.64 30.72  Table 5: Performance scaling with sequence length on LongBenchV1, using Qwen3-0.6B Receiver and Qwen2.5-0.5B Sharer.     Setting #Param. OpenBook ARC-C MMLU C-Eval  Single 596M 45.80 47.65 36.81 35.81  Identical 529M 50.60 52.52 42.17 40.34  C2C 478M 52.60 54.52 42.92 41.77  Table 6: Ablation of C2C improvement sources. Single: fine-tunes Receiver without any Sharer. Identical: C2C with the same LLM as both Sharer and Receiver. C2C: use different LLMs as Sharer and Receiver.    \n\nScaling model sizes. We investigate how C2C scales with respect to the Sharer and Receiver model sizes. All C2C fusers are trained on MMLU’s auxiliary train split and evaluated on MMLU-Redux. As shown in Figure [6](#S4.F6), the xx-axis denotes Sharer size (Qwen2.5-Instruct series), the yy-axis shows accuracy gains of C2C over Receiver-only baselines (Δ\\Delta Accuracy), and each curve represents a Receiver from the Qwen3 series. We find that the accuracy improvements of C2C generally increase faster than T2T. This trend shows that when the Sharer possesses richer knowledge, C2C is able to more effectively transmit useful information to the Receiver. Note that the relative gains for larger Receivers are less pronounced due to their stronger baselines and higher overlap with the Sharer’s knowledge.   \n\nDifferent model combinations. We test different Sharer-Receiver combinations, including different model families and different task-specific models. The result in Table [7](#S4.T7) shows that C2C outperforms text-to-text communication on all five combinations by an average of 8.59% on MMLU-Redux. This supports that by employing C2C, the Receiver model can effectively utilize contextual understanding from different models to enhance performance. Notably, when using Qwen2.5-Math as the Sharer, the communication text becomes substantially longer, as analyzed in Appendix [A.4.3](#A1.SS4.SSS3). To further test the generalizability of C2C, we swap the Sharer and Receiver models. The results show that C2C robustly brings a 5.05% increase in accuracy while applying T2T results in a 6.30% decrease in performance.   \n\nTogether, these experiments support the scalability of C2C as an effective and efficient new LLM communication paradigm.     Pair Type Receiver Sharer Metric Receiver Sharer T2T C2C  Heterogeneous Qwen3-0.6B Gemma3-1B Acc 35.53 31.75 41.35 45.90  Time 0.29 0.54 1.04 0.30  Qwen3-0.6B Qwen2.5-Math-1.5B Acc 35.53 39.86 43.71 46.13  Time 0.29 8.71 6.60 0.27  Qwen3-0.6B Qwen2.5-Coder-0.5B Acc 35.53 25.09 39.74 46.89  Time 0.29 0.26 1.59 0.27  Swap Qwen2.5-0.5B Qwen3-0.6B Acc 38.42 35.53 32.12 43.47  Time 0.34 0.29 0.98 0.21  Qwen3-0.6B Qwen2.5-0.5B Acc 35.53 38.42 41.03 46.50  Time 0.29 0.34 1.52 0.26  Table 7: Comparison of Receiver-only, Sharer-only, T2T, and C2C across accuracy and time. The pairs are grouped into heterogeneous settings (where the Receiver is paired with Sharers of different capabilities) and swap settings (where Receiver and Sharer roles are exchanged).    \n\n### 4.4 Ablation Study  \n\nSources of improvement. In Table [6](#S4.T6), we ablate the source of C2C performance gain by fixing the Receiver (Qwen3-0.6B) and varying the Sharer. Single denotes standard full fine-tuning of the Receiver without Sharer. Identical denotes C2C where both Sharer and Receiver are Qwen3-0.6B. Our default C2C uses Qwen2.5-0.5B as the Sharer. Under the same training configuration, C2C consistently attains higher accuracy than both Single and Identical. This confirms that C2C improvements do not purely come from added trainable capacity or overfitting to the training set. Instead, it points to complementary contextual understanding contributed by the heterogeneous Sharer. Identical still outperforms Single, indicating that cache-level self-communication can provide useful auxiliary understanding, echoing effects observed in latent reasoning and looped transformers ([Saunshi et al., 2025](#bib.bib48); [Fu et al., 2025b](#bib.bib55)).   \n\nFuser architecture. In Table [8](#S4.T8) we show the effect of different components in the C2C design. Compared with pure projection that discards the Receiver’s cache, fusing both models’ KV-Caches and retaining the Receiver’s via residual connection increases accuracy by 24.18%. Adding a gate for fused layer selection further increases the average accuracy by 3.07%.     Method MMLU ARC-C OpenBook CEval Average  Project 20.01 19.57 21.80 21.41 20.70  +Fuse 43.36 51.65 47.60 36.91 44.88  +Gate (=C2C) 42.92 54.52 52.60 41.77 47.95  Table 8: Ablation of C2C fuser components. Project: directly replacing the Receiver’s KV-Cache with projected Sharer cache. +Fuse: fusing both caches and adding the result back to Receiver’s via residual. +Gate: adding per-layer learnable gating.    \n\n### 4.5 Behavior Analysis  \n\nEffective rank analysis. We analyze the effective rank of KV-Cache before and after cache-to-cache communication. Effective rank ([Roy and Vetterli, 2007](#bib.bib43)) is a common measure of the intrinsic dimensionality of model weights or activation values; a higher intrinsic dimension means richer semantic information, as formalized in Appendix [A.4.1](#A1.SS4.SSS1). As Table [2](#S3.T2) shows, after cache-to-cache fusing, the effective ranks of K and V increased from 388 to 395 and from 532 to 560, respectively. This indicates that C2C enriches the semantic space by successfully transforming the Sharer’s representations and injecting knowledge into the Receiver model.   \n\nAccuracy breakdown. Our analysis reveals that the source of C2C’s accuracy gains depends on the relative capacity of the communicating models and varies across task subcategories. Details can be found in Appendix [A.2.3](#A1.SS2.SSS3). We also find that in some specific cases, C2C may fail as the contextual understanding from the Sharer model is not always accurate and can mislead the Receiver into generating the wrong answer. Representative example is provided in Appendix [A.4.6](#A1.SS4.SSS6).   \n\nProgressive behavior. We analyze the progressive behavior of C2C by gradually increasing the percentage of context KV-Cache being updated by C2C (details in Appendix [A.2.4](#A1.SS2.SSS4)). When the percentage is above 50%, increasing the percentage continuously yields better performance.   \n\nGate behavior. We analyze the behavior of C2C ’s learnable gates under different training regimes in Appendix [A.4.2](#A1.SS4.SSS2). We can draw the conclusion that general-purpose training favors broad gate activation with fine-grained modulation via weights, whereas task-specific training favors sparse gate activation with stronger reliance on the selected layers.     \n\n## 5 Discussion  \n\nFuture work. C2C opens several directions for future research. (1) Cache communication in multi-agent systems: C2C may serve as a better communication primitive for real-world agentic tasks with complex multi-round reasoning, coding, and tool use. A preliminary case study on mathematical problem solving is provided in Appendix [A.5.3](#A1.SS5.SSS3). (2) Cross-modal collaboration: beyond text-only models, fusing caches among vision–language models (VLMs) and vision–language–action (VLA) models may enable richer multi-modal collaboration. (3) Inference acceleration: C2C can enhance speculative decoding and enable token-level routing across heterogeneous models for lower latency and cost. (4) Privacy-aware collaboration: LLMs can transmit KV-Cache segments without explicit text, limiting content exposure and improving privacy.   \n\nLimitations. (1) Multi-LLM systems experience performance degradation when a much weaker Sharer provides noisy information to a stronger Receiver. This limitation is shared by both T2T and C2C, as Sharer semantic quality directly impacts Receiver performance. (2) While pairwise KV-Cache communication is feasible and advantageous, scaling up the number of communicating LLMs with O⁡(N)O(N) training cost remains an open problem. Preliminary efforts towards this goal are in Appendix [A.5.1](#A1.SS5.SSS1) and [A.5.2](#A1.SS5.SSS2).    \n\n## 6 Conclusion  \n\nWe demonstrate that LLMs can communicate beyond text. We introduce Cache-to-Cache (C2C), a general paradigm that transforms and fuses key–value (KV) caches across models to enable direct semantic communication. Across diverse tasks and model configurations, C2C consistently achieves higher task performance and better efficiency than text-to-text communication. These results establish cache-to-cache as a practical alternative to token-based communication and highlight its promise for scalable, low-latency multi-LLM systems.     \n\n## Acknowledgments  \n\nThis work was supported by National Natural Science Foundation of China (No. 62506197, 62325405, 62104128, U19B2019, U21B2031, 61832007, 62204164, 92364201), Tsinghua EE Xilinx AI Research Fund, and Beijing National Research Center for Information Science and Technology (BNRist). We thank Xuefei Ning for her valuable discussions and suggestions.    \n\n## Ethics Statement  \n\nThis study raises no ethical issues. No human subjects or sensitive personal data were involved in the experiments.    \n\n## Reproducibility Statement  \n\nWe provide sufficient information to allow the results reported in this paper to be reproduced. All experiments were conducted using publicly available datasets along with open-source models and code. Implementation details, including data selection, model architectures, hyperparameters, and training procedures, are provided in Appendix A. The code, configuration files, and model checkpoints are released at [https://github.com/thu-nics/C2C](https://github.com/thu-nics/C2C).    \n\n## References  \n- Anthropic (2024) Anthropic  Introducing the model context protocol.  Note: Online; Nov. 25, 2024Accessed: 2025-09-08  External Links: [Link](https://www.anthropic.com/news/model-context-protocol)  Cited by: [§1](#S1.p3.1), [§2.2](#S2.SS2.p1.1).  \n- Bai et al. (2025) S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tang, et al.  Qwen2. 5-vl technical report.  arXiv preprint arXiv:2502.13923.  Cited by: [§1](#S1.p1.1).  \n- Bang (2023) F. Bang  Gptcache: an open-source semantic cache for llm applications enabling faster answers and cost savings.  In Proceedings of the 3rd Workshop for Natural Language Processing Open Source Software (NLP-OSS 2023),  pp. 212–218.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Brandon et al. (2024) W. Brandon, M. Mishra, A. Nrusimha, R. Panda, and J. Ragan-Kelley  Reducing transformer key-value cache size with cross-layer attention.  Advances in Neural Information Processing Systems 37, pp. 86927–86957.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Clark et al. (2018) P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord  Think you have solved question answering? try arc, the ai2 reasoning challenge.  arXiv preprint arXiv:1803.05457.  Cited by: [§4.1](#S4.SS1.p4.1).  \n- Du et al. (2023) Y. Du, S. Li, A. Torralba, J. B. Tenenbaum, and I. Mordatch  Improving factuality and reasoning in language models through multiagent debate.  In Forty-first International Conference on Machine Learning,  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Dubey et al. (2024) A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Yang, A. Fan, et al.  The llama 3 herd of models.  arXiv e-prints, pp. arXiv–2407.  Cited by: [§4.1](#S4.SS1.p2.1).  \n- Estornell and Liu (2024) A. Estornell and Y. Liu  Multi-llm debate: framework, principals, and interventions.  Advances in Neural Information Processing Systems 37, pp. 28938–28964.  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Eyuboglu et al. (2025) S. Eyuboglu, R. Ehrlich, S. Arora, N. Guha, D. Zinsley, E. Liu, W. Tennien, A. Rudra, J. Zou, A. Mirhoseini, et al.  Cartridges: lightweight and general-purpose long context representations via self-study.  arXiv preprint arXiv:2506.06266.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Feng et al. (2024) T. Feng, Y. Shen, and J. You  Graphrouter: a graph-based router for llm selections.  arXiv preprint arXiv:2410.03834.  Cited by: [§2.2](#S2.SS2.p2.1).  \n- Fu et al. (2025a) T. Fu, Y. Ge, Y. You, E. Liu, Z. Yuan, G. Dai, S. Yan, H. Yang, and Y. Wang  R2R: efficiently navigating divergent reasoning paths with small-large model token routing.  arXiv preprint arXiv:2505.21600.  Cited by: [§1](#S1.p2.1), [§2.2](#S2.SS2.p2.1).  \n- Fu et al. (2025b) T. Fu, Y. You, Z. Chen, G. Dai, H. Yang, and Y. Wang  Think-at-hard: selective latent iterations to improve reasoning language models.  arXiv preprint arXiv:2510.08577.  Cited by: [§4.4](#S4.SS4.p1.1).  \n- Gema et al. (2025) A. P. Gema, J. O. J. Leang, G. Hong, A. Devoto, A. C. M. Mancino, R. Saxena, X. He, Y. Zhao, X. Du, M. R. G. Madani, et al.  Are we done with mmlu?.  In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers),  pp. 5069–5096.  Cited by: [§4.1](#S4.SS1.p4.1).  \n- Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, et al.  Deepseek-r1: incentivizing reasoning capability in llms via reinforcement learning.  arXiv preprint arXiv:2501.12948.  Cited by: [§1](#S1.p1.1).  \n- Guo et al. (2024) T. Guo, X. Chen, Y. Wang, R. Chang, S. Pei, N. V. Chawla, O. Wiest, and X. Zhang  Large language model based multi-agents: a survey of progress and challenges.  arXiv preprint arXiv:2402.01680.  Cited by: [§1](#S1.p2.1).  \n- He et al. (2025) Z. He, R. Abhyankar, V. Srivatsa, and Y. Zhang  Cognify: supercharging gen-ai workflows with hierarchical autotuning.  In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2,  pp. 932–943.  Cited by: [§A.5.3](#A1.SS5.SSS3.p1.1).  \n- Hong et al. (2023) S. Hong, X. Zheng, J. P. Chen, Y. Cheng, C. Zhang, Z. Wang, S. K. S. Yau, Z. H. Lin, L. Zhou, C. Ran, L. Xiao, and C. Wu  MetaGPT: meta programming for multi-agent collaborative framework.  ArXiv abs/2308.00352.  External Links: [Link](https://api.semanticscholar.org/CorpusID:260351380)  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Hu et al. (2025) M. Hu, Y. Zhou, W. Fan, Y. Nie, B. Xia, T. Sun, Z. Ye, Z. Jin, Y. Li, Q. Chen, Z. Zhang, Y. Wang, Q. Ye, B. Ghanem, P. Luo, and G. Li  Owl: optimized workforce learning for general multi-agent assistance in real-world task automation.  arXiv preprint arXiv:2505.23885.  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Huang et al. (2023) Y. Huang, Y. Bai, Z. Zhu, J. Zhang, J. Zhang, T. Su, J. Liu, C. Lv, Y. Zhang, Y. Fu, et al.  C-eval: a multi-level multi-discipline chinese evaluation suite for foundation models.  Advances in Neural Information Processing Systems 36, pp. 62991–63010.  Cited by: [§4.1](#S4.SS1.p4.1).  \n- Hui et al. (2024) B. Hui, J. Yang, Z. Cui, J. Yang, D. Liu, L. Zhang, T. Liu, J. Zhang, B. Yu, K. Lu, et al.  Qwen2. 5-coder technical report.  arXiv preprint arXiv:2409.12186.  Cited by: [§1](#S1.p1.1), [§4.1](#S4.SS1.p2.1).  \n- Li et al. (2023) G. Li, H. Hammoud, H. Itani, D. Khizbullin, and B. Ghanem  Camel: communicative agents for” mind” exploration of large language model society.  Advances in Neural Information Processing Systems 36, pp. 51991–52008.  Cited by: [§1](#S1.p2.1).  \n- Li et al. (2024) Y. Li, F. Wei, C. Zhang, and H. Zhang  Eagle: speculative sampling requires rethinking feature uncertainty.  arXiv preprint arXiv:2401.15077.  Cited by: [§1](#S1.p2.1).  \n- Liang et al. (2024) T. Liang, Z. He, W. Jiao, X. Wang, Y. Wang, R. Wang, Y. Yang, S. Shi, and Z. Tu  Encouraging divergent thinking in large language models through multi-agent debate.  In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,  pp. 17889–17904.  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Liu et al. (2024a) Y. Liu, Y. Huang, J. Yao, S. Feng, Z. Gu, K. Du, H. Li, Y. Cheng, J. Jiang, S. Lu, et al.  DroidSpeak: kv cache sharing for cross-llm communication and multi-llm serving.  arXiv preprint arXiv:2411.02820.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Liu et al. (2024b) Z. Liu, Y. Zhang, P. Li, Y. Liu, and D. Yang  A dynamic llm-powered agent network for task-oriented agent collaboration.  In First Conference on Language Modeling,  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Mihaylov et al. (2018) T. Mihaylov, P. Clark, T. Khot, and A. Sabharwal  Can a suit of armor conduct electricity? a new dataset for open book question answering.  In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,  pp. 2381–2391.  Cited by: [§4.1](#S4.SS1.p4.1).  \n- Ning et al. (2024) X. Ning, Z. Lin, Z. Zhou, Z. Wang, H. Yang, and Y. Wang  Skeleton-of-thought: prompting llms for efficient parallel generation.  In The Twelfth International Conference on Learning Representations,  External Links: [Link](https://openreview.net/forum?id=mqVgBbNCm9)  Cited by: [§2.2](#S2.SS2.p2.1).  \n- Ong et al. (2024) I. Ong, A. Almahairi, V. Wu, W. Chiang, T. Wu, J. E. Gonzalez, M. W. Kadous, and I. Stoica  Routellm: learning to route llms with preference data.  arXiv preprint arXiv:2406.18665.  Cited by: [§A.1.3](#A1.SS1.SSS3.p2.1), [§1](#S1.p2.1), [§2.2](#S2.SS2.p2.1), [§4.1](#S4.SS1.p3.1).  \n- OpenAI (2025) OpenAI  Introducing gpt-5.  Note: [https://openai.com/index/introducing-gpt-5/](https://openai.com/index/introducing-gpt-5/)Accessed: 2025-09-11  Cited by: [§1](#S1.p1.1), [§1](#S1.p2.1), [§2.2](#S2.SS2.p2.1).  \n- Pidkuiko and Starkov (2025) A. Pidkuiko and B. Starkov  Gibberlink.  Note: [https://github.com/PennyroyalTea/gibberlink](https://github.com/PennyroyalTea/gibberlink)GitHub repository, accessed 2025-11-05  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Qin et al. (2024) R. Qin, Z. Li, W. He, M. Zhang, Y. Wu, W. Zheng, and X. Xu  Mooncake: a kvcache-centric disaggregated architecture for llm serving.  arXiv preprint arXiv:2407.00079.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Roy and Vetterli (2007) O. Roy and M. Vetterli  The effective rank: a measure of effective dimensionality.  In 2007 15th European signal processing conference,  pp. 606–610.  Cited by: [§A.4.1](#A1.SS4.SSS1.p1.1), [§4.5](#S4.SS5.p1.1).  \n- Saunshi et al. (2025) N. Saunshi, N. Dikkala, Z. Li, S. Kumar, and S. J. Reddi  Reasoning with latent thoughts: on the power of looped transformers.  arXiv preprint arXiv:2502.17416.  Cited by: [§4.4](#S4.SS4.p1.1).  \n- Shen et al. (2024) Z. Shen, H. Lang, B. Wang, Y. Kim, and D. Sontag  Learning to decode collaboratively with multiple language models.  In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers),  pp. 12974–12990.  Cited by: [§2.2](#S2.SS2.p2.1).  \n- Sun et al. (2024) Y. Sun, L. Dong, Y. Zhu, S. Huang, W. Wang, S. Ma, Q. Zhang, J. Wang, and F. Wei  You only cache once: decoder-decoder architectures for language models.  Advances in Neural Information Processing Systems 37, pp. 7339–7361.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Surapaneni et al. (2025) R. Surapaneni, M. Jha, M. Vakoc, and T. Segal  Announcing the agent2agent protocol (a2a).  Note: Google Developers BlogAccessed: 2025-09-08  External Links: [Link](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)  Cited by: [§1](#S1.p3.1), [§2.2](#S2.SS2.p1.1).  \n- Team et al. (2025) G. Team, A. Kamath, J. Ferret, S. Pathak, N. Vieillard, R. Merhej, S. Perrin, T. Matejovicova, A. Ramé, M. Rivière, et al.  Gemma 3 technical report.  arXiv preprint arXiv:2503.19786.  Cited by: [§4.1](#S4.SS1.p2.1).  \n- Teknium (2023) Teknium  OpenHermes 2.5: an open dataset of synthetic data for generalist llm assistants.   HuggingFace.  External Links: [Link](https://huggingface.co/datasets/teknium/OpenHermes-2.5)  Cited by: [§4.1](#S4.SS1.p5.1).  \n- Tran et al. (2025) K. Tran, D. Dao, M. Nguyen, Q. Pham, B. O’Sullivan, and H. D. Nguyen  Multi-agent collaboration mechanisms: a survey of llms.  arXiv preprint arXiv:2501.06322.  Cited by: [§1](#S1.p2.1).  \n- Wang et al. (2024) J. Wang, J. Wang, B. Athiwaratkun, C. Zhang, and J. Zou  Mixture-of-agents enhances large language model capabilities.  arXiv preprint arXiv:2406.04692.  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Wu and Tu (2024) H. Wu and K. Tu  Layer-condensed kv cache for efficient inference of large language models.  In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers),  pp. 11175–11188.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Wu et al. (2023) Q. Wu, G. Bansal, J. Zhang, Y. Wu, S. Zhang, E. Zhu, B. Li, L. Jiang, X. Zhang, and C. Wang  Autogen: enabling next-gen llm applications via multi-agent conversation framework.  arXiv preprint arXiv:2308.08155 3 (4).  Cited by: [§1](#S1.p2.1).  \n- Wu et al. (2025) Y. Wu, H. Wu, and K. Tu  A systematic study of cross-layer kv sharing for efficient llm inference.  In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers),  pp. 396–403.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Yang et al. (2025a) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al.  Qwen3 technical report.  arXiv preprint arXiv:2505.09388.  Cited by: [§1](#S1.p1.1), [§4.1](#S4.SS1.p2.1).  \n- Yang et al. (2024a) A. Yang, B. Zhang, B. Hui, B. Gao, B. Yu, C. Li, D. Liu, J. Tu, J. Zhou, J. Lin, et al.  Qwen2. 5-math technical report: toward mathematical expert model via self-improvement.  arXiv preprint arXiv:2409.12122.  Cited by: [§1](#S1.p1.1), [§4.1](#S4.SS1.p2.1).  \n- Yang et al. (2025b) J. Yang, B. Hou, W. Wei, Y. Bao, and S. Chang  Kvlink: accelerating large language models via efficient kv cache reuse.  arXiv preprint arXiv:2502.16002.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Yang et al. (2024b) Y. Yang, Z. Cao, Q. Chen, L. Qin, D. Yang, H. Zhao, and Z. Chen  Kvsharer: efficient inference via layer-wise dissimilar kv cache sharing.  arXiv preprint arXiv:2410.18517.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Yao et al. (2024) J. Yao, H. Li, Y. Liu, S. Ray, Y. Cheng, Q. Zhang, K. Du, S. Lu, and J. Jiang  Cacheblend: fast large language model serving with cached knowledge fusion.  arXiv e-prints, pp. arXiv–2405.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Ye et al. (2025) H. Ye, Z. Gao, M. Ma, Q. Wang, Y. Fu, M. Chung, Y. Lin, Z. Liu, J. Zhang, D. Zhuo, et al.  KVCOMM: online cross-context kv-cache communication for efficient llm-based multi-agent systems.  arXiv preprint arXiv:2510.12872.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Ye et al. (2024) L. Ye, Z. Tao, Y. Huang, and Y. Li  ChunkAttention: efficient self-attention with prefix-aware kv cache and two-phase partition.  In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers),  pp. 11608–11620.  Cited by: [§2.1](#S2.SS1.p1.1).  \n- Zhang et al. (2024a) K. Zhang, J. Wang, N. Ding, B. Qi, E. Hua, X. Lv, and B. Zhou  Fast and slow generating: an empirical study on large and small language models collaborative decoding.  CoRR.  Cited by: [§2.2](#S2.SS2.p2.1).  \n- Zhang et al. (2024b) M. Zhang, X. Shen, J. Cao, Z. Cui, and S. Jiang  Edgeshard: efficient llm inference via collaborative edge computing.  IEEE Internet of Things Journal.  Cited by: [§1](#S1.p1.1).  \n- Zhang et al. (2024c) Y. Zhang, R. Sun, Y. Chen, T. Pfister, R. Zhang, and S. Arik  Chain of agents: large language models collaborating on long-context tasks.  Advances in Neural Information Processing Systems 37, pp. 132208–132237.  Cited by: [§2.2](#S2.SS2.p1.1).  \n- Zheng et al. (2025a) W. Zheng, Y. Chen, W. Zhang, S. Kundu, Y. Li, Z. Liu, E. P. Xing, H. Wang, and H. Yao  Citer: collaborative inference for efficient large language model decoding with token-level routing.  arXiv preprint arXiv:2502.01976.  Cited by: [§2.2](#S2.SS2.p2.1).  \n- Zheng et al. (2025b) Y. Zheng, Z. Zhao, Z. Li, Y. Xie, M. Gao, L. Zhang, and K. Zhang  Thought communication in multiagent collaboration.  arXiv preprint arXiv:2510.20733.  Cited by: [§2.2](#S2.SS2.p1.1).      \n\n## Appendix A Appendix  \n\n### A.1 Design Choice Exploration  \n\nWe detail the design of C2C and discuss alternative design choices.   \n\n#### A.1.1 Layer Alignment  \n\nTerminal alignment. In this strategy, the layers of the two models are aligned starting from the output side. Specifically, the final layer of the smaller model is paired with the final layer of the larger model, the penultimate layer with the penultimate layer, and so on. This scheme prioritizes alignment between the deeper layers across models, which typically capture higher-level semantic representations.   \n\nDepth-normalized alignment. In this strategy, both models’ layer indices are normalized to [0,1][0,1] by dividing by (L−1)(L-1), where LL is the total number of layers in the model. Let the model with fewer layers (LminL_{\\min}) serve as the anchor. For each anchor layer ii (with normalized index i/(Lmin−1)i/(L_{\\min}-1)), we select the layer jj in the other model (LmaxL_{\\max}) whose normalized index j/(Lmax−1)j/(L_{\\max}-1) is closest:    j⋆=arg⁡minj​|iLmin−1−jLmax−1|.j^{\\star}\\;=\\;\\arg\\min_{j}\\Bigl|\\tfrac{i}{L_{\\min}-1}-\\tfrac{j}{L_{\\max}-1}\\Bigr|.  (5)  \n\nThis method produces an alignment that distributes correspondences approximately uniformly across the model depth.   \n\nC2C Choice. In our design, we adopt terminal alignment, as it provides a simpler and more direct layer mapping strategy that empirically performs slightly better in our experiments.    \n\n#### A.1.2 Tokenization Alignment  \n\nFor dialogue inputs, we first apply the chat template of each tokenizer, which produces a sequence consisting of alternating sections of (1) template tokens and (2) message tokens. These two types of sections are handled differently during alignment.   \n\nTemplate sections. Template tokens are structural markers (e.g., role delimiters, formatting tokens) that differ across tokenizers and carry no semantic content. To preserve sequence consistency without introducing unnecessary distortions, these sections are aligned by simple length padding: the shorter side is padded with <pad> tokens until both tokenizers’ sequences are of equal length.   \n\nMessage sections. Message tokens correspond to the actual textual content of user or assistant dialogs. Each target model token in a message section is decoded into its string form and re-encoded using the source model tokenizer. Special tokens (e.g., <pad>, <eos>) are mapped directly if possible; otherwise, the source model’s unknown token is used. For regular tokens, if the re-encoding produces a single source model token, a direct one-to-one mapping is established. If multiple source model tokens are produced (a one-to-many case), one of the two selection strategies is applied: (1) first-occurrence selection: choose the first source model token from the candidate set, yielding a deterministic and computationally efficient mapping. (2) Maximal-coverage selection: decode each candidate token, compute its string length, and select the longest; this heuristic aims to preserve maximal surface correspondence with the original target model token.   \n\nC2C choice We observed that the two selection strategies generally produce very similar results, with more than 80% of sequences yielding identical alignments across strategies. Based on this observation, we empirically adopt Maximal-coverage selection as the default strategy to reduce the risk of losing information in one-to-many tokenization cases.   \n\nThrough this design, template sections are aligned structurally via padding, while message sections are aligned semantically at the token level, ensuring robust correspondences between target model and source model representations in chat-formatted inputs.    \n\n#### A.1.3 Fuser Architecture  Table 9: Comparison of the default C2C fuser and the complex C2C-C variant (Sharer: Qwen3-4B, Receiver: Qwen3-0.6B). PGR (Performance Gap Recovered) measures the fraction of the accuracy gap between the Receiver and Sharer that is recovered.    C-Eval ARC-C MMLU-Redux OpenBook  Method Acc PGR Time Acc PGR Time Acc PGR Time Acc PGR Time  Qwen3-4B 68.09 100% 0.24 87.48 100% 0.24 71.38 100% 0.24 79.40 100% 0.25  Qwen3-0.6B 32.04 0% 0.18 41.04 0% 0.19 35.53 0% 0.18 39.20 0% 0.21  T2T 36.96 14% 0.92 52.00 24% 0.80 42.95 21% 0.99 46.40 18% 1.70  C2C 44.40 34% 0.27 60.17 41% 0.27 45.92 29% 0.27 55.20 40% 0.28  C2C-C 60.63 79% 0.21 80.96 86% 0.23 62.78 76% 0.15 70.40 78% 0.26    \n\nBeyond the C2C fuser, we also examined a more complex yet potentially more powerful variant, which we denote as C2C-C (Complex). The main complexity comes from the introduction of an additional projection stage: instead of directly concatenating Sharer and Receiver caches as in C2C, Sharer cache is first projected into the receiver’s dimensionality through a 3-layer MLP. The concatenated representation is then processed along two familiar routes—feature fusion and dynamic weighting—to yield the final S&R cache.   \n\nThe main experiment results are presented in Table [9](#A1.T9). Note that we fix the maximum response length to 8 tokens and the maximum communication length to 256 tokens in this experiment to reduce evaluation cost. C2C-C attains stronger performance than the default C2C, suggesting that increasing the architectural sophistication of fuser can further amplify the benefits of C2C communication. In this table, we also report Performance Gap Recovered (PGR) ([Ong et al., 2024](#bib.bib20)) metric, which quantifies how much of the performance gap between a weak and a strong model is recovered. Nevertheless, the focus of this work is on introducing the C2C paradigm itself. For this purpose, we adopt a simple yet effective fuser design, leaving systematic investigation of more elaborate architectures to future work.     \n\n### A.2 Additional Experimental Results  \n\n#### A.2.1 Cache Enrichment Detail  \n\nIn Table [10](#A1.T10) we show the effect of single-layer cache enrichment. Layer 4 and 16 benefit from the cache enrichment approach by replacing the KV-Cache with the few-shot one, while cache enrichment on other layers shows performance degradation.   Table 10: Accuracy (%) when enriching only a single transformer layer’s KV-Cache via the cache enrichment oracle. Baseline without enrichment: 58.42%. Bold indicates layers that benefit from enrichment.   Layer Acc. Layer Acc. Layer Acc. Layer Acc.  0 56.36 7 56.82 14 54.24 21 57.74  1 56.36 8 55.01 15 58.06 22 57.23  2 57.14 9 56.78 16 58.45 23 55.22  3 57.53 10 55.29 17 57.88 24 55.75  4 58.52 11 57.05 18 57.21 25 56.16  5 56.45 12 55.04 19 56.71 26 55.79  6 54.56 13 54.83 20 55.93 27 55.01     \n\n#### A.2.2 Strong-to-Weak Communication  Table 11: LongBenchV1 scores comparing Receiver-only, Sharer-only, T2T, and C2C in the strong-to-weak setting (Sharer: Qwen3-4B, Receiver: Qwen3-0.6B) across different input lengths.   Length Receiver Sharer T2T C2C  0–4k 30.52 50.48 38.52 41.46  4–8k 26.03 48.28 35.79 37.57  8k+ 25.99 44.36 33.79 34.23  Average 27.63 47.90 36.18 37.97    \n\nTable [11](#A1.T11) reports the results on LongBenchV1 when pairing the weak receiver Qwen3-0.6B with a much stronger sharer, Qwen3-4B, under different input lengths. Across all length regimes, C2C consistently outperforms both the receiver alone and the T2T baseline. On average, C2C achieves a 51.01% PGR over the weak-to-strong gap. These results demonstrate that in strong-to-weak settings, C2C can effectively transfer the stronger model’s contextual understanding, yielding notable gains for the weaker receiver.   \n\nWe additionally evaluated the strong-to-weak setting (Qwen3-0.6B as receiver and Qwen3-4B as sharer) on other benchmarks beyond LongBenchV1. The detailed results are provided in Section [A.1.3](#A1.SS1.SSS3), Table [9](#A1.T9).    \n\n#### A.2.3 Accuracy Breakdown  \n\nWe analyze where the accuracy gains of C2C come from by using Venn diagrams on the MMLU-Redux benchmark, as illustrated in Figure [7](#A1.F7). For this analysis, we use the C2C-C variant introduced in Section [A.1.3](#A1.SS1.SSS3), as it has the potential to achieve stronger performance and provides a clearer breakdown of where C2C ’s accuracy originates.   \n\nModels with comparable capacity. When the Receiver (Qwen3-0.6B) and the Sharer (Qwen2.5-Math-1.5B-Instruct, denoted as Qwen2.5-Math-1.5B) have comparable overall capacity but complementary strengths, C2C not only inherits part of the Sharer’s ability but also solves additional questions by integrating understanding from both models.   \n\nModels with disparate capacity. When the Sharer (Qwen3-4B) is substantially stronger than the Receiver (Qwen3-0.6B), C2C tends to integrate more of the stronger model’s understanding. Quantitatively, in the disparate-capacity case (Figure [7(b)](#A1.F7.sf2)), among the questions that the Sharer can answer correctly, C2C also answers 72.11% correctly. In contrast, in the comparable-capacity case (Figure [7(a)](#A1.F7.sf1)), C2C succeeds on only 50.97%.      (a) Sharer: Qwen2.5-Math-1.5B, Receiver: Qwen3-0.6B   (b) Sharer: Qwen3-4B, Receiver: Qwen3-0.6B  Figure 7: Venn diagrams of correctly answered questions on MMLU-Redux, comparing Receiver-only, Sharer-only, and C2C (C2C-C variant) answer sets.   \n\nSubcategory breakdown. We analyze the accuracy gains on different subcategories using the radar plot and histogram plot shown in Figure [8](#A1.F8), Figure [9](#A1.F9), and Figure [10](#A1.F10). The result shows that for the Qwen2.5-0.5B and Qwen3-0.6B model pair, C2C outperforms T2T on 12 out of 17 total categories. Using C2C in history, law, and chemistry can bring an additional 7, 7.6, and 7.5 accuracy improvement compared to T2T. For the Qwen3-4B and Qwen3-0.6B model pair, C2C outperforms T2T on all 17 categories. Using T2T in engineering results in a 1% performance drop, showing the case where text communication between models fails to help the receiver models achieve better performance. At the same time, C2C better utilizes the 4B model’s contextual understanding of the problems and achieves a 24% increase in accuracy.      (a) Sharer: Qwen2.5-0.5B, Receiver: Qwen3-0.6B   (b) Sharer: Qwen3-4B, Receiver: Qwen3-0.6B  Figure 8: Per-subcategory accuracy on MMLU-Redux, comparing Receiver, Sharer, T2T, and C2C.   Figure 9: Per-subcategory accuracy gain of T2T and C2C over the Receiver baseline on MMLU-Redux. \n(Sharer: Qwen2.5-0.5B, Receiver: Qwen3-0.6B)   Figure 10: Per-subcategory accuracy gain of T2T and C2C over the Receiver baseline on MMLU-Redux. \n(Sharer: Qwen3-4B, Receiver: Qwen3-0.6B)    \n\n#### A.2.4 Progressive Behavior  Figure 11: MMLU-Redux accuracy as the proportion of the Receiver’s KV-Cache replaced by C2C-fused cache increases. “Former” replaces tokens front-to-back; “Latter” replaces back-to-front. \n(Sharer: Qwen3-4B, Receiver: Qwen3-0.6B)   \n\nTo investigate the impact of fused KV-Cache proportion on the accuracy of the receiver model, we gradually added the proportion of fused KV-Cache derived from the sharer to the receiver model before generating outputs. Specifically, former and latter refer to progressively replacing the receiver’s KV-Cache with the fused KV-Cache from front to back and back to front, respectively. We observe that the overall accuracy first decreases and then increases as the replacement ratio grows. The performance reduction may stem from the gap between training and testing, where only the full receiver KV-Cache is used during training. When the fused proportion goes up to over 50%, the performance of C2C continues to increase with respect to the proportion, reflecting the progressive benefits of C2C. Note that projecting using the latter cache generally has a larger impact than projecting the former, since it is closer to the final response.     \n\n### A.3 Additional Experiment Setup  \n\n#### A.3.1 Cache Enrichment  \n\nWe conducted Oracle experiments with Qwen3-0.6B and Qwen3-4B to examine how KV-Cache enrichment influences model performance. The evaluation was performed on MMLU-Redux. The few-shot examples are selected from MMLU while excluding overlaps with MMLU-Redux to ensure fairness. To probe different ways of applying cache enrichment, we compared four cache enrichment strategies: All-layer Cache Enrichment (apply cache enrichment on all layers), Single-Layer Cache Enrichment (apply cache enrichment only on single layers), Selective Cache Enrichment - Best (select n layers that have the highest accuracy according to Single-Layer Cache Enrichment), Selective Cache Enrichment - Worst (select n layers that have the lowest accuracy according to Single-Layer Cache Enrichment). All methods utilized Few-Shot–optimized KV-Caches while maintaining the same cache length as Zero-Shot, enabling a controlled evaluation of cache enrichment and its layer-specific effects.    \n\n#### A.3.2 Cache Transformation  \n\nWe employed the MMLU-Redux dataset to train a 3-layer MLP that maps the last layer KV-Cache in the source LLM (Qwen3-4B) to the last layer of the target LLM (Qwen3-0.6B). In this oracle experiment, we adopt the MSE loss of the projected KV-Cache and the target KV-Cache instead of the next-token prediction loss, as we aim to test whether the representation space can be transformed using a neural network. The Key Cache and Value Cache are first concatenated on the hidden space dimension, then put for MSE calculation. A detailed calculation of loss is shown in the following code:\n\n```\n\nsource_prefilled = source_model.forward(prefill_input_id)\ntarget_prefilled = target_model.forward(prefill_intput_id)\nsource_k, source_v = source_prefilled.past_key_values[-1]\ntarget_k, target_v = target_prefilled.past_key_values[-1]\nproject_k = k_projector(source_k)\nproject_v = v_projector(source_v)\nmseloss(torch.dstack([project_k, project_v]),\n        torch.dstack([target_k, target_v]))\n\n```\n   \n\nFor visualization, 300 samples were randomly selected from the dataset. The source, target, and transformed KV-Cache were all projected into two-dimensional space using t-SNE, allowing us to examine the alignment of representations between the two models. For t-SNE generation, we set perplexity to 50 and max iterations to 1000.    \n\n#### A.3.3 Query-level routing  \n\nQuery-level routing aims to improve the performance–efficiency trade-off by dynamically assigning harder queries to a stronger LLM. Following prior work, we adopt a matrix factorization framework. Query embeddings are obtained from the OpenAI text-embedding-3-small encoder, while model embeddings are taken from pretrained vectors of gpt-4-1106-preview and mixtral-8x7b-instruct-v0.1. These embeddings are used to compute a strong win rate score for each query, which reflects its relative difficulty. Queries are then ranked by this score. For each evaluated model pair, we define the strong model as the one achieving higher standalone benchmark accuracy and the weak model as the lower-performing one. Queries in the upper half of the ranking are routed to the strong model, while those in the lower half are routed to the weak model.    \n\n#### A.3.4 Evaluation Method  \n\nMain evaluation. We evaluate C2C on four multiple-choice benchmarks: OpenBookQA, MMLU-Redux, ARC-Challenge, and C-Eval. For MMLU-Redux, we exclude questions annotated with the error type no correct answer. For all evaluations, we adopt a deterministic generation configuration without sampling, using greedy decoding to ensure reproducibility. Specifically, we use Non-CoT prompts, following the unified format described in Section [A.3.6](#A1.SS3.SSS6). Model outputs are then matched to the correct option labels to compute accuracy. To control evaluation cost, we set the maximum response length to 64 tokens unless otherwise specified, where the response refers to the final answer generated by the Receiver, since the base models do not always follow instructions, and longer limits would substantially increase inference time. For the T2T setting, we additionally set the maximum communication length to 256 tokens, where the communication refers to the messages passed from the Sharer to the Receiver.   \n\nLongBench evaluation. We evaluate C2C on the LongBench-E dataset, which comprises a total of 13 individual datasets. The prompts and evaluation procedures use the official LongBench settings, with a maximum output length of 2,048 tokens.    \n\n#### A.3.5 C2C Training  \n\nTraining data. (1) Performance experiment. The fuser was trained on the OpenHermes-2.5 Dataset with a maximum sequence length of 2,048 tokens. Training used 500,000 samples for one epoch with a macro batch size of 256, corresponding to 1,929 total training steps.   \n\n(2) Scaling sequence lengths experiment. The fuser was trained on the LongBench-E benchmark with a maximum sequence length of 12,000 tokens. The data was randomly split into 3/4 for training and 1/4 for evaluation by data index, ensuring independence between training and evaluation. Training used 1,896 samples for one epoch with a macro batch size of 16, corresponding to 118 total training steps.   \n\n(3) Scaling model sizes and different model combinations experiment. The fuser was trained on the auxiliary_train split of the MMLU dataset with a maximum sequence length of 1,024 tokens. Training used 15,000 samples for one epoch with a macro batch size of 128, corresponding to 116 total training steps.   \n\nTraining scheme. All experiments were conducted with a fixed random seed of 42 to ensure reproducibility. Unless otherwise noted, the training configuration was as follows: optimization employed a learning rate of 1×10−41\\times 10^{-4} with a linear scheduler and a 10% warmup ratio, a weight decay of 0.01, and a maximum gradient norm of 1. The temperature was linearly annealed from 1.0 to 0.001 across the total number of training steps. Layer alignment was configured with the last aligned scheme across all experiments. The tokenization alignment was applied only when the paired models employed different tokenizers, in which case the longest strategy was used. For data preparation, each dataset was partitioned into a training split (99%) and a small held-out validation split (1%). The validation split was not used for model updates but was monitored during training to report evaluation loss.    \n\n#### A.3.6 Evaluation Prompts  \n\nText 1 presents the prompts used for the main evaluation on multiple-choice datasets. Text 2 is the alternative non-CoT version used for response diagnosis in Appendix [A.4.4](#A1.SS4.SSS4). Text 3 provides the prompt for the Sharer model in the T2T evaluation; the Receiver model uses the same prompt as in the C2C setting. Text 4 shows the prompt used in the cache enrichment experiment. For the zero-shot method, no shots are included in the prompt. The few-shot method uses exactly the same prompt as Text 4. For Oracle methods, we adopt the few-shot prompt but remove the KV-Cache associated with the shots after the forward pass. The prompt for LongBench evaluation follows its official configuration, which varies across the different sub-datasets.             \n\n### A.4 Additional Analysis  \n\n#### A.4.1 Effective Rank  \n\nWe list the definition of effective rank that was proposed by [Roy and Vetterli (2007)](#bib.bib43) here as a reference. For a matrix W that has size M×NM\\times N, the singular value decomposition of it can be expressed as W=U​Σ​VW=U\\Sigma V and the singular values σ=(σ1,σ2,…,σm​i​n​(M,N))T\\sigma=(\\sigma_{1},\\sigma_{2},...,\\sigma_{min(M,N)})^{T} are the non-negative diagonal entries of the matrix Σ\\Sigma. The singular value distribution is denoted as:    pi=σi‖σ‖1p_{i}=\\frac{\\sigma_{i}}{\\|\\sigma\\|_{1}}  (6)  \n\nDenote the Shannon Entropy as:    H(p1,p2,…,pm​i​n​(M,N))=−∑i=1m​i​n​(M,N)pilogpiH(p_{1},p_{2},...,p_{min(M,N)})=-\\sum_{i=1}^{min(M,N)}p_{i}\\log p_{i}  (7)  \n\nThe effective rank is defined as:    erank(W)=e−∑i=1m​i​n​(M,N)pilogpierank(W)=e^{-\\sum_{i=1}^{min(M,N)}p_{i}logp_{i}}  (8)    \n\nIn Figure [12](#A1.F12), we present the effective rank of key and value caches across all the layers. The plot shows a continuous increase in the effective rank of value caches after applying C2C, especially in the shallow layers. Key caches after applying C2C also have a comparable effective rank and increase at deep layers.      (a) Effective rank of the Key cache.   (b) Effective rank of the Value cache.  Figure 12: Per-layer effective rank of Key and Value caches for the Receiver (Qwen3-0.6B), Sharer (Qwen3-4B), and after C2C fusion. Higher effective rank indicates richer semantic information.    \n\n#### A.4.2 Gating Behavior  \n\nWe analyze the behavior of the learnable gates by contrasting models trained on general-purpose versus task-specific data. This comparison reveals markedly different gating dynamics across the two regimes.   \n\nGeneral-purpose training. When C2C is trained on the OpenHermes-2.5 dataset, the learned key and value gates remain almost fully open. Across the three model combinations reported in Table [4](#S4.T4), the average gate activation ratio exceeds 98.21%. Despite this near-complete activation, we observe that in certain layers the dynamic weights are concentrated at very small values—for example, the average key weight in some layers falls below 0.1. This suggests that under general-purpose training, C2C leverages the dynamic weighting mechanism to modulate how much information is incorporated from the sharer on a per-query basis, effectively treating dynamic weights as the primary control signal while leaving most gates open.   \n\nTask-specific training. In contrast, when C2C is trained on the MMLU auxiliary_train split, the gates exhibit a much sparser activation pattern. Across model combinations shown in Table [7](#S4.T7), the average gate activation ratio drops to 52.67%. For the layers where gates do open, however, the dynamic weights are substantially larger, with most layers exhibiting average weights above 0.4. This indicates that under task-specific training, the gating mechanism selects a smaller subset of layers that are consistently useful, while the dynamic weights primarily regulate the contribution strength of these selected layers.   \n\nOverall, these findings highlight the adaptive interplay between gates and weights: general-purpose training favors broad gate activation with fine-grained modulation via weights, whereas task-specific training favors sparse gate activation with stronger reliance on the selected layers.    \n\n#### A.4.3 Outlier cases in inference time  \n\nLlama3.2. We observe that the Llama3.2 model achieves significantly lower inference time compared to other baselines in Table [4](#S4.T4). This improvement can be attributed to two factors. First, the Llama3.2 model itself has faster inference speed due to its implementation. Second, under the Non-CoT evaluation prompts described in Section [A.3.6](#A1.SS3.SSS6), the model tends to output only a single option letter (e.g., “A” or “B”), rather than a longer formatted string such as “The correct answer is A.” The shorter outputs further reduce the average decoding time, leading to the observed advantage.   \n\nQwen2.5-Math. In contrast, the Qwen2.5-Math model exhibits considerably longer inference time, as shown in Table [7](#S4.T7). The primary cause is its tendency to ignore the Non-CoT evaluation and T2T prompts described in Section [A.3.6](#A1.SS3.SSS6), producing verbose, step-by-step solutions rather than concise answers. To accommodate these long outputs and avoid truncation, we set both the maximum response length and the maximum communication length to 1024 tokens during evaluation. Under this configuration, the model decodes substantially more tokens on average, resulting in significantly longer inference time.    \n\n#### A.4.4 Example Model Output  \n\nTo help better understand the response pattern of different models, we show the example response from different methods using the CoT prompt. We use Qwen2.5-0.5B as the Sharer model and Qwen3-0.6B as the Receiver model.   \n\nAs shown in the following examples, Qwen3-0.6B misunderstood the question. It treated a probe for deeper meaning as merely a rephrasing task. Qwen2.5-0.5B-Instruct misinterpreted the question type altogether, taking it as sentence completion and answering the replaced question instead, with overly verbose reasoning. T2T altered the context of the question itself. In contrast, C2C maintained a solid understanding, recognizing that the rewritten sentence aimed to explore deeper moral reasoning, and accordingly selected the correct answer.                    \n\n#### A.4.5 Training Cost Analysis  \n\nHere we present the training cost in Table [12](#A1.T12). As shown in the table, accuracy quickly increases in the first few hundred steps. With 300 training steps (less than 9 GPU hours), C2C achieves a comparable result to the final checkpoint.   Table 12: Training cost (wall-clock and GPU hours) and MMLU-Redux accuracy at each training step (columns) for three Sharer–Receiver pairs.   C2C Setting Metric 0 50 100 150 300 1929  Qwen2.5-0.5B+Qwen3-0.6B Wall-clock (h) - 0.15 0.29 0.44 0.87 5.59  GPU Hours - 1.20 2.32 3.52 6.95 44.72  MMLU-Redux 35.53 40.36 41.10 42.06 44.30 42.92  Llama3.2-1B+Qwen3-0.6B Wall-clock (h) - 0.18 0.35 0.53 1.05 6.78  GPU Hours - 1.44 2.80 4.24 8.44 54.24  MMLU-Redux 35.53 28.66 41.16 43.98 44.37 44.42  Qwen3-4B-Base+Qwen3-0.6B Wall-clock (h) - 0.16 0.32 0.48 0.96 6.17  GPU Hours - 1.28 2.56 3.84 7.68 49.36  MMLU-Redux 35.53 38.07 39.56 40.77 44.11 43.95    \n\nAdditionally, in Figure [13](#A1.F13) we have plots of training loss and validation loss to compare the settings using Qwen2.5-0.5B or Llama3.2-1B as Sharer. The plot shows that for both settings, the training loss converges at 250 steps and the eval loss becomes stable at step 1000, suggesting that C2C across different model families incurs no extra computational cost.      (a) Training loss comparison   (b) Validation loss comparison  Figure 13: Training and validation loss curves for C2C with two Sharer–Receiver pairs: Qwen2.5-0.5B+Qwen3-0.6B and Llama3.2-1B+Qwen3-0.6B.   Table 13: MMLU accuracy in the one-Receiver, multiple-Sharers setting (Receiver: Qwen3-0.6B, Sharer 1: Qwen3-4B-Base, Sharer 2: Qwen2.5-1.5B-Math). Arrows denote KV-Cache transfer direction via C2C.   Type MMLU Acc.  Receiver 35.53  Sharer1 1.03  Sharer2 39.86  Sharer1 → Receiver 60.71  Sharer2 → Receiver 46.13  Sharer1, Sharer2 → Receiver 64.60     \n\n#### A.4.6 Failure Mode Analysis  \n\nWe have shown that in various settings, C2C, as a new communication paradigm, can increase the receiver model performance by using the sharer’s contextual understanding. However, in some specific cases, C2C can fail to do so as the contextual understanding from the Sharer model is not always accurate and can mislead the Receiver into generating wrong answers. As shown in Figure [7](#A1.F7), though in general the number of correctly answered questions increases, there are some questions that the receiver can answer correctly but are answered incorrectly after applying C2C. Below we show an example of an accounting question where Qwen3-0.6B generates the correct answer. However, when using T2T and C2C, Qwen2.5-0.5B conveys incorrect information, leading Qwen3-0.6B to the wrong answer. \nThis type of failure is more likely when using a very weak Sharer with strong Receiver and can lead to a performance degradation as mentioned in the limitation part.                     \n\n### A.5 C2C Extensions and Future Work  \n\nAs an initial exploration, this work focuses on pairwise communication to establish a foundation for future research. Communication via KV-Cache among multiple models is a direction that requires future exploration, with different designs that can be employed. Here, we explore two settings that involve multiple Sharers and/or Receivers.   \n\n#### A.5.1 One Receiver, Multiple Sharers  \n\nWe explore the scenario in which three models are involved in the communication. Here we set Qwen3-0.6B as the Receiver and use both Qwen2.5-1.5B-Math and Qwen3-4B-Base as Sharers. Here, we separately trained the C2C fusers from Qwen2.5-1.5B-Math to Qwen3-0.6B and Qwen3-4B-Base to Qwen3-0.6B. The result in Table [13](#A1.T13) shows that without additional training, the receiver can use C2C to fuse two Sharers’ semantic information and improve the performance.    \n\n#### A.5.2 Multiple Receivers Multiple Sharers  \n\nWe provide a possible path towards more efficient scaling, with O⁡(N)O(N) fusers instead of O⁡(N2)O(N^{2}) fusers to communicate among NN LLMs.   \n\nThe design philosophy is to decompose M×NM\\times N communication routes into M×1M\\times 1, then 1×N1\\times N steps, with 11 being the unified latent space. This is achieved by using Projectors PsiP_{s_{i}} to transform the KV-Cache from different Sharer LLMs s0,…,sM−1s_{0},\\dots,s_{M-1} into a unified latent representation KV-Latent LL, then using the C2C fuser FrjF_{r_{j}} to fuse them with each Receiver model r0,…,rN−1r_{0},\\dots,r_{N-1}. CsiC_{s_{i}} represents the KV-Cache from model sis_{i}. For M Sharers, N Receivers, we have M projectors and N fusers. Each sharer-receiver pair has its own gate. During training, all Sharer KV-Caches are projected into a unified hidden space with respective Projectors.    Csi→PsiUsi,i=𝕄={0,…,M−1}C_{s_{i}}\\xrightarrow{P_{s_{i}}}U_{s_{i}},\\quad i=\\mathbb{M}=\\{0,\\dots,M-1\\}   \n\nThen, each of the NN Receivers fuses all the MM available information from this hidden space.    (Usi,Crj)→FrjCrj,j=ℕ={0,…,N−1}(U_{s_{i}},C_{r_{j}})\\xrightarrow{F_{r_{j}}}C_{r_{j}},\\quad j=\\mathbb{N}=\\{0,\\dots,N-1\\}   \n\nThis yields NN updated caches Crj′C_{r_{j}}^{\\prime}, which can be optimized using the same SFT loss discussed in Section 3.3.4. Losses from all Receivers are summed to update all Projectors and fusers. During inference, the model supports both one-to-one and many-to-one (multi-sharer to single receiver) settings. As an initial exploration, we directly adopted the training data, fuser architecture, and hyperparameter settings from the pairwise fuser training, with vast possibilities left for future work.   \n\nIn Table [14](#A1.T14) we show the result of using Qwen2.5-Coder-0.5B-Instruct and Qwen2.5-Math-1.5B-Instruct as Sharers, Qwen3-0.6B and Qwen2.5-0.5B-Instruct as Receivers.   Table 14: MMLU-Redux accuracy in the multiple-Receiver, multiple-Sharer setting with shared latent projectors. Receivers: Qwen3-0.6B and Qwen2.5-0.5B-Instruct; Sharers: Qwen2.5-Coder-0.5B-Instruct and Qwen3-4B-Base.   Sharer Receivers (MMLU Acc.)  Qwen3-0.6B Qwen2.5-0.5B  None 34.78 38.44  Coder-0.5B 46.07 42.44  4B-Base 51.23 59.17  Both 51.08 59.81     \n\n#### A.5.3 Incorporating with Agentic Flow  \n\nHere we show an exploration of C2C in agentic flow. We adopt the agentic flow for math problem-solving, following the workflow and prompts from Cognify ([He et al., 2025](#bib.bib54)). The workflow consists of a problem interpreter that analyzes the math problem and a problem solver that calculates the answer. For C2C, we use the prompt of the math solver, so the problem interpretation is done by KVCache fusion. Here we present the result on GSM8K. As shown in the table, the multi-agent flow increases the accuracy of math problem solving by 20.01. C2C has an accuracy of 62.55, increasing the accuracy by 1.37 when compared with the multi-agent flow using T2T. The performance can be further elevated to 78.01 by using T-C2C, which lets the math interpreter generate the interpretation and use C2C on both the question and the interpretation.   Table 15: GSM8K accuracy comparing single-model inference, multi-agent T2T flow, C2C, and T-C2C (T2T interpretation combined with C2C cache fusion).   Method Accuracy  Single Model (Qwen3-0.6B) 41.17  T2T (Multi-agent flow) 61.18  C2C 62.55  T-C2C 78.01","body_html":"<h1 id=\"cache-to-cache-direct-semantic-communication-between-large-langu\">Cache-to-Cache: Direct Semantic Communication Between Large Language Models   Tianyu Fu</h1>\n<h6 id=\"abstract\">Abstract</h6>\n<p>Multi-LLM systems harness the complementary strengths of diverse Large Language Models, achieving performance and efficiency gains that are not attainable 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 6.4-14.2% higher average accuracy than individual models. It further outperforms the text communication paradigm by approximately 3.1-5.4%, while delivering an average 2.5× speedup in latency. Our code is available at <a href=\"https://github.com/thu-nics/C2C\" rel=\"nofollow ugc noopener\"><a href=\"https://github.com/thu-nics/C2C\" rel=\"nofollow ugc noopener\">https://github.com/thu-nics/C2C</a></a>.         </p>\n<h2 id=\"1-introduction-figure-1-a-previous-text-to-text-t2t-communicatio\">1 Introduction  Figure 1: (a) Previous Text-to-Text (T2T) communication passes information through explicit text generation. (b) Our Cache-to-Cache (C2C) communication directly projects and merges KV-Cache with rich semantics from different LLMs.</h2>\n<p>With the rapid progress of Large Language Models (LLMs) (<a href=\"#bib.bib1\">Guo et al., 2025</a>; <a href=\"#bib.bib7\">Yang et al., 2025a</a>; <a href=\"#bib.bib2\">OpenAI, 2025</a>), they are now applied across increasingly diverse domains and tasks. To meet versatile demands, LLMs are trained with distinct focuses, such as coding (<a href=\"#bib.bib4\">Hui et al., 2024</a>), mathematics (<a href=\"#bib.bib3\">Yang et al., 2024a</a>), visual understanding (<a href=\"#bib.bib5\">Bai et al., 2025</a>), edge computing (<a href=\"#bib.bib6\">Zhang et al., 2024b</a>), and so on. Meanwhile, general-purpose LLMs can also simulate specialized capabilities through prompt engineering, enabling flexible role adaptation across downstream applications.   </p>\n<p>Leveraging the diversity of LLMs, many multi-LLM systems are proposed to further enhance overall performance and efficiency (<a href=\"#bib.bib8\">Guo et al., 2024</a>; <a href=\"#bib.bib9\">Tran et al., 2025</a>). In collaborative multi-LLM systems (<a href=\"#bib.bib11\">Li et al., 2023</a>; <a href=\"#bib.bib12\">Wu et al., 2023</a>), LLMs are assigned distinct roles and proactively exchange text messages. Mirroring human collaboration, these systems accumulate partial understandings or sub-solutions from different agents via verbal communication. They harness the collective capabilities of multiple LLMs to solve complex problems that a single model cannot. By contrast, routing-based multi-LLM inference systems rely on passive context inheritance rather than active message exchange. These systems coordinate models of varying parameter sizes or reasoning depths for more dynamic and efficient responses (<a href=\"#bib.bib19\">Li et al., 2024</a>; <a href=\"#bib.bib18\">Fu et al., 2025a</a>; <a href=\"#bib.bib20\">Ong et al., 2024</a>; <a href=\"#bib.bib2\">OpenAI, 2025</a>). Downstream models inherit the context from preceding models in multi-round conversations, then generate follow-up responses to the new questions based on their own understanding of the conversation history.   </p>\n<p>However, current text-to-text (T2T) interfaces restrict information exchange among LLMs, particularly when conveying rich or diverse semantic interpretations of a shared context. As illustrated in Figure <a href=\"#S1.F2\">2</a>, these limitations arise from several inherent constraints of T2T communication. First, as a low-bandwidth medium, text introduces an information bottleneck. The high-dimensional internal representations must be repeatedly compressed into linear strings and then decompressed by the receiver LLM. When models differ in knowledge or assigned roles, some signals may be irrecoverable (e.g., interpreting &lt;p&gt; as a section marker). Second, natural language is inherently ambiguous, with idioms, underspecified references, and vague expressions. Although recent agent protocols aim to standardize text messages (<a href=\"#bib.bib16\">Anthropic, 2024</a>; <a href=\"#bib.bib17\">Surapaneni et al., 2025</a>), rigid templates remain insufficient for flexible, open-domain collaboration. Third, T2T communication incurs noticeable latency. Every exchange requires exhaustive, token-by-token decoding of contextual explanations in sequence. These limitations motivate a key question: </p>\n<p>Can LLMs communicate beyond text?   </p>\n<p>In this work, we explore using KV-Cache as the medium for LLM communication. KV-Cache is a naturally richer representation than text. It also enables fully parallel communication through direct projection, avoiding the slow sequential decoding in text exchanges. Our oracle experiments show that (1) enriching KV-Cache under the same context length increases accuracy, (2) KV-Cache is convertible between LLMs, (3) different LLMs encode distinct semantic understandings and contextual knowledge of the same input, reflecting their complementary strengths.   </p>\n<p>Encouraged by these findings, we propose Cache-to-Cache (C2C), a new paradigm for richer and faster multi-LLM communication. As shown in Figure <a href=\"#S1.F1\">1</a>(b), C2C projects the KV-Cache from a source model into the space of a target model and merges them through a neural cache fuser. Experiments show that C2C achieves 6.4-14.2% higher average accuracy than individual models. It further outperforms the T2T paradigm by approximately 3.1-5.4%, while delivering an average 2.5×\\times speedup in latency.   Figure 2:  Conceptual comparison of T2T and C2C communication in a Coder-Writer collaboration example. In T2T, the Coder’s ambiguous text instruction fails to convey the structural semantics of &lt;p&gt; as a paragraph separator, causing the Writer to misplace the content. C2C directly projects the Coder’s KV-Cache into the Writer, transferring both the semantic understanding and precise insertion location without intermediate text generation.     </p>\n<h2 id=\"2-related-work\">2 Related Work</h2>\n<h3 id=\"2-1-kv-cache-sharing-and-reuse\">2.1 KV-Cache Sharing and Reuse</h3>\n<p>Based on the similarity of KV-Cache between layers, intra-model cache sharing methods (<a href=\"#bib.bib23\">Yang et al., 2024b</a>; <a href=\"#bib.bib24\">Wu and Tu, 2024</a>; <a href=\"#bib.bib25\">Sun et al., 2024</a>; <a href=\"#bib.bib26\">Brandon et al., 2024</a>; <a href=\"#bib.bib27\">Wu et al., 2025</a>) have been proposed to reuse shallow layers’ KV-Cache for deeper layers to accelerate single LLM inference. Another research focus is to reuse a portion of KV-Cache (e.g., common prefix, reference documents) for the same model in multiple user queries (<a href=\"#bib.bib28\">Bang, 2023</a>; <a href=\"#bib.bib29\">Ye et al., 2024</a>; <a href=\"#bib.bib34\">Yao et al., 2024</a>; <a href=\"#bib.bib30\">Qin et al., 2024</a>; <a href=\"#bib.bib32\">Yang et al., 2025b</a>; <a href=\"#bib.bib50\">Ye et al., 2025</a>; <a href=\"#bib.bib52\">Eyuboglu et al., 2025</a>). DroidSpeak (<a href=\"#bib.bib31\">Liu et al., 2024a</a>) extends cache reuse to models fine-tuned from the same base model. Unlike existing works that focus on computational efficiency through cache reuse, our approach leverages the KV-Cache as a medium for semantic transfer between LLMs. Furthermore, unlike existing cache sharing methods that are restricted to only a single model or models with identical structure and size, our method supports sharing across different model families and varying model sizes.    </p>\n<h3 id=\"2-2-multi-llm-systems\">2.2 Multi-LLM Systems</h3>\n<p>Collaborative multi-LLM systems. Collaborative systems treat multiple LLMs as peers that exchange information to improve collective performance. Chain-of-Agents (<a href=\"#bib.bib33\">Zhang et al., 2024c</a>) and MetaGPT (<a href=\"#bib.bib10\">Hong et al., 2023</a>) create sequential message flows where agents directly communicate using natural language interfaces. Mixture-of-Agents (<a href=\"#bib.bib13\">Wang et al., 2024</a>), DyLAN (<a href=\"#bib.bib14\">Liu et al., 2024b</a>), and Owl (<a href=\"#bib.bib15\">Hu et al., 2025</a>) introduce layered communication architectures. Target LLMs aggregate messages from multiple models using voting or summarization mechanisms. Multi-agent debate methods (<a href=\"#bib.bib35\">Estornell and Liu, 2024</a>; <a href=\"#bib.bib36\">Liang et al., 2024</a>; <a href=\"#bib.bib37\">Du et al., 2023</a>) involve iterative communication rounds, letting LLM agents discuss and refine responses. Recent works such as MCP <a href=\"#bib.bib16\">Anthropic (2024)</a> and A2A <a href=\"#bib.bib17\">Surapaneni et al. (2025)</a> establish formal text protocols beyond natural language, standardizing agent interaction and tool usage in collaborative multi-LLM systems. These approaches rely on text-level interfaces, where communication requires one model to generate text token-by-token and another to ingest it as input. Our work explores a deeper and more efficient collaboration (<a href=\"#bib.bib51\">Pidkuiko and Starkov, 2025</a>; <a href=\"#bib.bib53\">Zheng et al., 2025b</a>) by directly sharing internal KV-Cache representations.   </p>\n<p>Routing-based multi-LLM inference systems. To accelerate LLM inference, several systems leverage multiple models with different capabilities and costs. Dynamic model selection methods (<a href=\"#bib.bib2\">OpenAI, 2025</a>; <a href=\"#bib.bib20\">Ong et al., 2024</a>; <a href=\"#bib.bib41\">Feng et al., 2024</a>; <a href=\"#bib.bib49\">Ning et al., 2024</a>) route queries to different models with varying sizes and configurations to balance efficiency and performance. Token-level routing methods (<a href=\"#bib.bib38\">Zhang et al., 2024a</a>; <a href=\"#bib.bib39\">Shen et al., 2024</a>; <a href=\"#bib.bib40\">Zheng et al., 2025a</a>; <a href=\"#bib.bib18\">Fu et al., 2025a</a>) enable finer-grained selection, utilizing smaller models for simple token generation within the reasoning process of complex tasks. While these systems achieve efficiency through strategic model switching, they either completely drop context from other models, or simply rely on their own understandings of the context. Without understanding sharing, smaller models cannot benefit from the richer representations already computed by larger models.     </p>\n<h2 id=\"3-method\">3 Method</h2>\n<h3 id=\"3-1-preliminaries\">3.1 Preliminaries</h3>\n<p>LLM inference. Autoregressive LLM inference involves two stages: prefill and decode. Prefill encodes the full input to produce the first output token; decode then generates subsequent tokens iteratively using the last token and the cached key–value (KV) states. Formally, let X[0:n]=[x0,…,xn−1]X_{[0:n]}=[x_{0},\\dots,x_{n-1}] be the input token sequence. After prefill, LLM produces a per-token KV-Cache 𝒞(X[0:n])=[c0,…,cn−1]∈ℝn×d\\mathcal{C}(X_{[0:n]})=[c_{0},\\dots,c_{n-1}]\\in\\mathbb{R}^{n\\times d}. For notation brevity, dd denotes the KV dimensionality that is flattened from all layers into a single vector per token. The range subscripts are omitted when clear. During decoding, with the current token yiy_{i} and caches from the input and the generated prefix, the next token is predicted as    yi+1=𝒫(yi∣𝒞(X)⊕𝒞(Y[0:i])),y_{i+1}=\\mathcal{P}!\\left(y_{i}\\mid\\mathcal{C}(X)\\,\\oplus\\,\\mathcal{C}(Y_{[0:i]})\\right),  (1)  </p>\n<p>where ⊕\\oplus denotes sequence-wise concatenation. The cache updates as 𝒞(Y[0:i+1])=𝒞(Y[0:i])⊕𝒞(yi)\\mathcal{C}(Y_{[0:i+1]})=\\mathcal{C}(Y_{[0:i]})\\oplus\\mathcal{C}(y_{i}).   </p>\n<p>LLM communication. In LLM communication scenarios, we define the LLM that provides contextual understanding or knowledge as Sharer, and the one that utilizes it as Receiver.    </p>\n<h3 id=\"3-2-oracles-for-cache-to-cache-communication\">3.2 Oracles for Cache-to-Cache Communication</h3>\n<p>We aim to explore whether LLMs can have direct semantic communication through KV-Cache. Specifically, we design two oracle experiments to answer the following questions: (1) Benefit: can a model’s capabilities be improved through KV-Cache semantic enrichment without extending sequence length? (2) Convertibility: can the KV-Cache of one model be effectively utilized by another model?   </p>\n<h4 id=\"3-2-1-cache-enrichment-oracle\">3.2.1 Cache Enrichment Oracle</h4>\n<p>To validate the benefit of cache enrichment, we first explore whether the semantic quality of KV-Cache can be improved without increasing its size. Few-shot prompting suggests this might work: providing exemplars EE before the question XX often improves accuracy. But does this arise from attending to more context tokens, or from EE enriching how XX is embedded in KV-Cache?   </p>\n<p>We evaluate this via three setups: (1) Direct: prefill on XX only and decode with 𝒞⁡(X)\\mathcal{C}(X); (2) Few-shot: prefill on E⊕XE\\oplus X and decode with 𝒞⁡(E⊕X)\\mathcal{C}(E\\oplus X) (longer cache); (3) Oracle: prefill on E⊕XE\\oplus X but discard the exemplar segment and keep only the question-aligned slice    𝒞∗(X)=𝒞|E|:|E|+|X|,\\mathcal{C}^{*}(X)\\;=\\;\\mathcal{C}_{[\\,|E|:|E|+|X|\\,]}(E\\oplus X),  (2)  </p>\n<p>so that decoding uses a question-length cache with no extra tokens. Here, |⋅||\\cdot| denotes sequence length. In Equation <a href=\"#S3.E1\">1</a>, this corresponds to substituting 𝒞⁡(X)\\mathcal{C}(X) with 𝒞∗​(X)\\mathcal{C}^{*}(X) before decoding.   </p>\n<p>Comparing Direct and Oracle isolates the effect of cache enrichment: any gain arises from the richer question embeddings induced by EE, not from attending to additional token caches as in Few-shot. As shown in Table <a href=\"#S3.T1\">1</a>, the Oracle setup improves response quality at the same cache length.   </p>\n<p>Additionally, we analyze how cache enrichment affects different transformer layers. Our findings show substantial variation across layers: while some layers benefit from cache enrichment, others experience performance degradation (details in Appendix <a href=\"#A1.SS2.SSS1\">A.2.1</a>). Furthermore, these layer-wise effects accumulate as more layers are augmented. As shown in Figure <a href=\"#S3.F4\">4</a>, selectively applying cache enrichment to the top-performing layers (e.g., top-5) yields slightly higher accuracy than enriching all layers, while targeting the worst-performing layers leads to accuracy decline. This finding guides the gating mechanism of our cache fuser (Section <a href=\"#S3.SS3.SSS2\">3.3.2</a>).<br />\n Figure 3: T-SNE visualization of KV-Cache representations from the source (Qwen3-4B), target (Qwen3-0.6B), and the transformed cache. After transformation, the source cache falls within the target’s representation space.<br />\n Figure 4: Effect of selectively enriching different numbers of layers’ KV-Cache on accuracy. Enriching more best-performing layers yields increased accuracy, while enriching the worst-performing ones declines accuracy.         Method Cache Len. Cache Enrich. Acc. (%)  Direct |X||X| No 58.42  Few-shot |E|+|X||E|+|X| Yes 63.39  Oracle |X||X| Yes 62.34<br />\n Table 1: Cache enrichment experiment. Oracle prefills on exemplars (EE) and question (XX), then drops the exemplar cache before decoding, isolating semantic enrichment from cache length.      Average Effective Rank  Type Sharer Receiver C2C  K Cache 539 388 395  V Cache 689 532 560<br />\n Table 2: Average effective rank of KV-Cache from Sharer, Receiver, and the C2C-fused one. The increase after fusion indicates that C2C enriches the Receiver KV-Cache semantics.     </p>\n<h4 id=\"3-2-2-cache-transformation-oracle\">3.2.2 Cache Transformation Oracle</h4>\n<p>To verify that one model’s KV-Cache can be utilized by another, we conducted cross-model transformation experiments. We train a 3-layer MLP to map the KV-Cache from a source LLM (Qwen3-4B) to a target LLM (Qwen3-0.6B), with more setups detailed in Appendix <a href=\"#A1.SS3.SSS2\">A.3.2</a>.   </p>\n<p>T-SNE visualizations in Figure <a href=\"#S3.F3\">3</a> reveal that the raw KV-Caches of the two LLMs are far apart in representation space. After transformation, the mapped KV-Cache lies inside the target model’s representation space. These results demonstrate that KV-Caches from different models are generally convertible, as the transformed cache is covered by the target model’s representation space.   </p>\n<p>One thing to note is that the transformed cache occupies only a smaller subset of the target’s space. It indicates that the source model’s semantic information cannot fully cover the target’s, despite the source being larger. This reflects inherent differences in how each model encodes context. Another observation also supports this interpretation: the correct-answer sets of different models exhibit limited overlap (Figure <a href=\"#A1.F7\">7</a>), despite the comparable aggregated accuracy of respective models. These findings suggest that if specialized contextual understanding from different models can be successfully projected and fused, it may harness the complementary strengths of the respective models.     </p>\n<h3 id=\"3-3-c2c-design\">3.3 C2C Design</h3>\n<h4 id=\"3-3-1-overview\">3.3.1 Overview</h4>\n<p>Building on the oracle experiments, we propose the C2C scheme. Its core objective is to extract useful contextual understanding or knowledge from one model (the Sharer) and fuse it into another model (the Receiver).   </p>\n<p>In general, the C2C paradigm contains a set of key/value cache fusers ℱ\\mathcal{F} and a layer mapping strategy 𝒢\\mathcal{G}. During the prefill stage, fuser ℱn\\mathcal{F}<em>{n} takes the nnth layer cache of the Receiver Model 𝒞n​(X)\\mathcal{C}</em>{n}(X) and the corresponding 𝒢⁡(n)\\mathcal{G}(n)th layer cache of the Sharer Model 𝒞𝒢⁡(n)𝒮​(X)\\mathcal{C}^{\\mathcal{S}}<em>{\\mathcal{G}(n)}(X) and generates the corresponding fused cache with residual connection:    𝒞ℱ={𝒞n​(X)+ℱn​(𝒞n​(X),𝒞𝒢⁡(n)𝒮​(X))}n=1N\\mathcal{C}^{\\mathcal{F}}=\\left{\\mathcal{C}</em>{n}(X)+\\mathcal{F}<em>{n}!\\left(\\mathcal{C}</em>{n}(X),\\;\\mathcal{C}^{\\mathcal{S}}<em>{\\mathcal{G}(n)}(X)\\right)\\right}</em>{n=1}^{N}  (3)    </p>\n<p>During decoding, with the current token yiy_{i} and caches from the input and the generated prefix, the next token is predicted as:      yi+1=𝒫(yi|𝒞ℱ(X)⊕𝒞(Y[0:i]))y_{i+1}=\\mathcal{P}\\left(y_{i}\\middle|\\mathcal{C}^{\\mathcal{F}}(X)\\oplus\\mathcal{C}(Y_{[0:i]})\\right)  (4)    Figure 5:  Cache fuser architecture and training scheme. Fuser projects and combines KV-Caches, then adds the result to Receiver’s cache through a learnable gate. LLMs are frozen during training.     </p>\n<h4 id=\"3-3-2-fuser-structure\">3.3.2 Fuser Structure</h4>\n<p>To enhance the Receiver’s KV-Cache without destructive overwriting of its information, the fuser is designed under a residual integration principle. As shown in Figure <a href=\"#S3.F5\">5</a>, it contains three key modules:   </p>\n<p>(1) Projection module concatenates the Receiver’s KV-Cache with the Sharer’s KV-Cache, then processes the concatenated features through a projection layer followed by a feature fusion layer.   </p>\n<p>(2) Dynamic weighting module applies an input-aware head modulation layer to dynamically reweight the projected information.   </p>\n<p>(3) Learnable gate introduces a trainable per-layer gate value that decides whether to inject the Sharer’s context. The gate applies a Gumbel-sigmoid with temperature annealing to smoothly transition from differentiable during training to binary at inference.   </p>\n<p>We also explore a more complex yet potentially more powerful fuser variant in Appendix <a href=\"#A1.SS1.SSS3\">A.1.3</a>.    </p>\n<h4 id=\"3-3-3-model-alignment\">3.3.3 Model Alignment</h4>\n<p>Fusing KV-Caches across model families and sizes requires alignment at two levels: tokens and layers. For token alignment, different tokenizers may produce slightly varied token sequences for the same input. We align them by decoding each Receiver token into its string form and re-encoding it using the Sharer’s tokenizer. When one-to-many mappings occasionally occur, we select the Sharer token with maximal string coverage to preserve information. For layer alignment, we adopt a terminal alignment strategy: the final layers of both models are aligned first, then the penultimate layers, and so on in reverse order until reaching the shallower model’s first layer. Details in Appendices <a href=\"#A1.SS1.SSS1\">A.1.1</a> and <a href=\"#A1.SS1.SSS2\">A.1.2</a>.    </p>\n<h4 id=\"3-3-4-training-scheme\">3.3.4 Training Scheme</h4>\n<p>During training, we freeze both the Sharer and Receiver models, training only the C2C module for KV-Cache fusion. We employ standard next-token prediction loss on the Receiver’s response predictions, similar to supervised fine-tuning (SFT). The key difference is that the Receiver predicts responses conditioned on fused KV-Cache rather than its own.   </p>\n<p>The training procedure consists of three stages: (1) Forward: both models encode the input context to produce their respective KV-Caches. (2) Fusion: the C2C module fuses both KV-Caches and replaces the Receiver’s cache. (3) Supervision: the Receiver prefills the response using the fused cache, and gradients backpropagate through C2C to minimize prediction loss.      </p>\n<h2 id=\"4-experiment\">4 Experiment</h2>\n<h3 id=\"4-1-setup\">4.1 Setup</h3>\n<p>We brief the experiment setups here, with more details in Appendix <a href=\"#A1.SS3\">A.3</a>.   </p>\n<p>Models. We evaluate C2C across various model families, including Qwen2.5 (<a href=\"#bib.bib3\">Yang et al., 2024a</a>; <a href=\"#bib.bib4\">Hui et al., 2024</a>), Qwen3 (<a href=\"#bib.bib7\">Yang et al., 2025a</a>), Llama3.2 (<a href=\"#bib.bib44\">Dubey et al., 2024</a>), and Gemma3 (<a href=\"#bib.bib45\">Team et al., 2025</a>). To test generalizability, we select different configurations for the Sharer-Receiver model combinations, including models of different generations (Qwen3 and Qwen2.5), different families (Qwen, Llama, and Gemma), different sizes (0.6B to 14B), different specializations (general, code, and math model), and different training stages (pretrained and instruction fine-tuned models). For ablative and diagnostic analyses (scaling behavior, ablation study, behavior analysis), we fix the Receiver and Sharer to Qwen3 models unless otherwise specified. This consistency eliminates confounders from model alignment and isolates the core impact of C2C.   </p>\n<p>Baselines. We compare C2C with two LLM collaboration methods to contextualize performance: (1) Text-to-Text (T2T) communication: models collaborate through an analyze-then-respond hand-off for each query. The Sharer generates an analytical text of key information to solve the input question. This text is concatenated with the original question and fed to the Receiver to mirror standard collaborative pipelines. Corresponding prompts are in Appendix <a href=\"#A1.SS3.SSS6\">A.3.6</a>. (2) Query-level routing (<a href=\"#bib.bib20\">Ong et al., 2024</a>): models collaborate by selecting the appropriate LLM for different queries. We also include individual model performance (Sharer or Receiver alone) to establish a lower bound for collaborative gains.   </p>\n<p>Benchmarks. We evaluate on four widely used benchmarks spanning reasoning, knowledge, and language domains to ensure comprehensive coverage. OpenBookQA (<a href=\"#bib.bib46\">Mihaylov et al., 2018</a>) for fact-based reasoning, MMLU-Redux (<a href=\"#bib.bib47\">Gema et al., 2025</a>) for knowledge in the general domain, ARC-Challenge (ARC-C) (<a href=\"#bib.bib21\">Clark et al., 2018</a>) for scientific and logistic reasoning, and C-Eval (<a href=\"#bib.bib22\">Huang et al., 2023</a>) for comprehensive knowledge in the Chinese domain.   </p>\n<p>Training dataset. To ensure the generalizability of C2C, we utilize the first 500k samples of the OpenHermes2.5 Dataset (<a href=\"#bib.bib42\">Teknium, 2023</a>), a general finetuning dataset, to train C2C fusers. To reduce training cost, we use MMLU as the training set for scaling behavior and behavior analysis experiments, unless otherwise specified.   </p>\n<p>Evaluation settings. We use average accuracy as the performance metric. We use text generation and answer extraction as the evaluation mode for C2C and baselines, with the max generation length set to 64 for multi-choice benchmarks. All experiments are conducted in the zero-shot setting with zero generation temperature to ensure reproducibility. We use average inference time as the efficiency metric, measured using a single NVIDIA A100 GPU with batch size one.    </p>\n<h3 id=\"4-2-main-results\">4.2 Main Results</h3>\n<p>Performance. As shown in Table <a href=\"#S4.T4\">4</a>, C2C consistently improves the Receiver model performance across different settings and benchmarks. Representative example output is provided in Appendix <a href=\"#A1.SS4.SSS4\">A.4.4</a>. After applying C2C, accuracy increases by an average of 11.00%, 9.64%, and 11.88% across the three Sharers. Compared with text-to-text communication, C2C achieves an average accuracy increase of 5.36%, 4.15%, and 3.06%. Query-level routing prioritizes efficiency but limits accuracy to the better of the two original models. Notably, Qwen3-4B Base as the Sharer often ignores instructions, resulting in poor standalone performance and excessively long T2T communication times. In contrast, C2C bypasses this issue, highlighting an interesting use case in which a weaker instruction-tuned Receiver can leverage a stronger base model’s knowledge via C2C, even when base model cannot follow instructions. We also explore strong-to-weak communication (details in Appendix <a href=\"#A1.SS2.SSS2\">A.2.2</a>) using Qwen3-4B as the Sharer, showing that C2C effectively enables the Receiver to benefit from a stronger Sharer.   </p>\n<p>Efficiency. As shown in Table <a href=\"#S4.T4\">4</a>, C2C achieves significant speedups of 3.46×\\times, 1.51×\\times, and 14.41×\\times over T2T by eliminating intermediate text generation. As detailed in Table <a href=\"#S4.T3\">3</a>, T2T requires the Sharer to decode 80 output tokens, incurring 1312ms of decoding overhead, whereas C2C replaces this sequential decoding with parallel cache fusion in 90ms. Further analysis of Llama3.2-1B’s exceptionally fast inference is provided in Appendix <a href=\"#A1.SS4.SSS3\">A.4.3</a>.   Table 3: Average token count and inference time breakdown on MMLU-Redux (Sharer: Qwen2.5-0.5B-Instruct, Receiver: Qwen3-0.6B). ∗Includes 90ms KV-Cache fusion time.      Text-to-Text Cache-to-Cache  Metric Receiver-only Sharer-only Sharer Receiver Sharer Receiver  Input Tokens 170 187 103 332 170 170  Output Tokens 11 19 80 10 0 12  Prefill Time (ms) 27 20 21 32 20 + 90∗ 27  Decode Time (ms) 281 326 1312 231 0 308  Total Time (ms) 308 346 1596 445    Table 4: Accuracy (%) and inference time (seconds) of different communication methods across four benchmarks. The Receiver is fixed as Qwen3-0.6B, paired with three different Sharers.   Sharer Task Metric Receiver Sharer Routing Text-to-Text Cache-to-Cache  Qwen2.5-0.5B MMLU-Redux Acc 35.53 38.42 35.58 41.03 42.92  Time 0.29 0.34 0.27 1.52 0.40  OpenBook Acc 39.20 45.60 40.80 44.00 52.60  Time 0.27 0.35 0.29 0.81 0.30  ARC-C Acc 41.04 42.09 40.70 49.48 54.52  Time 0.29 0.39 0.29 1.00 0.36  C-Eval Acc 32.04 40.21 34.61 35.88 41.77  Time 0.26 0.31 0.26 1.51 0.34  Llama3.2-1B MMLU-Redux Acc 35.53 32.30 33.38 43.32 44.42  Time 0.29 0.06 0.18 0.75 0.50  OpenBook Acc 39.20 32.60 36.40 41.20 47.80  Time 0.26 0.07 0.17 0.70 0.43  ARC-C Acc 41.04 33.57 37.22 50.00 53.39  Time 0.28 0.07 0.18 0.70 0.47  C-Eval Acc 32.04 31.31 31.92 35.27 40.77  Time 0.25 0.04 0.15 0.71 0.49  Qwen3-4B-Base MMLU-Redux Acc 35.53 1.03 16.39 43.87 43.95  Time 0.29 2.06 0.28 7.54 0.45  OpenBook Acc 39.20 2.20 22.20 46.40 53.20  Time 0.26 1.98 0.27 5.08 0.34  ARC-C Acc 41.04 1.48 19.65 53.91 55.39  Time 0.28 2.06 0.28 6.56 0.40  C-Eval Acc 32.04 5.65 15.10 38.92 42.79  Time 0.25 2.02 0.26 3.59 0.39     </p>\n<h3 id=\"4-3-scaling-behavior-figure-6-accuracy-improvements-deltaaccurac\">4.3 Scaling Behavior  Figure 6: Accuracy improvements (Δ\\DeltaAccuracy) on the MMLU-Redux benchmark. (a) C2C communication. (b) T2T communication. The xx-axis denotes the Sharer model from the Qwen2.5-Instruct series, while the curves correspond to Receiver models from the Qwen3 series. The accuracy improvements of C2C generally increase faster than T2T.</h3>\n<p>Scaling sequence lengths. We evaluate how C2C scales with respect to sequence length on long-context tasks from the LongBenchV1 benchmark. All C2C fusers are trained and tested on different sets of LongBenchV1. As shown in Table <a href=\"#S4.T6\">6</a>, C2C consistently outperforms text-to-text communication across all sequence-length intervals. This demonstrates C2C’s advantages across input length ranges. More detailed setups and results are in Appendices <a href=\"#A1.SS2.SSS2\">A.2.2</a> and <a href=\"#A1.SS3.SSS4\">A.3.4</a>.        Length Receiver Sharer T2T C2C  0-4k 30.52 24.94 33.46 37.31  4-8k 26.03 23.18 29.70 34.01  8k+ 25.99 16.44 25.64 30.72  Table 5: Performance scaling with sequence length on LongBenchV1, using Qwen3-0.6B Receiver and Qwen2.5-0.5B Sharer.     Setting #Param. OpenBook ARC-C MMLU C-Eval  Single 596M 45.80 47.65 36.81 35.81  Identical 529M 50.60 52.52 42.17 40.34  C2C 478M 52.60 54.52 42.92 41.77  Table 6: Ablation of C2C improvement sources. Single: fine-tunes Receiver without any Sharer. Identical: C2C with the same LLM as both Sharer and Receiver. C2C: use different LLMs as Sharer and Receiver.    </p>\n<p>Scaling model sizes. We investigate how C2C scales with respect to the Sharer and Receiver model sizes. All C2C fusers are trained on MMLU’s auxiliary train split and evaluated on MMLU-Redux. As shown in Figure <a href=\"#S4.F6\">6</a>, the xx-axis denotes Sharer size (Qwen2.5-Instruct series), the yy-axis shows accuracy gains of C2C over Receiver-only baselines (Δ\\Delta Accuracy), and each curve represents a Receiver from the Qwen3 series. We find that the accuracy improvements of C2C generally increase faster than T2T. This trend shows that when the Sharer possesses richer knowledge, C2C is able to more effectively transmit useful information to the Receiver. Note that the relative gains for larger Receivers are less pronounced due to their stronger baselines and higher overlap with the Sharer’s knowledge.   </p>\n<p>Different model combinations. We test different Sharer-Receiver combinations, including different model families and different task-specific models. The result in Table <a href=\"#S4.T7\">7</a> shows that C2C outperforms text-to-text communication on all five combinations by an average of 8.59% on MMLU-Redux. This supports that by employing C2C, the Receiver model can effectively utilize contextual understanding from different models to enhance performance. Notably, when using Qwen2.5-Math as the Sharer, the communication text becomes substantially longer, as analyzed in Appendix <a href=\"#A1.SS4.SSS3\">A.4.3</a>. To further test the generalizability of C2C, we swap the Sharer and Receiver models. The results show that C2C robustly brings a 5.05% increase in accuracy while applying T2T results in a 6.30% decrease in performance.   </p>\n<p>Together, these experiments support the scalability of C2C as an effective and efficient new LLM communication paradigm.     Pair Type Receiver Sharer Metric Receiver Sharer T2T C2C  Heterogeneous Qwen3-0.6B Gemma3-1B Acc 35.53 31.75 41.35 45.90  Time 0.29 0.54 1.04 0.30  Qwen3-0.6B Qwen2.5-Math-1.5B Acc 35.53 39.86 43.71 46.13  Time 0.29 8.71 6.60 0.27  Qwen3-0.6B Qwen2.5-Coder-0.5B Acc 35.53 25.09 39.74 46.89  Time 0.29 0.26 1.59 0.27  Swap Qwen2.5-0.5B Qwen3-0.6B Acc 38.42 35.53 32.12 43.47  Time 0.34 0.29 0.98 0.21  Qwen3-0.6B Qwen2.5-0.5B Acc 35.53 38.42 41.03 46.50  Time 0.29 0.34 1.52 0.26  Table 7: Comparison of Receiver-only, Sharer-only, T2T, and C2C across accuracy and time. The pairs are grouped into heterogeneous settings (where the Receiver is paired with Sharers of different capabilities) and swap settings (where Receiver and Sharer roles are exchanged).    </p>\n<h3 id=\"4-4-ablation-study\">4.4 Ablation Study</h3>\n<p>Sources of improvement. In Table <a href=\"#S4.T6\">6</a>, we ablate the source of C2C performance gain by fixing the Receiver (Qwen3-0.6B) and varying the Sharer. Single denotes standard full fine-tuning of the Receiver without Sharer. Identical denotes C2C where both Sharer and Receiver are Qwen3-0.6B. Our default C2C uses Qwen2.5-0.5B as the Sharer. Under the same training configuration, C2C consistently attains higher accuracy than both Single and Identical. This confirms that C2C improvements do not purely come from added trainable capacity or overfitting to the training set. Instead, it points to complementary contextual understanding contributed by the heterogeneous Sharer. Identical still outperforms Single, indicating that cache-level self-communication can provide useful auxiliary understanding, echoing effects observed in latent reasoning and looped transformers (<a href=\"#bib.bib48\">Saunshi et al., 2025</a>; <a href=\"#bib.bib55\">Fu et al., 2025b</a>).   </p>\n<p>Fuser architecture. In Table <a href=\"#S4.T8\">8</a> we show the effect of different components in the C2C design. Compared with pure projection that discards the Receiver’s cache, fusing both models’ KV-Caches and retaining the Receiver’s via residual connection increases accuracy by 24.18%. Adding a gate for fused layer selection further increases the average accuracy by 3.07%.     Method MMLU ARC-C OpenBook CEval Average  Project 20.01 19.57 21.80 21.41 20.70  +Fuse 43.36 51.65 47.60 36.91 44.88  +Gate (=C2C) 42.92 54.52 52.60 41.77 47.95  Table 8: Ablation of C2C fuser components. Project: directly replacing the Receiver’s KV-Cache with projected Sharer cache. +Fuse: fusing both caches and adding the result back to Receiver’s via residual. +Gate: adding per-layer learnable gating.    </p>\n<h3 id=\"4-5-behavior-analysis\">4.5 Behavior Analysis</h3>\n<p>Effective rank analysis. We analyze the effective rank of KV-Cache before and after cache-to-cache communication. Effective rank (<a href=\"#bib.bib43\">Roy and Vetterli, 2007</a>) is a common measure of the intrinsic dimensionality of model weights or activation values; a higher intrinsic dimension means richer semantic information, as formalized in Appendix <a href=\"#A1.SS4.SSS1\">A.4.1</a>. As Table <a href=\"#S3.T2\">2</a> shows, after cache-to-cache fusing, the effective ranks of K and V increased from 388 to 395 and from 532 to 560, respectively. This indicates that C2C enriches the semantic space by successfully transforming the Sharer’s representations and injecting knowledge into the Receiver model.   </p>\n<p>Accuracy breakdown. Our analysis reveals that the source of C2C’s accuracy gains depends on the relative capacity of the communicating models and varies across task subcategories. Details can be found in Appendix <a href=\"#A1.SS2.SSS3\">A.2.3</a>. We also find that in some specific cases, C2C may fail as the contextual understanding from the Sharer model is not always accurate and can mislead the Receiver into generating the wrong answer. Representative example is provided in Appendix <a href=\"#A1.SS4.SSS6\">A.4.6</a>.   </p>\n<p>Progressive behavior. We analyze the progressive behavior of C2C by gradually increasing the percentage of context KV-Cache being updated by C2C (details in Appendix <a href=\"#A1.SS2.SSS4\">A.2.4</a>). When the percentage is above 50%, increasing the percentage continuously yields better performance.   </p>\n<p>Gate behavior. We analyze the behavior of C2C ’s learnable gates under different training regimes in Appendix <a href=\"#A1.SS4.SSS2\">A.4.2</a>. We can draw the conclusion that general-purpose training favors broad gate activation with fine-grained modulation via weights, whereas task-specific training favors sparse gate activation with stronger reliance on the selected layers.     </p>\n<h2 id=\"5-discussion\">5 Discussion</h2>\n<p>Future work. C2C opens several directions for future research. (1) Cache communication in multi-agent systems: C2C may serve as a better communication primitive for real-world agentic tasks with complex multi-round reasoning, coding, and tool use. A preliminary case study on mathematical problem solving is provided in Appendix <a href=\"#A1.SS5.SSS3\">A.5.3</a>. (2) Cross-modal collaboration: beyond text-only models, fusing caches among vision–language models (VLMs) and vision–language–action (VLA) models may enable richer multi-modal collaboration. (3) Inference acceleration: C2C can enhance speculative decoding and enable token-level routing across heterogeneous models for lower latency and cost. (4) Privacy-aware collaboration: LLMs can transmit KV-Cache segments without explicit text, limiting content exposure and improving privacy.   </p>\n<p>Limitations. (1) Multi-LLM systems experience performance degradation when a much weaker Sharer provides noisy information to a stronger Receiver. This limitation is shared by both T2T and C2C, as Sharer semantic quality directly impacts Receiver performance. (2) While pairwise KV-Cache communication is feasible and advantageous, scaling up the number of communicating LLMs with O⁡(N)O(N) training cost remains an open problem. Preliminary efforts towards this goal are in Appendix <a href=\"#A1.SS5.SSS1\">A.5.1</a> and <a href=\"#A1.SS5.SSS2\">A.5.2</a>.    </p>\n<h2 id=\"6-conclusion\">6 Conclusion</h2>\n<p>We demonstrate that LLMs can communicate beyond text. We introduce Cache-to-Cache (C2C), a general paradigm that transforms and fuses key–value (KV) caches across models to enable direct semantic communication. Across diverse tasks and model configurations, C2C consistently achieves higher task performance and better efficiency than text-to-text communication. These results establish cache-to-cache as a practical alternative to token-based communication and highlight its promise for scalable, low-latency multi-LLM systems.     </p>\n<h2 id=\"acknowledgments\">Acknowledgments</h2>\n<p>This work was supported by National Natural Science Foundation of China (No. 62506197, 62325405, 62104128, U19B2019, U21B2031, 61832007, 62204164, 92364201), Tsinghua EE Xilinx AI Research Fund, and Beijing National Research Center for Information Science and Technology (BNRist). We thank Xuefei Ning for her valuable discussions and suggestions.    </p>\n<h2 id=\"ethics-statement\">Ethics Statement</h2>\n<p>This study raises no ethical issues. No human subjects or sensitive personal data were involved in the experiments.    </p>\n<h2 id=\"reproducibility-statement\">Reproducibility Statement</h2>\n<p>We provide sufficient information to allow the results reported in this paper to be reproduced. All experiments were conducted using publicly available datasets along with open-source models and code. Implementation details, including data selection, model architectures, hyperparameters, and training procedures, are provided in Appendix A. The code, configuration files, and model checkpoints are released at <a href=\"https://github.com/thu-nics/C2C\" rel=\"nofollow ugc noopener\"><a href=\"https://github.com/thu-nics/C2C\" rel=\"nofollow ugc noopener\">https://github.com/thu-nics/C2C</a></a>.    </p>\n<h2 id=\"references\">References</h2>\n<ul><li>Anthropic (2024) Anthropic  Introducing the model context protocol.  Note: Online; Nov. 25, 2024Accessed: 2025-09-08  External Links: <a href=\"https://www.anthropic.com/news/model-context-protocol\" rel=\"nofollow ugc noopener\">Link</a>  Cited by: <a href=\"#S1.p3.1\">§1</a>, <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Bai et al. (2025) S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tang, et al.  Qwen2. 5-vl technical report.  arXiv preprint arXiv:2502.13923.  Cited by: <a href=\"#S1.p1.1\">§1</a>.  </li><li>Bang (2023) F. Bang  Gptcache: an open-source semantic cache for llm applications enabling faster answers and cost savings.  In Proceedings of the 3rd Workshop for Natural Language Processing Open Source Software (NLP-OSS 2023),  pp. 212–218.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Brandon et al. (2024) W. Brandon, M. Mishra, A. Nrusimha, R. Panda, and J. Ragan-Kelley  Reducing transformer key-value cache size with cross-layer attention.  Advances in Neural Information Processing Systems 37, pp. 86927–86957.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Clark et al. (2018) P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord  Think you have solved question answering? try arc, the ai2 reasoning challenge.  arXiv preprint arXiv:1803.05457.  Cited by: <a href=\"#S4.SS1.p4.1\">§4.1</a>.  </li><li>Du et al. (2023) Y. Du, S. Li, A. Torralba, J. B. Tenenbaum, and I. Mordatch  Improving factuality and reasoning in language models through multiagent debate.  In Forty-first International Conference on Machine Learning,  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Dubey et al. (2024) A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Yang, A. Fan, et al.  The llama 3 herd of models.  arXiv e-prints, pp. arXiv–2407.  Cited by: <a href=\"#S4.SS1.p2.1\">§4.1</a>.  </li><li>Estornell and Liu (2024) A. Estornell and Y. Liu  Multi-llm debate: framework, principals, and interventions.  Advances in Neural Information Processing Systems 37, pp. 28938–28964.  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Eyuboglu et al. (2025) S. Eyuboglu, R. Ehrlich, S. Arora, N. Guha, D. Zinsley, E. Liu, W. Tennien, A. Rudra, J. Zou, A. Mirhoseini, et al.  Cartridges: lightweight and general-purpose long context representations via self-study.  arXiv preprint arXiv:2506.06266.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Feng et al. (2024) T. Feng, Y. Shen, and J. You  Graphrouter: a graph-based router for llm selections.  arXiv preprint arXiv:2410.03834.  Cited by: <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Fu et al. (2025a) T. Fu, Y. Ge, Y. You, E. Liu, Z. Yuan, G. Dai, S. Yan, H. Yang, and Y. Wang  R2R: efficiently navigating divergent reasoning paths with small-large model token routing.  arXiv preprint arXiv:2505.21600.  Cited by: <a href=\"#S1.p2.1\">§1</a>, <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Fu et al. (2025b) T. Fu, Y. You, Z. Chen, G. Dai, H. Yang, and Y. Wang  Think-at-hard: selective latent iterations to improve reasoning language models.  arXiv preprint arXiv:2510.08577.  Cited by: <a href=\"#S4.SS4.p1.1\">§4.4</a>.  </li><li>Gema et al. (2025) A. P. Gema, J. O. J. Leang, G. Hong, A. Devoto, A. C. M. Mancino, R. Saxena, X. He, Y. Zhao, X. Du, M. R. G. Madani, et al.  Are we done with mmlu?.  In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers),  pp. 5069–5096.  Cited by: <a href=\"#S4.SS1.p4.1\">§4.1</a>.  </li><li>Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, et al.  Deepseek-r1: incentivizing reasoning capability in llms via reinforcement learning.  arXiv preprint arXiv:2501.12948.  Cited by: <a href=\"#S1.p1.1\">§1</a>.  </li><li>Guo et al. (2024) T. Guo, X. Chen, Y. Wang, R. Chang, S. Pei, N. V. Chawla, O. Wiest, and X. Zhang  Large language model based multi-agents: a survey of progress and challenges.  arXiv preprint arXiv:2402.01680.  Cited by: <a href=\"#S1.p2.1\">§1</a>.  </li><li>He et al. (2025) Z. He, R. Abhyankar, V. Srivatsa, and Y. Zhang  Cognify: supercharging gen-ai workflows with hierarchical autotuning.  In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2,  pp. 932–943.  Cited by: <a href=\"#A1.SS5.SSS3.p1.1\">§A.5.3</a>.  </li><li>Hong et al. (2023) S. Hong, X. Zheng, J. P. Chen, Y. Cheng, C. Zhang, Z. Wang, S. K. S. Yau, Z. H. Lin, L. Zhou, C. Ran, L. Xiao, and C. Wu  MetaGPT: meta programming for multi-agent collaborative framework.  ArXiv abs/2308.00352.  External Links: <a href=\"https://api.semanticscholar.org/CorpusID:260351380\" rel=\"nofollow ugc noopener\">Link</a>  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Hu et al. (2025) M. Hu, Y. Zhou, W. Fan, Y. Nie, B. Xia, T. Sun, Z. Ye, Z. Jin, Y. Li, Q. Chen, Z. Zhang, Y. Wang, Q. Ye, B. Ghanem, P. Luo, and G. Li  Owl: optimized workforce learning for general multi-agent assistance in real-world task automation.  arXiv preprint arXiv:2505.23885.  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Huang et al. (2023) Y. Huang, Y. Bai, Z. Zhu, J. Zhang, J. Zhang, T. Su, J. Liu, C. Lv, Y. Zhang, Y. Fu, et al.  C-eval: a multi-level multi-discipline chinese evaluation suite for foundation models.  Advances in Neural Information Processing Systems 36, pp. 62991–63010.  Cited by: <a href=\"#S4.SS1.p4.1\">§4.1</a>.  </li><li>Hui et al. (2024) B. Hui, J. Yang, Z. Cui, J. Yang, D. Liu, L. Zhang, T. Liu, J. Zhang, B. Yu, K. Lu, et al.  Qwen2. 5-coder technical report.  arXiv preprint arXiv:2409.12186.  Cited by: <a href=\"#S1.p1.1\">§1</a>, <a href=\"#S4.SS1.p2.1\">§4.1</a>.  </li><li>Li et al. (2023) G. Li, H. Hammoud, H. Itani, D. Khizbullin, and B. Ghanem  Camel: communicative agents for” mind” exploration of large language model society.  Advances in Neural Information Processing Systems 36, pp. 51991–52008.  Cited by: <a href=\"#S1.p2.1\">§1</a>.  </li><li>Li et al. (2024) Y. Li, F. Wei, C. Zhang, and H. Zhang  Eagle: speculative sampling requires rethinking feature uncertainty.  arXiv preprint arXiv:2401.15077.  Cited by: <a href=\"#S1.p2.1\">§1</a>.  </li><li>Liang et al. (2024) T. Liang, Z. He, W. Jiao, X. Wang, Y. Wang, R. Wang, Y. Yang, S. Shi, and Z. Tu  Encouraging divergent thinking in large language models through multi-agent debate.  In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,  pp. 17889–17904.  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Liu et al. (2024a) Y. Liu, Y. Huang, J. Yao, S. Feng, Z. Gu, K. Du, H. Li, Y. Cheng, J. Jiang, S. Lu, et al.  DroidSpeak: kv cache sharing for cross-llm communication and multi-llm serving.  arXiv preprint arXiv:2411.02820.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Liu et al. (2024b) Z. Liu, Y. Zhang, P. Li, Y. Liu, and D. Yang  A dynamic llm-powered agent network for task-oriented agent collaboration.  In First Conference on Language Modeling,  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Mihaylov et al. (2018) T. Mihaylov, P. Clark, T. Khot, and A. Sabharwal  Can a suit of armor conduct electricity? a new dataset for open book question answering.  In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,  pp. 2381–2391.  Cited by: <a href=\"#S4.SS1.p4.1\">§4.1</a>.  </li><li>Ning et al. (2024) X. Ning, Z. Lin, Z. Zhou, Z. Wang, H. Yang, and Y. Wang  Skeleton-of-thought: prompting llms for efficient parallel generation.  In The Twelfth International Conference on Learning Representations,  External Links: <a href=\"https://openreview.net/forum?id=mqVgBbNCm9\" rel=\"nofollow ugc noopener\">Link</a>  Cited by: <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Ong et al. (2024) I. Ong, A. Almahairi, V. Wu, W. Chiang, T. Wu, J. E. Gonzalez, M. W. Kadous, and I. Stoica  Routellm: learning to route llms with preference data.  arXiv preprint arXiv:2406.18665.  Cited by: <a href=\"#A1.SS1.SSS3.p2.1\">§A.1.3</a>, <a href=\"#S1.p2.1\">§1</a>, <a href=\"#S2.SS2.p2.1\">§2.2</a>, <a href=\"#S4.SS1.p3.1\">§4.1</a>.  </li><li>OpenAI (2025) OpenAI  Introducing gpt-5.  Note: <a href=\"https://openai.com/index/introducing-gpt-5/\" rel=\"nofollow ugc noopener\"><a href=\"https://openai.com/index/introducing-gpt-5/\" rel=\"nofollow ugc noopener\">https://openai.com/index/introducing-gpt-5/</a></a>Accessed: 2025-09-11  Cited by: <a href=\"#S1.p1.1\">§1</a>, <a href=\"#S1.p2.1\">§1</a>, <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Pidkuiko and Starkov (2025) A. Pidkuiko and B. Starkov  Gibberlink.  Note: <a href=\"https://github.com/PennyroyalTea/gibberlink\" rel=\"nofollow ugc noopener\"><a href=\"https://github.com/PennyroyalTea/gibberlink\" rel=\"nofollow ugc noopener\">https://github.com/PennyroyalTea/gibberlink</a></a>GitHub repository, accessed 2025-11-05  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Qin et al. (2024) R. Qin, Z. Li, W. He, M. Zhang, Y. Wu, W. Zheng, and X. Xu  Mooncake: a kvcache-centric disaggregated architecture for llm serving.  arXiv preprint arXiv:2407.00079.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Roy and Vetterli (2007) O. Roy and M. Vetterli  The effective rank: a measure of effective dimensionality.  In 2007 15th European signal processing conference,  pp. 606–610.  Cited by: <a href=\"#A1.SS4.SSS1.p1.1\">§A.4.1</a>, <a href=\"#S4.SS5.p1.1\">§4.5</a>.  </li><li>Saunshi et al. (2025) N. Saunshi, N. Dikkala, Z. Li, S. Kumar, and S. J. Reddi  Reasoning with latent thoughts: on the power of looped transformers.  arXiv preprint arXiv:2502.17416.  Cited by: <a href=\"#S4.SS4.p1.1\">§4.4</a>.  </li><li>Shen et al. (2024) Z. Shen, H. Lang, B. Wang, Y. Kim, and D. Sontag  Learning to decode collaboratively with multiple language models.  In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers),  pp. 12974–12990.  Cited by: <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Sun et al. (2024) Y. Sun, L. Dong, Y. Zhu, S. Huang, W. Wang, S. Ma, Q. Zhang, J. Wang, and F. Wei  You only cache once: decoder-decoder architectures for language models.  Advances in Neural Information Processing Systems 37, pp. 7339–7361.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Surapaneni et al. (2025) R. Surapaneni, M. Jha, M. Vakoc, and T. Segal  Announcing the agent2agent protocol (a2a).  Note: Google Developers BlogAccessed: 2025-09-08  External Links: <a href=\"https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/\" rel=\"nofollow ugc noopener\">Link</a>  Cited by: <a href=\"#S1.p3.1\">§1</a>, <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Team et al. (2025) G. Team, A. Kamath, J. Ferret, S. Pathak, N. Vieillard, R. Merhej, S. Perrin, T. Matejovicova, A. Ramé, M. Rivière, et al.  Gemma 3 technical report.  arXiv preprint arXiv:2503.19786.  Cited by: <a href=\"#S4.SS1.p2.1\">§4.1</a>.  </li><li>Teknium (2023) Teknium  OpenHermes 2.5: an open dataset of synthetic data for generalist llm assistants.   HuggingFace.  External Links: <a href=\"https://huggingface.co/datasets/teknium/OpenHermes-2.5\" rel=\"nofollow ugc noopener\">Link</a>  Cited by: <a href=\"#S4.SS1.p5.1\">§4.1</a>.  </li><li>Tran et al. (2025) K. Tran, D. Dao, M. Nguyen, Q. Pham, B. O’Sullivan, and H. D. Nguyen  Multi-agent collaboration mechanisms: a survey of llms.  arXiv preprint arXiv:2501.06322.  Cited by: <a href=\"#S1.p2.1\">§1</a>.  </li><li>Wang et al. (2024) J. Wang, J. Wang, B. Athiwaratkun, C. Zhang, and J. Zou  Mixture-of-agents enhances large language model capabilities.  arXiv preprint arXiv:2406.04692.  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Wu and Tu (2024) H. Wu and K. Tu  Layer-condensed kv cache for efficient inference of large language models.  In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers),  pp. 11175–11188.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Wu et al. (2023) Q. Wu, G. Bansal, J. Zhang, Y. Wu, S. Zhang, E. Zhu, B. Li, L. Jiang, X. Zhang, and C. Wang  Autogen: enabling next-gen llm applications via multi-agent conversation framework.  arXiv preprint arXiv:2308.08155 3 (4).  Cited by: <a href=\"#S1.p2.1\">§1</a>.  </li><li>Wu et al. (2025) Y. Wu, H. Wu, and K. Tu  A systematic study of cross-layer kv sharing for efficient llm inference.  In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers),  pp. 396–403.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Yang et al. (2025a) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al.  Qwen3 technical report.  arXiv preprint arXiv:2505.09388.  Cited by: <a href=\"#S1.p1.1\">§1</a>, <a href=\"#S4.SS1.p2.1\">§4.1</a>.  </li><li>Yang et al. (2024a) A. Yang, B. Zhang, B. Hui, B. Gao, B. Yu, C. Li, D. Liu, J. Tu, J. Zhou, J. Lin, et al.  Qwen2. 5-math technical report: toward mathematical expert model via self-improvement.  arXiv preprint arXiv:2409.12122.  Cited by: <a href=\"#S1.p1.1\">§1</a>, <a href=\"#S4.SS1.p2.1\">§4.1</a>.  </li><li>Yang et al. (2025b) J. Yang, B. Hou, W. Wei, Y. Bao, and S. Chang  Kvlink: accelerating large language models via efficient kv cache reuse.  arXiv preprint arXiv:2502.16002.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Yang et al. (2024b) Y. Yang, Z. Cao, Q. Chen, L. Qin, D. Yang, H. Zhao, and Z. Chen  Kvsharer: efficient inference via layer-wise dissimilar kv cache sharing.  arXiv preprint arXiv:2410.18517.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Yao et al. (2024) J. Yao, H. Li, Y. Liu, S. Ray, Y. Cheng, Q. Zhang, K. Du, S. Lu, and J. Jiang  Cacheblend: fast large language model serving with cached knowledge fusion.  arXiv e-prints, pp. arXiv–2405.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Ye et al. (2025) H. Ye, Z. Gao, M. Ma, Q. Wang, Y. Fu, M. Chung, Y. Lin, Z. Liu, J. Zhang, D. Zhuo, et al.  KVCOMM: online cross-context kv-cache communication for efficient llm-based multi-agent systems.  arXiv preprint arXiv:2510.12872.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Ye et al. (2024) L. Ye, Z. Tao, Y. Huang, and Y. Li  ChunkAttention: efficient self-attention with prefix-aware kv cache and two-phase partition.  In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers),  pp. 11608–11620.  Cited by: <a href=\"#S2.SS1.p1.1\">§2.1</a>.  </li><li>Zhang et al. (2024a) K. Zhang, J. Wang, N. Ding, B. Qi, E. Hua, X. Lv, and B. Zhou  Fast and slow generating: an empirical study on large and small language models collaborative decoding.  CoRR.  Cited by: <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Zhang et al. (2024b) M. Zhang, X. Shen, J. Cao, Z. Cui, and S. Jiang  Edgeshard: efficient llm inference via collaborative edge computing.  IEEE Internet of Things Journal.  Cited by: <a href=\"#S1.p1.1\">§1</a>.  </li><li>Zhang et al. (2024c) Y. Zhang, R. Sun, Y. Chen, T. Pfister, R. Zhang, and S. Arik  Chain of agents: large language models collaborating on long-context tasks.  Advances in Neural Information Processing Systems 37, pp. 132208–132237.  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.  </li><li>Zheng et al. (2025a) W. Zheng, Y. Chen, W. Zhang, S. Kundu, Y. Li, Z. Liu, E. P. Xing, H. Wang, and H. Yao  Citer: collaborative inference for efficient large language model decoding with token-level routing.  arXiv preprint arXiv:2502.01976.  Cited by: <a href=\"#S2.SS2.p2.1\">§2.2</a>.  </li><li>Zheng et al. (2025b) Y. Zheng, Z. Zhao, Z. Li, Y. Xie, M. Gao, L. Zhang, and K. Zhang  Thought communication in multiagent collaboration.  arXiv preprint arXiv:2510.20733.  Cited by: <a href=\"#S2.SS2.p1.1\">§2.2</a>.      </li></ul>\n<h2 id=\"appendix-a-appendix\">Appendix A Appendix</h2>\n<h3 id=\"a-1-design-choice-exploration\">A.1 Design Choice Exploration</h3>\n<p>We detail the design of C2C and discuss alternative design choices.   </p>\n<h4 id=\"a-1-1-layer-alignment\">A.1.1 Layer Alignment</h4>\n<p>Terminal alignment. In this strategy, the layers of the two models are aligned starting from the output side. Specifically, the final layer of the smaller model is paired with the final layer of the larger model, the penultimate layer with the penultimate layer, and so on. This scheme prioritizes alignment between the deeper layers across models, which typically capture higher-level semantic representations.   </p>\n<p>Depth-normalized alignment. In this strategy, both models’ layer indices are normalized to [0,1][0,1] by dividing by (L−1)(L-1), where LL is the total number of layers in the model. Let the model with fewer layers (LminL_{\\min}) serve as the anchor. For each anchor layer ii (with normalized index i/(Lmin−1)i/(L_{\\min}-1)), we select the layer jj in the other model (LmaxL_{\\max}) whose normalized index j/(Lmax−1)j/(L_{\\max}-1) is closest:    j⋆=arg⁡minj​|iLmin−1−jLmax−1|.j^{\\star}\\;=\\;\\arg\\min_{j}\\Bigl|\\tfrac{i}{L_{\\min}-1}-\\tfrac{j}{L_{\\max}-1}\\Bigr|.  (5)  </p>\n<p>This method produces an alignment that distributes correspondences approximately uniformly across the model depth.   </p>\n<p>C2C Choice. In our design, we adopt terminal alignment, as it provides a simpler and more direct layer mapping strategy that empirically performs slightly better in our experiments.    </p>\n<h4 id=\"a-1-2-tokenization-alignment\">A.1.2 Tokenization Alignment</h4>\n<p>For dialogue inputs, we first apply the chat template of each tokenizer, which produces a sequence consisting of alternating sections of (1) template tokens and (2) message tokens. These two types of sections are handled differently during alignment.   </p>\n<p>Template sections. Template tokens are structural markers (e.g., role delimiters, formatting tokens) that differ across tokenizers and carry no semantic content. To preserve sequence consistency without introducing unnecessary distortions, these sections are aligned by simple length padding: the shorter side is padded with &lt;pad&gt; tokens until both tokenizers’ sequences are of equal length.   </p>\n<p>Message sections. Message tokens correspond to the actual textual content of user or assistant dialogs. Each target model token in a message section is decoded into its string form and re-encoded using the source model tokenizer. Special tokens (e.g., &lt;pad&gt;, &lt;eos&gt;) are mapped directly if possible; otherwise, the source model’s unknown token is used. For regular tokens, if the re-encoding produces a single source model token, a direct one-to-one mapping is established. If multiple source model tokens are produced (a one-to-many case), one of the two selection strategies is applied: (1) first-occurrence selection: choose the first source model token from the candidate set, yielding a deterministic and computationally efficient mapping. (2) Maximal-coverage selection: decode each candidate token, compute its string length, and select the longest; this heuristic aims to preserve maximal surface correspondence with the original target model token.   </p>\n<p>C2C choice We observed that the two selection strategies generally produce very similar results, with more than 80% of sequences yielding identical alignments across strategies. Based on this observation, we empirically adopt Maximal-coverage selection as the default strategy to reduce the risk of losing information in one-to-many tokenization cases.   </p>\n<p>Through this design, template sections are aligned structurally via padding, while message sections are aligned semantically at the token level, ensuring robust correspondences between target model and source model representations in chat-formatted inputs.    </p>\n<h4 id=\"a-1-3-fuser-architecture-table-9-comparison-of-the-default-c2c-f\">A.1.3 Fuser Architecture  Table 9: Comparison of the default C2C fuser and the complex C2C-C variant (Sharer: Qwen3-4B, Receiver: Qwen3-0.6B). PGR (Performance Gap Recovered) measures the fraction of the accuracy gap between the Receiver and Sharer that is recovered.    C-Eval ARC-C MMLU-Redux OpenBook  Method Acc PGR Time Acc PGR Time Acc PGR Time Acc PGR Time  Qwen3-4B 68.09 100% 0.24 87.48 100% 0.24 71.38 100% 0.24 79.40 100% 0.25  Qwen3-0.6B 32.04 0% 0.18 41.04 0% 0.19 35.53 0% 0.18 39.20 0% 0.21  T2T 36.96 14% 0.92 52.00 24% 0.80 42.95 21% 0.99 46.40 18% 1.70  C2C 44.40 34% 0.27 60.17 41% 0.27 45.92 29% 0.27 55.20 40% 0.28  C2C-C 60.63 79% 0.21 80.96 86% 0.23 62.78 76% 0.15 70.40 78% 0.26</h4>\n<p>Beyond the C2C fuser, we also examined a more complex yet potentially more powerful variant, which we denote as C2C-C (Complex). The main complexity comes from the introduction of an additional projection stage: instead of directly concatenating Sharer and Receiver caches as in C2C, Sharer cache is first projected into the receiver’s dimensionality through a 3-layer MLP. The concatenated representation is then processed along two familiar routes—feature fusion and dynamic weighting—to yield the final S&amp;R cache.   </p>\n<p>The main experiment results are presented in Table <a href=\"#A1.T9\">9</a>. Note that we fix the maximum response length to 8 tokens and the maximum communication length to 256 tokens in this experiment to reduce evaluation cost. C2C-C attains stronger performance than the default C2C, suggesting that increasing the architectural sophistication of fuser can further amplify the benefits of C2C communication. In this table, we also report Performance Gap Recovered (PGR) (<a href=\"#bib.bib20\">Ong et al., 2024</a>) metric, which quantifies how much of the performance gap between a weak and a strong model is recovered. Nevertheless, the focus of this work is on introducing the C2C paradigm itself. For this purpose, we adopt a simple yet effective fuser design, leaving systematic investigation of more elaborate architectures to future work.     </p>\n<h3 id=\"a-2-additional-experimental-results\">A.2 Additional Experimental Results</h3>\n<h4 id=\"a-2-1-cache-enrichment-detail\">A.2.1 Cache Enrichment Detail</h4>\n<p>In Table <a href=\"#A1.T10\">10</a> we show the effect of single-layer cache enrichment. Layer 4 and 16 benefit from the cache enrichment approach by replacing the KV-Cache with the few-shot one, while cache enrichment on other layers shows performance degradation.   Table 10: Accuracy (%) when enriching only a single transformer layer’s KV-Cache via the cache enrichment oracle. Baseline without enrichment: 58.42%. Bold indicates layers that benefit from enrichment.   Layer Acc. Layer Acc. Layer Acc. Layer Acc.  0 56.36 7 56.82 14 54.24 21 57.74  1 56.36 8 55.01 15 58.06 22 57.23  2 57.14 9 56.78 16 58.45 23 55.22  3 57.53 10 55.29 17 57.88 24 55.75  4 58.52 11 57.05 18 57.21 25 56.16  5 56.45 12 55.04 19 56.71 26 55.79  6 54.56 13 54.83 20 55.93 27 55.01     </p>\n<h4 id=\"a-2-2-strong-to-weak-communication-table-11-longbenchv1-scores-c\">A.2.2 Strong-to-Weak Communication  Table 11: LongBenchV1 scores comparing Receiver-only, Sharer-only, T2T, and C2C in the strong-to-weak setting (Sharer: Qwen3-4B, Receiver: Qwen3-0.6B) across different input lengths.   Length Receiver Sharer T2T C2C  0–4k 30.52 50.48 38.52 41.46  4–8k 26.03 48.28 35.79 37.57  8k+ 25.99 44.36 33.79 34.23  Average 27.63 47.90 36.18 37.97</h4>\n<p>Table <a href=\"#A1.T11\">11</a> reports the results on LongBenchV1 when pairing the weak receiver Qwen3-0.6B with a much stronger sharer, Qwen3-4B, under different input lengths. Across all length regimes, C2C consistently outperforms both the receiver alone and the T2T baseline. On average, C2C achieves a 51.01% PGR over the weak-to-strong gap. These results demonstrate that in strong-to-weak settings, C2C can effectively transfer the stronger model’s contextual understanding, yielding notable gains for the weaker receiver.   </p>\n<p>We additionally evaluated the strong-to-weak setting (Qwen3-0.6B as receiver and Qwen3-4B as sharer) on other benchmarks beyond LongBenchV1. The detailed results are provided in Section <a href=\"#A1.SS1.SSS3\">A.1.3</a>, Table <a href=\"#A1.T9\">9</a>.    </p>\n<h4 id=\"a-2-3-accuracy-breakdown\">A.2.3 Accuracy Breakdown</h4>\n<p>We analyze where the accuracy gains of C2C come from by using Venn diagrams on the MMLU-Redux benchmark, as illustrated in Figure <a href=\"#A1.F7\">7</a>. For this analysis, we use the C2C-C variant introduced in Section <a href=\"#A1.SS1.SSS3\">A.1.3</a>, as it has the potential to achieve stronger performance and provides a clearer breakdown of where C2C ’s accuracy originates.   </p>\n<p>Models with comparable capacity. When the Receiver (Qwen3-0.6B) and the Sharer (Qwen2.5-Math-1.5B-Instruct, denoted as Qwen2.5-Math-1.5B) have comparable overall capacity but complementary strengths, C2C not only inherits part of the Sharer’s ability but also solves additional questions by integrating understanding from both models.   </p>\n<p>Models with disparate capacity. When the Sharer (Qwen3-4B) is substantially stronger than the Receiver (Qwen3-0.6B), C2C tends to integrate more of the stronger model’s understanding. Quantitatively, in the disparate-capacity case (Figure <a href=\"#A1.F7.sf2\">7(b)</a>), among the questions that the Sharer can answer correctly, C2C also answers 72.11% correctly. In contrast, in the comparable-capacity case (Figure <a href=\"#A1.F7.sf1\">7(a)</a>), C2C succeeds on only 50.97%.      (a) Sharer: Qwen2.5-Math-1.5B, Receiver: Qwen3-0.6B   (b) Sharer: Qwen3-4B, Receiver: Qwen3-0.6B  Figure 7: Venn diagrams of correctly answered questions on MMLU-Redux, comparing Receiver-only, Sharer-only, and C2C (C2C-C variant) answer sets.   </p>\n<p>Subcategory breakdown. We analyze the accuracy gains on different subcategories using the radar plot and histogram plot shown in Figure <a href=\"#A1.F8\">8</a>, Figure <a href=\"#A1.F9\">9</a>, and Figure <a href=\"#A1.F10\">10</a>. The result shows that for the Qwen2.5-0.5B and Qwen3-0.6B model pair, C2C outperforms T2T on 12 out of 17 total categories. Using C2C in history, law, and chemistry can bring an additional 7, 7.6, and 7.5 accuracy improvement compared to T2T. For the Qwen3-4B and Qwen3-0.6B model pair, C2C outperforms T2T on all 17 categories. Using T2T in engineering results in a 1% performance drop, showing the case where text communication between models fails to help the receiver models achieve better performance. At the same time, C2C better utilizes the 4B model’s contextual understanding of the problems and achieves a 24% increase in accuracy.      (a) Sharer: Qwen2.5-0.5B, Receiver: Qwen3-0.6B   (b) Sharer: Qwen3-4B, Receiver: Qwen3-0.6B  Figure 8: Per-subcategory accuracy on MMLU-Redux, comparing Receiver, Sharer, T2T, and C2C.   Figure 9: Per-subcategory accuracy gain of T2T and C2C over the Receiver baseline on MMLU-Redux. \n(Sharer: Qwen2.5-0.5B, Receiver: Qwen3-0.6B)   Figure 10: Per-subcategory accuracy gain of T2T and C2C over the Receiver baseline on MMLU-Redux. \n(Sharer: Qwen3-4B, Receiver: Qwen3-0.6B)    </p>\n<h4 id=\"a-2-4-progressive-behavior-figure-11-mmlu-redux-accuracy-as-the-\">A.2.4 Progressive Behavior  Figure 11: MMLU-Redux accuracy as the proportion of the Receiver’s KV-Cache replaced by C2C-fused cache increases. “Former” replaces tokens front-to-back; “Latter” replaces back-to-front.</h4>\n<p>(Sharer: Qwen3-4B, Receiver: Qwen3-0.6B)   </p>\n<p>To investigate the impact of fused KV-Cache proportion on the accuracy of the receiver model, we gradually added the proportion of fused KV-Cache derived from the sharer to the receiver model before generating outputs. Specifically, former and latter refer to progressively replacing the receiver’s KV-Cache with the fused KV-Cache from front to back and back to front, respectively. We observe that the overall accuracy first decreases and then increases as the replacement ratio grows. The performance reduction may stem from the gap between training and testing, where only the full receiver KV-Cache is used during training. When the fused proportion goes up to over 50%, the performance of C2C continues to increase with respect to the proportion, reflecting the progressive benefits of C2C. Note that projecting using the latter cache generally has a larger impact than projecting the former, since it is closer to the final response.     </p>\n<h3 id=\"a-3-additional-experiment-setup\">A.3 Additional Experiment Setup</h3>\n<h4 id=\"a-3-1-cache-enrichment\">A.3.1 Cache Enrichment</h4>\n<p>We conducted Oracle experiments with Qwen3-0.6B and Qwen3-4B to examine how KV-Cache enrichment influences model performance. The evaluation was performed on MMLU-Redux. The few-shot examples are selected from MMLU while excluding overlaps with MMLU-Redux to ensure fairness. To probe different ways of applying cache enrichment, we compared four cache enrichment strategies: All-layer Cache Enrichment (apply cache enrichment on all layers), Single-Layer Cache Enrichment (apply cache enrichment only on single layers), Selective Cache Enrichment - Best (select n layers that have the highest accuracy according to Single-Layer Cache Enrichment), Selective Cache Enrichment - Worst (select n layers that have the lowest accuracy according to Single-Layer Cache Enrichment). All methods utilized Few-Shot–optimized KV-Caches while maintaining the same cache length as Zero-Shot, enabling a controlled evaluation of cache enrichment and its layer-specific effects.    </p>\n<h4 id=\"a-3-2-cache-transformation\">A.3.2 Cache Transformation</h4>\n<p>We employed the MMLU-Redux dataset to train a 3-layer MLP that maps the last layer KV-Cache in the source LLM (Qwen3-4B) to the last layer of the target LLM (Qwen3-0.6B). In this oracle experiment, we adopt the MSE loss of the projected KV-Cache and the target KV-Cache instead of the next-token prediction loss, as we aim to test whether the representation space can be transformed using a neural network. The Key Cache and Value Cache are first concatenated on the hidden space dimension, then put for MSE calculation. A detailed calculation of loss is shown in the following code:</p>\n<pre><code>\nsource_prefilled = source_model.forward(prefill_input_id)\ntarget_prefilled = target_model.forward(prefill_intput_id)\nsource_k, source_v = source_prefilled.past_key_values[-1]\ntarget_k, target_v = target_prefilled.past_key_values[-1]\nproject_k = k_projector(source_k)\nproject_v = v_projector(source_v)\nmseloss(torch.dstack([project_k, project_v]),\n        torch.dstack([target_k, target_v]))\n</code></pre>\n<p>For visualization, 300 samples were randomly selected from the dataset. The source, target, and transformed KV-Cache were all projected into two-dimensional space using t-SNE, allowing us to examine the alignment of representations between the two models. For t-SNE generation, we set perplexity to 50 and max iterations to 1000.    </p>\n<h4 id=\"a-3-3-query-level-routing\">A.3.3 Query-level routing</h4>\n<p>Query-level routing aims to improve the performance–efficiency trade-off by dynamically assigning harder queries to a stronger LLM. Following prior work, we adopt a matrix factorization framework. Query embeddings are obtained from the OpenAI text-embedding-3-small encoder, while model embeddings are taken from pretrained vectors of gpt-4-1106-preview and mixtral-8x7b-instruct-v0.1. These embeddings are used to compute a strong win rate score for each query, which reflects its relative difficulty. Queries are then ranked by this score. For each evaluated model pair, we define the strong model as the one achieving higher standalone benchmark accuracy and the weak model as the lower-performing one. Queries in the upper half of the ranking are routed to the strong model, while those in the lower half are routed to the weak model.    </p>\n<h4 id=\"a-3-4-evaluation-method\">A.3.4 Evaluation Method</h4>\n<p>Main evaluation. We evaluate C2C on four multiple-choice benchmarks: OpenBookQA, MMLU-Redux, ARC-Challenge, and C-Eval. For MMLU-Redux, we exclude questions annotated with the error type no correct answer. For all evaluations, we adopt a deterministic generation configuration without sampling, using greedy decoding to ensure reproducibility. Specifically, we use Non-CoT prompts, following the unified format described in Section <a href=\"#A1.SS3.SSS6\">A.3.6</a>. Model outputs are then matched to the correct option labels to compute accuracy. To control evaluation cost, we set the maximum response length to 64 tokens unless otherwise specified, where the response refers to the final answer generated by the Receiver, since the base models do not always follow instructions, and longer limits would substantially increase inference time. For the T2T setting, we additionally set the maximum communication length to 256 tokens, where the communication refers to the messages passed from the Sharer to the Receiver.   </p>\n<p>LongBench evaluation. We evaluate C2C on the LongBench-E dataset, which comprises a total of 13 individual datasets. The prompts and evaluation procedures use the official LongBench settings, with a maximum output length of 2,048 tokens.    </p>\n<h4 id=\"a-3-5-c2c-training\">A.3.5 C2C Training</h4>\n<p>Training data. (1) Performance experiment. The fuser was trained on the OpenHermes-2.5 Dataset with a maximum sequence length of 2,048 tokens. Training used 500,000 samples for one epoch with a macro batch size of 256, corresponding to 1,929 total training steps.   </p>\n<p>(2) Scaling sequence lengths experiment. The fuser was trained on the LongBench-E benchmark with a maximum sequence length of 12,000 tokens. The data was randomly split into 3/4 for training and 1/4 for evaluation by data index, ensuring independence between training and evaluation. Training used 1,896 samples for one epoch with a macro batch size of 16, corresponding to 118 total training steps.   </p>\n<p>(3) Scaling model sizes and different model combinations experiment. The fuser was trained on the auxiliary_train split of the MMLU dataset with a maximum sequence length of 1,024 tokens. Training used 15,000 samples for one epoch with a macro batch size of 128, corresponding to 116 total training steps.   </p>\n<p>Training scheme. All experiments were conducted with a fixed random seed of 42 to ensure reproducibility. Unless otherwise noted, the training configuration was as follows: optimization employed a learning rate of 1×10−41\\times 10^{-4} with a linear scheduler and a 10% warmup ratio, a weight decay of 0.01, and a maximum gradient norm of 1. The temperature was linearly annealed from 1.0 to 0.001 across the total number of training steps. Layer alignment was configured with the last aligned scheme across all experiments. The tokenization alignment was applied only when the paired models employed different tokenizers, in which case the longest strategy was used. For data preparation, each dataset was partitioned into a training split (99%) and a small held-out validation split (1%). The validation split was not used for model updates but was monitored during training to report evaluation loss.    </p>\n<h4 id=\"a-3-6-evaluation-prompts\">A.3.6 Evaluation Prompts</h4>\n<p>Text 1 presents the prompts used for the main evaluation on multiple-choice datasets. Text 2 is the alternative non-CoT version used for response diagnosis in Appendix <a href=\"#A1.SS4.SSS4\">A.4.4</a>. Text 3 provides the prompt for the Sharer model in the T2T evaluation; the Receiver model uses the same prompt as in the C2C setting. Text 4 shows the prompt used in the cache enrichment experiment. For the zero-shot method, no shots are included in the prompt. The few-shot method uses exactly the same prompt as Text 4. For Oracle methods, we adopt the few-shot prompt but remove the KV-Cache associated with the shots after the forward pass. The prompt for LongBench evaluation follows its official configuration, which varies across the different sub-datasets.             </p>\n<h3 id=\"a-4-additional-analysis\">A.4 Additional Analysis</h3>\n<h4 id=\"a-4-1-effective-rank\">A.4.1 Effective Rank</h4>\n<p>We list the definition of effective rank that was proposed by <a href=\"#bib.bib43\">Roy and Vetterli (2007)</a> here as a reference. For a matrix W that has size M×NM\\times N, the singular value decomposition of it can be expressed as W=U​Σ​VW=U\\Sigma V and the singular values σ=(σ1,σ2,…,σm​i​n​(M,N))T\\sigma=(\\sigma_{1},\\sigma_{2},...,\\sigma_{min(M,N)})^{T} are the non-negative diagonal entries of the matrix Σ\\Sigma. The singular value distribution is denoted as:    pi=σi‖σ‖1p_{i}=\\frac{\\sigma_{i}}{|\\sigma|_{1}}  (6)  </p>\n<p>Denote the Shannon Entropy as:    H(p1,p2,…,pm​i​n​(M,N))=−∑i=1m​i​n​(M,N)pilogpiH(p_{1},p_{2},...,p_{min(M,N)})=-\\sum_{i=1}^{min(M,N)}p_{i}\\log p_{i}  (7)  </p>\n<p>The effective rank is defined as:    erank(W)=e−∑i=1m​i​n​(M,N)pilogpierank(W)=e^{-\\sum_{i=1}^{min(M,N)}p_{i}logp_{i}}  (8)    </p>\n<p>In Figure <a href=\"#A1.F12\">12</a>, we present the effective rank of key and value caches across all the layers. The plot shows a continuous increase in the effective rank of value caches after applying C2C, especially in the shallow layers. Key caches after applying C2C also have a comparable effective rank and increase at deep layers.      (a) Effective rank of the Key cache.   (b) Effective rank of the Value cache.  Figure 12: Per-layer effective rank of Key and Value caches for the Receiver (Qwen3-0.6B), Sharer (Qwen3-4B), and after C2C fusion. Higher effective rank indicates richer semantic information.    </p>\n<h4 id=\"a-4-2-gating-behavior\">A.4.2 Gating Behavior</h4>\n<p>We analyze the behavior of the learnable gates by contrasting models trained on general-purpose versus task-specific data. This comparison reveals markedly different gating dynamics across the two regimes.   </p>\n<p>General-purpose training. When C2C is trained on the OpenHermes-2.5 dataset, the learned key and value gates remain almost fully open. Across the three model combinations reported in Table <a href=\"#S4.T4\">4</a>, the average gate activation ratio exceeds 98.21%. Despite this near-complete activation, we observe that in certain layers the dynamic weights are concentrated at very small values—for example, the average key weight in some layers falls below 0.1. This suggests that under general-purpose training, C2C leverages the dynamic weighting mechanism to modulate how much information is incorporated from the sharer on a per-query basis, effectively treating dynamic weights as the primary control signal while leaving most gates open.   </p>\n<p>Task-specific training. In contrast, when C2C is trained on the MMLU auxiliary_train split, the gates exhibit a much sparser activation pattern. Across model combinations shown in Table <a href=\"#S4.T7\">7</a>, the average gate activation ratio drops to 52.67%. For the layers where gates do open, however, the dynamic weights are substantially larger, with most layers exhibiting average weights above 0.4. This indicates that under task-specific training, the gating mechanism selects a smaller subset of layers that are consistently useful, while the dynamic weights primarily regulate the contribution strength of these selected layers.   </p>\n<p>Overall, these findings highlight the adaptive interplay between gates and weights: general-purpose training favors broad gate activation with fine-grained modulation via weights, whereas task-specific training favors sparse gate activation with stronger reliance on the selected layers.    </p>\n<h4 id=\"a-4-3-outlier-cases-in-inference-time\">A.4.3 Outlier cases in inference time</h4>\n<p>Llama3.2. We observe that the Llama3.2 model achieves significantly lower inference time compared to other baselines in Table <a href=\"#S4.T4\">4</a>. This improvement can be attributed to two factors. First, the Llama3.2 model itself has faster inference speed due to its implementation. Second, under the Non-CoT evaluation prompts described in Section <a href=\"#A1.SS3.SSS6\">A.3.6</a>, the model tends to output only a single option letter (e.g., “A” or “B”), rather than a longer formatted string such as “The correct answer is A.” The shorter outputs further reduce the average decoding time, leading to the observed advantage.   </p>\n<p>Qwen2.5-Math. In contrast, the Qwen2.5-Math model exhibits considerably longer inference time, as shown in Table <a href=\"#S4.T7\">7</a>. The primary cause is its tendency to ignore the Non-CoT evaluation and T2T prompts described in Section <a href=\"#A1.SS3.SSS6\">A.3.6</a>, producing verbose, step-by-step solutions rather than concise answers. To accommodate these long outputs and avoid truncation, we set both the maximum response length and the maximum communication length to 1024 tokens during evaluation. Under this configuration, the model decodes substantially more tokens on average, resulting in significantly longer inference time.    </p>\n<h4 id=\"a-4-4-example-model-output\">A.4.4 Example Model Output</h4>\n<p>To help better understand the response pattern of different models, we show the example response from different methods using the CoT prompt. We use Qwen2.5-0.5B as the Sharer model and Qwen3-0.6B as the Receiver model.   </p>\n<p>As shown in the following examples, Qwen3-0.6B misunderstood the question. It treated a probe for deeper meaning as merely a rephrasing task. Qwen2.5-0.5B-Instruct misinterpreted the question type altogether, taking it as sentence completion and answering the replaced question instead, with overly verbose reasoning. T2T altered the context of the question itself. In contrast, C2C maintained a solid understanding, recognizing that the rewritten sentence aimed to explore deeper moral reasoning, and accordingly selected the correct answer.                    </p>\n<h4 id=\"a-4-5-training-cost-analysis\">A.4.5 Training Cost Analysis</h4>\n<p>Here we present the training cost in Table <a href=\"#A1.T12\">12</a>. As shown in the table, accuracy quickly increases in the first few hundred steps. With 300 training steps (less than 9 GPU hours), C2C achieves a comparable result to the final checkpoint.   Table 12: Training cost (wall-clock and GPU hours) and MMLU-Redux accuracy at each training step (columns) for three Sharer–Receiver pairs.   C2C Setting Metric 0 50 100 150 300 1929  Qwen2.5-0.5B+Qwen3-0.6B Wall-clock (h) - 0.15 0.29 0.44 0.87 5.59  GPU Hours - 1.20 2.32 3.52 6.95 44.72  MMLU-Redux 35.53 40.36 41.10 42.06 44.30 42.92  Llama3.2-1B+Qwen3-0.6B Wall-clock (h) - 0.18 0.35 0.53 1.05 6.78  GPU Hours - 1.44 2.80 4.24 8.44 54.24  MMLU-Redux 35.53 28.66 41.16 43.98 44.37 44.42  Qwen3-4B-Base+Qwen3-0.6B Wall-clock (h) - 0.16 0.32 0.48 0.96 6.17  GPU Hours - 1.28 2.56 3.84 7.68 49.36  MMLU-Redux 35.53 38.07 39.56 40.77 44.11 43.95    </p>\n<p>Additionally, in Figure <a href=\"#A1.F13\">13</a> we have plots of training loss and validation loss to compare the settings using Qwen2.5-0.5B or Llama3.2-1B as Sharer. The plot shows that for both settings, the training loss converges at 250 steps and the eval loss becomes stable at step 1000, suggesting that C2C across different model families incurs no extra computational cost.      (a) Training loss comparison   (b) Validation loss comparison  Figure 13: Training and validation loss curves for C2C with two Sharer–Receiver pairs: Qwen2.5-0.5B+Qwen3-0.6B and Llama3.2-1B+Qwen3-0.6B.   Table 13: MMLU accuracy in the one-Receiver, multiple-Sharers setting (Receiver: Qwen3-0.6B, Sharer 1: Qwen3-4B-Base, Sharer 2: Qwen2.5-1.5B-Math). Arrows denote KV-Cache transfer direction via C2C.   Type MMLU Acc.  Receiver 35.53  Sharer1 1.03  Sharer2 39.86  Sharer1 → Receiver 60.71  Sharer2 → Receiver 46.13  Sharer1, Sharer2 → Receiver 64.60     </p>\n<h4 id=\"a-4-6-failure-mode-analysis\">A.4.6 Failure Mode Analysis</h4>\n<p>We have shown that in various settings, C2C, as a new communication paradigm, can increase the receiver model performance by using the sharer’s contextual understanding. However, in some specific cases, C2C can fail to do so as the contextual understanding from the Sharer model is not always accurate and can mislead the Receiver into generating wrong answers. As shown in Figure <a href=\"#A1.F7\">7</a>, though in general the number of correctly answered questions increases, there are some questions that the receiver can answer correctly but are answered incorrectly after applying C2C. Below we show an example of an accounting question where Qwen3-0.6B generates the correct answer. However, when using T2T and C2C, Qwen2.5-0.5B conveys incorrect information, leading Qwen3-0.6B to the wrong answer. \nThis type of failure is more likely when using a very weak Sharer with strong Receiver and can lead to a performance degradation as mentioned in the limitation part.                     </p>\n<h3 id=\"a-5-c2c-extensions-and-future-work\">A.5 C2C Extensions and Future Work</h3>\n<p>As an initial exploration, this work focuses on pairwise communication to establish a foundation for future research. Communication via KV-Cache among multiple models is a direction that requires future exploration, with different designs that can be employed. Here, we explore two settings that involve multiple Sharers and/or Receivers.   </p>\n<h4 id=\"a-5-1-one-receiver-multiple-sharers\">A.5.1 One Receiver, Multiple Sharers</h4>\n<p>We explore the scenario in which three models are involved in the communication. Here we set Qwen3-0.6B as the Receiver and use both Qwen2.5-1.5B-Math and Qwen3-4B-Base as Sharers. Here, we separately trained the C2C fusers from Qwen2.5-1.5B-Math to Qwen3-0.6B and Qwen3-4B-Base to Qwen3-0.6B. The result in Table <a href=\"#A1.T13\">13</a> shows that without additional training, the receiver can use C2C to fuse two Sharers’ semantic information and improve the performance.    </p>\n<h4 id=\"a-5-2-multiple-receivers-multiple-sharers\">A.5.2 Multiple Receivers Multiple Sharers</h4>\n<p>We provide a possible path towards more efficient scaling, with O⁡(N)O(N) fusers instead of O⁡(N2)O(N^{2}) fusers to communicate among NN LLMs.   </p>\n<p>The design philosophy is to decompose M×NM\\times N communication routes into M×1M\\times 1, then 1×N1\\times N steps, with 11 being the unified latent space. This is achieved by using Projectors PsiP_{s_{i}} to transform the KV-Cache from different Sharer LLMs s0,…,sM−1s_{0},\\dots,s_{M-1} into a unified latent representation KV-Latent LL, then using the C2C fuser FrjF_{r_{j}} to fuse them with each Receiver model r0,…,rN−1r_{0},\\dots,r_{N-1}. CsiC_{s_{i}} represents the KV-Cache from model sis_{i}. For M Sharers, N Receivers, we have M projectors and N fusers. Each sharer-receiver pair has its own gate. During training, all Sharer KV-Caches are projected into a unified hidden space with respective Projectors.    Csi→PsiUsi,i=𝕄={0,…,M−1}C_{s_{i}}\\xrightarrow{P_{s_{i}}}U_{s_{i}},\\quad i=\\mathbb{M}={0,\\dots,M-1}   </p>\n<p>Then, each of the NN Receivers fuses all the MM available information from this hidden space.    (Usi,Crj)→FrjCrj,j=ℕ={0,…,N−1}(U_{s_{i}},C_{r_{j}})\\xrightarrow{F_{r_{j}}}C_{r_{j}},\\quad j=\\mathbb{N}={0,\\dots,N-1}   </p>\n<p>This yields NN updated caches Crj′C_{r_{j}}^{\\prime}, which can be optimized using the same SFT loss discussed in Section 3.3.4. Losses from all Receivers are summed to update all Projectors and fusers. During inference, the model supports both one-to-one and many-to-one (multi-sharer to single receiver) settings. As an initial exploration, we directly adopted the training data, fuser architecture, and hyperparameter settings from the pairwise fuser training, with vast possibilities left for future work.   </p>\n<p>In Table <a href=\"#A1.T14\">14</a> we show the result of using Qwen2.5-Coder-0.5B-Instruct and Qwen2.5-Math-1.5B-Instruct as Sharers, Qwen3-0.6B and Qwen2.5-0.5B-Instruct as Receivers.   Table 14: MMLU-Redux accuracy in the multiple-Receiver, multiple-Sharer setting with shared latent projectors. Receivers: Qwen3-0.6B and Qwen2.5-0.5B-Instruct; Sharers: Qwen2.5-Coder-0.5B-Instruct and Qwen3-4B-Base.   Sharer Receivers (MMLU Acc.)  Qwen3-0.6B Qwen2.5-0.5B  None 34.78 38.44  Coder-0.5B 46.07 42.44  4B-Base 51.23 59.17  Both 51.08 59.81     </p>\n<h4 id=\"a-5-3-incorporating-with-agentic-flow\">A.5.3 Incorporating with Agentic Flow</h4>\n<p>Here we show an exploration of C2C in agentic flow. We adopt the agentic flow for math problem-solving, following the workflow and prompts from Cognify (<a href=\"#bib.bib54\">He et al., 2025</a>). The workflow consists of a problem interpreter that analyzes the math problem and a problem solver that calculates the answer. For C2C, we use the prompt of the math solver, so the problem interpretation is done by KVCache fusion. Here we present the result on GSM8K. As shown in the table, the multi-agent flow increases the accuracy of math problem solving by 20.01. C2C has an accuracy of 62.55, increasing the accuracy by 1.37 when compared with the multi-agent flow using T2T. The performance can be further elevated to 78.01 by using T-C2C, which lets the math interpreter generate the interpretation and use C2C on both the question and the interpretation.   Table 15: GSM8K accuracy comparing single-model inference, multi-agent T2T flow, C2C, and T-C2C (T2T interpretation combined with C2C cache fusion).   Method Accuracy  Single Model (Qwen3-0.6B) 41.17  T2T (Multi-agent flow) 61.18  C2C 62.55  T-C2C 78.01</p>","headings":[{"level":1,"text":"Cache-to-Cache: Direct Semantic Communication Between Large Language Models   Tianyu Fu","id":"cache-to-cache-direct-semantic-communication-between-large-langu"},{"level":2,"text":"1 Introduction  Figure 1: (a) Previous Text-to-Text (T2T) communication passes information through explicit text generation. (b) Our Cache-to-Cache (C2C) communication directly projects and merges KV-Cache with rich semantics from different LLMs.","id":"1-introduction-figure-1-a-previous-text-to-text-t2t-communicatio"},{"level":2,"text":"2 Related Work","id":"2-related-work"},{"level":3,"text":"2.1 KV-Cache Sharing and Reuse","id":"2-1-kv-cache-sharing-and-reuse"},{"level":3,"text":"2.2 Multi-LLM Systems","id":"2-2-multi-llm-systems"},{"level":2,"text":"3 Method","id":"3-method"},{"level":3,"text":"3.1 Preliminaries","id":"3-1-preliminaries"},{"level":3,"text":"3.2 Oracles for Cache-to-Cache Communication","id":"3-2-oracles-for-cache-to-cache-communication"},{"level":3,"text":"3.3 C2C Design","id":"3-3-c2c-design"},{"level":2,"text":"4 Experiment","id":"4-experiment"},{"level":3,"text":"4.1 Setup","id":"4-1-setup"},{"level":3,"text":"4.2 Main Results","id":"4-2-main-results"},{"level":3,"text":"4.3 Scaling Behavior  Figure 6: Accuracy improvements (Δ\\DeltaAccuracy) on the MMLU-Redux benchmark. (a) C2C communication. (b) T2T communication. The xx-axis denotes the Sharer model from the Qwen2.5-Instruct series, while the curves correspond to Receiver models from the Qwen3 series. The accuracy improvements of C2C generally increase faster than T2T.","id":"4-3-scaling-behavior-figure-6-accuracy-improvements-deltaaccurac"},{"level":3,"text":"4.4 Ablation Study","id":"4-4-ablation-study"},{"level":3,"text":"4.5 Behavior Analysis","id":"4-5-behavior-analysis"},{"level":2,"text":"5 Discussion","id":"5-discussion"},{"level":2,"text":"6 Conclusion","id":"6-conclusion"},{"level":2,"text":"Acknowledgments","id":"acknowledgments"},{"level":2,"text":"Ethics Statement","id":"ethics-statement"},{"level":2,"text":"Reproducibility Statement","id":"reproducibility-statement"},{"level":2,"text":"References","id":"references"},{"level":2,"text":"Appendix A Appendix","id":"appendix-a-appendix"},{"level":3,"text":"A.1 Design Choice Exploration","id":"a-1-design-choice-exploration"},{"level":3,"text":"A.2 Additional Experimental Results","id":"a-2-additional-experimental-results"},{"level":3,"text":"A.3 Additional Experiment Setup","id":"a-3-additional-experiment-setup"},{"level":3,"text":"A.4 Additional Analysis","id":"a-4-additional-analysis"},{"level":3,"text":"A.5 C2C Extensions and Future Work","id":"a-5-c2c-extensions-and-future-work"}]}}