Autoregressive Model
A model that generates a sequence step by step: each new token depends on all previously generated tokens. This is how modern LLM work.
How It Works
- The model receives the beginning of the text.
- Predicts the probabilities of the next token.
- Chooses the token and adds it to the text.
- Repeats until it reaches a stop-token or a limit.
The text grows left to right, word by word, as in human speech.
Relation to Training
Such a model is trained on the task of next-token prediction: it is given a fragment and asked to predict the next word. From this simple rule emerges the ability to write coherently and reason.
Difference from Non-Autoregressive Models
There are models that generate all tokens at once (for example, some translation systems). They are faster but handle the coherence of long texts worse. The autoregressive approach is slower but offers higher quality.