ForesightKV: Optimizing KV Cache Eviction for Reasoning Models by Learning Long-Term Contribution
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Recently, large language models (LLMs) have shown remarkable reasoning abilities by producing long reasoning traces. However, as the sequence length grows, the key-value (KV) cache expands linearly, incurring significant memory and computation costs. Existing KV cache eviction methods mitigate this issue by discarding less important KV pairs, but often fail to capture complex KV dependencies, resulting in performance degradation. To better balance efficiency and performance, we introduce ForesightKV, a training-based KV cache eviction framework that learns to predict which KV pairs to evict during long-text generations. We first design the Golden Eviction algorithm, which identifies the optimal eviction KV pairs at each step using future attention scores. These traces and the scores at each step are then distilled via supervised training with a Pairwise Ranking Loss. Furthermore, we formulate cache eviction as a Markov Decision Process and apply the GRPO algorithm to mitigate the significant language modeling loss increase on low-entropy tokens. Experiments on AIME2024 and AIME2025 benchmarks of three reasoning models demonstrate that ForesightKV consistently outperforms prior methods under only half the cache budget, while benefiting synergistically from both supervised and reinforcement learning approaches. Code is available at https://github.com/RUCAIBox/ForesightKV.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 0 of its 38 references that are in the map. First posted on arXiv 3 Feb 2026.
Builds on
0 of 38 references.
No references here yet.
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 4
- 2026Protection Is (Nearly) All You Need: Structural Protection Dominates Scoring in Globally Capped KV Evictioncited by 2
- 2026Epiphany-Aware KV Cache Eviction Without the Attention Matrixcited by 1
- 2026Random Attention: Rethinking KV Cache Eviction for Efficient Reasoningcited by 1
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routingcited by 1
- 2026DistillCache: KL-Guided Adaptive KV-Cache Eviction for Memory-Efficient LLM Inferencecited by 0
- 2026DRSR: Learning Set-Level Deletion Risk for Efficient Long-Horizon Agentscited by 0
- 2026DRSR: Learning Set-Level Deletion Risk for Efficient Long-Horizon Agents23 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026Random Attention: Rethinking KV Cache Eviction for Efficient Reasoning3 Sep 2026
- 2026DistillCache: KL-Guided Adaptive KV-Cache Eviction for Memory-Efficient LLM Inference9 Aug 2026
- 2026Epiphany-Aware KV Cache Eviction Without the Attention Matrix25 Jun 2026
- 2026Protection Is (Nearly) All You Need: Structural Protection Dominates Scoring in Globally Capped KV Eviction18 May 2026
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compression7 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026Value-Aware Stochastic KV Cache Eviction for Reasoning Models
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Models
- 2025G-KV: Decoding-Time KV Cache Eviction with Global Attention
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
- 2025LazyEviction: Lagged KV Eviction with Attention Pattern Observation for Efficient Long Reasoning
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time
- 2026Coverage-Driven KV Cache Eviction for Efficient and Improved Inference of LLM
- 2026KV-Rescue: Recovering Reasoning Language Model KV Eviction Loss via Stepwise Interleaving