End-to-End Open-Domain Question Answering with BERTserini
Paper · 2019 · Wei Yang, Yuqing Xie, Aileen Lin et al.
Summary
Most QA benchmarks of the time give the system a ready passage or a short list of candidate sentences. The step of finding relevant text in a large collection is left out. This demo paper presents BERTserini, which answers questions directly over a Wikipedia dump of 5.08M articles. It chains two modules. First, the Anserini toolkit, built on Lucene, fetches text segments using BM25. Second, a BERT-Base reader fine-tuned on SQuAD v1.1 marks a candidate answer span in each segment. The final answer is chosen by linearly mixing the retriever and reader scores. The authors index the corpus at three granularities (articles, paragraphs and sentences) and find that paragraphs work best. They follow the Dr.QA evaluation protocol on SQuAD development questions. With 100 retrieved paragraphs, the system reaches 38.6 EM, higher than the best earlier result they know of. The work matters because a plain retrieve-then-read pipeline built from standard parts outperforms more elaborate systems. It also runs fast enough to serve as an interactive chatbot.
Key points
- Corpus and indexing. The corpus is the Dec. 2016 Wikipedia used by Chen et al. (2017). It is indexed three ways: as 5.08M articles, 29.5M paragraphs, or 79.5M sentences. Retrieval is single-stage, using BM25 with Anserini's default parameters.
- Reader. The reader is BERT-Base (uncased, 110M parameters) fine-tuned on SQuAD v1.1, with inputs padded to 384 tokens and a learning rate of 3 × 10⁻⁵.
- The final softmax over spans is removed, so that scores from different segments can be compared.
- The reader score is interpolated with the Anserini score using a weight µ. The weight is tuned on 1000 SQuAD training pairs, and µ = 0.5 was chosen for the paragraph condition.
- Results at comparable text budgets.
- Articles (k = 5): 19.1 EM.
- Sentences (k = 78): 34.0 EM.
- Paragraphs (k = 29): 36.6 EM / 44.0 F1.
- Paragraphs (k = 100): 38.6 EM / 46.1 F1 / 85.8 recall, against 34.7 EM for MINIMAL.
- Effect of k. Top-1 exact match barely improves beyond about k = 10, while recall keeps rising up to k = 100. The largest gap lies in scoring and aggregation of answers, not in retrieval.
- Deployment. The demo runs as a Slackbot and on RSVP.ai's platform with paragraphs at k = 10. Average latency is about 0.5s for Anserini on CPU and 0.18s for BERT on a Tesla P40 GPU.
Interesting ideas
- I1. The size of the text unit given to the reader matters a lot: whole articles drown it in distractors, while lone sentences lack context, and paragraphs sit in between.
- I2. Three curves separate the error sources: (a) is the answer anywhere in the candidates, (b) did the reader find it in any segment, and (c) was it ranked first. This splits failures into retrieval, reading, and scoring/aggregation.
- I3. Dropping per-segment normalization keeps span scores comparable across different segments, which is what allows a global choice among candidates.
- I4. A single interpolation weight between two scorers, tuned by a coarse grid on a small held-out set, is a cheap combination rule that stays easy to explain.
- I5. When comparing indexing conditions, k was chosen so that the reader sees roughly the same amount of text in each case, which keeps the comparison fair.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (answer): when answering questions on fables and tales, the reader could be fed a paragraph-sized slice of the text world around the relevant entities rather than the whole story or a single clause.
- I2 (learn): evaluation could report the same staged gaps (e.g. was the right entity in the world model, was the right frame found, was it chosen as the answer), so each failure points to a specific stage.
- I3 (frames): coreference or role-filler candidates scored in different sentences should keep unnormalized, comparable scores so that a single choice across the whole text is meaningful.
- I4 (tree): perceptron-parser and gparse arc scores could be blended with one tuned, inspectable weight before stronger and less transparent ensembling is tried.
- I5 (learn): experiments comparing segmentation or context-window choices should fix the total input budget, so that gains are not just an effect of seeing more text.
Institutions
Fields, topics and concepts
Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksInformation Systems · 1,888 works
Topics 1Research subjects and languages the work is about.Question answering · 491 works
Appears in
Mentioned in articles aboutKitchener–Waterloo
Cite
Cite as Wei Yang, Yuqing Xie, Aileen Lin, Xingyu Li, Luchen Tan, Kun Xiong, Ming Li and Jimmy Lin. 2019. End-to-End Open-Domain Question Answering with BERTserini. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations).
@inproceedings{yang2019end,
title = {{End-to-End Open-Domain Question Answering with BERTserini}},
author = {Wei Yang, Yuqing Xie, Aileen Lin, Xingyu Li, Luchen Tan, Kun Xiong, Ming Li and Jimmy Lin},
booktitle = {Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations)},
year = {2019},
doi = {10.18653/v1/n19-4013},
url = {https://doi.org/10.18653/v1/n19-4013}
}References
- Payal Bajaj, Daniel Campos, Nick Craswell, Li Deng, Jianfeng Gao, Xiaodong Liu, Rangan Majumder, Andrew McNamara, Bhaskar Mitra, Tri Nguyen, Mir Rosenberg, Xia Song, Alina Stoica, Saurabh Tiwary, and Tong Wang. 2016. MS MARCO: A human generated MAchine Reading COmprehension dataset. arXiv:1611.09268…
- Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. Technical report. OpenAlex ↗ · Scholar ↗
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: 100,000+ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392.
- Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading Wikipedia to answer open-domain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1870– 1879.
- Christopher Clark and Matt Gardner. 2018. Simple and effective multi-paragraph reading comprehension. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 845–855.
- Stefanie Tellex, Boris Katz, Jimmy Lin, Gregory Marton, and Aaron Fernandes. 2003. Quantitative evaluation of passage retrieval algorithms for question answering. In Proceedings of the 26th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 2003), p… OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv:1810.04805.
- Ellen M. Voorhees and Dawn M. Tice. 1999. The TREC-8 Question Answering Track evaluation. In Proceedings of the Eighth Text REtrieval Conference (TREC-8), pages 83–106.
- Bernhard Kratzwald and Stefan Feuerriegel. 2018. Adaptive document retrieval for deep question answering. In Proceedings of the 2018 Conference on Shuohang Wang, Mo Yu, Xiaoxiao Guo, Zhiguo Wang, Tim Klinger, Wei Zhang, Shiyu Chang, Gerald Tesauro, Bowen Zhou, and Jing Jiang. 2017. R 3 : Reinforced… OpenAlex ↗ · Scholar ↗
- Peilin Yang, Hui Fang, and Jimmy Lin. 2017. Anserini: Enabling the use of Lucene for information retrieval research. In Proceedings of the 40th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 2017), pages 1253–1256. OpenAlex ↗ · Scholar ↗
- Peilin Yang, Hui Fang, and Jimmy Lin. 2018. Anserini: Reproducible ranking baselines using Lucene. Journal of Data and Information Quality, 10(4):Article 16. OpenAlex ↗ · Scholar ↗
- Yi Yang, Wen-tau Yih, and Christopher Meek. 2015. WikiQA: A challenge dataset for open-domain question answering. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 2013–2018.
- Xuchen Yao, Benjamin Van Durme, Chris Callison-burch, and Peter Clark. 2013. Answer extraction as sequence tagging with tree edit distance. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 858–867… OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/yang-2019-end-end-open-domain-question/