arXiv(opens in a new tab)cs.CLSep 2026Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:2609.03430

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 prior evictor while serving 32–43% higher throughput than it in vLLM deployment. 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.

1 Introduction

Figure

(b) vLLM serving throughput, 32k

Figure 1: (a) Mean accuracy over the six reasoning tasks of Tables 1 and 5 at ~4x compression: Random Attention matches the strongest prior evictor on every model (the small gaps to TriAttention at 14B and 32B are mostly driven by code reasoning, where long prompts consume the budget, §4.2). (b) vLLM serving throughput at 32k-token generations (Table 4); labels give Random Attention's multiple of full attention and its margin over TriAttention: with no scoring pass it serves 32–43% higher throughput.

Reasoning models (DeepSeek-AI, 2025; OpenAI, 2024; Abdin et al., 2025) solve hard problems by generating chains of thought that run to tens of thousands of tokens. The key-value (KV) cache grows linearly with the length of generation, creating a severe memory bottleneck. KV cache eviction methods have been developed to address this by keeping a fixed budget of KV cache entries and discarding the rest as decoding proceeds. Existing KV cache eviction methods follow the same paradigm: score each cached token by an estimate of how much it will matter later and keep the top-scoring ones. This line of work is a sequence of better scores, from accumulated attention (Zhang et al., 2023), attention from a recent window (Li et al., 2024), and attention combined with redundancy (Cai et al., 2025), to value magnitude (Chang et al., 2026) and position-dependent key statistics (Mao et al., 2026). Each new score is motivated by heuristics observed to be correlated with task accuracy, and the premise behind all of them is that the score decides accuracy under compression.

We test that premise directly and 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 (Qwen3-4B, 14B and 32B, and Phi-4-reasoning) and six reasoning tasks spanning math, science and code, it is comparable to the strongest baseline (Figure 1a) and even significantly ahead in 31 of the 60 baseline comparisons in the main result table. Served through vLLM integration, it delivers 32–43% more tokens per second at 32k-token generations than the strongest baseline, since it never runs a scoring pass (Figure 1b). The only cell in that table where a baseline is significantly ahead is code reasoning on Qwen3-32B, traced in §4.2 to prompt length rather than the selection signal. The selection signal, in other words, contributes almost nothing beyond uniform random selection.

Two controlled experiments explain why. First, the prompt is the fragile part of the cache. Prior evictors differ in whether the prompt survives, some pinning it by rule and others leaving it to the score, so once every method is given the same rule (keep the prompt), most of the gap between them disappears, and each method gains exactly as much as its score had been losing of the question (§5.1). Second, the reasoning trace protects itself. It is stored redundantly at two levels, in the text, because the model restates what it is still using, and across attention heads, because every head holds its own copy of every token and eviction decides per head which copies die. A planted-fact probe shows the model reading a value from whichever heads still hold it: a fact kept in one head is almost never retrieved, kept in several it almost always is, and the shape of the surviving copies does not matter (§5.2). Once the prompt is safe, a random draw keeps enough copies of what the model still needs; what a signal still buys is the rare fact stated once and never restated, which reasoning traces seldom produce (§5.3).

Our findings have two practical implications. First, Random Attention is a deployable method in its own right. It needs no calibration, no tuning and no scoring pass, and it is the fastest evictor we measured at equal accuracy, so it is a reasonable default for serving reasoning models under a memory budget, and the baseline that any new selection signal has to beat at matched budget and matched prompt protection. Second, the findings redirect what eviction research should optimise. The accuracy of an evictor is decided by what it protects, not by how it ranks the rest, which moves the open questions to where protection still matters: how to budget long prompts, especially in code tasks where protecting the entire prompt consumes a substantial fraction of the cache budget, and how to recover rare once-stated facts that only a content-dependent signal can preserve (§5.3).

References (55)