BERT (Bidirectional Encoder Representations from Transformers)
An influential transformer-based language model designed for understanding text with bidirectional context.
Which word could fill the gap?
Imagine the training sentence “The curator lifted the [MASK] from its frame.” The word before the gap and the phrase after it both help narrow the possibilities.
Training target
Suppose the original word was “print.” The masked-language objective rewards predicting the original token from the visible context.
Another plausible word
“Photograph” could also fit this invented sentence. The stored training example still provides its own specific target.
How that differs from using BERT on a catalogue
A downstream model can use BERT’s contextual representations to label names or classify a note. In those tasks there need not be a blank to fill. BERT’s encoder is bidirectional, while many text generators predict each new token using only preceding tokens.
Why BERT Mattered
Before BERT, many NLP systems relied on narrower task-specific pipelines or language models that saw context in only one direction at a time. BERT showed that a large pretrained Transformer encoder could be adapted to many downstream tasks with relatively little task-specific data. It dramatically improved benchmarks in question answering, classification, named entity recognition, and search relevance.
BERT also helped establish the now-common pattern of pretraining first and then adapting the model to a specific use case through Fine-Tuning. That pattern influenced both classical NLP systems and the later rise of large foundation models.
Follow the idea
Self-supervised learning explains where the masked target comes from.
Transformer describes the attention-based architecture behind the encoder.
Related concepts
Source · Devlin and colleagues’ BERT paper
Return to BERT (Bidirectional Encoder Representations from Transformers) in the A–Z glossary