Start learning →

Position-wise feed-forward networks in the Transformer are essentially

ATwo linear layers with ReLU between them
BA single bilinear layer over the entire batch
CA recurrent gated cell over neighbouring tokens
DA pure attention head with no parameters at all
Answer & Solution
Correct answer: A. Two linear layers with ReLU between them
FFN(x) = max(0, xW₁ + b₁)W₂ + b₂. The same weights apply at every position but differ across layers. d_model = 512, d_ff = 2048 in the base.
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