Real-Time Open-Domain Question Answering with Dense-Sparse Phrase Index

Minjoon Seo, Jinhyuk Lee, Tom Kwiatkowski, Ankur P. Parikh, Ali Farhadi +1 more
6/13/2019
cs.CL

Official code: seominjoon/denspi (200 stars, Python, Apache-2.0, last commit 2023-07-06).

Abstract

Existing open-domain question answering (QA) models are not suitable for real-time usage because they need to process several long documents on-demand for every input query. In this paper, we introduce the query-agnostic indexable representation of document phrases that can drastically speed up open-domain QA and also allows us to reach long-tail targets.

Show full abstract

In particular, our dense-sparse phrase encoding effectively captures syntactic, semantic, and lexical information of the phrases and eliminates the pipeline filtering of context documents. Leveraging optimization strategies, our model can be trained in a single 4-GPU server and serve entire Wikipedia (up to 60 billion phrases) under 2TB with CPUs only. Our experiments on SQuAD-Open show that our model is more accurate than DrQA (Chen et al., 2017) with 6000x reduced computational cost, which translates into at least 58x faster end-to-end inference benchmark on CPUs.

View on arXivView PDF

Code Implementations(1)

seominjoon/denspiOfficial100%
Apache-2.0

Real-Time Open-Domain Question Answering with Dense-Sparse Phrase Index (DenSPI)

20023Python, HTMLJan 14, 20193 years agoApache-2.0
acl2019nlpquestion-answering

Similar Papers

Cite this paper

@article{seo2019realtime,
  title  = {Real-Time Open-Domain Question Answering with Dense-Sparse Phrase Index},
  author = {Minjoon Seo and Jinhyuk Lee and Tom Kwiatkowski and Ankur P. Parikh and Ali Farhadi and Hannaneh Hajishirzi},
  year   = {2019},
  eprint = {1906.05807},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.05807}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.05807.svg)](https://codeofpaper.com/paper/1906.05807)

Discussion