Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Why can a model give a wrong answer in a calm, confident tone?

Choose one answer

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?

Choose one answer

Check yourself · 4 of 5

What do log probabilities show for a token in a model's answer?

Choose one answer

Check yourself · 5 of 5

Which statement about how an LLM writes is accurate?

Choose one answer

Topics

  1. 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
  2. Fluent text is not verified fact4 min read · Prediction favours likely-sounding continuations, so a smooth confident answer can still be false
  3. Behaviours that come from prediction4 min read · Repetition, early commitment to a wrong path, sensitivity to wording and copying patterns from the prompt
  4. Watching token probabilities live4 min read · Log probabilities in playgrounds and APIs show how sure the model was about each token
  5. Is it just autocomplete?4 min read · Interpretability research shows models plan ahead internally while still writing one token at a time

Start here

Helps to know first

110 questions · last verified 2026-12