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

Computer Science > Machine Learning arXiv:2611.07025 (cs) [Submitted on 4 Nov 2026] Title: LowRAM: Low-Rank Keys and Amortised Values for Composable KV Cache Compression at Test-Time Authors: Teresa Delgado, Hugo Hazard, Martin Benfeghoul, Jun Wang, Zafeirios Fountas.

计算机科学 > 机器学习 arXiv:2611.07025 (cs) [提交于 2026 年 11 月 4 日] 标题:LowRAM:用于测试时可组合 KV 缓存压缩的低秩键与摊销值。作者:Teresa Delgado, Hugo Hazard, Martin Benfeghoul, Jun Wang, Zafeirios Fountas。

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.

摘要:自回归解码依赖于 KV 缓存,其内存占用随上下文长度线性增长,并限制了批处理大小和吞吐量。现有的训练后方法利用了跨标记、层和特征维度的冗余,或降低了数值精度。我们确定了一个互补维度:在每个注意力头内,值在很大程度上可以根据其对应的键进行预测。

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\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.

我们利用值缓存摊销来利用这一点,它在测试时拟合一个轻量级的逐头预测器,并仅为重建效果最差的标记存储残差,从而实现 4 倍的近乎无损的值压缩。该预测器可以通过元学习进行初始化以大幅降低预填充开销,或者在允许一次性成本的设置(如多查询推理)中从头开始拟合。

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\times$ higher peak decode throughput at $4\times$ compression.

我们将值摊销与跨层低秩键压缩相结合,产生了 LowRAM,这是一种在三个模型系列中保持近乎无损的非对称压缩流水线。通过在每个解码步骤中仅重建选定的 KV 对子集,LowRAM 可以将解码开销保持在最低水平,并在 4 倍压缩下实现高达 5 倍的峰值解码吞吐量。

LowRAM further composes with quantisation and eviction, reaching $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.

LowRAM 进一步与量化和驱逐机制相结合,在长上下文上以基准性能的 94.5% 达到了 26.9 倍的压缩率。这些结果表明,将键和值视为结构上不同的对象,能够实现高效、激进且可组合的 KV 缓存压缩。