Reproduce “Key, Value, Compress: A Systematic Exploration of KV Cache Compression Techniques” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Neusha Javidnia, Bita Darvish Rouhani, Farinaz Koushanfar
A systematic analysis of Key-Value (KV) cache compression techniques for large language models (LLMs) provides a comprehensive taxonomy and evaluates their impact on model accuracy and inference latency. This work highlights various strategies to mitigate the significant memory and computational demands of LLMs when processing long context lengths.
Key insights
- Methods integrated during training from scratch tend to yield higher accuracy gains, while post-training and training-free approaches offer different balances of efficiency, performance, and deployment ease.
- KV cache compression strategies consistently deliver speedups, with magnitudes varying based on hardware, baseline models, and context lengths, ranging from 1.05x to over 10x end-to-end.
- A fundamental trade-off exists between memory efficiency, computational speed, and model accuracy, requiring application-specific consideration when choosing a compression technique.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.