KVComm: Enabling Efficient LLM Communication through Selective KV Sharing

Xiangyu Shi, Marco Chiesa, Gerald Q. Maguire Jr., Dejan Kostic

TL;DR

KVComm is a novel communication framework that allows Large Language Models (LLMs) to collaborate by selectively sharing Key-Value (KV) pairs from their internal attention mechanisms. By transmitting as few as 30% of a model's layers, KVComm matches the performance of "full-context" processing while reducing computational overhead by up to 6x.

The Problem: Bottlenecks and Biases

In multi-agent systems, LLMs need to effectively share information with one another. Currently, inter-model communication relies on two primary methods, both of which have significant drawbacks:

  1. Natural Language: Agents "chat" with each other. This is slow because it requires multiple decoding steps (generating text is computationally expensive) and lossy because rich internal representations are squeezed through the "bottleneck" of discrete words.
  2. Hidden States: Agents share their internal vector representations. However, the authors identify an information concentration bias: in later layers, the hidden state of the very last token carries almost all the weight, making it a poor medium for transferring complex, multi-token context.
Accuracy across layers demonstrating the information concentration bias on the last token.

The challenge is to find a "Goldilocks" medium: something richer and more nuanced than text, but more efficient and less biased than raw hidden states.

The Solution: Selective KV Sharing with KVComm

To address these limitations, the authors propose KVComm, a framework utilizing Selective KV Sharing. Instead of sending text or a single hidden state, the "sender" model shares the Key and Value matrices from its attention layers.

The KVComm framework, illustrating the calibration phase for scoring layers and the inference phase for selective KV sharing.

The core innovation of KVComm is its Selection Strategy. Transmitting every KV pair would result in massive data overhead, so KVComm intelligently picks the most informative layers based on two guiding hypotheses:

  • The Semantic Middle (H1): Intermediate layers are better at encoding transferable semantic knowledge than very early (too shallow) or very late (too task-specific) layers.
  • Attention Importance (H2): Layers that exhibit "concentrated" attention—focusing heavily on specific context tokens—are more valuable for communication.

KVComm calculates an attention importance score for each layer and combines it with a Gaussian prior (to favor those semantic middle layers). The "receiver" model then simply concatenates these selected external KV pairs with its own, allowing its attention mechanism to "look" directly at the sender's internal context.

Key Insights and Innovations

  • Bypassing the Hidden State Dilemma: The paper proves that taking hidden states from early layers saves no computation (the receiver still has to run the rest of the model), while taking them from late layers tanks performance due to over-compression. KV pairs bypass this entirely by letting the receiver decide what to focus on at various depths.
  • Non-Contiguous Sharing: Unlike previous methods that share a rigid "chunk" of layers (e.g., layers 1-10), KVComm can pick non-adjacent layers (e.g., 5, 12, and 18) if they happen to be the most "attentive" for that specific task.
  • Single-Sample Calibration: Surprisingly, the authors found that you only need to run the selection strategy on one sample to find the "best" layers for a specific model pair and task. This makes the system incredibly easy and cheap to deploy.

Experimental Results

The researchers evaluated KVComm across a wide variety of reasoning and long-context tasks, including synthetic benchmarks (Countries, Tipsheets), standard QA/Math benchmarks (HotpotQA, TMATH), and long-context summarization (SAMSum, LongBench subsets). They tested these across nine different model pairs, including Llama-3.1, Qwen-2.5, and Falcon-3.

  • Efficiency vs. Performance: KVComm achieves performance comparable to the "Skyline" (the theoretical upper bound where one model is simply given the entire combined text) while transmitting only 30% to 70% of the layers.
  • Massive Speedups: Compared to the Skyline method, KVComm reduces computational costs (FLOPs) by 2.5x to 6x.
  • Memory Savings: On the Tipsheets dataset, KVComm used 23% to 73% less memory than the full-context approach.
  • Superiority over Baselines: It consistently outperformed other "soft" communication protocols like CIPHER (embedding-based) and AC (hidden state-based), especially on complex, long-context reasoning tasks.

Limitations and Future Work

While highly effective, KVComm has a few current limitations:

  • Architectural Dependency: Currently, KVComm requires both models to share the same base architecture (e.g., both must be Llama-based) because KV structures differ between model families. Future work may explore "latent projections" or adapters to bridge different architectures.
  • Bandwidth vs. Compute: While KVComm slashes computation, the KV pairs themselves can still be large. In low-bandwidth environments, further compression of the KV cache will be necessary.
  • Scaling Up: The current study focuses mostly on two-agent (sender-receiver) pairs. Expanding this framework to large-scale, multi-agent swarms remains an exciting frontier for future research.

Summary updated

BibTeX
@inproceedings{shi2026kvcomm,
  author = {Xiangyu Shi and Marco Chiesa and Gerald Q. Maguire Jr. and Dejan Kostic},
  title = {{KVComm: Enabling Efficient LLM Communication through Selective KV Sharing}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=F7rUng23nw},
}
Figure