Next-token prediction

The training game behind language models: guess the next token, check, adjust, repeat across trillions of examples.

Next-token prediction, common card #151 in The Glitch AI glossary: The training game behind language models: guess the next token, check, adjust, repeat across trillions of examples.
GLS 151 · common

Also called: Autocomplete, Language modeling, Auto-regressive model.

For: Beginner · Must know

Why it matters

It explains both the magic and the failures: models produce what is likely, which is usually but not always what is true.

In practice

Given “The capital of France is”, the most likely next token is “ Paris”.

Watch for

“Just autocomplete” undersells what scale produces, and “it understands” oversells it.

Related terms

Large language model · Token · Hallucination

Guides that use it

27 AI terms to know in 2027.

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term