Practice free →
HomeClaudeaifoundationstransformer_attention › Position-wise feed-forward networks in the Trans…

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.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions