atlas

Research map / Architectures and efficiency / Attention and transformers

Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning

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 HeadKV-R2, a head-level KV cache compression method that allocates per-head cache budgets using retrieval-reasoning head importance scores estimated from constructed needle-in-a-haystack examples.

Problem

KV cache memory grows with input length, and existing KV compression methods allocate budgets at the layer level or ignore head-level importance for tasks needing both retrieval and reasoning.

Approach

Estimate each attention head's retrieval-and-reasoning importance using constructed retrieval-reasoning needle examples and attention on the full correct answer, then allocate a shared budget pool across heads proportionally to these scores, with SnapKV-style selection within each head.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
allocate cache using Retrieval-Reasoning heads rather than standard Retrieval heads (ablation)HeadKV on Llama-3-8B-Instruct · LongBench Single-Doc and Multi-Doc QA, KV Size=128Avg.: 30.38 -> 32.00Helped
use retrieval-reasoning examples and Retrieval-Reasoning head distribution instead of standard Retrieval heads (ablation)HeadKV on Mistral-7B-Instruct · LongBench Single-Doc and Multi-Doc QA, KV Size=128Avg.: 31.01 -> 31.41Helped
use the modified importance-score estimation over standard Retrieval Heads estimation (ablation)HeadKV on Llama-3-8B-Instruct · LongBench Single-Doc and Multi-Doc QA, KV Size=128Avg.: 30.38 -> 31.04Helped
use the modified importance-score estimation over standard Retrieval Heads estimation (ablation)HeadKV on Mistral-7B-Instruct · LongBench Single-Doc and Multi-Doc QA, KV Size=128Avg.: 31.01 -> 31.02No clear effect
allocate cache using Retrieval-Reasoning heads rather than standard Retrieval headsHeadKV on Llama-3-8B-Instruct · Reasoning-in-a-Haystack, KV Size=128Avg. accuracy: 55.16 -> 56.84Helped
allocate cache using Retrieval-Reasoning heads rather than standard Retrieval headsHeadKV on Mistral-7B-Instruct · Reasoning-in-a-Haystack, KV Size=128Avg. accuracy: 42.94 -> 43.09Helped
use HeadKV-R2 instead of Ada-SnapKVKV cache compression on Llama-3-8B-Instruct · LongBench Single-Doc and Multi-Doc QA, KV Size=128Avg.: 28.52 -> 32.00Helped
use HeadKV-R2 instead of Ada-SnapKVKV cache compression on Mistral-7B-Instruct · LongBench Single-Doc and Multi-Doc QA, KV Size=128Avg.: 28.09 -> 31.41Helped
use HeadKV-R2 instead of Ada-SnapKVKV cache compression on Llama-3-8B-Instruct · LooGLE Long Dependency QA, KV Size=128Avg.: 6.63 -> 7.16Helped
use HeadKV-R2 instead of Ada-SnapKVKV cache compression on Mistral-7B-Instruct · LooGLE Long Dependency QA, KV Size=128Avg.: 8.38 -> 8.84Helped

Surprising findings

Limitations

Experimental setup

Datasets: LongBench LooGLE Needle-in-a-Haystack (constructed retrieval-reasoning examples, 100 per model) bAbI / BABILong reasoning-in-a-haystack

Benchmarks: LongBench LooGLE Needle-in-a-Haystack Reasoning-in-a-Haystack (BABILong)

Metrics: F1 accuracy decoding latency peak memory usage

Baselines: SnapKV PyramidKV Ada-SnapKV HeadKV-R

Builds on: retrieval heads SnapKV PyramidKV Ada-KV

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