Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Autoregressive

What is autoregressive?

Generating a sequence one token at a time, feeding each new token back in as input for the next.

Where it is taught

From logits to language. A trained model only ever outputs a distribution over the next token. Writing a paragraph means sampling from it over and over.

What the lesson leaves you with

  • A language model outputs one distribution: the next token given the tokens so far.
  • Text is generated by sampling a token, appending it, and running the model again.
  • Temperature, top-k and top-p control the balance between predictable and varied output.
Open the lesson

Questions

What is autoregressive?
Generating a sequence one token at a time, feeding each new token back in as input for the next.
Where is autoregressive used in AI?
A trained model only ever outputs a distribution over the next token. Writing a paragraph means sampling from it over and over.
What is the key idea to remember about autoregressive?
A language model outputs one distribution: the next token given the tokens so far.
Where can I learn autoregressive step by step?
In the lesson “From logits to language” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Attention
  • Attention head
  • Byte-pair encoding
  • Causal mask
  • Context length
  • Layer normalisation