LowRAM: low-rank keys and amortised values for composable KV cache compression at test-time
- ID: f7f21186
- 来源链接: https://arxiv.org/abs/2611.07025
- PDF: https://arxiv.org/pdf/2611.07025
- arXiv 分类: cs.LG, cs.CL
- 作者: Teresa Delgado, Hugo Hazard, Martin Benfeghoul, Jun Wang, Zafeirios Fountas
- 原文日期: 2026-11-04
- 分类: infra
- 来源类型: paper
- 标签: kv-cache, inference, memory, test-time
- 质量评分: 4/5
- 抓取时间: 2026-11-10T15:44:12Z
中文导读
自回归解码的 KV cache 随上下文线性增长,限制批大小与吞吐。LowRAM 找到互补于现有稀疏化/量化路线的一条轴:每个注意力头内的 value 大部分可由对应 key 预测出来。方法是 value cache amortisation——测试时为每个头拟合一个轻量预测器,只对重构最差的 token 存残差,得到约 4 倍近无损 value 压缩;预测器可用 meta-learning 初始化以显著降低 prefill 开销,并可与低秩 key 等已有压缩手段组合使用。
为什么值得关注
测试时可组合、按头粒度的 value 压缩,与 FP4 KV(BitDecoding)、低秩 key 等量化/稀疏路线正交,可以在推理栈里叠着用。对长上下文服务的显存瓶颈是条务实的工程路线:不改模型权重、不动注意力语义,只压缓存。
关键信息
- 发现:每头内 value 大部分可由对应 key 预测 → value cache amortisation
- 测试时拟合轻量 per-head 预测器,只存重构最差 token 的残差,约 4x 近无损压缩
- meta-learning 初始化降低 prefill 开销;可与低秩 key 等压缩手段组合
- arXiv 2611.07025,2026-11-04,cs.LG/cs.CL;HF 日榜 30 赞
English 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 4x near-lossless value compression. The predictor can be initialised by meta-learning for substantially reduced prefill overhead.
English Summary
The KV cache grows linearly with context and caps batch size and throughput. LowRAM identifies an axis complementary to sparsity and quantization: within each attention head, values are largely predictable from their keys. Its value cache amortisation fits a lightweight per-head predictor at test time and stores residuals only for tokens it reconstructs worst, giving about 4x near-lossless value compression; meta-learned initialization cuts prefill overhead, and the method composes with low-rank keys and other post-training compression. Test-time, per-head, composable - orthogonal to quantization routes like FP4 KV caches (BitDecoding), and worth scheduling into a long-context inference stack.