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

Introduction

Open-domain question answering (QA) typically relies on a retriever-reader pipeline. While accurate, the "reader" component—often a complex transformer model—is computationally expensive, creating a bottleneck for real-time applications. An alternative is question retrieval, which matches user queries against a pre-indexed database of question-answer pairs. Although significantly faster, pure question retrieval often lags in accuracy. Previous attempts to bridge this gap using cross-encoder re-rankers sacrificed the speed benefits of retrieval.

This paper introduces SQuID (Sequential Question-Indexed Dense retrieval), a framework that achieves high accuracy while maintaining the lightning-fast inference of question retrieval by employing a two-step bi-encoder process.

Methodology: The SQuID Framework

SQuID replaces heavy cross-encoders with a sequential two-step retrieval process using distinct bi-encoders.

  1. First-Step Retriever: A standard efficient retriever (e.g., BM25 or RePAQ) identifies the top-k (e.g., 50) most similar candidate questions from the entire corpus.
  2. Second-Step Retriever: A second bi-encoder re-ranks these candidates to select the final answer.

By narrowing the search space in the first step, the second step can utilize a more specialized model without a significant latency penalty. Crucially, because both steps use bi-encoders, question vectors can be pre-computed, and the second step can be executed in parallel with the first step's later stages.

Overview of SQuID training and inference procedures.

Distant Supervision

A core challenge in training question-retrieval models is the lack of explicit "similar question" labels. SQuID addresses this through distant supervision. Pairs are heuristically labeled as "positive" if they share the same ground-truth answer and "negative" if their answers differ. This approach optimizes the retriever for answer utility rather than mere lexical overlap.

Experimental Results

The framework was evaluated on the NaturalQuestions (NQ) and TriviaQA benchmarks. SQuID demonstrated a superior trade-off between performance and speed compared to existing baselines.

Performance and Efficiency

On the NQ dataset, SQuID achieved a 4.0% point gain in Exact Match (EM) score over the single-step baseline. On TriviaQA, the gain reached 6.1% points. Despite the additional re-ranking step, SQuID maintains approximately 92% of the inference speed of a single-step retriever, processing over 1,000 questions per second.

Comparison of Exact Match (EM) vs. Inference Speed for various models.

As shown in the figure above, SQuID models (red markers) occupy a superior position on the accuracy-speed frontier, significantly outperforming standard RePAQ baselines (blue markers) in accuracy while remaining orders of magnitude faster than retriever-reader models like RAG or FiD.

Conclusion

SQuID successfully bridges the gap between slow, high-accuracy reader models and fast, lower-accuracy retrievers. By leveraging a two-step bi-encoder architecture and distant supervision, it provides a scalable solution for high-performance, real-time open-domain QA. Future work will focus on addressing the "recall ceiling" of the first-step retriever and refining distant supervision techniques to better capture semantic nuances.

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