QUESTION 8 OF 10

What is the difference between pre-norm and post-norm transformer blocks?

Reveal the answer and explore the explanation.

08
Hard

What is the difference between pre-norm and post-norm transformer blocks?

Answer
Answer

Pre-norm normalizes inputs before a sublayer, while post-norm normalizes after adding the residual; optimization behavior differs.

Practical example

Compare residual paths in deep transformer stacks.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As