atlas

Research map / Architectures and efficiency / Attention and transformers

ThinK: Thinner Key Cache by Query-Driven Pruning

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: KV cache eviction and 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 ThinK, a query-dependent channel pruning method that removes the least important key-cache channels per head (greedy top-T by query-key interaction norm), complementary to KV eviction and KIVI quantization, cutting key cache memory by 20-40% with near-lossless LongBench accuracy.

Problem

KV cache memory grows linearly with batch size and sequence length in long-context LLM inference, and prior work reduces it along sequence length, layers, or precision but overlooks the channel (head dimension) axis.

Approach

Observe that key cache channel magnitudes are highly imbalanced and attention is low-rank, then prune key channels per head using a query-driven score ||Q[:,j] K[:,j]^T||_F (computed over an observation window), instead of magnitude-only norms, so that pruning minimizes attention-weight loss.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add query-driven pruning of 40% of key-cache channelsSnapKV · LongBench, LLaMA-3-8B-Instruct, KV-size 512average score: 40.10 -> 40.55Helped
Add query-driven pruning of 40% of key-cache channelsSnapKV · LongBench, Mistral-7B-Instruct-v0.2, KV-size 512average score: 40.46 -> 40.40Hurt
Add query-driven pruning of 40% of key-cache channelsSnapKV · Needle-in-a-Haystack, LLaMA3-8B-Instruct, KV-size 128accuracy: 79.6 -> 79.6No clear effect
Increase key-channel pruning from 40% to 50% (ablation)SnapKV · Needle-in-a-Haystack, LLaMA3-8B-Instruct, KV-size 128accuracy: 79.6 -> 77.4Hurt
Add key-cache channel pruning at 40%KIVI · LongBenchaverage score: 31.92 -> 31.77Hurt
Prune 40% of key-cache channels on the vanilla modelLLaMA-3-8B-Instruct · LongBench, full KV cacheaverage score: 41.86 -> 42.27Helped
Add key-cache channel pruning at 40%KIVI (4/4) · LLaMA-2-7B, batch size 300TPOT (ms/token): 0.27 -> 0.25Helped
Add key-cache channel pruning at 40%KIVI (4/4) · LLaMA-2-7B, batch size 300TTFT (ms): 7.0 -> 10.4Hurt
Add key-cache channel pruning at 40%KIVI (4/4) · LLaMA-2-7Bthroughput (tokens/s): 5168 -> 5518Helped
Increase recent-size from 0 to 32 (ablation)H2O + ThinK (0.4) · LongBench, Mistral-7B-Instruct-v0.2average score: 38.91 -> 40.47Helped
Increase recent-size from 32 to 128 (ablation)H2O + ThinK (0.4) · LongBench, Mistral-7B-Instruct-v0.2average score: 40.47 -> 40.51No clear effect
Also prune 30% of value-cache channels (ablation)H2O + ThinK · LongBench, LLaMA-3-8B-Instruct, KV-size 512average score: 37.23 -> 37.23No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: LongBench Needle-in-a-Haystack

Benchmarks: LongBench Needle-in-a-Haystack

Metrics: accuracy (LongBench score) needle retrieval accuracy peak memory throughput TPOT TTFT

Baselines: H2O SnapKV KIVI l1-norm channel pruning l2-norm channel pruning Palu ASVD

Builds on: SnapKV H2O KIVI

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