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

Fangyuan Xu, Weijia Shi, Eunsol Choi
2/12/2026

No official code found. Best implementation: carriex/recomp (149 stars, MIT, last commit 2026-01-06).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

carriex/recompCommunity100%
MIT

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

1498PythonOct 4, 20239 months agoMIT

Similar Papers

Cite this paper

@article{xu2026recomp,
  title  = {RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation},
  author = {Fangyuan Xu and Weijia Shi and Eunsol Choi},
  year   = {2026},
  eprint = {2310.04408},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.04408},
  journal = {ICLR 2023 2023}
}

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/2310.04408.svg)](https://codeofpaper.com/paper/2310.04408)

Discussion