AI GLOSSARY

Next-Token Prediction

An LLM generates by repeatedly predicting what should come next.

Simple explanation

Given prior tokens, the model assigns probabilities to possible next tokens. Repeating that prediction step can produce a response one token at a time.

Technical explanation

Given prior tokens, the model assigns probabilities to possible next tokens. Repeating that prediction step can produce a response one token at a time.

Example

Probability bars shift as context arrives, then the most suitable next token is selected.

Related lesson

Next-Token Prediction: visual lesson →

Browse all glossary terms →