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
Choosing a Token and Looping

The Loop Closes

3 / 4
Now the crucial part. The sequence with the new token at the end does not just sit there. It goes back into the model as input.
0:00 / 0:00

After a token is selected and appended, the extended sequence is fed back into the model as input. The model computes a fresh probability distribution for the next position, conditioned on everything that came before, including the token just added. That new distribution is used to select another token, which is appended, and the cycle repeats. This is the autoregressive loop: each output token becomes part of the input for the next prediction.

Previous3 / 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