Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In

Zichun Yu, Chenyan Xiong, Shi Yu, Zhiyuan Liu

Abstract

Retrieval-augmented generation (RAG) typically requires joint fine-tuning of the retriever and the language model (LM), which is computationally expensive and inapplicable to black-box APIs. We introduce the Augmentation-Adapted Retriever (AAR), a generic plug-in trained to match the document preferences of a small source LM. Our experiments demonstrate that AAR significantly enhances the zero-shot performance of various unseen target LMs, including the 175B parameter InstructGPT, across knowledge-intensive tasks like MMLU and PopQA, while remaining highly efficient compared to end-to-end trained systems.

Introduction

Retrieval-augmented generation (RAG) is a powerful paradigm that provides language models (LMs) with access to external, up-to-date information. Traditionally, however, the retriever and the LM are "jointly fine-tuned," meaning they are trained together to work as a single unit. This creates two major hurdles: the high computational cost of fine-tuning massive models and the inability to adapt black-box models (like GPT-4 or InstructGPT) that are only accessible via APIs.

This paper addresses these challenges by proposing a generic retrieval plug-in: a retriever that can be trained once and then "plugged in" to assist various LMs it has never seen before, effectively bridging the gap between static retrievers and specialized, coupled systems.

Methodology

The core innovation is the Augmentation-Adapted Retriever (AAR). Unlike traditional retrievers trained solely on human-annotated "ground truth" documents, AAR learns the specific document preferences of an LM to answer questions correctly.

The AAR training and deployment workflow illustrates the three-step process: identifying preferences in a source LM, training the retriever, and deploying it as a plug-in for target LMs.

The process involves three main steps:

  1. Identify Preferences: Using a small "source LM" (e.g., Flan-T5 Base, 250M parameters) in a Fusion-in-Decoder (FiD) setup, the authors analyze cross-attention scores to identify which retrieved documents the model relies on most.
  2. Train the Retriever: A standard retriever (like ANCE or Contriever) is fine-tuned using a combination of these "LM-preferred" documents and standard human-annotated positives.
  3. Plug-and-Play Deployment: Once trained, AAR can retrieve documents for any "target LM," including massive models like the 175B parameter InstructGPT, without further training.

Experimental Evaluation

The retriever was trained on the MS MARCO dataset and evaluated on the MMLU benchmark (covering 57 subjects) and PopQA (focused on long-tail knowledge). The authors also explored multi-task training using the KILT benchmark to assess generalization.

Key Insights

  • Preference Overlap: Different LMs, regardless of architecture or size, tend to prefer similar documents. Overlap in preferred document sets between different Flan-T5 versions exceeds 55%, allowing a tiny 250M parameter model to effectively "teach" a retriever how to assist a 175B parameter model.
  • Beyond Ground Truth: While human-preferred documents usually contain exact answer strings, LM-preferred documents often provide helpful context or alternative perspectives. An "answer-deletion test" confirmed that LMs using AAR-retrieved documents are more robust even when exact answers are removed from the text.

Results

AAR consistently outperforms standalone models and standard augmentation strategies across various model scales.

MMLU accuracy across different model sizes and augmentation methods shows AAR providing consistent gains over standalone and few-shot baselines.
  • Performance Gains: On MMLU, AAR improved InstructGPT's accuracy by 2% and boosted its PopQA performance by nearly 20%.
  • Efficiency: AAR achieves performance comparable to state-of-the-art retrieval-augmented models like Atlas but with a fraction of the training cost (FLOPs).
  • Generalization: Despite being trained on a single source task (MS MARCO), AAR generalized effectively to the diverse subjects in MMLU, proving its viability as a generic plug-in.

Conclusion

AAR demonstrates that small source models can successfully adapt retrievers for much larger, unseen target models. While the current study focused on encoder-decoder source models and cross-attention proxies, future work may explore decoder-only sources and direct reinforcement learning signals to further refine document utility. AAR represents a significant step toward making high-performance retrieval augmentation accessible for massive and black-box language models.

Summary updated

BibTeX
@inproceedings{yu2023augmentation,
  author = {Zichun Yu and Chenyan Xiong and Shi Yu and Zhiyuan Liu},
  title = {{Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.136},
}
Figure