TL;DR
This paper provides a systematic, standardized benchmark of text-based prompt compression methods across varying compression ratios, models, and tasks. The authors show that simple extractive reranking is surprisingly hard to beat—often achieving over $10\times$ compression with virtually no accuracy loss (and sometimes even performance gains). Meanwhile, token pruning suffers from grammatical degradation on QA tasks, and abstractive summarization requires query-awareness to avoid severe information loss.
What Problem Does This Paper Address?
Retrieval-Augmented Generation (RAG) and long-context LLMs routinely ingest tens of thousands of prompt tokens. This incurs steep system-level costs (quadratic self-attention complexity, large KV caches, and latency) and triggers algorithmic failure modes like "lost-in-the-middle" attention degradation.
While numerous prompt compression strategies have emerged—from pruning individual tokens to abstractive summarization—prior literature evaluated them in fragmented setups: wildly different compression ratios, disparate context lengths, and differing evaluation tasks. Practitioners lacked a unified understanding of which compression paradigm works best under specific operational constraints.
Methods
The authors focus on direct, training-free text manipulation (which remains compatible with closed-source black-box LLMs) and categorize methods across two axes:
- Compression Paradigm:
- Extractive Compression: Operates on coarse segments (chunks of $\approx 128$ tokens). A cross-encoder reranker (
mxbai-rerank-large-v1) scores chunks against the query and retains only top-ranked chunks. - Token Pruning: Removes fine-grained, low-information tokens. Evaluated via
LongLLMLingua(perplexity-based pruning with GPT-2), a hybrid reranker +LongLLMLingua, and an attention-based token pruner built into the reranker’s DeBERTa layers (pruning $20\%$ of tokens with the lowest query attention). - Abstractive Compression: Uses a secondary LLM (Mistral 7B Instruct or LLaMA-3 8B) to synthesize and condense context.
- Context Dependency:
- Query-Agnostic: Context is compressed offline once, independent of user prompts (e.g., offline chunk summarization).
- Query-Aware: Compression is conditioned on the downstream question at inference time.
The primary backbone evaluated is Mixtral 8x7B Instruct, cross-validated with GPT-3.5-Turbo and DBRX Instruct.
Datasets
The study evaluates on nine English datasets from the LongBench benchmark, spanning three key task archetypes:
- Single-Document QA: NarrativeQA, Qasper, MultiFieldQA.
- Multi-Document / Multi-Hop QA: HotpotQA, 2WikiMultihopQA, MuSiQue.
- Summarization: GovReport, QMSum, MultiNews.
Note: No new datasets are introduced; the paper leverages LongBench's standard evaluation metrics (F1 score for QA and ROUGE-L for summarization).
Key Insights and Ideas
- Extractive reranking often improves accuracy: At mild-to-moderate compression ($1.5\times$ to $4\times$), reranking often beats the uncompressed baseline (e.g., $+1.14$ F1 on 2WikiMultihopQA at $3.91\times$ compression). Filtering out distractor chunks shields the generator LLM from hallucinations and the "lost-in-the-middle" effect.
- Unstructured token pruning breaks syntactic reasoning: Token pruning methods (like
LongLLMLingua) consistently underperformed. Discarding individual tokens disrupts sentence structure and grammar, confusing downstream decoders on question answering. However, token pruning remained competitive on broad aggregation tasks (e.g., QMSum), where preserving fragments from across the entire document outweighs local syntactic fluency. - Query conditioning rescues abstractive compression: Standard query-agnostic summarization degrades downstream QA because smaller summarizers omit critical nuances. However, making abstractive summarization query-aware yields massive improvements—outperforming the original full prompt by $8.24$ points at $31.32\times$ compression on 2WikiMultihopQA.
- Chunk granularity creates an architectural trade-off: At high compression ratios ($>10\times$), smaller chunk sizes ($64$–$128$ tokens) drastically outperform large chunks ($512$ tokens). Large chunks force the selector to discard entire swathes of the document, missing widely distributed evidentiary clues.
Key Results
- Extractive (Reranker):
- On 2WikiMultihopQA, accuracy increased by $+1.14$ F1 at $3.91\times$ compression, and only dropped by $1.31$ F1 at an aggressive $15.24\times$ compression.
- On Qasper, it improved performance by $+0.31$ F1 at $1.46\times$.
- Query-Aware Abstractive Compression (Mistral 7B summarizer on Mixtral 8x7B):
- Reached $34.75$ F1 on 2WikiMultihopQA at $31.32\times$ compression, compared to the original uncompressed score of $26.51$ F1 ($+8.24$ point gain) and query-agnostic compression's $24.48$ F1.
- Aggressive Token Pruning Failures: Pruning $50\%$ of tokens within retrieved chunks degraded accuracy noticeably compared to $20\%$ pruning across NarrativeQA, MuSiQue, and GovReport.
- Reranker vs. Dense Embedding Retrieval: Rerankers consistently beat dense vector embedding similarity search (
text-embedding-3-small) across tested tasks, albeit requiring more runtime inference FLOPs.
Limitations and Future Work
- Unpredictable Abstractive Output Length: Prompting off-the-shelf LLMs for query-aware summarization makes target compression ratios difficult to control or predict dynamically without strict constrained decoding.
- Inference Latency Overhead: While query-aware abstractive summarization delivers peak multi-hop accuracy, it introduces two sequential LLM inference passes (summarizer followed by the main LLM), which may be prohibitive for ultra-low-latency production systems.
- Lack of Task-Specific Pruning Models: The authors evaluated standard off-the-shelf small language models (e.g., GPT-2) for token pruning. They note that models trained explicitly for token-pruning or masking could bridge the accuracy gap on syntactic coherence.
Summary updated