Source-linked AI summary

A Replication Study of Dense Passage Retriever

Xueguang Ma, Kai Sun, Ronak Pradeep, Jimmy Lin

arXiv:2104.05740v1cs.CLcs.IR

TL;DR

Replicability and reproducibility help build confidence in published results, and this study independently replicates DPR for open-domain QA using checkpoints shared by the original authors. The results largely verify DPR’s effectiveness while finding retrieval gains and improved end-to-end QA with the same models.

  • Problem

    Replicability and reproducibility support confidence in published findings, and DPR is a prominent learned dense retrieval technique for open-domain question answering whose effectiveness the study examines.

    Source: §1 · p. 1
  • Method

    The authors replicate DPR for open-domain QA using checkpoints shared by the original authors and an otherwise independently developed implementation.

    Source: §1 · p. 1
  • Results

    Across five standard QA test collections, hybrid retrieval improves top-20 accuracy by an average of three points over the best DPR results; answer-span changes improve exact match by around three points over the original DPR implementation using the same models.

    Source: §1 · pp. 1–2
  • Takeaways & Limitations

    The replication adds evidence to the veracity of Karpukhin et al. (2020)’s claims and confirms DPR is an effective dense retrieval technique.

    Source: §5 · p. 7

    The DPR repository does not appear to contain the code and models needed to reproduce all reported results, or code for reproducing BM25 and hybrid fusion results.

    Source: §2 · p. 2, §2.1 · p. 2

Abstract

from arXiv · show

Text retrieval using learned dense representations has recently emerged as a promising alternative to "traditional" text retrieval using sparse bag-of-words representations. One recent work that has garnered much attention is the dense passage retriever (DPR) technique proposed by Karpukhin et al. (2020) for end-to-end open-domain question answering. We present a replication study of this work, starting with model checkpoints provided by the authors, but otherwise from an independent implementation in our group's Pyserini IR toolkit and PyGaggle neural text ranking library. Although our experimental results largely verify the claims of the original paper, we arrived at two important additional findings that contribute to a better understanding of DPR: First, it appears that the original authors under-report the effectiveness of the BM25 baseline and hence also dense--sparse hybrid retrieval results. Second, by incorporating evidence from the retriever and an improved answer span scoring technique, we are able to improve end-to-end question answering effectiveness using exactly the same models as in the original work.

1 Introduction

This study replicates DPR using an independently developed implementation and author-shared model checkpoints. Its findings largely verify DPR’s effectiveness claims while adding retrieval and end-to-end QA refinements; replication and reproducibility help build confidence in published results.

1 Introduction

  • Using model checkpoints shared by the original authors but an otherwise independent implementation, the study achieved comparable effectiveness measurements on different test collections.The paper characterizes this as “different team, different experimental setup”.Source: §1 · p. 1
  • DPR is presented as an important exemplar of learned dense retrieval, and the replication largely verifies Karpukhin et al. (2020)’s effectiveness claims.The paper frames dense retrieval as a promising alternative to sparse bag-of-words retrieval.Source: §1 · p. 1
  • A three-point average improvement in top-20 accuracy over the best DPR results came from dense–sparse hybrid retrieval across five standard QA test collections.The hybrid gains were statistically significant.Source: §1 · p. 1
  • Around three points of statistically significant improvement in exact match scores over the original DPR implementation came from the best condition using retriever scores and improved answer-span selection with the same models.The span-selection technique was described by Mao et al. (2020).Source: §1 · p. 2
  • Retrieval experiment code is packaged in Pyserini, while end-to-end QA experiment code is part of the PyGaggle neural text ranking toolkit.Source: §1 · p. 2

2 Methods

The study independently implements DPR’s retriever–reader pipeline, starting from released model checkpoints but otherwise using separate code. It examines dense, sparse, and hybrid retrieval alongside alternative answer-span scoring and retriever-score fusion.

2 Methods

  • The replication adopts DPR’s retriever–reader design for open-domain question answering, while the DPR repository appears not to contain code and models needed to reproduce all reported results.The replication uses no DPR repository code beyond evaluation scripts.Source: §2 · p. 2, §2.1 · p. 2

2.1 Retriever

  • DPR encodes queries and Wikipedia passages with BERT for dot-product retrieval, while hybrid variants rerank the union of dense and BM25 candidate sets.The replication uses 1,000 candidates from each retriever; it also tests score normalization and weights BM25 so α = 0 discards sparse scores.Source: §2.1 · pp. 2–3

2.2 Reader

  • The reader processes retrieved passages with the question, scores answer spans from token start and end logits, and selects a final span using context relevance.The study compares the original scoring rule with Mao et al. (2020)’s normalized span scoring technique.Source: §2.2 · p. 3

