paper-with-me

홈 › Papers

RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation

2023-10-06 · Fangyuan Xu, Weijia Shi, Eunsol Choi

Retrieving documents and prepending them in-context at inference time improves performance of language model (LMs) on a wide range of tasks. However, these documents, often spanning hundreds of words, make inference substantially more expensive. We propose compressing the retrieved documents into textual summaries prior to in-context integration. This not only reduces the computational costs but also relieves the burden of LMs to identify relevant information in long retrieved documents. We present two compressors -- an extractive compressor which selects useful sentences from retrieved documents and an abstractive compressor which generates summaries by synthesizing information from multiple documents. Both compressors are trained to improve LMs' performance on end tasks when the generated summaries are prepended to the LMs' input, while keeping the summary concise.If the retrieved documents are irrelevant to the input or offer no additional information to LM, our compressor can return an empty string, implementing selective augmentation.We evaluate our approach on language modeling task and open domain question answering task. We achieve a compression rate of as low as 6% with minimal loss in performance for both tasks, significantly outperforming the off-the-shelf summarization models. We show that our compressors trained for one LM can transfer to other LMs on the language modeling task and provide summaries largely faithful to the retrieved documents.

📄 PDF Abstract BibTeX arXiv:2310.04408

Code (2)

carriex/recomp 공식 구현 pytorch
ruc-nlpir/flashrag pytorch

Tasks

Language ModelingLanguage ModellingOpen-Domain Question AnsweringQuestion AnsweringRetrieval

Similar Papers 제목 키워드 기반

BTR: Binary Token Representations for Efficient Retrieval Augmented Language Models

2023-10-02 · Qingqing Cao, Sewon Min, Yizhong Wang, Hannaneh Hajishirzi

Retrieval augmentation addresses many critical problems in large language models such as hallucination, staleness, and privacy leaks. However, running retrieval-augmented language models (LMs) is slow and difficult to sc…

HallucinationRetrieval

InfoFlow KV: Information-Flow-Aware KV Recomputation for Long Context

2026-03-05 · Xin Teng, Canyu Zhang, Shaoyi Zheng, Danyang Zhuo 외 arxiv

Retrieval-augmented generation (RAG) for long-context question answering is bottlenecked by inference-time prefilling over large retrieved contexts. A common strategy is to precompute key-value (KV) caches for individual…

Question Answering

ProphetKV: User-Query-Driven Selective Recomputation for Efficient KV Cache Reuse in Retrieval-Augmented Generation

2026-01-31 · Shihao Wang, Jiahao Chen, Yanqi Pan, Hao Huang 외 arxiv

The prefill stage of long-context Retrieval-Augmented Generation (RAG) is severely bottlenecked by computational overhead. To mitigate this, recent methods assemble pre-calculated KV caches of retrieved RAG documents (by…

Fine-Tuning a KV Cache Concatenation-Aware Model or Recomputing KV Caches? Why Not Both?

2026-09-09 · Fumihiko Tachibana, Daisuke Miyashita, Jun Deguchi arxiv

In Retrieval-Augmented Generation (RAG) systems, a large number of retrieved chunks are concatenated to form the input context so that users can receive high-quality responses based on external knowledge. As a result, th…

Corrective Retrieval Augmented Generation

2024-01-29 · Shi-Qi Yan, Jia-Chen Gu, Yun Zhu, Zhen-Hua Ling

Large language models (LLMs) inevitably exhibit hallucinations since the accuracy of generated texts cannot be secured solely by the parametric knowledge they encapsulate. Although retrieval-augmented generation (RAG) is…

RAGRetrievalRetrieval-augmented Generation