Autoregressive Model

Category: NLP / Language Processing

A generative model that produces output one element at a time, where each element is conditioned on all previously generated elements.

Full Explanation

Autoregressive models generate sequences by predicting one token at a time, with each prediction conditioned on the complete sequence of tokens generated so far. In NLP, this means the model generates text left-to-right, choosing each word based on all preceding words. The GPT family, LLaMA, and most large language models are autoregressive. During training, the model maximizes the likelihood of each token given its prefix. During inference, various decoding strategies (greedy, beam search, sampling) determine how predictions are converted into output sequences. Autoregressive models naturally handle variable-length generation and produce coherent long-form text. A key limitation is that generation is inherently sequential, as each token depends on previous ones, though techniques like speculative decoding can partially parallelize this process.

Related Terms

More in NLP / Language Processing

Explore More