paper-with-me

홈 › Papers

Learning to Evict from Key-Value Cache

2026-02-10 · Luca Moschella, Laura Manduchi, Ozan Sener arxiv

The growing size of Large Language Models (LLMs) makes efficient inference challenging, primarily due to the memory demands of the autoregressive Key-Value (KV) cache. Existing eviction or compression methods reduce cost but rely on heuristics, such as recency or past attention scores, which serve only as indirect proxies for a token's future utility and introduce computational overhead. We reframe KV cache eviction as a reinforcement learning (RL) problem: learning to rank tokens by their predicted usefulness for future decoding. To this end, we introduce KV Policy (KVP), a framework of lightweight per-head RL agents trained on pre-computed generation traces using only key and value vectors. Each agent learns a specialized eviction policy guided by a holistic reward, derived from future utility, that evaluates the quality of the ranking across all cache budgets, requiring no modifications to the underlying LLM or additional inference. Evaluated across two model families on the long-context benchmark RULER (up to 128K tokens) and the multi-turn dialogue benchmark OASST2-4k, KVP significantly outperforms strong baselines. Zero-shot tests on standard downstream tasks (BoolQ, LongBench passage retrieval, GovReport) further show that KVP generalizes beyond its training distribution and to considerably longer sequence lengths. These results demonstrate that learning to predict future token utility is a powerful and scalable paradigm for adaptive KV cache management.

📄 PDF Abstract BibTeX arXiv:2602.10238

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningPassage Retrieval

Similar Papers 제목 키워드 기반

Value-Aware Stochastic KV Cache Eviction for Reasoning Models

2026-06-02 · Ting-Yun Chang, Harvey Yiyun Fu, Deqing Fu, Chenghao Yang 외 arxiv

Reasoning models improve accuracy through extended chains of thought, but their long outputs create a memory and compute bottleneck. KV cache eviction methods reduce this cost by evicting unimportant key-value pairs from…

HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing

2024-12-13 · Minghui Liu, Tahseen Rabbani, Tony O'Halloran, Ananth Sankaralingam 외

Transformer-based large language models (LLMs) use the key-value (KV) cache to significantly accelerate inference by storing the key and value embeddings of past tokens. However, this cache consumes significant GPU memor…

GPUMultiple-choice

MomentKV: Closing the Directional Gap in KV Cache Eviction for Long-Context Inference

2026-06-01 · Yu Li, Binxu Li, Tian Lan arxiv

Autoregressive decoding in Transformer-based language models relies on the KV cache, whose memory footprint grows linearly with sequence length and becomes the primary bottleneck for long-context inference. KV cache evic…

Reformulating KV Cache Eviction Problem for Long-Context LLM Inference

2026-05-08 · Tho Mai, Joo-Young Kim arxiv

Large language models (LLMs) support long-context inference but suffer from substantial memory and runtime overhead due to Key-Value (KV) Cache growth. Existing KV Cache eviction methods primarily rely on local attention…

Judge Q: Trainable Queries for Optimized Information Retention in KV Cache Eviction

2025-09-13 · Yijun Liu, Yixuan Wang, Yuzhuang Xu, Shiyu Ji 외 arxiv

Large language models (LLMs) utilize key-value (KV) cache to store historical information during sequence processing. The size of KV cache grows linearly as the length of the sequence extends, which seriously affects mem…