Skip to content

Dense Passage Retrieval using tensorflow-keras on TPU

License

Notifications You must be signed in to change notification settings

Ankur3107/dpr-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dpr-tf

Dense Passage Retrieval using tensorflow-keras on TPU

Introduction

Open-domain question answering relies on efficient passage retrieval to select candidate contexts, where traditional sparse vector space models, such as TF-IDF or BM25, are the defacto method. We can implement using dense representations, where embeddings are learned from a small number of questions and passages by a simple dual-encoder framework.

Model Preparation

Bi-Encoder model using pre-trained base models i.e. bert-base-uncased.

Bi-Model

In-Batch Training on TPU

Bi-Model

References

DPR Paper: https://arxiv.org/pdf/2004.04906.pdf
Blog: https://ankur3107.github.io/blogs/dense-passage-retriever/

Cited as:

@article{kumar2021dprtpu,
  title   = "The Illustrated Dense Passage Retreiver on TPU",
  author  = "Kumar, Ankur",
  journal = "ankur3107.github.io",
  year    = "2021",
  url     = "https://ankur3107.github.io/blogs/dense-passage-retriever/"
}

About

Dense Passage Retrieval using tensorflow-keras on TPU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published