Glossary

What is Bidirectional Encoder Representations from Transformers?

In Turkish: BERT · Topic: Models and training

An encoder-based language model introduced by Google in 2018 that interprets each word in a sentence by looking at the context on both its left and its right. It was designed more for understanding text than for generating it.

How does it work?

BERT consists only of Transformer encoder layers. During training, some words in the text are hidden and the model tries to predict them from the surrounding context, a task called masked language modeling. As a result, the representation of each word is shaped by the whole sentence. After pretraining, the model is adapted to a small task such as sentiment analysis, question answering or text classification by fine-tuning it on a modest amount of data.

Why does it matter?

BERT popularized the approach of pretraining a model and then fine-tuning it, and it raised the bar on many language understanding tasks. Even though generative chat models now get most of the attention, BERT-style models are still widely used for search, classification and text matching, where being small and fast is an advantage.

Example

An online store might fine-tune a BERT variant on Turkish data to sort customer reviews into positive and negative ones.

FAQ

What is the difference between BERT and GPT?

BERT is an encoder that reads text in both directions and focuses on understanding. GPT is a decoder-only model that generates text by looking at what came before.

Is BERT a large language model?

Not in the usual sense today. It is much smaller than chat models with billions of parameters and it was not built to generate text. Still, it is regarded as one of the early landmark pretrained language models.

All terms