Next-token prediction
For both
The one mechanism behind every LLM, predicting the next token again and again, and the behaviours that follow from it
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which description matches how a language model generates a reply?
Check yourself · 2 of 5
Why can a model give a wrong answer in a calm, confident tone?
Check yourself · 3 of 5
A model's list has the same phrase in five of the ten items. What is the most likely cause?
Check yourself · 4 of 5
What do log probabilities show for a token in a model's answer?
Check yourself · 5 of 5
Which statement about how an LLM writes is accurate?
Topics
- Generating one token at a time4 min read · The model predicts a probability for every possible next token, picks one, appends it and repeats until it stops
- Fluent text is not verified fact4 min read · Prediction favours likely-sounding continuations, so a smooth confident answer can still be false
- Behaviours that come from prediction4 min read · Repetition, early commitment to a wrong path, sensitivity to wording and copying patterns from the prompt
- Watching token probabilities live4 min read · Log probabilities in playgrounds and APIs show how sure the model was about each token
- Is it just autocomplete?4 min read · Interpretability research shows models plan ahead internally while still writing one token at a time
Start here
- 3Blue1Brown: Large Language Models explained briefly (opens in a new tab)VideoFree
A short illustrated lesson (video and text) showing a model assigning a probability to every possible next word, then picking one.
- 3Blue1Brown: Transformers, the tech behind LLMs (opens in a new tab)VideoFree
A longer illustrated lesson on how a chat model turns text into a probability list for the next token and samples from it, again and again.
- LLM Visualization (Brendan Bycroft) (opens in a new tab)ToolFree
An interactive 3D model that shows a small GPT turning tokens into next-token probabilities.
Helps to know first
110 questions · last verified 2026-12