Pruning the Index Contents for Memory Efficient Open-Domain QA

Martin Fajcik, Martin Docekal, Karel Ondrej, Pavel Smrz
2/21/2021
9 citations
cs.CLcs.AIcs.LG

Official code: KNOT-FIT-BUT/R2-D2 (21 stars, Python, MIT, last commit 2021-11-16).

Abstract

This work presents a novel pipeline that demonstrates what is achievable with a combined effort of state-of-the-art approaches. Specifically, it proposes the novel R2-D2 (Rank twice, reaD twice) pipeline composed of retriever, passage reranker, extractive reader, generative reader and a simple way to combine them.

Show full abstract

Furthermore, previous work often comes with a massive index of external documents that scales in the order of tens of GiB. This work presents a simple approach for pruning the contents of a massive index such that the open-domain QA system altogether with index, OS, and library components fits into 6GiB docker image while retaining only 8% of original index contents and losing only 3% EM accuracy.

View on arXivView PDF

Code Implementations(1)

KNOT-FIT-BUT/R2-D2Official100%
MIT

Official repository of the R2-D2's pipeline

214Python, ShellApr 7, 20215 years agoMIT

Similar Papers

Cite this paper

@article{fajcik2021pruning,
  title  = {Pruning the Index Contents for Memory Efficient Open-Domain QA},
  author = {Martin Fajcik and Martin Docekal and Karel Ondrej and Pavel Smrz},
  year   = {2021},
  eprint = {2102.10697},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.10697}
}

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/2102.10697.svg)](https://codeofpaper.com/paper/2102.10697)

Discussion