Skip to main content
QUICK REVIEW

[Paper Review] StructBERT: Incorporating Language Structures into Pre-training for Deep Language Understanding

Wei Wang, Bin Bi|arXiv (Cornell University)|Aug 13, 2019
Topic ModelingComputer Science35 references100 citations
TL;DR

StructBERT extends BERT by adding word- and sentence-structure pre-training objectives, improving performance across GLUE, SNLI, and SQuAD benchmarks.

ABSTRACT

Recently, the pre-trained language model, BERT (and its robustly optimized version RoBERTa), has attracted a lot of attention in natural language understanding (NLU), and achieved state-of-the-art accuracy in various NLU tasks, such as sentiment classification, natural language inference, semantic textual similarity and question answering. Inspired by the linearization exploration work of Elman [8], we extend BERT to a new model, StructBERT, by incorporating language structures into pre-training. Specifically, we pre-train StructBERT with two auxiliary tasks to make the most of the sequential order of words and sentences, which leverage language structures at the word and sentence levels, respectively. As a result, the new model is adapted to different levels of language understanding required by downstream tasks. The StructBERT with structural pre-training gives surprisingly good empirical results on a variety of downstream tasks, including pushing the state-of-the-art on the GLUE benchmark to 89.0 (outperforming all published models), the F1 score on SQuAD v1.1 question answering to 93.0, the accuracy on SNLI to 91.7.

Motivation & Objective

  • Motivate the need to leverage underlying language structures during pre-training for deeper language understanding.
  • Extend BERT with two structural pre-training objectives to capture word order and inter-sentence relations.
  • Demonstrate that structural pre-training yields better generalization across diverse NLU tasks.

Proposed method

  • Start from the BERT Transformer framework and add two new auxiliary pre-training tasks: a word structural objective and a sentence structural objective.
  • Word structural objective: after masking 15% of tokens, shuffle 3-word sequences (trigrams) among unmasked tokens and train the model to predict the original positions.
  • Sentence structural objective: randomize sentence order in a pair and train the model to predict whether the second sentence is next, previous, or random, modeling inter-sentence structure bidirectionally.
  • Combine these objectives with the original masked LM objective in a single pre-training loss.
  • Use WordPiece tokenization, 512 sequence length, and standard BERT-like input representations and Transformer encoder.
  • Pre-train on English Wikipedia and BookCorpus with large-scale distributed training, followed by task-specific fine-tuning.

Experimental results

Research questions

  • RQ1Can explicit word-order and inter-sentence structural signals during pre-training improve downstream NLU performance beyond BERT?
  • RQ2To what extent do word- and sentence-structure objectives contribute to improvements on single-sentence vs. sentence-pair tasks?
  • RQ3How do StructBERT variants compare to contemporary models on GLUE, SNLI, and SQuAD benchmarks?

Key findings

  • StructBERTLarge ensemble achieves leading GLUE average score (state-of-the-art at the time) with an average of 89.0 on GLUE.
  • StructBERT achieves 91.7% accuracy on SNLI (single model), outperforming prior models.
  • StructBERT achieves 93.0 F1 on SQuAD v1.1, surpassing many baselines without extra data augmentation.
  • Ablation shows both word and sentence structural objectives are beneficial across tasks; removing either degrades performance, especially the word objective for CoLA and the sentence objective for MNLI/SQuAD.
  • Word structural objective particularly improves single-sentence tasks (e.g., CoLA), while the sentence structural objective boosts sentence-pair tasks (MNLI, SNLI, QQP, SQuAD).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.