Why does an LLM write one token at a time?
8 August 2026 | 3 min read | Updated 13 August 2026
An LLM usually does not reveal a finished answer in one go. It produces a small piece, adds it to the text, then continues.
What the model sees
Guess one token
Add “Paris” to the sentence, then guess again.
The model sees small pieces
You see the sentence "How are you?" A text model first handles it as small pieces called tokens. A token might be a short word, part of a longer word or punctuation. The exact split depends on the model.
You do not need to count tokens while chatting. Just remember that tokens are the pieces the model reads and writes.
A sentence becomes tokens
Text is cut into model-sized pieces
Token 1
Token 2
Token 3
One guess becomes a sentence
Suppose the input ends with "The capital of France is". The model scores possible next tokens. "Paris" should score strongly. "Rome" and "banana" should score lower.
The system selects a token, adds it to the text and repeats. The answer grows piece by piece until the system stops generation.
The answer grows
Every new piece becomes part of the next guess
The capital of France is
The capital of France is Paris
The capital of France is Paris.
An early mistake can pull the rest with it
The model is not pulling a finished answer from a filing cabinet. It builds the answer as it goes. Once a piece has been produced, the next prediction has to continue from it.
This also helps explain made-up answers. Ask for a recipe for "strawberry-garlic pizza" and the model knows what recipes usually look like. It can build a convincing recipe even if it has no evidence that the dish exists.
Two possible paths
The first turn changes the road ahead
Strong first piece
later pieces have a better foundation
Weak first piece
later pieces continue the mistake
Prediction is the engine, not the whole car
Next-token prediction is the central loop behind many text-generating LLMs. Real products may add reasoning methods, search, tools, safety checks and other software around that loop.
The loop is powerful, but plausibility is not proof. Important answers still need reliable sources or checks.
About the author
I’m Rama, an AI engineer and product builder. I turn complicated AI ideas into explanations and systems that people can understand, trust and use.
More about meRead next
When your AI chat needs a fresh page
How old messages can get in the way, and how to know when to start again.
Continue reading →