Simple and Efficient ways to Improve REALM

Vidhisha Balachandran, Ashish Vaswani, Yulia Tsvetkov, Niki ParmararXiv 2021

Introduction

Open-Domain Question Answering (ODQA) requires systems to identify answers within a massive corpus, such as Wikipedia, without being directed to a specific document. This is typically achieved through a "retriever-reader" architecture: a retriever identifies relevant snippets, and a reader extracts the precise answer. While the original Retrieval-Augmented Language Model (REALM) was a pioneer in training these components end-to-end, it faced significant bottlenecks: under-optimization due to hardware constraints, noisy "distant supervision" for the retriever, and inference-time limits on the number of documents the reader could process.

This paper introduces REALM++, an optimized version of the model that achieves a ~5.5% absolute accuracy gain in ODQA through engineering refinements and improved supervision strategies.

Methodology

REALM++ introduces three primary improvements to the original architecture without altering the underlying neural components:

Scaling the Training Infrastructure

By moving training to TPUs, the authors enabled exact Maximum Inner Product Search (MIPS) instead of approximations. They also increased the training batch size from 1 to 16 and increased the number of documents the reader processes during training from 5 to 10.

Strong Passage Supervision

Instead of relying solely on "distant supervision" (matching answer strings), REALM++ incorporates human-annotated evidence (gold passages). By optimizing the marginal log-likelihood of these specific passages, the retriever learns to distinguish between a passage that happens to contain the answer and one that actually explains it.

Inference-Time Scaling

While memory limits the reader during training, those constraints are relaxed during inference. REALM++ scales the reader to process up to 100 documents at test time, significantly increasing the probability of locating the correct answer.

Experimental Results

The model was evaluated on three standard benchmarks: Natural Questions (NQ), Web Questions (WQ), and CuratedTREC (CT). REALM++ achieved state-of-the-art results for extractive ODQA among models of similar size.

Key Findings

  • Accuracy and Efficiency: REALM++ achieved a ~5.5% absolute gain in Exact Match (EM) accuracy over the original REALM baseline. Furthermore, the system is 4x faster, reducing training time from 48 hours to just 12 hours.
  • Parameter Efficiency: Using a BERT-base backbone (~110M parameters), REALM++ matched or outperformed "Large" models (like RAG or DPR-BERT-Large) that possess three times as many parameters.
  • Engineering vs. Architecture: A significant portion of the performance gain (3.4%) resulted from better optimization (larger batches and exact search) rather than new algorithmic structures.

Discussion and Conclusion

The success of REALM++ highlights that engineering is as vital as architecture in the development of retrieval-augmented models. The study demonstrates that providing even a small amount of high-quality, human-annotated evidence allows the model to learn generalizable skills; improvements from NQ annotations transferred effectively to the WQ and CT datasets. Finally, the results confirm a training-inference asymmetry: training on a few documents for speed while evaluating on many for accuracy provides an optimal balance of efficiency and performance.

Summary updated

BibTeX
@misc{balachandran2021simple,
  author = {Vidhisha Balachandran and Ashish Vaswani and Yulia Tsvetkov and Niki Parmar},
  title = {{Simple and Efficient ways to Improve REALM}},
  year = {2021},
  eprint = {2104.08710},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.08710},
}
Figure