Autoregressive Generation
What is Autoregressive Generation?
In one sentence: Autoregressive generation is creating output one step at a time, where every new token depends on all the tokens before it.
The model cannot write the whole answer at once, because each word depends on the last. That is why answers stream gradually and why generation is harder to speed up than prefill.
What does Autoregressive Generation look like?
To write "I like cats," the model writes "I," then uses "I" to choose "like," then uses both to choose "cats."
Why does Autoregressive Generation matter?
It explains why long answers take time and why tricks like speculative decoding exist.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/autoregressive-generation/">Autoregressive Generation, explained simply</a> (The AI Math Dictionary)