Parameter Space Inspector

QUESTION

How does an LLM write an answer?

One piece at a time. At every step the model gives odds for every possible next piece and one is drawn; most steps are near-certain, and a few forks with 60 to 70% confidence decide the direction. Measured on Qwen3-4B with the Generate view.

Updated 2026-10-16 · Markdown version

Short answer. A language model writes one token at a time. At each step it produces a probability for every token in its dictionary, one is drawn, and the process repeats with the new token appended. There is no plan held in advance; what looks like a plan is the sum of thousands of draws, most of them near-certain and a few of them close calls.

How it was measured

The Generate view records the odds at every step and draws them as a fork map: the token drawn on top, the alternatives below with their probabilities, and a colour on each token for how torn the model was. Clicking an alternative re-runs the model from that point, so you can watch the other future. Below the map, the view samples many continuations from one fork and compares them.

What it showed

  • In an ordinary answer, most steps have a top choice at 90% or more. The model is not choosing; it is completing.
  • A few forks, where the top choice has only 60 to 70%, decide the direction of the whole answer. Those are the words worth looking at.
  • An early choice closes off whole families of answers. At low creativity settings the text settles into ruts it cannot climb out of.

The figures are from Qwen3-4B. The measurement repeats on any GGUF model in a minute.

Why it matters

If you want to change what a model says, the forks are the levers; the near-certain steps are not. And if you are judging a model's answer, the fork map shows where it could have gone another way, which is more informative than the single path it took.

Questions people ask

Does the model plan ahead?

Not explicitly. Every token is drawn from the current odds. Structure appears because the odds at each step already reflect what earlier tokens committed the text to.

Does temperature change how the model thinks?

Temperature changes how the draw is made from the same odds. The Generate view shows the odds before the draw, so you can separate what the model believes from how adventurous the sampling is.

Why do two runs of the same prompt differ?

Because the draw is random at the forks. On near-certain steps both runs pick the same token; they diverge at a close call and never meet again.