Protection Is (Nearly) All You Need: Structural Protection Dominates Scoring in Globally Capped KV Eviction
Organizations: Independent Researcher
Abstract
We study KV cache eviction under a shared globally capped decode-time harness. Seven policies (LRU, H2O, SnapKV, StreamingLLM, Ada-KV, QUEST, Random) share a prompt-boundary vulnerability: without structural protection, they collapse to near-zero quality on six pure-transformer models (F10.064). Reserving 10% of cache at each boundary recovers 69--90% of the reference-ceiling quality on seven LongBench models at (13% retention); a ten-model panel spans 68--98%. An attention-mass pilot (Qwen2.5-3B, ) suggests why: the position-0 sink holds of prefix mass, while other boundary tokens sit near uniform expectation, so attention scorers retain the sink but still drop structurally critical tokens. With protection, simplified score-isolation variants are TOST-equivalent to LRU at (); at , attention policies pairwise converge yet beat LRU by 0.011--0.021 F1 across and . Faithful Ada-KV/QUEST add -- F1 on Mistral-7B and Phi-3.5 beyond simplified variants. A NIAH-32K regime-transfer pilot on Qwen3-4B (decode vs.\ prefill, ) shows near-identical protection lifts (ratio 0.99--1.00). At 64K, protection helps but recovery is modest; faithful per-head scoring matches full-cache ceiling on Gemma-3-4B at 6.3% retention only when the model already supports strong 64K retrieval without eviction. Overall: protection dominates; scoring differences are secondary once boundaries are guarded; per-head allocation gives a further modest gain.