BERT, short for Bidirectional Encoder Representations from Transformers, is a language representation model that learns from unlabelled text by using the words to the left and to the right of every position. A single pre-trained BERT model can then be adapted to many language tasks with very little change to its architecture.
This page is for data scientists, architects and technology leaders who need a clear definition of BERT. It covers why the model mattered, how pre-training and fine-tuning work, how BERT differs from ELMo and ULMFiT, and where it fits when you build AI agents.
The BERT paper by Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova describes a model that learns deep bidirectional representations from unlabelled text. It conditions on left and right context in all layers, rather than reading in one direction only.
That matters because the meaning of a word often depends on the words around it on both sides. The authors report that adding a single output layer to the pre-trained model was enough to reach state-of-the-art results on eleven natural language processing tasks, including question answering and language inference. It is also a form of transfer learning: the expensive learning happens once, and the result is reused.
BERT is a stack of Transformer encoders. As The Illustrated BERT explains, it uses the encoder side of the Transformer only, with no decoder stack, and each input begins with a special [CLS] token whose output can feed a classifier.
All three were published in 2018 and all rely on pre-training, but they reuse the pre-trained model in different ways.
| Model | Core idea | How it is reused |
|---|---|---|
| BERT | Transformer encoders trained to use left and right context together | Fine-tuned with a small added output layer per task |
| ELMo | Word vectors taken from the internal states of a deep bidirectional language model | Added as features to an existing task model |
| ULMFiT | A pre-trained language model fine-tuned with controlled learning rates | Fine-tuned end to end for text classification |
See our glossary pages on embeddings from language models and universal language model fine-tuning for each of these.
BERT is used wherever a system must understand text rather than generate it: classifying documents, answering questions from a passage, judging whether one sentence follows from another, and tagging entities in text. Because it produces a representation of the input, it is often one component inside a larger pipeline.
An AI agent that reads tickets, contracts or messages needs a reliable way to interpret language before it decides what to do. Encoder models such as BERT are one way to supply that understanding. For teams building and running agents, ElixirClaw is XenonStack's AI agents computing platform.
To map one decision your agents make from language input, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
BERT stands for Bidirectional Encoder Representations from Transformers. It is a language representation model that learns from unlabelled text using context on both sides of each word.
BERT is built from the encoder part of the Transformer architecture. It does not use the decoder stack.
It is a pre-training task in which some input words are hidden and the model must predict them. This forces the model to use left and right context together.
The pre-trained model is adapted to a specific task using labelled data. Mainly an added output layer is trained, with only minimal changes to BERT itself.
ELMo supplies context-aware word vectors from a deep bidirectional language model that are added to an existing model. BERT is itself fine-tuned for each task.