arXiv(opens in a new tab)cs.LGNov 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2611.07025

LowRAM: Low-Rank Keys and Amortised Values for Composable KV Cache Compression at Test-Time

Teresa Delgado, Hugo Hazard, Martin Benfeghoul, Jun Wang, Zafeirios Fountas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Autoregressive decoding relies on the KV cache, whose memory footprint grows linearly with context length and caps batch size and throughput. Existing post-training methods exploit redundancy across tokens, layers, and feature dimensions, or lower numerical precision. We identify a complementary axis: within each attention head, values are largely predictable from their corresponding keys. We exploit this with value cache amortisation, which fits a lightweight per-head predictor at test time and stores residuals only for the tokens it reconstructs worst, giving 4×4\times near-lossless value compression. The predictor can be initialised by meta-learning for substantially reduced prefill overhead, or fitted from scratch in settings that allow a one-off cost, such as multi-query inference. We pair value amortisation with cross-layer low-rank key compression to produce LowRAM, an asymmetric compression pipeline that stays close to lossless across three model families. By reconstructing only a selected subset of KV pairs at each decoding step, LowRAM can keep decoding overhead minimal and achieve up to 5×5\times higher peak decode throughput at 4×4\times compression. LowRAM further composes with quantisation and eviction, reaching 26.9×26.9\times compression at 94.5% of baseline performance on long contexts. These results show that treating keys and values as structurally distinct enables efficient, aggressive, and composable KV cache compression.

1 INTRODUCTION

Transformers (Vaswani et al., 2017) have become the dominant architecture for language modelling, but their deployment at long context lengths is fundamentally constrained by the compute cost of autoregressive decoding. Modern inference stacks address this via a KV cache: the key and value projections of each preceding token are computed once and reused at every subsequent decoding step. This turns decoding from a quadratic to a linear operation in sequence length, but shifts the bottleneck from compute to memory: the cache grows linearly with context length and batch size, and at long contexts comes to dominate the model's activation footprint.

A wide range of architectural responses to this bottleneck have been proposed, including linear attention and state-space alternatives that replace the cache with a fixed-size recurrent hidden state (Katharopoulos et al., 2020; Gu & Dao, 2023; Dao & Gu, 2024), and sparse, sliding-window, grouped-query, and multi-head latent attention variants that reduce per-token cache size architecturally (Ainslie et al., 2023; DeepSeek-AI et al., 2024). However, these approaches require pretraining or substantial finetuning, and most open-weight models still rely on grouped-query attention with a full KV cache (Grattafiori et al., 2024; Jiang et al., 2023; Team et al., 2024; Yang et al., 2025a). This has motivated a parallel line of post-training KV cache compression methods operating on frozen pretrained models. Existing methods fall into three families: eviction, which discards unimportant entries (Xiao et al., 2024; Zhang et al., 2023; Li et al., 2024; Cai et al., 2025); quantisation, which lowers

*Equal contribution.

Figure

Figure

Figure 1: Mistral-7B compression on LongBench contexts longer than 10K tokens across different KV cache compression methods: eviction (adapted from Yang et al. (2025b)), quantisation (Zandieh et al., 2026), LowRAM (our proposed method), and LowRAM-EQ (LowRAM combined with eviction and quantisation). Left: recovered performance against compression ratio. Right: maximum evaluated compression retaining at least 90% of baseline performance. LowRAM-EQ combines LowRAM, eviction, and quantisation. See Appendix C for a description of how compression is computed.

the precision of stored entries (Liu et al., 2024; Hooper et al., 2024; Dong et al., 2024); and low-rank decomposition, which approximates KV matrices with smaller, factorised representations (Yu et al., 2024; Chang et al., 2025; Saxena et al., 2024). These families are largely orthogonal, exploiting redundancies along different axes of the cache. This leaves the redundancy between keys and values largely unexplored. Keys and values are computed from the same representation, and although they serve different functions, their shared origin induces a predictable relationship between them. We exploit this redundancy by using the keys as a source from which the value cache can be recovered.

We first compare several predictive relationships within and across layers under a matched memory budget and find that reconstructing current-layer values from current-layer keys best preserves downstream performance. Based on this finding, we introduce value cache amortisation: during prefill, we fit a lightweight per-head network to map cached keys to their associated values. We then rank tokens by reconstruction error and store residual corrections only for the least accurately predicted values. The resulting value cache consists of the network parameters and a sparse set of residuals. During decoding, values are recovered by applying the network to the keys and adding the stored corrections, as illustrated in Figure 2.

Amortising the values still requires keys to be retained, both for attention and as inputs to the learned map. A complete compression scheme must therefore reduce the key cache as well. Our source-target analysis suggests that applying the same predictive strategy to the keys leads to less downstream performance than for values. Instead, for keys, prior work points to low-rank decomposition: their energy is concentrated in a relatively small number of feature directions, producing a short spectral tail and correspondingly small approximation error at reduced rank (Saxena et al., 2024). These findings motivate an asymmetric design: values are reconstructed from keys, while the keys themselves are compressed according to their low-rank structure. LowRAM realises this design by pairing value cache amortisation with xKV (Chang et al., 2026), which shares a low-rank basis across layers within each group to exploit alignment between their dominant key-cache subspaces.

References (97)