KV Cache Broadcasting in LLM Inference: Principles and Optimization Practices
KV cache broadcasting can become a hidden bottleneck in large language model inference, especially in disaggregated and multi-node architectures. This article explains how KV caches create communication pressure during prefill and decoding, when one-to-many distribution actually makes sense, and how to estimate cache-driven traffic with a practical capacity formula. It also covers chunked transfer with compute overlap, cache quantization, location-aware scheduling, correctness and reliability safeguards, and a metrics-driven approach to evaluating whether the optimization truly helps end-to-end latency and throughput.
Understanding the KV Cache Communication Bottleneck
Autoregressive inference in large language models typically consists of two phases: prefill and decoding. The prefill phase processes the input context and generates the key and value vectors needed by every attention layer. The decoding phase produces new tokens one at a time, reusing historical keys and values to avoid recomputing the existing context at every step.
These stored intermediate states are the key-value cache, commonly abbreviated as the KV cache. By trading extra GPU memory for reduced computation, it forms the foundation of long-context and high-concurrency inference.
On a single device, the main concerns are whether the cache fits into memory and whether memory bandwidth is sufficient to read it. In multi-device, multi-node environments, the questions expand: who produces the cache, where it is stored, which compute devices need to read it, and how to deliver the right data on time.
When prefill and decoding run on different devices, or when multiple compute shards need to share part of the cache state, cache communication can enter the critical path of request processing. At that point, even if compute units still have headroom, execution may stall waiting for the cache to arrive.
From a general engineering perspective, KV cache broadcasting can be understood as organizing one-to-many transmission for scenarios where the same cache must be delivered to multiple legitimate receivers—reducing redundant sends and coordinating data arrival with computation. It does not mean every device should hold a complete copy, nor that broadcasting is always superior to point-to-point transfer in every inference architecture.
First, Determine Whether Broadcasting Is Actually Needed
The first step in cache communication optimization is not choosing a communication primitive—it is clarifying data dependencies.
1. One-to-One Transfer Should Not Be Forced Into a Broadcast
If a cache produced by one prefill executor is consumed by only one decoding executor, point-to-point transfer is usually more direct. Introducing a broadcast may add participant management, synchronization, and buffer maintenance costs without clear benefit.
Not every prefill-to-decode cache handoff should be treated as a broadcast. Broadcast or multicast-style distribution only makes sense when the same cache content genuinely has multiple receivers.
2. Receiver Scope Depends on Parallel Layout
In distributed schemes such as tensor parallelism, different devices may be responsible for different attention heads or tensor shards. What a given device actually needs is often only a portion of the full cache.
If receivers need mutually exclusive data shards, scattered (point-to-point) delivery is more sensible than a full broadcast; if multiple receivers genuinely need the same data, broadcast within the relevant participant group is justified.
In practice, build a “cache shard → consuming device” mapping first, then determine the transfer mode—rather than broadcasting everything and letting each device discard what it does not need.
3. Shared Copies Raise Cache Mutability Issues
When multiple requests share the same prefix, a fully computed, read-only prefix cache may be reusable and distributable. But each request’s subsequent generation diverges, so the incremental cache can no longer be treated as the same data.
A sound approach is to separate the read-only shared prefix from each request’s private suffix, managing lifecycle, access permissions, and reclamation independently. Otherwise, apparent sharing can cause state confusion or even cross-request data leakage.
What Costs Can Cache Broadcasting Reduce?
Suppose a cache of size S must be delivered to N receivers. If the source device sends it separately to each receiver, the source-side logical send volume is roughly N×S, and the source’s network link may become the bottleneck.
With tree-based distribution, the source first sends to a small number of intermediate nodes, which then forward downstream, spreading the source’s egress pressure. With hierarchical strategies, distribution can proceed across nodes first, then replicate within each node.
Note that broadcasting does not automatically eliminate all data copying. Multiple receivers still ultimately need their required content, and total system transfer volume, source-side send volume, and completion latency are three distinct metrics.
Ideally, transfer time can be roughly approximated as:
T_comm ≈ T_startup + S_effective / B_effective
where T_startup covers fixed overheads such as connection setup, scheduling, and synchronization; S_effective is the data volume actually carried on the critical link; and B_effective is the effective bandwidth after protocol overhead and resource contention.
Real systems also involve network hops, contention from concurrent requests, device-to-device data movement, and receiver-side write capacity. Reducing source-side bytes does not necessarily mean end-to-end latency drops proportionally.
KV Cache Data Flow in Disaggregated Inference
In disaggregated inference architectures, encoding, prefill, and decoding can be handled by separate resource pools. Because each phase has different compute, bandwidth, and memory requirements, splitting them makes independent scaling easier—but also increases the cost of moving intermediate states.
A generic data flow can be described as:
Input processing and encoding → Prefill computation → Cache distribution → Decoding execution
For multimodal requests, features generated during encoding may also need to be transferred. However, encoded features and attention KV caches are different types of state and should not be conflated.
Cache distribution must carry at least two categories of information:
- Data payload: key and value vectors for each layer and shard.
- Control metadata: request ID, cache location, shard layout, valid length, data type, and completion status.
Data arrival does not mean the receiver can use it immediately. The receiver must also confirm that the cache layout matches its computation graph, that all required shards are fully visible, and that nothing was invalidated or overwritten during transfer.
If the source is still updating the same cache region during handoff, explicit ownership transfer, read-only snapshots, or other synchronization mechanisms are needed to prevent the receiver from reading inconsistent state.
Estimating Communication Pressure from Cache Size
For a common attention cache layout, the cache size per sequence can be approximated as:
M ≈ 2 × L × T × Hkv × D × b
where:
- L is the number of attention layers whose caches must be stored;
- T is the number of cached tokens;
- Hkv is the number of KV heads;
- D is the dimension per head;
- b is the bytes per element;
- the factor of 2 accounts for both keys and values.
This formula is for order-of-magnitude estimation. It excludes block management metadata, alignment padding, quantization side information, and temporary transfer buffers. Models with special cache compression or different attention structures cannot use it directly.
This shows that cache communication pressure is closely tied to context length, concurrency, and cache precision. A long-input request may produce substantial handoff traffic at the end of prefill even if its output is short.
Capacity planning should not look only at average context length—it must also watch long-tail requests. If multiple long-context requests finish prefill simultaneously, they can create short bursts of transfer traffic and noticeably increase time-to-first-token.
Coordinating Communication, Quantization, and Computation
1. Chunked Transfer with Compute Overlap
Splitting the cache into appropriately sized chunks allows transfer to overlap with some preparation work. When data dependencies allow, the receiver can also advance corresponding computations once partial data is ready.
But finer chunks are not always better. Overly small chunks increase scheduling, metadata handling, and synchronization overhead; overly large chunks may delay the arrival of the first usable data.
Moreover, whether execution can proceed early by layer or by chunk depends on computation graph dependencies, device execution models, and the communication implementation—simply shrinking transfer chunks does not guarantee pipelining benefits.
2. Cache Quantization to Reduce Bytes
Reducing the storage bit-width of cache elements lowers memory footprint and communication load. But actual gains must be netted against quantization, dequantization, and scale information transfer costs.
Cache quantization and model weight quantization are different optimization targets. Using low precision for weights and activations does not imply the cache can use the same precision without quality loss.
In practice, evaluate generation quality, long-context stability, operator support, and end-to-end latency together. Applying different precisions to different layers or cache portions must also be validated empirically—never assume it outperforms a uniform precision.
3. Location-Aware Scheduling
If the scheduler assigns requests based only on device idleness, it may place a decoding task where the cache requires extra cross-node movement.
A better strategy considers compute load, cache residency, link congestion, and target device memory headroom together. For requests that can reuse a prefix, prefer executors that already hold the corresponding cache—but avoid over-concentration that creates local hotspots.
Correctness and Reliability in Engineering Implementations
Cache broadcasting is the product of both the data plane and the control plane; optimizing the transfer path alone is not enough.
First, use explicit request IDs and cache versions to avoid reading stale data after retries, migration, or memory reuse. Second, clearly distinguish states such as “allocated,” “in transfer,” “readable,” and “reclaimable,” preventing receivers from consuming too early or sources from releasing too soon.
For failure handling, consider cases such as receiver exit, interrupted partial shard transfers, and sender unavailability. Retry mechanisms must avoid state corruption from duplicate writes of the same block, and must clearly define which operations are idempotent.
Backpressure matters too. When receiver processing slows down, the sender must not accumulate unbounded pending caches—otherwise memory pressure builds and other requests are slowed. Control pressure by limiting in-flight bytes, concurrent transfers, and the number of pending handoff requests.
When cross-request cache reuse is involved, access isolation and lifecycle management are mandatory. Similar content does not imply sharing authorization, and cache hit checks must never bypass tenant or session boundaries.
How to Evaluate Whether the Optimization Works
Evaluating cache broadcasting should not rely on a single peak-bandwidth measurement of one large transfer. What matters more is its impact on the complete inference service.
At minimum, cover these metrics:
- Time-to-first-token and its high percentiles;
- Inter-token latency during decoding;
- Goodput under a given latency target;
- Cache handoff duration and queuing time;
- Actual traffic on the source, receiver, and critical links;
- Degree of communication-computation overlap;
- Peak memory usage, failure rate, and retry overhead;
- Task quality changes after enabling cache quantization.
Experiments should keep the model, input/output length distributions, concurrency levels, parallel configuration, and precision settings as consistent as possible, and separately test short contexts, long contexts, shared prefixes, and bursty requests.
A recommended approach is an incremental ablation: measure baseline transfer first, then add broadcasting, chunking, overlap, or quantization one at a time to isolate each optimization’s contribution and interactions. Do not attribute the entire service stack’s performance gains to a single communication strategy.
Guiding Principle: Let Communication Serve Real Dependencies
The value of KV cache broadcasting lies in organizing transfer around genuine data consumption relationships—not in simply adding another communication method.
A practical rollout follows five steps: first confirm which devices need which caches, then estimate capacity and link pressure; next choose the appropriate mode—point-to-point, scattered, or broadcast; introduce chunking, quantization, and compute overlap while ensuring consistency and isolation; finally, validate end-to-end benefits under realistic workloads.
When the bottleneck comes primarily from redundant distribution, source egress congestion, or cache handoff waits, broadcast optimization can deliver clear value. When the bottleneck lies mainly in computation, memory reads, or receiver-side processing, other targeted measures are needed.
In short, a good cache communication design does not pursue “broadcasting more.” It delivers to the right targets, with the right data volume, at clear synchronization boundaries—so compute devices get exactly the state they need with as little waiting as possible.
