PaperPretrain, then fine-tune

BERT (2018): bidirectional Transformers for language

Event date

On 11 October 2018 Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova posted the BERT paper. BERT pretrains a Transformer encoder on unlabelled text by predicting hidden words, then fine-tunes it with one added output layer. It is on the timeline because it reset results across language understanding and was quickly used in products and research.

Milestone 6 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

GLUE score, reported by the authors
80.5arxiv.org
MultiNLI accuracy, reported by the authors
86.7%arxiv.org
SQuAD v1.1 test F1, reported by the authors
93.2arxiv.org
BERT base and large parameters
about 110 million and 340 millionarxiv.org

What the paper proposed

BERT stands for Bidirectional Encoder Representations from Transformers. Earlier pretrained models such as GPT-1 read text from left to right. BERT instead uses context from both directions in every layer, which suits tasks like question answering and sentence comparison.

The paper was submitted to arXiv on 11 October 2018. On 2 November 2018 Google published a blog post that open sourced the TensorFlow code and several pretrained models, English only at first, with multilingual models promised later. A pretrained BERT needs just one added output layer to be fine-tuned for tasks such as question answering and language inference, with no task specific redesign.

Sources: arxiv.org, research.google

How it worked

Training uses two tasks on unlabelled text. In masked language modelling, 15 per cent of the word pieces are chosen and the model must predict them from the surrounding words. In next sentence prediction, the model judges whether a second sentence really follows the first.

BERT base has 12 layers, 768 hidden units, 12 attention heads and about 110 million parameters. BERT large has 24 layers, 1,024 hidden units, 16 heads and about 340 million parameters. Both were pretrained on BooksCorpus, about 800 million words, and English Wikipedia, about 2,500 million words, for around four days. Each batch held 256 sequences of up to 512 tokens, over 1,000,000 steps, on 16 TPU chips for the base model and 64 for the large one.

Sources: arxiv.org

What it showed and what came next

The authors reported new best results on eleven language tasks. These included a GLUE score of 80.5, 86.7 per cent accuracy on MultiNLI, and F1 scores of 93.2 on SQuAD v1.1 and 83.1 on SQuAD v2.0. They described these as absolute gains of 7.7 points on GLUE and 1.5 and 5.1 points on the two SQuAD versions.

Google's blog post added that fine-tuning is cheap: a question answering system can be trained in about 30 minutes on one Cloud TPU, or a few hours on one GPU. All scores are the authors' own, taken from their paper.

BERT prompted a wave of variants. RoBERTa in 2019 showed that training BERT longer on more data improved it. T5 reframed every task as text to text with an encoder and a decoder. The encoder only family stayed widely used for search, classification and embeddings, while chat models moved to decoder only designs.

Sources: arxiv.org, research.google, arxiv.org, arxiv.org

Why it mattered

  • It made pretraining followed by light fine-tuning the default way to build language understanding systems.
  • Its public release meant that small teams could use a strong pretrained model without training their own.
  • It showed that reading context from both sides gives better representations than left to right reading for understanding tasks.
  • It started a research line of BERT variants that explored how much pretraining choices mattered.

Questions

When was BERT released?
The paper was posted on arXiv on 11 October 2018, and Google open sourced the code and models in a blog post on 2 November 2018.
What does BERT stand for?
Bidirectional Encoder Representations from Transformers.
How many parameters does BERT have?
BERT base has about 110 million parameters and BERT large about 340 million.
Is BERT a large language model?
It is a pretrained Transformer language model, but it is far smaller than modern large language models and it is built for understanding tasks, not for generating long text.

About this page

Part of our LLM history timeline. The event happened on 11 October 2018; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Devlin et al., BERT (arXiv)
  2. Google Research blog, Open Sourcing BERT
  3. Liu et al., RoBERTa (arXiv)
  4. Raffel et al., T5 (arXiv)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.