BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova

Published
Lab
Google
Citations
126,775

TL;DR

BERT pre-trains a bidirectional Transformer on unlabeled text, then fine-tunes it with one extra output layer for tasks such as question answering and language inference.

Read this as a

Why builders care

Editor's note

It showed that one pre-trained model plus a thin task head can beat specialised architectures. That fine-tune-from-a-checkpoint pattern is still how a lot of applied NLP is done.

How to apply it

Editor's note
  1. 1For a classification or QA task, start from a pre-trained encoder and add one output layer rather than designing a new architecture.
  2. 2The headline results at the time: GLUE 80.5%, MultiNLI 86.7%, SQuAD v1.1 Test F1 93.2 and SQuAD v2.0 Test F1 83.1, across eleven NLP tasks.

Code

Not found

No verified code link yet. We checked the abstract, arXiv comments and Hugging Face; if the authors release code later it will show up here.

Practical notes

AI-generated
  • Start from a pre-trained encoder and add one output layer rather than designing a new architecture.
  • Pre-train deep bidirectional representations from unlabeled text by jointly conditioning on both left and right context in all layers.

Key results

From the abstract
  1. 1

    It obtains new state-of-the-art results on eleven natural language processing tasks, including pushing the GLUE score to 80.5% (7.7% point absolute improvement), MultiNLI accuracy to 86.7% (4.6% absolute improvement), SQuAD v1.1 question answering Test F1 to 93.2 (1.5 point absolute improvement) and SQuAD v2.0 Test F1 to 83.1 (5.1 point absolute improvement).

  • We introduce a new language representation model called BERT, which stands for Bidirectional Encoder Representations from Transformers.
  • Unlike recent language representation models, BERT is designed to pre-train deep bidirectional representations from unlabeled text by jointly conditioning on both left and right context in all layers.
  • As a result, the pre-trained BERT model can be fine-tuned with just one additional output layer to create state-of-the-art models for a wide range of tasks, such as question answering and language inference, without substantial task-specific architecture modifications.

We introduce a new language representation model called BERT, which stands for Bidirectional Encoder Representations from Transformers. Unlike recent language representation models, BERT is designed to pre-train deep bidirectional representations from unlabeled text by jointly conditioning on both left and right context in all layers. As a result, the pre-trained BERT model can be fine-tuned with just one additional output layer to create state-of-the-art models for a wide range of tasks, such as question answering and language inference, without substantial task-specific architecture modifications. BERT is conceptually simple and empirically powerful. It obtains new state-of-the-art results on eleven natural language processing tasks, including pushing the GLUE score to 80.5% (7.7% point absolute improvement), MultiNLI accuracy to 86.7% (4.6% absolute improvement), SQuAD v1.1 question answering Test F1 to 93.2 (1.5 point absolute improvement) and SQuAD v2.0 Test F1 to 83.1 (5.1 point absolute improvement).

Everything on this page is written from this abstract. For methods and full results, read the paper PDF.

Ask the paper

Answers come from the paper summary and abstract.

Ask anything about “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding”, or start with one of these:

Closest matches across the feed and every collection, by shared words in titles, topics and abstracts.