mlsanityData to 7 Oct 2026

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

arXiv 2501.12959 ↗First posted 22 Jan 2025cs.CLcited by 10

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

Although applications involving long-context inputs are crucial for the effective utilization of large language models (LLMs), they also result in increased computational costs and reduced performance. To address this challenge, we propose an efficient, training-free prompt compression method that retains key information within compressed prompts. We identify specific attention heads in transformer-based LLMs, which we designate as evaluator heads, that are capable of selecting tokens in long inputs that are most significant for inference. Building on this discovery, we develop EHPC, an Evaluator Head-based Prompt Compression method, which enables LLMs to rapidly "skim through" input prompts by leveraging only the first few layers with evaluator heads during the pre-filling stage, subsequently passing only the important tokens to the model for inference. EHPC achieves state-of-the-art results across two mainstream benchmarks: prompt compression and long-context inference acceleration. Consequently, it effectively reduces the complexity and costs associated with commercial API calls. We further demonstrate that EHPC attains competitive results compared to key-value cache-based acceleration methods, thereby highlighting its potential to enhance the efficiency of LLMs for long-context tasks.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 54 of its 59 references that are in the map. First posted on arXiv 22 Jan 2025.

Builds on

54 of 59 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference2 Sep
  2. 2024Characterizing Prompt Compression Methods for Long Context Inference11 Jul
  3. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
  4. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
  5. 2023In-context Autoencoder for Context Compression in a Large Language Model13 Jul
  6. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models6 Oct

Other references · 48

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  2. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  3. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  5. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  6. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  7. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  8. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  9. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  10. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  11. 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 595
  12. 2017The NarrativeQA Reading Comprehension Challengecited by 590
36 more
  1. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  2. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  3. 2023Benchmarking Large Language Models for News Summarizationcited by 444
  4. 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
  5. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  6. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
  7. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  8. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  9. 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 363
  10. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  11. 2023Adapting Language Models to Compress Contextscited by 350
  12. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  13. 2021Efficient Attentions for Long Document Summarizationcited by 342
  14. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  15. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  16. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  17. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
  18. 2022Recurrent Memory Transformercited by 197
  19. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  20. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
  21. 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 124
  22. 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
  23. 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Headscited by 99
  24. 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
  25. 2023Extending Context Window of Large Language Models via Semantic Compressioncited by 45
  26. 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reductioncited by 39
  27. 2024Can We Rely on LLM Agents to Draft Long-Horizon Plans? Let's Take TravelPlanner as an Examplecited by 22
  28. 2023Wasserstein-Fisher-Rao Embedding: Logical Query Embeddings with Local Comparison and Global Transportcited by 16
  29. 2024An LLM-Tool Compiler for Fused Parallel Function Callingcited by 14
  30. 2023Rethinking Complex Queries on Knowledge Graphs with Neural Link Predictorscited by 12
  31. 2023EFOk-CQA: Towards Knowledge Graph Complex Query Answering beyond Set Operationcited by 12
  32. 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inferencecited by 12
  33. 2024Beyond Scaling Laws: Understanding Transformer Performance with Associative Memorycited by 12
  34. 2024Retrieval Meets Reasoning: Dynamic In-Context Editing for Long-Text Understandingcited by 9
  35. 2024CritiPrefill: A Segment-wise Criticality-based Approach for Prefilling Acceleration in LLMscited by 7
  36. 2024Extending Complex Logical Queries on Uncertain Knowledge Graphscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 8.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Better Prompt Compression Without Multi-Layer Perceptrons
  2. 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference
  3. 2026End-to-End Context Compression at Scale
  4. 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Models
  5. 2024Prompt Compression for Large Language Models: A Survey
  6. 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
  7. 2025Compress, Gather, and Recompute: REFORMing Long-Context Processing in Transformers
  8. 2025Lossless Token Sequence Compression via Meta-Tokens