A Simple Plug-in for Improving Eviction-Based KV Cache Compression

Yuping Lin, Jiayuan Ding, Yue Xing, Pengfei He, Jiliang Tang, Subhabrata MukherjeearXiv 2026

TL;DR

VECTOR is a plug-and-play upgrade for eviction-based KV cache compression that replaces binary "keep-or-drop" choices with a smart, three-way token routing system: retain, approximate, or evict. By exploiting the intrinsic collinearity between keys and values, VECTOR discards values for certain tokens and reconstructs them on the fly using a lightweight, offline-calibrated linear regression. This approach significantly improves the quality-memory trade-off for Large Language Models (LLMs) operating under tight memory budgets without requiring any model retraining.

What Problem Does This Paper Address?

As LLMs handle increasingly long contexts, the Key-Value (KV) cache grows linearly with sequence length, quickly becoming the primary memory bottleneck during inference. To mitigate this, standard compression techniques usually fall into two camps: eviction-based methods (which score tokens and permanently drop low-scoring ones) and representation approximation (like quantization or low-rank projection).

However, existing eviction methods rely on a binary decision: a token is either fully retained or completely discarded. Under strict memory budgets, this irreversible eviction leads to severe information loss and degrades downstream model performance. Conversely, many approximation methods require expensive online computation or architectural retraining. VECTOR bridges this gap by introducing a middle ground—approximating moderately important tokens instead of completely evicting them.

Methods

VECTOR (Value Estimation via Collinearity and Three-way Orthogonal Routing) introduces a budgeted three-way token allocation strategy based on two orthogonal axes: token importance (from a base eviction policy) and token reconstructability (from linear prediction error).

Figure 1: Overview of VECTOR’s three- way token allocation. The base impor- tance scorer first filters out unimportant tokens for eviction. For important to- kens, VECTOR evaluates OLS-based K →V reconstruction error: tokens with small error enter Approximation, while tokens with large error remain in Reten- tion. Approximation is applied to values only (V-only), with keys retained.

The core pipeline consists of three main steps:

  1. Budget Relaxation: VECTOR leverages an existing importance scorer (e.g., SnapKV, KeyDiff) to select an expanded pool of contextually relevant candidate tokens.
  2. Residual Evaluation: For each candidate token, VECTOR evaluates how accurately its value ($V$) can be predicted from its key ($K$) using an offline-calibrated Ordinary Least Squares (OLS) projection matrix ($W_{OLS}$).
  3. Asymmetric Truncation: Tokens are routed based on their scores. Low-importance tokens are evicted. Highly important but hard-to-reconstruct tokens are retained exactly. Crucially, important but easy-to-reconstruct tokens are approximated: their exact values are discarded to save memory, but their keys are kept intact. During generation, the missing values are reconstructed on demand via $\hat{V} = W_{OLS}K$.
Figure 2: Asymmetric three-way allo- cation: K is retained exactly for the ex- panded candidate pool, while V is split into Retain, Approximate, and Evict.

To handle Rotary Position Embeddings (RoPE), which entangle positional information with keys, VECTOR applies an inexpensive inverse rotation to the cached keys before value reconstruction, exposing their intrinsic collinearity.

Datasets

  • Calibration/Training: The authors used the C4 (Colossal Clean Crawled Corpus) dataset, extracting key-value activation vectors from 10,000 sequences (length 4,096) per model to fit the layer-wise OLS linear maps.
  • Evaluation: Downstream performance was evaluated using LongBench (specifically a 16-task English and coding subset) and the Needle-in-a-Haystack (NIAH) stress test for long-range retrieval robustness.

Key Insights and Ideas

  • Asymmetric Attention Sensitivity: Keys and values play fundamentally different roles in attention mechanisms. Small errors in keys are amplified nonlinearly by the softmax function, disrupting the entire attention map. Values, however, are aggregated linearly after softmax, making them much more tolerant to approximation errors. VECTOR exploits this by keeping keys exact and only approximating values ($V$-only estimation).
  • Intrinsic Low-Rank Structure: Because keys and values are linear projections of the exact same hidden state ($h$), they share a strong underlying low-rank structure. This makes a simple data-driven linear mapping ($K \rightarrow V$) surprisingly powerful, achieving high predictability ($R^2$ up to 0.93) across various model families.
  • Data-Driven OLS vs. Pseudo-Inverse: Instead of using an analytical Moore-Penrose pseudo-inverse to reconstruct the hidden state first, directly minimizing the prediction error in the value space via data-driven OLS yields vastly superior reconstruction accuracy.

Key Results

VECTOR was evaluated as an augmentation over four prominent eviction baselines: KeyDiff, SnapKV, KVzip, and PyramidKV across Llama-3.1-8B, Qwen3-14B, and Qwen3-0.6B.

  • LongBench Improvements: VECTOR consistently boosted downstream performance in high-compression regimes (e.g., 75% to 90% cache reduction). For instance, adding VECTOR to KeyDiff on Qwen3-14B improved the average score by +9.73 points at a 90% compression ratio.
  • Retrieval Robustness: In Needle-in-a-Haystack experiments under a strict 90% compression budget, VECTOR significantly smoothed out the "failure patterns." Instead of suffering from large, contiguous blind spots (low-score regions), VECTOR-augmented models maintained robust retrieval capabilities, confining errors to isolated, highly difficult cells.
Figure 3: Mean LongBench score vs. ap- proximation ratio pa under three com- pression ratios, averaged over two base- lines (KeyDiff, KVzip) and two tasks (HotpotQA, NarrativeQA) on Llama-3.1- 8B-Instruct.

Limitations and Future Work

While VECTOR provides a lightweight, training-free performance boost, the authors note a couple of limitations:

  1. Static Allocation Ratio: The approximation ratio ($p_a$) is currently determined by a fixed empirical formula rather than being dynamically optimized per-sample or per-layer.
  2. Diminishing Gains on Query-Aware Baselines: The performance lift is less pronounced when paired with query-aware eviction methods (like SnapKV or PyramidKV). Because these baselines are already highly efficient at keeping only query-relevant tokens, there is less headroom left for the approximation tier to recover lost information.

Future research directions include developing scorer-aware allocation strategies and adaptive, dynamic approximation ratios.

Summary updated

BibTeX
@misc{lin2026simple,
  author = {Yuping Lin and Jiayuan Ding and Yue Xing and Pengfei He and Jiliang Tang and Subhabrata Mukherjee},
  title = {{A Simple Plug-in for Improving Eviction-Based KV Cache Compression}},
  year = {2026},
  eprint = {2605.23258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.23258},
}
Figure