Skip to main content
QUICK REVIEW

[Paper Review] A Memory Efficient Baseline for Open Domain Question Answering

Gautier Izacard, Fabio Petroni|arXiv (Cornell University)|Dec 30, 2020
Topic ModelingComputer Science22 references29 citations
TL;DR

This paper proposes a memory-efficient baseline for open-domain question answering by combining dimension reduction, vector quantization, and passage filtering to compress dense retriever-reader systems. It achieves competitive performance—53.6% EM on NaturalQuestions and 71.3% on TriviaQA—using less than 6GB of memory, demonstrating that high accuracy is possible with significantly reduced index size.

ABSTRACT

Recently, retrieval systems based on dense representations have led to important improvements in open-domain question answering, and related tasks. While very effective, this approach is also memory intensive, as the dense vectors for the whole knowledge source need to be kept in memory. In this paper, we study how the memory footprint of dense retriever-reader systems can be reduced. We consider three strategies to reduce the index size: dimension reduction, vector quantization and passage filtering. We evaluate our approach on two question answering benchmarks: TriviaQA and NaturalQuestions, showing that it is possible to get competitive systems using less than 6Gb of memory.

Motivation & Objective

  • Reduce the memory footprint of dense retriever-reader systems for open-domain question answering without significant performance loss.
  • Investigate the effectiveness of dimension reduction, vector quantization, and passage filtering as compression strategies for dense retrieval indexes.
  • Demonstrate that competitive performance can be achieved with less than 6GB of memory, enabling deployment on resource-constrained hardware.
  • Evaluate the complementarity of multiple compression techniques on standard benchmarks, TriviaQA and NaturalQuestions.

Proposed method

  • Use a dense retriever based on BERT-base to embed questions and Wikipedia passages into d-dimensional vectors.
  • Apply product quantization with 8-bit subvectors to compress the dense vector index, reducing memory usage via vector discretization.
  • Perform dimension reduction by reducing the embedding dimension from 256 to 128, decreasing index size and computational cost.
  • Implement passage filtering using a self-training linear classifier that removes low-utility Wikipedia articles based on title and category features.
  • Use Faiss for efficient maximum inner product search during inference, enabling fast retrieval from compressed indexes.
  • Train the reader model using a Fusion-in-Decoder architecture initialized from T5-base, leveraging up to 100 retrieved passages per question.

Experimental results

Research questions

  • RQ1To what extent can dimension reduction and vector quantization be combined to reduce index size with minimal performance drop?
  • RQ2How effective is passage filtering in removing low-utility Wikipedia articles while preserving retrieval quality?
  • RQ3Can a compressed system achieve competitive performance on standard benchmarks like TriviaQA and NaturalQuestions?
  • RQ4What is the trade-off between index size and end-to-end QA performance when applying multiple compression techniques?

Key findings

  • Combining dimension reduction (to 128D) and product quantization (64 subvectors, 8-bit per subvector) reduced the index size to 1.67GB with only a 0.2% drop in EM on NaturalQuestions and 1.1% on TriviaQA.
  • Passage filtering allowed the removal of a significant fraction of Wikipedia articles, reducing the index size from 26M to 10M passages while maintaining strong performance.
  • A compressed system with a 2.1GB index achieved 44.0% EM on NaturalQuestions and 56.8% on TriviaQA, demonstrating competitive performance despite being much smaller than the topline baseline.
  • A 5.1GB compressed system achieved 53.6% EM on NaturalQuestions and 71.3% on TriviaQA, closely approaching the topline model’s 54.7% and 73.3% respectively.
  • The combination of all three techniques—dimension reduction, quantization, and filtering—was found to be complementary, enabling substantial memory savings with minimal accuracy loss.
  • The final compressed models achieved under 6GB memory usage, proving that high-performing open-domain QA systems can be deployed on standard hardware without requiring large-scale GPU memory.

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.