Pre-LayerNorm lets a Transformer train without warm-up
The original Transformer applies layer normalization after each residual addition, and it needs a learning-rate warm-up or training can fail. Start tiny and ramp up. Xiong et al. ask why, and find the answer in where the normalization sits.
In the Post-LN layout, layer norm comes between the residual blocks. In the Pre-LN layout, it moves "inside the residual connection," ahead of each sublayer, with one more layer norm before the final prediction.
At initialization the two layouts have different gradients. For the last feed-forward layer, the paper's Theorem 1 bounds the gradient norm by O(d√(ln d)) for Post-LN, with d the model width and no dependence on the number of layers L. For Pre-LN the bound is O(d√(ln d / L)). For L = 16 the depth factor is 1/√16 = 1/4, ignoring the constants hidden in the big-O. These are upper bounds, not a measured or exact gradient ratio.
What follows? Large gradients near the output mean a large learning rate can overshoot, which is the problem warm-up works around. The authors report that the Pre-LN Transformer trains without it: warm-up "is not critical anymore" for Pre-LN, and it trained faster than Post-LN in their experiments.
The result is about initialization and the layer-norm layout. A different optimizer or initialization can change what a model needs.