What is the difference between pre-norm and post-norm transformer blocks?
Reveal the answer and explore the explanation.
08HardWhat is the difference between pre-norm and post-norm transformer blocks?
Answer
Hard
What is the difference between pre-norm and post-norm transformer blocks?
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 ↗