Pre-Norm vs Post-Norm › Visualizing the Difference
Michael BrenndoerferUpdated June 10, 20253 min read
Language AI HandbookAll chapters Part 15 of 67Transformer Blocks
Pre-Norm vs Post-Norm › Visualizing the DifferenceOne section · Sections in this chapter4 / 18 ↓
Sections in this chapter18
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The structural difference between pre-norm and post-norm becomes clearer when we visualize the computation graphs:
Out[9]:
Visualization

The diagrams reveal the fundamental difference. In post-norm, the residual enters the add block alongside the sublayer output, and layer normalization processes their sum. In pre-norm, the residual bypasses both layer normalization and the sublayer, creating a direct path from input to output.