FundamentalsUpdated 2026-10-24

Next-Token Prediction

The training objective of predicting the next token given the preceding text.

#基础#训练目标#语言模型

In plain language

LLMs appear to answer questions, but the underlying objective is maximizing the probability of the next token given context. This simple, scalable objective forces models to learn grammar, factual associations and some reasoning patterns. It also explains limitations: the model optimizes for continuing like the training data, not for truth or logical necessity. Hallucination, overconfidence and sycophancy partly follow from this objective and the data distribution.

Example

Given “the capital of France is,” the model assigns the highest probability to “Paris,” but it does not know the statement is true in the world.

Recommended tools

Related terms