Reproduce “The Gating Mechanism of KV Cache Eviction” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Hao Gu, Xintong Yang, Zhiwei Li, Lei Zhu, Jian Yang, Qiyuan Zhu, Dezhi Li, Jingyuan Zhang and 5 more
IndexMem++ controls cache use in long-context inference by learning which key-value entries to evict. Its gate acts inside attention’s softmax, so suppressed entries transfer attention mass to retained entries. The gate uses fixed total mass and is trained to match dense-model predictions. On Qwen3-8B, it scores 90.14 on RULER at 8K with 75% cache compression, versus 93.86 for Full-KV, on these benchmarks.
Key insights
- A gate intended to approximate eviction must act before softmax normalization: suppressing an entry then redistributes its attention mass among survivors, as actual removal does.
- Fixed-mass competition prevents the trivial constant-gate solution, while dense-model distillation helps separate eviction-induced changes from the backbone’s own prediction errors.
- Selection and recovery can be treated together through the attention normalizer: summaries can approximate both the content and attention mass of removed entries when included in the softmax.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.