LazyEviction: Lagged KV Eviction with Attention Pattern Observation for Efficient Long Reasoning
Haoyue Zhang, Hualei Zhang, Xiaosong Ma, Jie Zhang, Song Guo

TL;DR
LazyEviction introduces a lagged eviction method that observes attention patterns to efficiently retain critical tokens in KV caches, significantly reducing memory usage in long reasoning tasks of large language models without sacrificing accuracy.
Contribution
The paper presents LazyEviction, a novel lagged eviction framework that captures token recurrence patterns to improve KV cache management in long reasoning, outperforming existing compression methods.
Findings
Reduces KV cache by 50-70% in experiments
Maintains comparable reasoning accuracy
Outperforms existing cache compression baselines
Abstract
Large Language Models (LLMs) exhibit enhanced capabilities by Chain-of-Thought reasoning. However, the extended reasoning sequences introduce significant GPU memory overhead due to increased key-value (KV) cache. Existing KV cache compression methods mitigate memory bottlenecks but struggle in long reasoning tasks. In this paper, we analyze attention patterns in reasoning tasks and reveal a Token Importance Recurrence phenomenon: a large proportion of tokens regain high attention after multiple decoding steps, which is failed to capture by existing works and may lead to unpredictable eviction on such periodically critical tokens. To address this, we propose LazyEviction, an observation window-based lagged eviction framework retaining latent recurring tokens by prioritized eviction based on tokens' recurrence patterns. Extensive experiments demonstrate that LazyEviction reduces KV cache…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBig Data and Digital Economy · Multimodal Machine Learning Applications · Advanced Neural Network Applications
