Two-Step Question Retrieval for Open-Domain QA

Yeon Seonwoo, Juhee Son, Jiho Jin, Sang-Woo Lee, Ji-Hoon Kim, Jung-Woo Ha, Alice Oh · DOI

Introduction

Open-Domain Question Answering (ODQA) systems typically employ a retriever-reader pipeline. In this setup, a retriever identifies relevant documents, and a "reader"—often a large language model—extracts the answer. While accurate, the reading phase is computationally intensive, creating a significant bottleneck for real-time applications.

To address this, Question Retrieval models search a massive index of pre-computed question-answer pairs. While extremely fast, these models often sacrifice accuracy due to coarse semantic matching. The paper introduces SQuID (Sequential Question-Indexed Dense retrieval), a framework designed to bridge this gap by using a two-step retrieval process that maintains high speed while significantly improving precision.

The SQuID Architecture

SQuID utilizes two distinct bi-encoders to refine the search process:

  1. First-Step Retriever: A coarse retriever (e.g., BM25 or RePAQ) selects the top-$k$ (typically 50) candidate questions from a database of millions.
  2. Second-Step Retriever: A specialized bi-encoder re-ranks these top-$k$ candidates. Because the search space is drastically reduced, this model can be optimized for deep semantic matching without the latency overhead of searching the entire index.
The training and inference procedures for SQuID, highlighting the two-step retrieval and answer-centric supervision.

Key Innovations

  • Bi-encoder Re-ranking: Unlike slow cross-encoders, SQuID’s second step uses a bi-encoder. This allows for parallel execution and the use of Maximum Inner Product Search (MIPS), ensuring minimal impact on inference speed.
  • Distant Supervision via Answer Similarity: Training data for question-to-question similarity is scarce. SQuID overcomes this by using answers as a proxy. Positive samples are selected based on the F1-overlap between the ground truth answer and the answers of indexed questions.

Performance and Efficiency

The model was evaluated on the NaturalQuestions (NQ) and TriviaQA benchmarks. SQuID demonstrates a superior trade-off between accuracy (Exact Match score) and inference speed compared to existing baselines.

Comparison of EM score vs. Inference Speed, showing SQuID models (red) achieving higher accuracy than RePAQ baselines (blue) at high speeds.

On the NQ dataset, SQuID-RePAQ/DPR achieved an EM score of 44.0, significantly outperforming the single-step RePAQ-base (40.0 EM). Remarkably, it maintained an inference speed of 1266 questions per second, which is over 1,500 times faster than the RAG-Sequence retriever-reader model (0.8 Q/sec) while achieving comparable accuracy (44.5 EM).

Discussion and Future Work

SQuID's performance is currently bounded by the recall of the first-step retriever. If the correct answer is not within the initial top-50 candidates, the second step cannot retrieve it. Future research will focus on improving the recall of the coarse retrieval stage to further push the accuracy limits of this high-speed framework.

Summary updated

BibTeX
@inproceedings{seonwoo2022two,
  author = {Yeon Seonwoo and Juhee Son and Jiho Jin and Sang-Woo Lee and Ji-Hoon Kim and Jung-Woo Ha and Alice Oh},
  title = {{Two-Step Question Retrieval for Open-Domain QA}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.117},
}
Figure