EXIT: Context-Aware Extractive Compression for Enhancing Retrieval-Augmented Generation

Taeho Hwang, Sukmin Cho, Soyeong Jeong, Hoyun Song, SeungYoon Han, Jong C. Park

Introduction

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external knowledge. However, RAG systems face a persistent tension: retrieving more documents increases the likelihood of including the correct answer but also introduces significant noise and computational overhead. This paper introduces EXIT (EXtractIve ContexT compression), a framework designed to optimize RAG by making it both faster and more accurate through lightweight, context-aware sentence pruning.

The Challenge: Efficiency vs. Effectiveness

Standard RAG systems often suffer from two primary issues:

  1. Effectiveness: LLMs frequently exhibit the "lost in the middle" phenomenon, where critical information is overlooked when buried in long contexts. Irrelevant retrieved documents act as "distractors," leading to hallucinations or incorrect answers.
  2. Efficiency: Processing extensive contexts is computationally expensive due to the quadratic complexity of transformer attention mechanisms.

While abstractive compression (summarization) can reduce token counts, it is often slow because it requires token-by-token generation. Conversely, existing extractive methods are faster but frequently rely on context-agnostic rules that fail to capture the nuances of complex queries.

The EXIT Framework

EXIT operates as a "plug-and-play" module that prunes irrelevant information before it reaches the reader LLM. The process consists of three parallelizable stages:

  1. Sentence-Level Decomposition: Retrieved documents are split into individual sentences. This preserves semantic integrity and prevents the fragmentation of key entities that often occurs with token-level truncation.
  2. Context-Aware Relevance Classification: EXIT utilizes a lightweight model (e.g., Gemma-2B-it) to perform binary classification on each sentence. Unlike previous methods, the classifier evaluates each sentence while considering the entire document context, ensuring that relevance is judged accurately relative to the query.
  3. Document Reassembly: Sentences exceeding a relevance threshold ($\tau$) are concatenated in their original order, maintaining logical flow for the reader LLM.
The three-stage workflow of the EXIT framework: Decomposition, Classification, and Reassembly.

Experimental Evaluation

The authors evaluated EXIT across diverse benchmarks, including single-hop QA (NaturalQuestions, TriviaQA), multi-hop QA (HotpotQA, 2WikiMultiHopQA), and specialized domains (BioASQ, COVID-QA). The classifier was primarily trained on HotpotQA evidence annotations to learn fine-grained relevance.

Key Results and Insights

EXIT demonstrates that pruning is a feature, not just a shortcut. By removing noise, EXIT often outperforms uncompressed baselines in accuracy, helping the reader LLM focus on pertinent evidence.

  • Accuracy and Speed: Using a Llama-3.1-70B reader, EXIT improved Exact Match (EM) scores by an average of 3.7 points over uncompressed documents while reducing end-to-end latency from 8.4 seconds to 3.5 seconds (a ~2.4x speedup).
  • Comparison to Baselines: Compared to abstractive methods like CompAct, EXIT provides significantly lower latency while maintaining or exceeding performance.
  • Robustness: As the number of retrieved documents ($k$) increases, EXIT’s performance remains stable or improves, whereas other methods often degrade due to increased retrieval noise.
Performance (EM) vs. Total Latency for EXIT compared to various extractive and abstractive baselines.

Conclusion

EXIT offers a robust solution for the RAG efficiency-effectiveness trade-off. By employing a context-aware extractive approach, it successfully filters distractors and reduces latency without the overhead of generative summarization. Its ability to generalize across domains and scale with retrieval depth makes it a highly practical enhancement for real-world RAG pipelines.

Summary updated

BibTeX
@inproceedings{hwang2025exit,
  author = {Taeho Hwang and Sukmin Cho and Soyeong Jeong and Hoyun Song and SeungYoon Han and Jong C. Park},
  title = {{EXIT: Context-Aware Extractive Compression for Enhancing Retrieval-Augmented Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure