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
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 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 higher peak decode throughput at compression. LowRAM further composes with quantisation and eviction, reaching compression at 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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
Related papers
Attacking Tabular Foundation Models: An Experimental Taxonomy of Context Poisoning and Test-Time Evasion
Shared title terminologycs.LGRamak Nassiri, Sujan Kumar Reddy Challa, Feroz Ahmed et al.
Think Before You Forecast: Scaling Test-Time Compute for Time Series Forecasting
Shared title terminologycs.LGDaojun Liang, Xiao Hong, Pei Zhang et al.
Adaptation or Poisoning? Security Risks of Conversational Test-Time Learning in Large Language Models
Shared title terminologycs.LGHonghao Feng, Shanhan Qu, Kai Tong et al.
Test-Time Self-Play: Scaling without a Verifier
Shared title terminologycs.LGAkira Yoshiyama, Akmal Ashirmatov, Jonas Hübotter et al.
From Reconstruction to Imputation: Test-Time Optimization for Missing Time-Series Channels
Shared title terminologycs.LGBjörn Ludwig, Alexander Windmann, René Heesch et al.
Verifier-Guided Self-Consistency: Test-Time Reasoning with Imperfect Generators and Verifiers
Shared title terminologycs.LGEkaterina Fadeeva, Xueyan Li, Mrinmaya Sachan et al.