All models

DPRReader

BERT-backbone retrieval encoders: DPR context encoder and reader, SPLADE, E5, Contriever, a cross-encoder reranker.

Language · 315 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (23 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
108.9M
Operations
315
Framework
PyTorch
Recurrent
No
Published
2020
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m569
Graph hash
f5f1b32f591e2a3f817d429bca10251bc5c744449b5d9dbad65818470fc3bb7b
Skeleton hash
61dbd4e966a39c9813dd2ac6e363053f3c897dec861d7fd053a20ce1efa08997
Architecture hash
0faee4cf7946d9f329048770dfe002c5264123fc2328dc2e586f2e698ff7a4f0
Diagram SHA-256
e355e7c70200835bad3a631c52b73645d93cb8afad098275ec39d7b6426f81f0
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The DPR reader, which extracts the answer inside retrieved contexts along with a relevance score.

About this model's family

This family gathers text encoders built for retrieval, and every traced member shares one backbone: BERT, a bidirectional transformer pretrained on unlabeled text to predict masked tokens and to predict whether one sentence follows another. That versatility is the point, since BERT's learned language representations can be adapted to other tasks by fine-tuning an additional layer or head, which is how the same encoder becomes a passage encoder, a reader or a reranker here.

The Dense Passage Retrieval members come from a toolkit for open-domain question answering in which embeddings are learned from questions and passages by a simple dual-encoder framework, replacing sparse vector space models such as TF-IDF or BM25. DPR has three parts: a question encoder, a context encoder that turns passages into vectors, and a reader that extracts the answer from retrieved contexts along with a relevance score. On open-domain QA datasets the dense retriever beat a strong Lucene-BM25 system by 9%-19% absolute in top-20 passage retrieval accuracy.

Key idea. Retrieval implemented with dense representations alone, learned from questions and passages by a simple dual-encoder framework on a BERT backbone.

  • retrieval encoder
  • DPR
  • Dense Passage Retrieval
  • DPRContextEncoder
  • DPRReader
  • SPLADE
  • E5
  • Contriever
  • cross-encoder reranker
  • BERT
  • sentence embedding
  • dense retriever
  • open-domain QA

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.