Reproduce “AnchorKV: Anchor-Residual KV Cache Compression” 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
Malik Khalaf, Yara Shamshoum, Nitzan Hodos, Yuval Sieradzki, Assaf Schuster
AnchorKV, from Technion - Israel Institute of Technology, introduces an anchor-residual KV cache compression method for large language models that achieves up to 20x compression while retaining full context. The approach maintained approximately 99% of uncompressed model scores and doubled concurrent requests for long contexts by drastically reducing memory footprint.
Key insights
- Aggressive KV cache compression can be achieved without discarding any tokens, preserving full context accessibility and robustness for complex tasks.
- Allocating a limited budget of quantized residuals based on their estimated first-order effect on attention output is crucial for maintaining accuracy at high compression ratios.
- Projecting key vectors onto anchors *before* applying Rotary Position Embeddings (RoPE) improves directional alignment, leading to better representation of non-repaired tokens.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.