EchoPress: Query-Agnostic KV Cache Pruning via Virtual Context Reconstruction
Abstract
KV cache pruning reduces long-context inference memory usage by evicting less important key-value pairs. KVzip estimates importance through context reconstruction: prompting a model to repeat the context chunk by chunk. This achieves strong compression quality at the cost of additional forward passes. Learned approximations reduce this cost but require model-specific training. We analyze how KVzip identifies important cached information and show how to approximate its reconstruction scores using information already computed during prefill. These findings motivate EchoPress, a training-free method that approximates reconstruction attention using queries and keys from standard prefill. For each request, it reconstructs only the first chunk to calibrate importance scores for the remaining context. Experiments on LongBench and RULER with Qwen3-8B and Llama-3.1-8B-Instruct show that EchoPress matches KVzip in task accuracy across eviction ratios from 50% to 90%, while reducing compression overhead by a factor of 1.7-19.6 and total prefill time by a factor of up to 2.9. Code is available at https://github.com/ljwljwljwljw/kvpress/tree/echo-press.
Create a lesson
Related papers
QK-Wanda: Coupling Queries and Keys for Unstructured Pruning
Shared title terminologycs.LGIvan Ilin, Peter Richtárik
IQS-BO: In-Context Query Selection for Bayesian Optimisation
Shared title terminologycs.LGLuca Geminiani, Nadja Klein
Local Affine Quantization for KV Caches: From Shared Ranges to Prediction Error
Shared title terminologycs.LGShrey Shah, Rohith Kukkala
LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models
Shared title terminologycs.LGHaiyu Wang, Sai Qian Zhang, Steven Li
MLP Cache: A Post-Hoc Memory-Compute Trade-off for Transformer Inference
Shared title terminologycs.LGHuzheng Yang, Yiqiao Huang, Qingqiao Hu et al.
Electrode-level artifact simulation and corruption-aware gated reconstruction of the 12-lead ECG, with real-noise and paper-ECG external validation
Shared title terminologycs.LGSanjoy Das Joy, Arfatul Islam Asif, Unayes Ahmed Khan et al.