Skip to content
Learn Motion
ExploreHow it worksMembership
Log in
Learn Motion

How ChatGPT Writes One Token at a Time

1From Your Words to Tokens2Predicting the Next Token3Choosing a Token and Looping4Why the Answer Reads as Coherent Text
Why the Answer Reads as Coherent Text

Each Token Narrows What Comes Next

1 / 4
The loop just appends one token at a time, so where does the coherence come from? Start with the first token of a sentence, and almost anything could follow it.
0:00 / 0:00

Every token appended to the sequence becomes part of the context for the next prediction. Early in a sentence, many continuations are plausible; as tokens accumulate, most of those branches stop being sensible and the remaining candidates cluster around fewer options. Coherence is therefore not planned in advance — it emerges because each new token constrains the next distribution, and the constraint compounds over the whole answer.

Previous1 / 4Next

Learn Motion

Generate a course. Learn it properly.

Operated by Wuhan Daoyin Technology Co., Ltd.

Contact: [email protected]
Privacy PolicyTerms of Service

© 2026 Learn Motion