Generation-Augmented Retrieval for Open-Domain Question Answering

Yuning Mao, Pengcheng He, Xiaodong Liu, Yelong Shen, Jianfeng Gao, Jiawei Han, Weizhu Chen

Abstract

Open-domain question answering (OpenQA) typically relies on a retriever-reader pipeline where the retrieval step often acts as a bottleneck. While dense retrieval models have recently gained popularity for their semantic matching capabilities, they come with high computational costs and indexing overhead. This paper introduces Generation-Augmented Retrieval (GAR), a method that bridges the gap between sparse and dense retrieval. By using a pre-trained language model to "hallucinate" relevant contexts—such as potential answers, sentences, or titles—and appending them to the query, GAR enables traditional BM25 search to outperform state-of-the-art dense models. GAR is significantly faster to train and deploy, requiring no specialized dense indexing, and sets new performance records on standard benchmarks like Natural Questions and TriviaQA.

Introduction

Open-Domain Question Answering (OpenQA) systems generally follow a two-stage "retriever-reader" architecture. The retriever first identifies a small set of relevant documents from a massive corpus (e.g., Wikipedia), and the reader then extracts or generates the final answer from these documents. Historically, sparse retrieval methods like BM25, which rely on exact keyword matching, were the standard. However, they often fail when the query and the document use different terminology. Recent shifts toward dense retrieval (e.g., DPR) use neural networks to match semantic meanings but introduce significant computational overhead and require massive training data.

The authors of this paper propose Generation-Augmented Retrieval (GAR) to address these limitations. GAR aims to provide sparse retrieval with the semantic capabilities of a neural model without the massive overhead of dense indexing.

Methodology

The core innovation of GAR is query expansion through generation. Before performing a search, the system passes the input question through a pre-trained language model (BART) to generate three types of "heuristically discovered" contexts:

  1. The Answer: A "closed-book" prediction of the answer.
  2. A Sentence: A generated sentence likely to contain the answer.
  3. A Title: The potential title of a Wikipedia page containing the answer.

These generated strings are appended to the original question, creating an augmented query for a standard BM25 search engine. This process effectively "primes" the search engine with related entities and topical keywords, even if the generated answer is not perfectly accurate.

Figure 1: Impact of different generated contexts on retrieval accuracy.

The researchers evaluated GAR on two major benchmarks: Natural Questions (NQ), consisting of real Google Search queries, and TriviaQA, a collection of enthusiast-authored trivia. The document corpus used was a December 2018 snapshot of Wikipedia containing 21 million passages.

Key Results and Insights

The experimental results demonstrate that GAR significantly improves retrieval performance. Notably, GAR using only BM25 achieved retrieval accuracy comparable to or better than the state-of-the-art DPR model on both NQ and TriviaQA.

Figure 4: Retrieval performance (Top-k accuracy) comparison between BM25, DPR, and GAR.

Efficiency and Performance

  • Sparse beats Dense: As shown in the retrieval results, the augmented sparse search of GAR matches or exceeds the performance of complex dense models while being significantly lighter.
  • New State-of-the-Art: When paired with a reader model, GAR achieved new SOTA records for extractive OpenQA, reaching an Exact Match (EM) score of 43.8 on NQ and 74.8 on TriviaQA.
  • Computational Efficiency: Training GAR is 4x to 8x faster than training dense models like REALM or DPR. Furthermore, building the search index for GAR takes approximately 30 minutes on standard CPUs, whereas dense models can require nearly 9 hours on high-end GPUs.

The "Helpful Hallucination"

A key insight is that the language model's "hallucinations" are beneficial in this context. Even if a model generates a slightly incorrect fact (e.g., the wrong month in a date), the surrounding keywords and entities often remain relevant to the correct document, aiding the keyword-based search.

Discussion and Future Work

GAR demonstrates that Pre-trained Language Models (PLMs) can be effectively used as compressed knowledge bases to assist retrieval. By "unpacking" this internal knowledge into the query, GAR leverages the complementary strengths of sparse and dense retrieval.

However, some limitations remain. The generation step adds a small amount of inference latency to each query. Future work could explore multi-task learning to generate all contexts in a single pass. Additionally, making the generator "retriever-aware" could further enhance performance. While highly effective for general factoid questions, the applicability of GAR to niche or technical domains where PLMs lack internal knowledge remains an open question.

Summary updated

BibTeX
@inproceedings{mao2021generation,
  author = {Yuning Mao and Pengcheng He and Xiaodong Liu and Yelong Shen and Jianfeng Gao and Jiawei Han and Weizhu Chen},
  title = {{Generation-Augmented Retrieval for Open-Domain Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.316},
}
Figure