NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

End-to-End Training of Neural Retrievers for Open-Domain Question Answering

Devendra Singh Sachan, Mostofa Patwary, Mohammad Shoeybi, Neel Kant, Wei Ping, William L. Hamilton, Bryan Catanzaro

Abstract

Open-Domain Question Answering (OpenQA) systems traditionally rely on a decoupled two-stage pipeline consisting of a document retriever and an answer reader. This work introduces a unified framework that combines unsupervised pre-training with end-to-end supervised training of both components. By implementing a novel relevance score scaling technique and optimizing the retriever and reader jointly, the proposed model achieves significant improvements in retrieval accuracy and answer extraction benchmarks, outperforming existing state-of-the-art models like DPR and RAG.

Introduction

OpenQA systems are designed to answer questions by retrieving relevant information from a massive, unstructured corpus such as Wikipedia. The standard architecture involves a retriever to filter the corpus down to a few candidate documents and a reader to extract the final answer. Historically, these components were trained independently, often requiring extensive human-annotated data for the retriever. This paper addresses the challenges of joint optimization and the effective transition from unsupervised pre-training to supervised fine-tuning.

Methodology

The authors propose a comprehensive three-stage training pipeline designed to bridge the gap between unsupervised learning and supervised task performance.

The end-to-end training architecture for the neural retriever and reader.

1. Unsupervised Pre-training

To overcome the "cold start" problem in neural retrieval, the model utilizes two pre-training tasks:

  • Inverse Cloze Task (ICT): A sentence is treated as a query, and its surrounding context is the target document.
  • Masked Salient Spans: The model retrieves documents to fill in masked entities (e.g., names, dates), forcing the retriever to learn semantic relationships.

2. Supervised Fine-tuning

The retriever is fine-tuned on labeled question-answer pairs. A critical component here is the use of "hard negatives"—documents that are semantically similar to the query but do not contain the answer—which forces the model to learn finer distinctions.

3. End-to-End Training

The retriever and a generative T5 reader are trained jointly. The authors evaluate two paradigms:

  • Individual Top-k: The reader processes each document independently.
  • Joint Top-k: Similar to Fusion-in-Decoder, the reader aggregates information across all retrieved documents simultaneously.

A key innovation is Relevance Score Scaling. By scaling the dot-product similarity by $\sqrt{d}$ (where $d$ is the hidden dimension), the authors prevent the probability distribution from collapsing onto a single document, encouraging broader exploration during training.

Experimental Setup

The framework was evaluated on the Natural Questions (NQ) and TriviaQA benchmarks using a 2018 Wikipedia dump of 21 million documents as the evidence source. Training was conducted on large-scale hardware, utilizing up to 240 NVIDIA A100 GPUs for end-to-end experiments.

Results and Discussion

The proposed training recipe yielded substantial gains across all metrics. Notably, simply extending the training duration and applying relevance score scaling led to immediate performance boosts over the baseline DPR model.

Retrieval performance improvements across different training configurations.

Key Findings

  • Retrieval Excellence: On Natural Questions, the model achieved a top-20 retrieval accuracy of 84%, a 5-point improvement over the official DPR results.
  • Superior Extraction: The system outperformed previous state-of-the-art models like REALM and RAG by over 3 points in Exact Match (EM) scores.
  • Encoder Updates: Updating the context encoder (processing the full 21 million documents) during end-to-end training was found to be more effective than updating only the question encoder.

Conclusion

This research demonstrates that end-to-end training, supported by robust unsupervised pre-training and clever scaling tricks, can significantly advance the state of the art in OpenQA. While the computational cost remains high, the performance gains in both retrieval and answer extraction provide a new benchmark for future research in neural information retrieval.

Summary updated

BibTeX
@inproceedings{sachan2021end,
  author = {Devendra Singh Sachan and Mostofa Patwary and Mohammad Shoeybi and Neel Kant and Wei Ping and William L. Hamilton and Bryan Catanzaro},
  title = {{End-to-End Training of Neural Retrievers for Open-Domain Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.519},
}
Figure