Transformers · Level 3 of 5
Transformer
A neural architecture built around attention and feature transformations.
Transformers can be encoder-only, decoder-only, or encoder-decoder designs.
Listen to the definition and example
Audio transcript
Transformer. A neural architecture built around attention and feature transformations. Transformers can be encoder-only, decoder-only, or encoder-decoder designs. For example: A text model relates tokens through stacked attention blocks.
Explore this concept
A useful analogy
A group of tokens repeatedly exchanging selected information and updating their own notes.
Why it matters
This helps you trace how token representations exchange and transform information.
Technical detail
A block typically combines attention, a positionwise feedforward transformation, residual connections, and normalization. Masking determines which positions can exchange information.
Common misconception
Transformers are not limited to text or necessarily autoregressive.
Related concepts
Quick recall question
Try answering before looking back at the definition.