Start learning →

The Transformer architecture replaces recurrence and convolutions with

AStacked self-attention and feed-forward layers
BA single dense layer per token in the sequence
CHand-crafted phrase-structure grammar rules
DA recurrent neural network at every layer
Answer & Solution
Correct answer: A. Stacked self-attention and feed-forward layers
The Transformer is built entirely from stacked self-attention sub-layers and position-wise feed-forward sub-layers, plus residual connections and layer normalisation. No recurrence, no convolution.
Practise this question with Quill — Claude →

Keep practising Transformer Attention

Browse all Transformer Attention questions for Claude, or explore more Aifoundations topics.

Start a Transformer Attention lesson →
Related questions