Practice free →
HomeClaudeaifoundationstransformer_attention › Residual connections and layer normalisation are…

Residual connections and layer normalisation are applied as

AAround the entire encoder but not its sub-layers
BLayerNorm(x + Sublayer(x)) around each sub-layer
COnly at the final output of each encoder stack
DBetween heads inside one multi-head attention block
Answer & Solution
Correct answer: B. LayerNorm(x + Sublayer(x)) around each sub-layer
Every sub-layer (attention or FFN) wraps with residual + layer norm: LayerNorm(x + Sublayer(x)). This is what makes deep stacks trainable without vanishing gradients.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions