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

arXiv:2611.07025 · 2026-11-09 공개 · arXiv · PDF

model-compression throughput-optimization context-length attention-heads autoregressive-decoding kv-cache-compression lowram amortised-values

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 4times 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 5times higher peak decode throughput at 4times compression. LowRAM further composes with quantisation and eviction, reaching 26.9times 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은 키-벨류 캐시를 비대칭적으로 압축하여 테스트 시 4배 압축에서 94.5% 성능을 유지하고, 최대 26.9배 압축 가능.

핵심 기여도

핵심 아이디어

기존 KV 캐시 압축은 토큰, 레이어, 차원 간 중복성을 활용하거나 정밀도를 낮추는 방식을 사용했으나, **LowRAM은 키와 벨류 간의 구조적 관계를 활용**한다. 특히, **각 어텐션 헤드 내에서 벨류는 키로부터 예측 가능하다는 통찰**을 바탕으로, **value cache amortisation**이라는 새로운 방법을 제안한다. 이는 테스트 시에 토큰별로 키를 기반으로 벨류를 예측하는 가벼운 네트워크를 학습하고, 예측 오차가 큰 토큰에 대해서만 잔차를 저장하는 방식이다. 이로 인해 4× 압축에서도 거의 손실 없는 복원이 가능하다.

또한, 키는 벨류와 달리 예측 오류가 어텐션 로짓에 직접 영향을 주므로, **xKV를 사용한 low-rank 압축**을 병행하여 비대칭적 압축 파이프라인을 구성한다. 이는 키와 벨류의 구조적 차이를 고려한 설계로, **성능 저하를 최소화하면서도 높은 압축률을 달성**할 수 있다.

기술적 접근법

주요 결과

의의 및 한계

LowRAM은 기존 KV 캐시 압축 방법과 달리 **키와 벨류를 구조적으로 구분하여 비대칭적 압축**을 가능하게 한다는 점에서 혁신적이다. 특히, **벨류는 키로부터 예측 가능하다는 통찰**을 기반으로 한 **value cache amortisation**은 기존 low-rank 압축 방법보다 더 높은 압축률과 유사한 성능을 보인다. 또한, **메타러닝 초기화**를 통해 prefill 오버헤드를 줄이는 것도 실용적 기여로 작용한다.

하지만, **짧은 컨텍스트에서는 압축 효과가 제한적**이며, **예측기 파라미터는 고정 비용**이므로 짧은 시퀀스에서는 비효율적일 수 있다. 또한, **벨류 예측 오류가 어텐션에 영향을 주지 않지만, 키 오류는 어텐션 로짓에 직접 영향을 주므로**, 키 압축은 더 신중하게 설계되어야 한다는 한계가 있다.

실용적 활용

LowRAM은 **긴 컨텍스트를 요구하는 대형 언어 모델의 추론 성능 향상**에 유용하다. 특히, **문서 QA, 공유 프리픽스 서빙, 멀티쿼리 인퍼런스** 등에서 **메모리 효율성과 처리량을 동시에 개선**할 수 있다. 또한, **기존 모델을 수정하지 않고 테스트 시에만 압축 적용**이 가능하므로, **프로덕션 환경에서 즉시 도입 가능**하다.