# DPR (2020)

> Find the passage that answers a question by comparing learned embeddings, not shared words.

Page: https://mralbu.github.io/ai-datasets/p/dpr

## Key facts

- Title: Dense Passage Retrieval for Open-Domain Question Answering
- Authors: Vladimir Karpukhin, Barlas Oğuz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, Wen-tau Yih
- Venue: EMNLP 2020
- Category: Text
- Paper: https://www.alphaxiv.org/abs/2004.04906

## Why it matters

Keyword search had been surprisingly hard to beat. DPR showed learned dense retrieval beats it with nothing but question–answer pairs, and became the retriever inside RAG and the template for the embedding search behind most retrieval-augmented systems.

## The idea

Encode every Wikipedia passage once with one BERT model and each question with another, and retrieve by dot product. Train the two encoders on question–passage pairs, using the other passages in the batch plus one keyword-search hit as negatives. A BERT reader then extracts the answer.

## The result

On Natural Questions, the right passage was in the top 20 for 78.4% of questions against 59.1% for BM25 keyword search, and end-to-end exact match rose to 41.5%. SQuAD was the exception: its questions were written by people looking at the passage, so they share words with it, and BM25 still won.

## The data

- [Natural Questions (2019)](https://mralbu.github.io/ai-datasets/d/natural-questions.md): Real Google search questions, each answered by an annotator with a paragraph and a short span from Wikipedia.
- [SQuAD (2016)](https://mralbu.github.io/ai-datasets/d/squad.md): 100k+ questions about Wikipedia paragraphs; the answer is a span of the text.

## Builds on

- [BERT (2018)](https://mralbu.github.io/ai-datasets/p/bert.md)

## Led to

- [RAG (2020)](https://mralbu.github.io/ai-datasets/p/rag.md)

## Part of

- [Reading and retrieval](https://mralbu.github.io/ai-datasets/t/reading-retrieval.md) (step 3 of 4)
