What does it mean when LLMs are autoregressive?

Study for the Hugging Face Agent Certification. Prepare with interactive quizzes and multiple-choice questions, complete with explanations and hints. Ace your exam!

Multiple Choice

What does it mean when LLMs are autoregressive?

Explanation:
Autoregressive means the model builds text one token at a time, with each new token chosen from a distribution conditioned on all tokens that came before it. During training, it learns the probability of the next token given the preceding sequence, effectively P(next token | previous tokens). When generating, you start with a prompt, pick or sample the next token from that distribution, append it, and repeat to extend the text. This left-to-right, history-conditioned process lets the model produce fluent and coherent sequences because every prediction depends on the growing context. By contrast, approaches that predict many tokens in parallel aim for speed but don’t rely on the same step-by-step conditional generation.

Autoregressive means the model builds text one token at a time, with each new token chosen from a distribution conditioned on all tokens that came before it. During training, it learns the probability of the next token given the preceding sequence, effectively P(next token | previous tokens). When generating, you start with a prompt, pick or sample the next token from that distribution, append it, and repeat to extend the text. This left-to-right, history-conditioned process lets the model produce fluent and coherent sequences because every prediction depends on the growing context. By contrast, approaches that predict many tokens in parallel aim for speed but don’t rely on the same step-by-step conditional generation.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy