arXiv Machine Learning

OVAL: Output-Aware Local Page Bases for KV Cache Compression

arXiv Computation and Language
Nov 4

Who Should Score the Cache? Mid-Depth Layers Are the Best Judges of KV-Cache Eviction

The study investigates which transformer layer should score tokens for key‑value cache eviction, finding that mid‑depth layers (roughly 40–75% of the model depth) consistently yield the best long‑context retrieval accuracy across 21 models ranging from 0.5 B to 109 B parameters. By modeling eviction as a top‑k cut and using calibration prompts, the authors identify an optimal scoring layer that outperforms the default per‑layer scoring on most models, especially those below 14 B, and improves performance on tight‑budget scenarios and financial‑filing tasks. The research also explains performance penalties in shared‑cache architectures and notes that for open‑book question answering, the mid‑depth advantage does not materialize.

By Ekaterina Seregina
arXiv AI
Aug 26

Minima-KV: Retention-Preserving KV Cache Compression with Mixed-Format Paged Attention

Minima-KV introduces a retention‑preserving hierarchy for mixed‑format paged attention that keeps recent and protected anchor pages in FP8 while older pages are compressed into packed TQ3, allowing every live‑request page to remain addressable. The approach uses format‑specific kernels and a globally normalized online‑softmax merge to compute partial attention states, enabling direct heterogeneous decoding without a dense shadow cache. Experiments on Qwen3.6‑27B on a 96‑GB NVIDIA RTX PRO 6000 Blackwell GPU show 3.50× compression over BF16 and 1.75× over FP8, with minimal impact on performance across long‑context benchmarks.

By Sergii Kozyrev (Minima AI, Inc), Davyd Maiboroda (Minima AI, Inc)
arXiv Machine Learning
Oct 5

Page-EntroKV: Hardware-Aligned, Entropy-Weighted KV-Cache Eviction under Grouped-Query Attention

Page-EntroKV is a new KV‑cache eviction framework designed for grouped‑query attention (GQA) in long‑context autoregressive language models. It pools token importance scores across query heads within each physical group using sink‑isolated Renyi‑2 entropy, then projects these pooled scores onto page frames and performs eviction at the hardware tuple level. The authors prove theoretical guarantees on union overhead, budget preservation, and needle‑retention, and demonstrate on a Qwen2.5‑1.5B‑Instruct pilot that Page‑EntroKV achieves exact union overhead control, eliminates sink masquerade, and retains 100% of critical tokens compared to mean‑pooling baselines.

By Inbasekaran S
arXiv Computation and Language
5d ago

Storing the Gemma 4 K=V Cache Once: Exact Global-KV Memory Savings in a Paged Serving Engine with Unchanged Attention Kernels

The paper demonstrates a method to reduce the global key‑value (KV) cache size in Gemma 4’s attention layers by storing a single 640‑value row instead of separate full key and value tensors. Using an unchanged paged attention kernel that views this row as both key and value, the authors achieve bit‑identical outputs to the stock implementation while cutting per‑request KV memory usage by 34–40% for 32K–64K token prompts. In a vLLM prototype, the compact engine improves decode throughput by up to 38% and matches the stock engine’s outputs for most prompts, though it incurs a modest 4–9% slowdown in eager steps. whyItMatters":"By storing a single compact KV row, the method achieves exact memory savings without altering attention kernels, enabling more efficient deployment of large language models on limited GPU resources."

By Kushagra Bainsla
arXiv Computation and Language
Aug 28

NestedKV: Nested Memory Routing for Long-Context KV Cache Compression

NestedKV is a training‑free key‑only KV cache compression technique for long‑context language models that uses global, block‑level, and sliding‑window key anchors to score tokens via multi‑time‑scale cosine anomaly. It combines these rankings with a head‑adaptive outer learner and surprise‑gated token routing, requiring no model modification or additional training. Experiments on Qwen3 and Llama‑3.2 across benchmarks such as RULER, LongBench, and MMLU‑Pro show that NestedKV outperforms existing methods when the retained cache is small, achieving up to 19‑point gains on RULER and LongBench at a 75% retention rate.

By Hong Chen, Xiang Liu, Yubo Gao, Yuxuan Fan, Bo Wang, Yuanlin Chu, Yuanguo Lin, Xuming Hu
arXiv Machine Learning
Oct 9

Read What Matters: Query-Adaptive Quantization for KV Caches

The paper introduces ReadKV, a query‑adaptive quantization method for KV caches that stores keys and values in progressive codes, allowing each decoding query to allocate different precision prefixes for keys and values. By optimizing a calibrated distortion objective under fixed budgets, ReadKV achieves near‑optimal allocation and demonstrates that query‑dependent access can outperform any query‑independent reader at the same read budget. Experiments on six base models show that reading only four bits on average from an eight‑bit cache increases perplexity by at most 0.66% while reducing logical reads and retained capacity compared to a 16‑bit cache, and it achieves lower latency than existing codecs on an NVIDIA A10G.

By Siddharth Bhandari, Lucas Gretta, Krishna Balasubramanian, Shiva Kasiviswanathan