At each step, a language model assigns a probability to every token in its vocabulary based on the text generated so far. It samples one token, appends it, and repeats. Because the selected token becomes part of the context, each choice changes the probabilities at the next step.[2] Tokens can be whole words, word fragments, spaces, or punctuation.
Choose a benchmark question and press Play to replay one recorded generation token by token. Each question has ten retained runs; the highlighted row shows the sampled token. Space and newline markers make otherwise invisible token characters visible.
Prototype · recorded next-token generation · Qwen2.5-3B-Instruct · TruthfulQA
—
Beyond the top candidates
The widget shows the five most likely tokens. Other combines the remaining probability mass. If a token from Other is sampled, the widget reveals that token and its individual probability.
Each choice changes the path
During generation, the next distribution is recalculated from the generated answer so far. Different sampled tokens can therefore lead to different later probabilities and different completed answers. Each replay follows one of these recorded paths.
79.1% sampled Rank 1; 20.9% sampled another token
- Rank 179.1%
- Rank 210.6%
- Rank 33.9%
- Rank 41.8%
- Rank 51.1%
- Beyond top 53.5%
11,870 decisions · 500 answers · 50 questions. Longer answers contribute more decisions.
One token changes what comes next
Two recorded generations can reach the same prefix with the same next-token probabilities, then sample different tokens. Once that happens, each token becomes part of a different context, so the probabilities at the next step change too. Click a token to build the sentence. This example starts with two choices and has three recorded continuations after either one. Later steps show the choices available in our runs, with their original probabilities.
Recorded token paths
Loading recorded paths...
A single token choice can redirect the probabilities that follow. Repeating that process over many steps is how initially similar generations can diverge into different answers.