Decoder (Dec)

The part of an AI model that generates output one piece at a time, using its own previous outputs and (in some models) a separate understanding of the input.

Technically: A Transformer stack that generates output tokens one at a time using causal (masked) self-attention — each position attends only to preceding positions, preventing future leakage. In encoder-decoder models a cross-attention sublayer also attends to encoder representations; in decoder-only models the context window is the only conditioning signal. Latency scales with output.

Category: Model Architectures

Related ideas