Random Attention: Rethinking KV Cache Eviction for Efficient Reasoning
Heng Wang, Jielin Qiu, Wenting Zhao, Cheng Qian, Liangwei Yang, Weizhi Zhang, Jiawei Han, Heng Ji, Silvio Savarese, Shelby Heinecke, Huan Wang
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.
Create a lesson
Related papers
ECOKV: Geometry-Aware KV Cache Eviction via Complementary Diversity Metrics
Shared title terminologycs.CLChin Ting Hsu, Yu-Syuan Xu, Ling Zou et al.
Cache-Aware Joint Router Adaptation for Memory-Efficient MoE Inference
Shared title terminologycs.CLZhenhe Wu, Yaping Jin, Qinghua Xing et al.
Lightweight Reasoning Transfer via Chain-of-Thought Vector Projection
Shared title terminologycs.CLYulin Qi, Shuo Xu, Shuxia Lin et al.
DiCALM: Converting Autoregressive Convolution-Attention Language Models into Discrete Diffusion Language Models
Shared title terminologycs.CLPhong Le, Ngoc-Quan Pham, Dat Quoc Nguyen
Rethinking Sequential Locate-Then-Edit: Optimality and Stability
Shared title terminologycs.CLBingqing Liu, Wei Liu, Zhiying Deng et al.
Rethinking Knowledge Distillation for Diffusion Language Models
Shared title terminologycs.CLYuxuan Sun, Yuanjian Xu, Jianing Hao et al.