Learn AI Math

Next Token Probability

What is Next Token Probability?

In one sentence: Next token probability is the chance a model gives to a specific token being the next one in the text.

For each step of writing, the model estimates how likely every token is to come next. The token with the highest probability is the model's best guess, but sampling might still pick a less likely one. Very low probabilities for all options can mean the model is unsure.

What does Next Token Probability look like?

After "2 + 2 =," a good model gives the token "4" a probability close to 100%.

Why does Next Token Probability matter?

These probabilities show how confident a model is and help detect when it might be guessing.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.