atlas

Research map / Large language models / Language, safety and interpretability

Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 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 EHPC, a training-free prompt compression method that uses attention scores from identified "evaluator heads" in the first few layers during pre-filling to drop unimportant tokens, evaluated against LLMLingua-family methods and KV-cache compression baselines.

Problem

Long-context inputs raise LLM inference cost and latency and can hurt performance; existing prompt compression methods are either costly (LongLLMLingua's repeated LLM calls) or require training a secondary compressor (LLMLingua-2).

Approach

Identify a small set of attention heads (evaluator heads) in one layer whose attention to evidence in needle-in-a-haystack synthetic data is high, then use their pooled attention scores to score and delete tokens, running only the first few layers during pre-filling so the compressed prompt can be sent to the same or a different model.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use EHPC (EMI) instead of LongLLMLingua at a 2,000-token prompt constraintLongBench prompt compression · LongBench, 2,000-token constraintaverage score: 48.0 -> 49.6Helped
Use EHPC (EMI) instead of LLMLingua-2 at a 2,000-token prompt constraintZeroSCROLLS prompt compression · ZeroSCROLLS, 2,000-token constraintaverage score: 33.4 -> 34.6Helped
Use EHPC (EMI) instead of LongLLMLingua at a 3,000-token prompt constraintZeroSCROLLS prompt compression · ZeroSCROLLS, 3,000-token constraintaverage score: 32.8 -> 36.7Helped
Use EHPC compression instead of direct inference on the full promptLongBench prompt compression latency subset · 2,048-token compression latency subsettotal latency (seconds): 2.16 -> 1.99Helped
Use EHPC-2048 instead of GemFilter-2048LLaMA 3.1 8B Instruct · LongBench, 2,048-token KV cache budgetaverage score: 35.87 -> 37.86Helped
Use EHPC-1024 instead of SnapKV-1024Phi 3.5 Mini 3.8B Instruct · LongBench, 1,024-token KV cache budgetaverage score: 33.68 -> 39.22Helped
Use EHPC-2048 instead of SnapKV-2048Phi 3.5 Mini 3.8B Instruct · LongBench, 2,048-token KV cache budgetaverage score: 34.20 -> 36.46Helped
Select evaluator heads rather than comparison heads from the same layerLongBench MF-en · MF-enscore: 24.3 -> 27.7Helped
Identify heads with task-customized multi-hop probe data instead of QA probe dataLongBench · Multi-hopscore: 16.40 -> 16.87No clear effect
Identify heads with task-customized code probe data instead of QA probe dataLongBench · Codescore: 47.86 -> 47.72No clear effect
Use EHPC prompt compression rather than KV-cache compressionLongBench acceleration · Code and few-shot learning tasksperformanceHurt
Use EHPC prompt compression rather than KV-cache compressionLongBench acceleration · Question-answering tasksperformanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: Needle-in-a-Haystack Ruler multi-hop tracing LongBench ZeroSCROLLS

Benchmarks: LongBench ZeroSCROLLS LongBench latency subset (RepoBench-P)

Metrics: F1 Rouge-L accuracy exact match edit similarity latency (seconds)

Baselines: BM25 SBERT OpenAI embedding Selective-Context LLMLingua LLMLingua-2 LongLLMLingua H2O SnapKV GemFilter

Builds on: LLMLingua LongLLMLingua retrieval heads SnapKV GemFilter

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