Glossary · Models & inference

Decoder

A component that maps a representation into an output. In an encoder-decoder transformer, the decoder uses masked self-attention and cross-attention to generate outputs. Decoder-only language models instead generate from a single causal stack.

Related terms

Browse the learning paths to see this term in context — every lesson is free to read.