What is Next-token prediction?
In Turkish: Sonraki token tahmini · Topic: Models and training
The task of estimating, from the text so far, which small unit of text (token) is likely to come next. It is the core training objective of large language models.
How does it work?
The model reads text as a sequence of tokens and assigns a probability to every token in its vocabulary. During training the real next token is known, so each wrong guess nudges the model's internal weights in a better direction. This is repeated across enormous collections of text. At use time, one token is chosen, appended to the sequence, and the same step runs again. A reply therefore emerges one token at a time.
Why does it matter?
Chatbots, coding assistants and summarization tools are mostly built on this simple objective. It also explains why models can sound fluent yet be wrong: the goal is to produce a plausible continuation, not to verify facts. It is a useful starting point for understanding the “hallucination” debate in AI news.
Example
After the phrase “The weather today is very”, a model gives high probability to words like “nice” or “hot” and very low probability to a word like “book”.
FAQ
Does the model really only predict the next piece of text?
For pretraining, yes, that is the basic task. To do it well, though, the model has to absorb grammar, facts and reasoning patterns. Many models are also fine-tuned afterwards with human feedback.
Is a token the same as a word?
No. A token can be a whole word, part of a word, a punctuation mark or a space. The tokenizer decides how text is split.