Autoregressive decoder-only Transformer: Difference between revisions
Appearance
The decoder-only architecture: causal mask, autoregressive factorisation, and how it differs from encoder-only and encoder-decoder models — AI-assisted (RonzzWikiCowriter) (via create-page on MediaWiki MCP Server) |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category: | [[Category:Transformer]] | ||
An '''autoregressive decoder-only Transformer (ADoT)''' is a [[Transformer]] architecture that retains only the decoder stack, so that each position attends to itself and to earlier positions only. | |||
== Defining property: Causal restriction == | |||
See [[self-attention causal mask (Transformer)]]. | |||
== Characteristics == | |||
=== Training === | |||
$$ | $$ | ||
P_\theta(x_t\mid x_{1:t-1}), | P_\theta(x_t\mid x_{1:t-1}),\, t=1,\cdots,T, | ||
\ | |||
$$ | $$ | ||
can be calculated simultaneously if $\vec x=(x_1,\dots,x_T)$ is fully known. So training can be highly parallelised. | |||
== | === Inference === | ||
$$ | $$ | ||
| Line 22: | Line 23: | ||
$$ | $$ | ||
Hence ADoT is highly adapted for [[large language model (LLM)#Typical_implementation:_sequential_next_token_prediction|sequential next token prediction]]. | |||
Latest revision as of 08:47, 12 November 2026
An autoregressive decoder-only Transformer (ADoT) is a Transformer architecture that retains only the decoder stack, so that each position attends to itself and to earlier positions only.
Defining property: Causal restriction
See self-attention causal mask (Transformer).
Characteristics
Training
$$ P_\theta(x_t\mid x_{1:t-1}),\, t=1,\cdots,T, $$
can be calculated simultaneously if $\vec x=(x_1,\dots,x_T)$ is fully known. So training can be highly parallelised.
Inference
$$ P_\theta(x_1,\cdots,x_T)=\prod_{t=1}^{T}P_\theta(x_t\mid x_{1:t-1}), $$
Hence ADoT is highly adapted for sequential next token prediction.