The KV cache sets the bill: cross-layer latents, space bounds under anisotropy and cache-aware carbon routing
Three papers posted on 2026-10-26 treat the key-value cache as the governing cost of LLM serving from three directions: how far it can be compressed in practice, how small it can be in principle, and what it costs to move a conversation away from where its cache lives. Together they argue that cache-aware design reaches from per-token memory layout up to fleet-level routing.
One latent for several layers
LLMs now serve as the backbone of agents that reason over many turns, call tools and pursue long-horizon tasks, and to avoid recomputation a model keeps the attention keys and values of all past tokens in a KV cache. Each layer keeps its own cache, so KV memory can become the main bottleneck for GPU serving. Most compression methods work within a single layer, by quantizing cache entries, reducing the channel dimension or evicting less important tokens, and all three lose substantial accuracy at high compression ratios. Cross-layer methods share one compressed cache across adjacent layers to go further, but they also degrade sharply at high ratios.
BellowsKV: One Latent for Many Layers, Expanded on Demand, by Jiamu Zhang and Hanjie Chen, starts from two observations: the KV representations of adjacent layers are quite different, whereas their input hidden states are highly similar; and under the same memory budget, reducing the dimension of a shared latent loses far more accuracy than quantizing it. The training-free method therefore maps the hidden states of n adjacent layers to one shared latent per token, and at inference time each layer reads its own keys and values from that latent through a layer-specific projection. The latent stays at full dimension and is compressed in two other ways. BellowsKV-Quant stores it at low precision, which is nearly lossless because the latent has no dominant outlier channels, and BellowsKV-Evict makes one shared eviction decision per block, because the layers rank token importance very similarly. Across three models of 7 billion to 8 billion parameters, BellowsKV-Quant retained about 99 percent of full-cache accuracy at 3.6x compression and 97 to 98 percent at 13x to 14x, where the strongest cross-layer method retained at most 84 percent at 16x.
How small attention memory can be when keys and queries rarely align
Attention under Bounded Key-Query Similarity: Space Complexity and Transformer Anisotropy, by Justin Y. Chen, Ying Feng, Piotr Indyk, Michael Kapralov, Ekaterina Kochetkova and Boris Prokhorov, addresses the theory behind such methods. KV-cache compression aims to store context compactly while approximately preserving the attention computation. Almost tight results on the worst-case space complexity of attention have recently been obtained, but they rely on instances in which queries can be perfectly aligned with keys. That contradicts the observed anisotropy of key and query geometry in real transformers, where key-query cosine similarities have been shown empirically to be small even for most correlated pairs.
The authors study attention approximation under the assumption that key-query cosine similarities lie in a small interval around zero, so that no query aligns too closely with any key. They give a nearly space-optimal algorithm and a corresponding space lower bound, and the distribution of cosine similarities in their lower-bound construction itself exhibits the anisotropy reported in the empirical literature. They also show that simple uniform sampling is nearly optimal for a typical range of parameters, which supports its surprising effectiveness on real datasets.
A conversation's cache has a location
Context Is Not Free: Carbon-Aware LLM Routing for Multi-Turn LLM Web Services across Geo-Distributed Data Centers takes the same object up to fleet scale. LLM-based web services run in geo-distributed data centers whose grid carbon intensity varies by region and over time, so routing a query to a cleaner region or a smaller model can cut emissions. A conversation, however, is a stateful session: each turn reuses the KV cache of its history, which resides only where earlier turns were served. Serving a turn elsewhere means recomputing that history, a carbon cost that grows with the conversation and can outweigh the saving from the move. Existing carbon-aware routers treat a conversation's queries as independent and ignore that cost.
Xiaoyang Zhang, Yuejun Yan, Qingang Zhang and Yonggang Wen present CarbonRouter, an online framework that jointly selects the model, GPU type and region for each query to minimize emissions. Its cache-aware carbon cost model charges history recomputation to every candidate deployment, using cached-token counts from the serving backends, and a lightweight gate keeps a session on its cached deployment when it would likely move back at the next turn and rebuild its history again. In trace-driven experiments on two real-world conversation datasets with five LLMs, three GPU types and four regions, it achieved the lowest carbon of all policies, cutting CO2 by 16.1 percent on average relative to a state-of-the-art carbon-aware router with the same action space while also improving predicted answer quality and estimated latency. The saving rose to 23.1 percent for sessions longer than 30 turns.
Cache-aware design from layer to fleet
Read together, the three papers describe one constraint at three scales. Inside a model, BellowsKV shows that the structure worth sharing is the similarity of hidden states across layers rather than the caches themselves, and that precision is a cheaper axis to compress than dimension. In theory, the bounded-similarity analysis replaces worst-case instances that real transformers do not exhibit with an assumption that matches their observed geometry, and finds that simple uniform sampling is nearly optimal in a typical parameter range. Across data centers, CarbonRouter shows that where a cache lives turns routing into a stateful decision whose cost grows with every turn.
For teams running inference at scale, the papers point to four working rules:
- Compress along the cheap axis: Under a fixed memory budget, reducing the shared latent's dimension cost far more accuracy than quantizing it.
- Use cross-layer similarity where it exists: Adjacent layers' hidden states were highly similar even though their KV representations were not, and the layers ranked token importance so similarly that one eviction decision per block sufficed.
- Keep simple baselines in the comparison: Under the bounded-similarity assumption, uniform sampling is nearly optimal for a typical range of parameters.
- Price state into routing: A router that ignores where a session's cache lives misses a recomputation cost that grows with session length; the cache-aware saving rose from 16.1 to 23.1 percent for sessions longer than 30 turns.
Limits of the evidence
BellowsKV's figures come from three models of 7 billion to 8 billion parameters, and the abstract reports accuracy retention rather than throughput or latency, so the serving gain has to be measured separately. The attention result holds under its stated assumption that key-query cosine similarities stay in a small interval around zero, and its practical reach depends on how closely real workloads fit that assumption. CarbonRouter's results are trace-driven, and its quality and latency improvements are predicted and estimated rather than measured in production. None of the three has yet been independently replicated. They nonetheless agree on a design direction: the KV cache is the object to plan around, from how it is stored to where it lives.
Sources
- BellowsKV: One Latent for Many Layers, Expanded on Demand · arXiv · 2026-10-26
- Attention under Bounded Key-Query Similarity: Space Complexity and Transformer Anisotropy · arXiv · 2026-10-26
- Context Is Not Free: Carbon-Aware LLM Routing for Multi-Turn LLM Web Services across Geo-Distributed Data Centers · arXiv · 2026-10-26