Autoregressive

Also known as: Autoregressive Model, AR

An autoregressive model builds a sequence one step at a time, and each new token is predicted only from what came before it—not from the future.

For language models that means: to predict token $t+1$, use tokens $1,\ldots,t$ only. Decoder-only LLMs (GPT-style) are autoregressive; a causal mask on self-attention enforces that rule during training so the model cannot cheat by peeking ahead. The French decoder in encoder–decoder MT is also autoregressive when generating.

Train and serve

Autoregressive factorization $p(x)=\prod_t p(x_t\mid x_{<t})$ is what makes left-to-right LLMs both powerful and latency-sensitive at long generations.

← Back to AI Glossary