arXiv(opens in a new tab)cs.LGAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.25230

Trust the Mass: Forced Weights in KV-Cache Eviction

Jack Shi, Jerry Gu

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

Abstract

Every deployed sparse-attention or KV-cache-eviction rule keeps a subset of the keys, discards the rest, and renormalizes the attention weights over the kept set. Enumerating the exact best subset under that constraint on 168,192 attention rows from five models shows that keeping the largest weights is already near-optimal, since the best subset closes only a median 2 to 5% of the remaining gap to full attention. If selection closes this little, published margins between eviction methods must come from elsewhere, so we measure the bytes each method holds. In the shared evaluation pipeline, the strongest query-agnostic methods hold the full cache because their per-head selections are stored as masks, and only ragged per-head storage frees that memory. Enforcing a nominal budget on one fixed selection costs 14 to 62 benchmark points. We trace an 87.6-point retrieval margin to rankings computed while the question is visible. 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.

1 Introduction

The KV cache stores a key and a value vector for every past token at every attention head and dominates serving memory at long context, so deployed systems shrink it by evicting entries. Every deployed eviction or sparse-attention rule keeps a subset of the keys and renormalizes the softmax weights over it, then returns the renormalized average in place of the dense attention output, so the methods differ only in how the subset is chosen ([22, 41, 20, 5]). Classical subset approximation re-solves the weights on the points that it keeps and selects by geometry ([6, 18, 9, 21]). Eviction forces the weights. We quantify the maximum gain any kept set can achieve once the weights are forced, and we identify what published comparisons between eviction methods actually measure.

We enumerated the exact best subset under forced weights on 168,192 attention rows from five models, which revealed that keeping the largest weights is already near-optimal. The best subset improves on it by a median 2 to 5% of the gap to the dense output, and a cheap swap rule recovers that median in full. The weight that selection drops predicts the exceptions (§2). If selection closes this little, the margins published between eviction methods must come from elsewhere. Thus, we run them on the field's own evaluation pipeline and read the bytes that each one holds. The margins decompose into memory, query information and compute. The strongest methods that compress without seeing the question select per attention head, and the pipeline stores that selection as a mask over a non-shrinking cache, so their published quality is selection quality at full memory (§4). Therefore, we find that enforcing a nominal budget on one fixed selection costs 14.1 to 62.2 benchmark points (§4), and an 87.6-point retrieval margin traces to rankings computed while the question is visible (§4).

We deploy ContourKV, our allocation rule. It wins 93 of 160 comparisons against KVzip ([20]), the leading method in that class, while losing 22, with its budget enforced against KVzip's full cache (memory ratios in App. D). At matched memory it ties Compactor ([5]), the strongest baseline

Preprint.

that enforces its own budget. This tie confirms the measurement at deployment scale ( §2.2§2.2), since two rules near the subset optimum cannot separate when selection closes only a few percent of the remaining gap. ContourKV is training-free and borrows the compared methods' own importance scores, and its budget is enforced physically before any result is read.

Our contribution is the measurement and the accounting (positioning in §3), and it does not depend on ContourKV winning. Our object is the gap to the dense output—the only quantity a compressor can optimize before the query. We note that optimizing the gap is ideal only when one cache is reused. This is the multi-turn case, where a single compressed cache serves every later query while decode keeps appending to it. Storage that lets each head hold a different number of entries is being built for that cache ([19]). Downstream loss is separate (App. E).

References (37)