BERTserini
A BERT reader fine-tuned on SQuAD that extracts answer spans from passages retrieved from Wikipedia.
Language · 306 operations Checked
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
- Task
- Language
- Parameters
- 108.9M
- Operations
- 306
- Framework
- PyTorch
- Recurrent
- No
- Published
- NAACL 2019 Demonstrations
- Cited by
- 465 (as of 3 November 2026)
- Authors
- Wei Yang, Yuqing Xie, Aileen Lin and others
- Source
- GitHub: castorini/bertserini
- 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14829
- Graph hash
- 7ef7ed845b67f2802981bac7ac7383d4af76876d85bdc388332dc4b4459e5a04
- Skeleton hash
- 868f7a81c9aebba56f74f2d28b1141e28d3d0f9cd541cf565373b020ef3e8623
- Architecture hash
- 66d4e0db423eac317795db06ec042e24888476e16c9f55947b1b996f989b4af7
- Diagram SHA-256
- 5e5385a2c1ea83fe978b01a801681c123cb6aa665d39d1f970345770c8204e45
- 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
How this diagram was made
transformers.AutoModelForQuestionAnswering.from_config()
What it is
BERTserini is an end-to-end question answering system that integrates BERT with the open-source Anserini information retrieval toolkit. The paper contrasts it with most question answering and reading comprehension models of its day, which operated over small amounts of input text. This system instead identifies answers from a large corpus of Wikipedia articles.
It works in two steps: it first retrieves several candidate text segments from the whole collection, then reads through those segments to determine the answer. The reader is BERT fine-tuned on SQuAD, which the paper reports is sufficient to achieve high accuracy in identifying answer spans. The best answer is then selected by a linear combination of the context score and a second score that the repository calls the phase score.
The repository builds on Pyserini, the Python wrapper for Anserini. It lists two fine-tuned checkpoints, bertserini-bert-base-squad and bertserini-bert-large-squad. The authors evaluated the system on the SQuAD 1.1 and CMRC2018 development sets.
Key idea. BERTserini combines Anserini retrieval with a BERT reader fine-tuned on SQuAD to answer questions from a large corpus of Wikipedia articles end to end.
- BERTserini
- bertserini-bert-base-squad
- bertserini-bert-large-squad
- open-domain question answering
- question answering
- extractive question answering
- answer span
- retriever reader
- Wikipedia question answering
- SQuAD
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yang2019endtoendopendomainquestionanswering,
title={End-to-End Open-Domain Question Answering with BERTserini},
author={Wei Yang and Yuqing Xie and Aileen Lin and Xingyu Li and Luchen Tan and Kun Xiong and Ming Li and Jimmy Lin},
year={2019},
eprint={1902.01718},
archivePrefix={arXiv},
primaryClass={cs.CL},
doi={https://doi.org/10.18653/v1/N19-4013},
url={https://arxiv.org/abs/1902.01718},
}