Skip to content
Preprint

TwinKV: A Composable Repair Pass for KV Cache Eviction via Pairwise Key Redundancy

Aug 2026 · 0 citations · 22 references
Computer Science

TL;DR

TwinKV, a training-free method that discounts value energy by nonlocal post-RoPE key frequency, is introduced, showing that modest frequency corrections can change retention and answering outcomes, with effects that depend on the model and task.

Abstract

Compressing a key-value cache before its next question is known requires choosing what to retain without knowing which evidence will matter. Value energy measures entry strength but does not distinguish isolated keys from those with many similar neighbors. We introduce TwinKV, a training-free method that discounts value energy by nonlocal post-RoPE key frequency. Prefix attention allocates head capacities, while retained entries preserve their original keys and values under an exact storage budget. Across four language models, TwinKV exceeds five evaluated compressed baselines in mean score on LongBench, LooGLE, and RULER at 50\% KV removal. Component controls isolate the frequency contribution. On Llama-3.2-1B RULER at 75\% removal, normalized frequency weights average 0.95, yet change 7\% of nonprotected retained positions and improve value-only retention by about 5.5 points under both uniform and adapted capacities. Permuting the weights within heads weakens this gain. These results show that modest frequency corrections can change retention and answering outcomes, with effects that depend on the model and task.

View source

Similar papers

Preprint Aug 2026

Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inference

KVGov, a governance layer addressing all three attack families' prefix-cache paths under one mechanism, is presented, giving an evolutionary stability analysis giving a 31.6% adversary-prevalence tipping point below which global caching remains stable.

Tejasvi C. Addagada · 2 citations · ⚡1
#machine learning Preprint Sep 2026

Grouped Value Attention: Efficient KV Caching via On-Demand Key Reconstruction

This work introduces Grouped Value Attention (GVA), which stores grouped values and reconstructs content keys with a learned linear map at inference, which can be absorbed into the query, eliminating the need to materialize content keys in the intended decode path.

Vishesh Tripathi, Abhay Kumar, Ramsha Khan · 0 citations
#machine learning Preprint Aug 2026

Trust the Mass: Forced Weights in KV-Cache Eviction

ContourKV, a training-free allocator built from the dropped-mass statistic, wins $93$ of $160$ paired comparisons against that state of the art and loses $22$ at the byte count of the budget-enforcing baselines, and it ties the strongest of them.

J. Shi, Jerry Gu · 1 citation
#machine learning Preprint Sep 2026

Shared Global KV with Layer-Specific Local History

This work derives a sufficient suffix schedule that reduces upper-layer construction work while preserving the complete cache in exact arithmetic, and derives a sufficient suffix schedule that reduces upper-layer construction work while preserving the complete cache in exact arithmetic.

Xing-Lang Xian · 0 citations
Preprint Aug 2026

vToken: Token-Level Virtualization for Reclaimable KV Caches

Large language model serving faces a critical memory bottleneck: the KV cache grows with sequence length and batch size. PagedAttention uses fixed-size memory blocks to reduce allocator-level fragmentation, but recent KV eviction algorithms operate at a token granularity finer than block-level management. This mismatch...

Yuanhang Gao, Xiangrui Yang, Yuan-Feng Chen et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.