Glossary

What is Decoder-only model?

In Turkish: Yalnızca kod çözücü model · Topic: Models and training

A type of language model that uses a single Transformer stack and predicts the next piece of text by looking only at the pieces before it. Most of the large language models behind today's chatbots follow this design.

How does it work?

The model reads text from left to right, and at each position it can see only what came before; later pieces are hidden by a mask. The training task is simple: predict the next token in the sequence. When generating, the model picks a token from a probability distribution, appends it to the sequence and repeats the process to extend the text. The prompt and the answer are not separate sections but consecutive parts of one sequence.

Why does it matter?

Because the design is simple and scales well with very large amounts of data, it became the dominant choice for large language models. The same model can translate, summarize or write code just by changing the prompt. Many of the names that appear in the news, such as GPT and Llama, belong to this family.

Example

Models in the GPT and Llama families are of this type: when a user types 'The weather today', the model produces the most likely continuation one token at a time.

FAQ

What is the difference between a decoder-only model and BERT?

BERT is an encoder that looks at both sides of a word to work out its meaning. Decoder-only models see only the preceding tokens and are built to generate text.

Are these models bad at understanding input?

No. They build context while reading the earlier part of a sequence, and at large scale they have done well at both understanding and generation tasks. Still, researchers continue to debate which architecture suits which job best.

All terms