Machine Learning PapersLandmark papers
← All papers
RESEARCH PAPER / 2018

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

Jacob Devlin, Ming-Wei Chang, Kenton Lee ...Full author list in the original paper.

Google AI Language · cs.CL

Affiliations: Google AI Language

Abstract

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).

The following analysis is generated by AI and may contain errors. It is separate from the authors’ abstract and is not peer review.

Research summary

BERT introduces a bidirectional masked language modeling objective that enables deep contextual representation learning through a unified pre-training and fine-tuning paradigm. By demonstrating that a single, task-agnostic Transformer encoder can achieve unprecedented state-of-the-art performance across diverse NLP benchmarks, the paper establishes the foundational paradigm for modern large language models, fundamentally reshaping both academic research trajectories and industrial deployment pipelines in natural language processing.

Methodology

The paper introduces a two-stage transfer learning paradigm: unsupervised pre-training on massive unlabeled corpora followed by supervised fine-tuning with a single task-specific output layer. The core innovation is the Masked Language Modeling (MLM) objective, which randomly masks 15% of input tokens and predicts them, enabling deep bidirectional context learning that overcomes the left-to-right/right-to-left constraints of autoregressive models. This is paired with Next Sentence Prediction (NSP) to capture inter-sentence relationships. The architecture relies exclusively on the Transformer encoder, discarding recurrence and convolution. The methodology is mathematically clean, highly scalable, and elegantly bridges representation learning and downstream task adaptation.

Results & evaluation

The empirical validation is exceptionally comprehensive, spanning 11 diverse benchmarks including GLUE, SQuAD v1.1/v2.0, MultiNLI, and SWAG. The model achieves substantial absolute improvements over prior state-of-the-art systems (e.g., +7.7 GLUE, +5.1 SQuAD v2.0 F1), demonstrating robust generalization across classification, regression, and span-extraction tasks. Extensive ablation studies rigorously isolate the contributions of bidirectionality, model depth, pre-training corpus size, and the NSP objective, providing strong empirical grounding for architectural choices.

Reproducibility

High. The authors release complete training code, pre-trained checkpoints (BASE and LARGE), and detailed hyperparameter configurations. The methodology is sufficiently specified for independent replication, and the open-source release catalyzed immediate community adoption and extension. Minor ambiguities remain around exact data filtering pipelines and dynamic vs. static masking schedules, but overall reproducibility is excellent by contemporary standards.

Limitations

The NSP objective was later demonstrated to be largely unnecessary or marginally harmful for many downstream tasks. The static 15% random masking strategy is suboptimal compared to dynamic masking or whole-word masking. Pre-training requires prohibitive computational resources, centralizing progress among well-funded entities. The model is constrained to 512-token sequences, lacks native generative capabilities, and inherits biases present in the pre-training corpora. WordPiece tokenization can also introduce fragmentation artifacts for rare or morphologically complex terms.

Broader impact

BERT fundamentally shifted NLP from fragmented, task-specific architectures to a unified, transferable representation framework, dramatically lowering the engineering barrier to high-performance language understanding. However, it also accelerated compute-driven research centralization, raised significant environmental concerns due to massive energy consumption, and highlighted the urgent need for bias mitigation and transparency in large-scale pre-training pipelines. BERT introduces a bidirectional masked language modeling objective that enables deep contextual representation learning through a unified pre-training and fine-tuning paradigm. By demonstrating that a single, task-agnostic Transformer encoder can achieve unprecedented state-of-the-art performance across diverse NLP benchmarks, the paper establishes the foundational paradigm for modern large language models, fundamentally reshaping both academic research trajectories and industrial deployment pipelines in natural language processing.

Curator note

Devlin et al.; transformed NLP; bidirectional language models

Discussion

Talks & videos

Related later work

Author of this paper? Send a correction.