SpanBERT: Improving Pre-training by Representing and Predicting Spans

Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer +1 more
7/24/2019
2,252 citations
cs.CLcs.LG

Official code: facebookresearch/SpanBERT (907 stars, Python, last commit 2023-07-25).

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.

Show full abstract

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 BERT-large, 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 show gains on GLUE.

View on arXivView PDF

Code Implementations(1)

Code for using and evaluating SpanBERT.

907176Python, ShellAug 30, 20193 years agoNOASSERTION

Similar Papers

Cite this paper

@article{joshi2019spanbert,
  title  = {SpanBERT: Improving Pre-training by Representing and Predicting Spans},
  author = {Mandar Joshi and Danqi Chen and Yinhan Liu and Daniel S. Weld and Luke Zettlemoyer and Omer Levy},
  year   = {2019},
  eprint = {1907.10529},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.10529}
}

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

Discussion