Manuscript Offprint

arXiv:2610.02713

WakeKV: Reactive, Reversible KV Residency for Heads That Change Their Minds

Utkarsh Ranjan

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

Abstract

Most KV-cache compression methods classify attention heads once, either offline or during prefill, and keep this classification fixed throughout generation. Across three models (1.5B–8B) and three regimes (needle retrieval, long chain-of-thought, and multi-turn recall), we measure head behavior on four model-regime combinations and find that most heads change their reading behavior at least once during generation. We introduce WakeKV, a reactive residency policy that moves cooling heads to a recoverable CPU reservoir rather than freezing or permanently evicting their state. At matched memory or budget, WakeKV consistently improves miss rate over frozen classification and destructive eviction—evaluated across five model-regime combinations—and over three cited baselines (SnapKV, uniform R-KV, and ReasonAlloc) across four eligible combinations. A FlexiCache/vLLM implementation on Mistral-7B confirms the benefit on real hardware, improving throughput while retaining LongBench quality.

1 Introduction

KV-cache size dominates long-context LLM serving memory: caching every attended key/value pair for every head grows linearly in sequence length and quickly exceeds GPU memory at scale, so a serving system must decide which parts of the cache to keep resident, compress, or evict. The dominant response decides each head's treatment once, offline or at prefill, and holds that decision fixed for the rest of generation.

Existing approaches split along two axes: when a head's role is decided, and whether a demoted head's state can be recovered. Static head-role methods (DuoAttention [7], RazorAttention [8], MoA [9], HeadKV [10], FlexiCache [2], HeteroCache [3]) and adaptive allocators (Ada-KV [11], CAKE [12], LAVa [13], DynamicKV [14]) both fix treatment offline or at prefill; the adaptive allocators do so despite being framed as dynamic. Decode-time compressors (R-KV [6], G-KV [15], ThinKV [16], SCOPE [17]) update during generation but evict destructively; ReasonAlloc [4] reallocates per-head budgets online but still destroys KV on demotion. Offload systems (ArkVale [18], ShadowKV [19], InfiniGen [20], HeadInfer [21], FlexiCache, HeteroCache) keep demoted KV recoverable but never revisit head priority at runtime. Among the systems we survey, none is both dynamic and reversible at once (Figure 1a).

Recent measurement work on retrieval heads [1] casts doubt on this shared premise: attention-head importance is non-stationary even within a single generation, and that work names dynamic per-head KV retention as an open direction. We close that gap with WakeKV (§3), a reactive residency policy that never permanently discards a head's state, and validate it across five real model/regime combinations at matched memory and budget (§5).

Our contributions include:

  1. Measurement: We show that attention-head behavior changes during generation, across three models and three regimes, including two that competing frozen-role methods do not evaluate.

  2. Prediction study: We find that inexpensive online signals do not reliably anticipate these changes. 40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: ML for Systems 2026.

  3. WakeKV: We introduce reactive, reversible KV residency and show consistent gains over frozen classification, destructive eviction, and three cited baselines, at matched memory or budget.

  4. System evaluation: On A30/Mistral-7B via a FlexiCache/vLLM shim, WakeKV reactive beats stock throughput at every rerank interval (1.34–2.33×) while holding 95–99% of LongBench quality, confirming the simulator-level direction on real hardware.

References (22)