SpanBERT: Improving Pre-training by Representing and Predicting Spans
Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, Omer Levy
Abstract
We present SpanBERT, a pre-training method that is designed to better represent and predict spans of text. Our approach extends BERT by (1) masking contiguous random spans, rather than random tokens, and (2) training the span boundary representations to predict the entire content of the masked span, without relying on the individual token representations within it. SpanBERT consistently outperforms BERT and our better-tuned baselines, with substantial gains on span selection tasks such as question answering and coreference resolution. In particular, with the same training data and model size as BERTlarge, our single model obtains 94.6% and 88.7% F1 on SQuAD 1.1 and 2.0 respectively. We also achieve a new state of the art on the OntoNotes coreference resolution task (79.6% F1), strong performance on the TACRED relation extraction benchmark, and even gains on GLUE.1- Anthology ID:
- 2020.tacl-1.5
- Volume:
- Transactions of the Association for Computational Linguistics, Volume 8
- Month:
- Year:
- 2020
- Address:
- Cambridge, MA
- Editors:
- Mark Johnson, Brian Roark, Ani Nenkova
- Venue:
- TACL
- SIG:
- Publisher:
- MIT Press
- Note:
- Pages:
- 64–77
- Language:
- URL:
- https://aclanthology.org/2020.tacl-1.5
- DOI:
- 10.1162/tacl_a_00300
- Cite (ACL):
- Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, and Omer Levy. 2020. SpanBERT: Improving Pre-training by Representing and Predicting Spans. Transactions of the Association for Computational Linguistics, 8:64–77.
- Cite (Informal):
- SpanBERT: Improving Pre-training by Representing and Predicting Spans (Joshi et al., TACL 2020)
- PDF:
- https://preview.aclanthology.org/ingest-acl-2023-videos/2020.tacl-1.5.pdf
- Code
- facebookresearch/SpanBERT + additional community code
- Data
- CoLA, CoNLL-2012, GLUE, HotpotQA, MRPC, MRQA, MultiNLI, Natural Questions, NewsQA, OntoNotes 5.0, QNLI, Quora Question Pairs, RTE, Re-TACRED, SQuAD, SST, SST-2, STS Benchmark, SearchQA, TACRED, TriviaQA