Transactions of the Association for Computational Linguistics (Jul 2020)

SpanBERT: Improving Pre-training by Representing and Predicting Spans

  • Joshi, Mandar,
  • Chen, Danqi,
  • Liu, Yinhan,
  • Weld, Daniel S.,
  • Zettlemoyer, Luke,
  • Levy, Omer

DOI
https://doi.org/10.1162/tacl_a_00300
Journal volume & issue
Vol. 8
pp. 64 – 77

Abstract

Read online

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 BERTlarge1