# Next-token prediction

Canonical page: https://www.theglitch.ai/ai-glossary/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.](https://www.theglitch.ai/images/cards/glossary/next-token-prediction.png?v=156232dd85b2ce68)

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](https://www.theglitch.ai/ai-glossary/large-language-model) · [Token](https://www.theglitch.ai/ai-glossary/token) · [Hallucination](https://www.theglitch.ai/ai-glossary/hallucination)

## Guides that use it

[27 AI terms to know in 2027.](https://www.theglitch.ai/learn/ai-terms-2027)

## Sources

- [Wikipedia: Language model](https://en.wikipedia.org/wiki/Language_model)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
