atlas

Research map / Large language models / Reasoning and chain of thought

KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: KV cache compression · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes KVzip, a query-agnostic KV cache eviction method that scores KV pairs by max cross-attention received while the LLM reconstructs its own context, enabling a compressed cache to be reused across diverse queries.

Problem

Long-context LLM KV caches grow with context length, causing memory and attention latency overhead; existing query-aware eviction methods overfit to the first query and degrade badly when the compressed cache is reused across multiple queries.

Approach

Score each context KV pair by the maximum attention it receives while the model is teacher-forced to repeat the context (context reconstruction), computed chunk-wise to remain linear in context length, then evict lowest-scoring pairs once per context independent of any query.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
compress the KV cache with KVzipKVzip · Diverse queries and tasksKV cache size: 3−4× reductionHelped
compress the KV cache with KVzipFlashAttention decoding · Diverse queries and taskslatency: approximately 2× reductionHelped
use KVzip rather than existing KV eviction methods in multi-query settingsKV eviction methods · Multi-query benchmarksperformance under cache compressionHelped
vary scoring chunk size (ablation)KVzip · SCBench; LLaMA3.1-8B; 0.3 KV cache ratioaverage performance difference: below 2%No clear effect
replace the original repeat prompt with a paraphrased prompt (ablation)KVzip · SQuAD; 30% KV cache ratio; Qwen2.5-7Baccuracy (%): 94.37 -> 94.45No clear effect
remove the repeat prompt (ablation)KVzip · SQuAD; 30% KV cache ratio; Qwen2.5-7Baccuracy (%): 94.37 -> 94.25No clear effect
use full context reconstruction rather than only the first 10%, last 10%, or prompt alone for scoring (ablation)KVzip · KV eviction performance across tasksperformanceHelped
omit Softmax normalization in importance scoring (ablation)KVzip · Retr.KV; SCBench; LLaMA3.1-8Bcompression ratio: approximately a 10% degradationHurt
use uniform rather than non-uniform KV head budgets (ablation)KVzip · SQuAD; LLaMA3.1-8Bcompression performanceHurt
use uniform KV head-budget allocation (ablation)KVzip · SQuAD; LLaMA3.1-8Bperformance versus baselineHelped

Surprising findings

Limitations

Experimental setup

Datasets: SQuAD GSM8K NIAH SCBench RULER

Benchmarks: SQuAD GSM8K NIAH SCBench RULER DecodingTrust

Metrics: accuracy relative performance to full cache attention latency KV cache size

Baselines: H2O SnapKV PyramidKV DuoAttention

Builds on: SnapKV PyramidKV H2O DuoAttention FlashAttention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy