Next-Token Prediction

Also known as: Autoregressive Language Modeling

Next-token prediction trains a model to estimate $P(x_t \mid x_{<t})$ for each position. The training loss is usually average cross-entropy (negative log-likelihood) under teacher forcing.

Role in LLMs

It is the core pretraining (and continued-pretraining) objective for causal / autoregressive LLMs. At scale it induces syntax, facts, and in-context learning — even though the label at each step is just “the next token.”

Caveats

The objective does not directly optimize helpfulness, truthfulness, or tool use; those come from SFT and preference/RL stages. Metrics like perplexity track NTP quality but not product quality alone.

← Back to AI Glossary