The Confident Machine

An interactive AI explainable · VISxAI at IEEE VIS 2026

Contents

Part I: Foundations · Page 2 of 14

One Token at a Time

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

Answer so far

—

Next tokenProbability
A
99.85%
Forever
0.07%
An
0.05%
Inf
0.01%
Once
0.01%
Other
0.01%
This prototype uses recorded outputs rather than live model calls. All retained runs remain available, including incorrect ones.

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

  1. Rank 1
    79.1%
  2. Rank 2
    10.6%
  3. Rank 3
    3.9%
  4. Rank 4
    1.8%
  5. Rank 5
    1.1%
  6. Beyond top 5
    3.5%

11,870 decisions · 500 answers · 50 questions. Longer answers contribute more decisions.

The leading candidate was selected most often, but sampling also followed less likely paths.

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.