Skip to main content
QUICK REVIEW

[Paper Review] RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation

Fang-Yuan Xu, Weijia Shi|ArXiv.org|Oct 6, 2023
Topic ModelingComputer Science10 citations
TL;DR

RECOMP compresses retrieved documents into concise textual summaries (or empty when irrelevant) to prepend to LMs, reducing cost and maintaining performance for language modeling and open-domain QA. It includes extractive and abstractive compressors trained with task signals, enabling selective augmentation.

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.

Motivation & Objective

  • Motivate efficiency challenges in retrieval-augmented LMs when prepending long retrieved documents.
  • Propose two compressors (extractive and abstractive) to produce concise, faithful summaries tailored to the input.
  • Develop training schemes that optimize end-task performance using a black-box LM.
  • Enable selective augmentation by allowing empty summaries when retrieval adds no value.
  • Demonstrate transferability of compressors across LMs and analyze faithfulness and reliance on evidence.

Proposed method

  • Introduce RECOMP architecture with a compressor c_theta and a black-box LM M.
  • Develop an extractive compressor: a dual-encoder that selects top sentences based on inner product with the input, forming a concise summary.
  • Develop an abstractive compressor: an encoder-decoder distilled from an extreme-scale LM to produce query-focused summaries.
  • Train extractive compressor with a contrastive loss to maximize LM performance when prepending selected sentences.
  • Train abstractive compressor via distillation from an extreme-scale teacher, with selective augmentation guided by end-task performance.
  • In QA, use top-5 sentence summaries or select per-task to balance efficiency and efficacy.
Figure 1: An illustration of RECOMP , which compresses retrieved documents into a texual summary before prepending it as input to a language model at inference time. The compressed summary guides the LM to generate the correct answer, while significantly reducing the computation costs required to en
Figure 1: An illustration of RECOMP , which compresses retrieved documents into a texual summary before prepending it as input to a language model at inference time. The compressed summary guides the LM to generate the correct answer, while significantly reducing the computation costs required to en

Experimental results

Research questions

  • RQ1Can retrieved documents be effectively compressed into concise summaries that preserve or improve end-task performance when prepended to LMs?
  • RQ2Do extractive and abstractive compression strategies offer differing efficiency/effectiveness trade-offs across language modeling and open-domain QA?
  • RQ3Can compressors trained on one LM transfer to other LMs without retraining?
  • RQ4Does selective augmentation (including empty summaries) mitigate performance drops from irrelevant retrieved information?
  • RQ5How faithful and comprehensive are abstractive summaries across tasks like NQ, TriviaQA, and HotpotQA?

Key findings

  • Both extractive and abstractive compressors improve over full-document prepending, with compression as low as 6% of tokens in oracle setups and minimal performance loss.
  • Extractive compressor (trained with contrastive loss) significantly outperforms BM25/Contriever baselines, achieving 25% compression with modest loss.
  • Abstractive compressor (distilled from an extreme-scale LM) delivers the best compression and generally strong performance, using selective augmentation to prepend summaries to about one third of examples.
  • Open-domain QA results show improvements over no retrieval and benefit from selective augmentation, with extractive methods often outperforming abstractive in multihop HotpotQA.
  • Compressor transfer is observed across LMs (e.g., GPT2 to GPT2-XL/GPT-J; to some extent to LLaMA-13B), indicating cross-model applicability.
  • Manual faithfulness/comprehensiveness analyses show GPT-3.5 summaries are generally more faithful, while our abstractive compressor can be less faithful but more comprehensive depending on dataset.
Figure 4: Histogram of abstractive summary length (# tokens) distribution.
Figure 4: Histogram of abstractive summary length (# tokens) distribution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.