← Back to Paper Radar

Random Attention: Rethinking KV Cache Eviction for Efficient Reasoning

Heng Wang, Jielin Qiu, Wenting Zhao, Cheng Qian, Liangwei Yang, Jiawei Han, Heng Ji, Silvio Savarese, Shelby Heinecke, Huan Wang
arXiv.org | 2026

Reading guide · Based on sections of the original paper

The authors argue that, for decode-phase KV cache eviction in long reasoning, pinning the prompt and evicting the rest uniformly at random per head matches the training-free score-based evictors they test. They conclude that prompt protection, not ranking, drives most accuracy differences.

Why read this

Practitioners serving reasoning models under memory limits can use it to pick a cheap default evictor and to judge whether a new selection score beats a fair null.

What the authors found

  • When every baseline is also given prompt protection, SnapKV, R-KV and VaSE finish within 2.2 points of each other. SnapKV gains up to 22.5 points, on Phi-4-reasoning GPQA-D. This holds on Qwen3-4B and Phi-4-reasoning for MATH500 and GPQA-D, at roughly 4x compression. With protection applied, Random Attention is best in every setting, and the authors attribute earlier random baselines' poor showing to losing the prompt. 5.1 The Prompt Is the Fragile Part
  • A single per-layer eviction round costs 0.30 ms for Random Attention versus 1.47–1.64 ms for TriAttention. In vLLM serving on one H200 (K=2048, 1k-token prompts, 32k-token generations, 128 requests), the authors report 32–43% higher throughput for Random Attention. They attribute the margin to batch-wide waiting at compression sync points. At 8k-token generations, both compressed methods serve less than full attention. Why skipping the scoring pass is worth 32 32 – 43 % 43\% in serving.
  • In the main grid (three models, five task columns, about 4x compression, about 3x for LiveCodeBench), paired bootstrap and sign tests put Random Attention significantly ahead of the released baselines in 31 of 60 cells. It is significantly behind in one: TriAttention on Qwen3-32B code. 4.2 Main Results

Main limitation

Random Attention never reproduced a passcode stated once, 57 compression rounds before the question, while R-KV retrieved it 84% of the time. TriAttention also wins on code at 14B and 32B. The evidence is limited to grouped-query models, prompts that fit the budget, and training-free baselines. Where a selection signal still pays.

Where to start

5.1 The Prompt Is the Fragile Part · Read the matched-protection analysis to see how separating prompt protection from scoring reorders the methods, and where residual gaps remain.

Abstract

Large language models achieve superior performance on tasks that require extended reasoning, but long chains of thought make the KV cache a severe memory bottleneck. Existing KV cache compression methods share one paradigm: score each cached token by some estimate of how much it will matter later, and keep the top-scoring ones. We show that the selection signal contributes almost nothing. Random Attention keeps the prompt and evicts uniformly at random within each attention head, computing no score at all; across four models and six reasoning tasks, it matches the strongest baseline in task performance while delivering 32-43% higher throughput than that method when deployed with vLLM. Controlled experiments explain this by showing that 1) the prompt is the fragile part of the cache, and most of the gap between selectors is just whether their selection signal happened to keep it; 2) the reasoning trace protects itself against eviction with redundancy at two levels, in the text (the model restates what it still needs as it works) and across attention heads (each keeps its own copy of the trace), so once the prompt is safe, a random draw retains enough copies of what the model still needs, and no score is required to pick them. Our code is publicly available at https://github.com/SalesforceAIResearch/Random-Attention.

Generated automatically from paper sections on 2026-11-28.