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

Taeho Hwang, Sukmin Cho, Soyeong Jeong, Hoyun Song, SeungYoon Han +1 more
12/17/2024
cs.CLcs.AIcs.IR

Official code: ThisIsHwang/EXIT (26 stars, last commit 2024-12-23).

Abstract

We introduce EXIT, an extractive context compression framework that enhances both the effectiveness and efficiency of retrieval-augmented generation (RAG) in question answering (QA). Current RAG systems often struggle when retrieval models fail to rank the most relevant documents, leading to the inclusion of more context at the expense of latency and accuracy. While abstractive compression methods can drastically reduce token counts, their token-by-token generation process significantly increases end-to-end latency. Conversely, existing extractive methods reduce latency but rely on independent, non-adaptive sentence selection, failing to fully utilize contextual information. EXIT addresses these limitations by classifying sentences from retrieved documents - while preserving their contextual dependencies - enabling parallelizable, context-aware extraction that adapts to query complexity and retrieval quality. Our evaluations on both single-hop and multi-hop QA tasks show that EXIT consistently surpasses existing compression methods and even uncompressed baselines in QA accuracy, while also delivering substantial reductions in inference time and token count. By improving both effectiveness and efficiency, EXIT provides a promising direction for developing scalable, high-quality QA solutions in RAG pipelines. Our code is available at https://github.com/ThisIsHwang/EXIT

View on arXivView PDF

Code Implementations(1)

ThisIsHwang/EXITOfficial100%

Official code and resources for the paper "EXIT: Context-Aware Extractive Compression for Enhancing Retrieval-Augmented Generation."

263PythonDec 17, 20241 years ago

Cite this paper

@article{hwang2024exit,
  title  = {EXIT: Context-Aware Extractive Compression for Enhancing Retrieval-Augmented Generation},
  author = {Taeho Hwang and Sukmin Cho and Soyeong Jeong and Hoyun Song and SeungYoon Han and Jong C. Park},
  year   = {2024},
  eprint = {2412.12559},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.12559v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.12559.svg)](https://codeofpaper.com/paper/2412.12559)

Discussion