2.3 Final Evidence Fusion

  • Final evidence fusion replaces the reader’s context relevance score with a combination of that score and the retriever score during answer-span scoring.Retriever scores may come from sparse, dense, or hybrid retrieval; the study tests both span-scoring techniques with and without retriever-score fusion.Source: §2.3 · p. 4

3 Experimental Setup

The experiments use available DPR checkpoints to evaluate retrieval on five QA benchmarks and end-to-end question answering on two. The setup specifies evaluation metrics, significance testing, and dataset-specific hyperparameter tuning.

Models

  • The experiments use released DPR checkpoints because not all models from the original experiments appeared available, including two retrievers and two task-specific readers.RetrieverMulti serves all five retrieval datasets; ReaderNQ-Single is used for NQ, and ReaderTQA-Multi for TriviaQA.Source: §3 · p. 4

Datasets and Metrics

  • Retrieval is evaluated on NQ, TriviaQA, WQ, CuratedTREC, and SQuAD, while end-to-end QA is evaluated on NQ and TriviaQA using top-k accuracy and exact match.Top-k accuracy measures whether a retrieved context contains a correct answer span; exact match measures whether an extracted answer exactly matches the ground truth.Source: §3 · p. 4

Significance Testing

  • Metric differences are tested with paired t-tests at p < 0.01, applying Bonferroni correction for multiple hypothesis testing as appropriate.Source: §3 · p. 4

Hyperparameters

  • Hybrid retrieval weights are tuned to maximize top-20 accuracy, while final evidence-fusion weights and retrieval depth are tuned on NQ and TriviaQA development data.For datasets without matching original splits or tuning guidance, hybrid weights are tuned on a training-data subset; evidence-fusion tuning uses multiple grid-search passes.Source: §3 · pp. 4–5

4 Results

The retrieval experiments largely replicate DPR while finding stronger BM25 results and statistically significant gains from dense–sparse hybrid retrieval. In end-to-end QA, combining retriever scores with improved answer-span scoring raises effectiveness, though the effect of increasing k varies by retrieval method and dataset.

4.1 Retrieval

  • DPR retrieval closely matches the original, and significantly outperforms BM25 on every dataset except SQuAD, where it is significantly worse.RetrieverMulti was trained on other datasets but excluded SQuAD; the paper notes that SQuAD draws from a very small set of Wikipedia articles.Source: §4.1 · p. 5
  • Nearly seven points at top-20 and nearly five at top-100: Pyserini BM25 exceeds the original paper’s results on average, but the difference cannot be diagnosed without its BM25 code.The authors also report that BM25’s gap over the original results is larger at k = 20.Source: §4.1 · p. 5, Table 1 · p. 5
  • Hybrid retrieval consistently beats BM25 across settings and significantly improves over DPR in all but top-20 CuratedTREC, despite the original paper reporting weaker hybrid results.The two hybrid scoring techniques do not differ significantly; low dense–sparse overlap suggests they exploit different signals.Source: Table 1 · p. 5, §4.1 · p. 6, Table 2 · p. 6

4.2 End-to-End QA

  • Retriever-score fusion yields modest QA gains across conditions, significant in four of six; Mao et al. (2020)’s span selection also generally helps, and retriever scores significantly improve every GAR condition.The table caption defines GAR as Mao et al. (2020)’s technique and * as retriever-score fusion.Source: §4.2 · p. 6, Table 3 · p. 6
  • Combining retriever scores with Mao et al. (2020)’s answer-span scoring yields statistically significant gains across retrieval conditions and about three points over the best replicated QA results, using the same model checkpoints.The reported comparison is with the best answer-extraction approach described by Karpukhin et al. (2020).Source: §4.2 · pp. 6–7, Table 3 · p. 6
  • As k increases, QA exact match rises for BM25 and TriviaQA with DPR, but peaks then falls for NQ with DPR and eventually declines with hybrid retrieval.The figure plots exact match against the number of retrieved contexts for NQ and TriviaQA.Source: §4.2 · p. 7, Figure 1 · p. 7

5 Conclusion

The study confirms DPR’s effectiveness while adding two findings that enrich understanding of the technique. It argues that replication and reproducibility help build a firm scientific foundation.

5 Conclusion

  • The study confirms that DPR is an effective dense retrieval technique.Source: §5 · p. 7
  • The study adds two findings—one inconsistent with the original work and one presenting an enhancement—that enrich understanding of DPR.Source: §5 · p. 7
  • The authors argue that reproducibility and replicability are critical to advancing science and building on a firm foundation.Source: §5 · p. 7
Loading 2104.05740v1…