Skip to main content
Models

Autoregressive Model

An autoregressive model generates output one token at a time, where each new token is conditioned on every previous token in the sequence, producing text by repeated next-token prediction.

AIDOLS Research Team · Editorial standards

Full definition

During training, an autoregressive language model learns to predict token t+1 given tokens 1..t, using a causal attention mask so future tokens cannot leak. At inference, generation is sequential: sample, append, repeat. GPT, Claude, Llama, Mistral, and Gemini-Pro are all autoregressive decoder-only transformers. The sequential nature is the root cause of inference latency — speculative decoding and continuous batching exist precisely to mitigate it.

Why it matters

Autoregressive generation defines the latency profile of every chat product. Output length and tokens-per-second drive both user experience and cost. Buyers comparing two LLM APIs at the same per-token price can still see different bills, because tokenizers split the same text into different numbers of tokens and models differ in how long their answers run.

Example

When ChatGPT writes a 500-token answer, it runs 500 forward passes through the network — each pass conditioned on the prompt plus all previously generated tokens.

Next steps

More models terms

Source & further reading

Primary source: Radford et al. — "Language Models are Unsupervised Multitask Learners" (OpenAI GPT-2) (2019).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/autoregressive-model/.