In the standard Transformer architecture, the Key-Value (KV) cache is the primary bottleneck for scaling context length and serving throughput. As a model generates text, it must store the keys and values of every preceding token to compute attention. This cache grows linearly with sequence length and batch size, quickly exhausting GPU memory.
However, recent research reveals that the KV cache is profoundly redundant across three independent axes: sequence (which tokens we keep), depth (which layers we store), and width (how many feature channels we maintain). By exploiting the orthogonality of these dimensions, researchers are achieving order-of-magnitude reductions in memory usage.
Pruning the Sequence Axis
The most intuitive way to compress the cache is to store fewer tokens. Not all words in a prompt contribute equally to the next token's probability.
Aditya Desai and colleagues proposed the "Persistence of Importance" hypothesis in Scissorhands. They observed that tokens which receive high attention scores early in a generation remain influential throughout the sequence. By identifying these "heavy hitters" and evicting less important tokens from the cache, they achieved up to 5× compression without fine-tuning.
More advanced methods like Dynamic Memory Compression (DMC), developed by Piotr Nawrot and others, move beyond simple deletion. DMC learns to merge redundant tokens on the fly, preserving information that would otherwise be lost during eviction.
Collapsing the Depth Axis
While sequence pruning targets the horizontal length of the cache, depth-wise compression targets the vertical stack of layers. Standard Transformers maintain a unique KV cache for every single layer, but research shows that many layers "see" the same information.
William Brandon introduced Cross-Layer Attention (CLA), which shares KV activations across adjacent layers. This architectural shift, described in Reducing Transformer Key-Value Cache Size with Cross-Layer Attention, effectively halves the cache depth with minimal accuracy loss.
Interestingly, the layers we share don't have to be adjacent. Yifei Yang discovered a "dissimilarity paradox" in KVSharer: sharing caches between layers that are least alike often preserves performance better than sharing similar ones. Meanwhile, Hongzhan Lin found a "key-value asymmetry" in FusedKV, where top-layer values are best reconstructed from bottom layers, while keys require information from the middle of the network.
Shrinking the Width Axis
The third dimension of redundancy lies within the feature vectors themselves. Each key and value is a high-dimensional vector, but many of those dimensions (channels) are either redundant or inactive.
Methods like ThinK, presented in Thinner Key Cache by Query-Driven Pruning, identify and remove unimportant channels in the Key cache. Similarly, Bokai Lin developed MatryoshkaKV, which uses trainable orthogonal projections to nest information. This allows the model to adaptively use only the most important "inner" dimensions of the KV vectors depending on the available memory budget.
For a post-training approach, Chi-Chih Chang proposed Palu, which decomposes weight matrices into low-rank components. By caching these compressed latent representations instead of full-width vectors, Palu achieves significant memory savings and speedups.
The Power of Orthogonality
The most significant insight from this field is that these dimensions are orthogonal. Because token eviction (sequence), layer sharing (depth), and channel pruning (width) target different types of redundancy, they can be stacked.
As Luohe Shi demonstrates in KV-Latent, combining dimensionality reduction with existing architectural optimizations like Grouped-Query Attention (GQA) leads to multiplicative gains. If you reduce the number of heads by 4x (GQA), the number of layers by 2x (CLA), and the number of tokens by 2x (Scissorhands), the total cache size shrinks by 16x.
This multi-dimensional perspective transforms the KV cache from a monolithic memory block into a flexible resource that can be squeezed from every angle, enabling billion-parameter models to handle massive contexts on consumer-grade hardware.