Beyond Mean Attention: Diversity-Aware, Layer-Wise Scoring for KV Cache Eviction
Read the original on arXiv Computation and Language →The Flow has not summarised this story yet — read it at arXiv Computation and Language.
The Flow has not summarised this story yet — read it at arXiv Computation and Language.
arXiv:2607. 15498v1 Announce Type: cross Abstract: The key-value (KV) cache is the main memory bottleneck in long-context large language model (LLM) inference.
arXiv:2607. 27692v1 Announce Type: cross Abstract: Top-$K$ sparse attention reduces the cost of Softmax and value aggregation by attending to only a small subset of key--value (KV) entries.
The study investigates which transformer layer should score tokens for key‑value cache eviction, finding that mid‑depth layers (roughly 40–75% of the model depth) consistently yield the best long‑context retrieval accuracy across 21 models ranging from 0.5 B to 109 B parameters. By modeling eviction as a top‑k cut and using calibration prompts, the authors identify an optimal scoring layer that outperforms the default per‑layer scoring on most models, especially those below 14 B, and improves performance on tight‑budget scenarios and financial‑filing tasks. The research also explains performance penalties in shared‑cache architectures and notes that for open‑book question answering, the mid‑depth advantage does not materialize.
arXiv:2608. 03228v1 Announce Type: new Abstract: Existing low rank KV cache methods preserve either model weights or key variance, neither of which directly reflects the attention scores used during inference.
The paper investigates KV‑cache eviction strategies for sparse‑attention models, showing that selecting the largest attention weights is nearly optimal—closing only a median 2–5 % of the gap to full attention. It further demonstrates that differences in performance between eviction methods largely stem from memory usage, with the new training‑free ContourKV allocator outperforming state‑of‑the‑art methods in most pairwise comparisons while matching their byte‑efficiency.
arXiv:2611. 07232v1 Announce Type: cross Abstract: At context lengths of about 1M tokens, dense attention is costly in prefill and decoding, and training typically relies on long documents, which become scarcer as the target length increases.