Decoder-only language models (GPT series)

Pretrained language models · neural · 2018 · text · code

What it is

Causal self-attention trained to predict the next token; scaling this recipe produced the modern LLM.

When to use it

Text generation, reasoning, tool use, and by far the most deployed architecture in the world right now.

Caveats

They can produce fluent but false statements, and their knowledge stops at the training cutoff. The context window is finite, generation is one token at a time, and outputs are sensitive to how the prompt is worded.

Key ideas

  • Causal masking is what makes it a generator
  • In-context learning emerged from scale, not from architecture

Related architectures

Original paper

Search for “Improving Language Understanding by Generative Pre-Training”

Lessons that cover it

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted