mej7.comHow AI Works

Next-token prediction

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

The usual pretraining objective: given previous tokens, score the probability of the next one. Generation repeats this one token at a time.

In one paragraph. The usual pretraining objective: given previous tokens, score the probability of the next one. Generation repeats this one token at a time.

Used in

Related terms

Full glossary