[Paper Review] Why Deep Transformers are Difficult to Converge? From Computation Order to Lipschitz Restricted Parameter Initialization
This paper identifies that the computation order of residual connections and layer normalization in deep Transformers significantly impacts optimization, and proposes a Lipschitz-restricted parameter initialization method that enables convergence in deep Transformers (up to 24 layers) even with the original computation order—overcoming a key limitation in prior work that required architectural changes or focused only on deep encoders.
The Transformer translation model employs residual connection and layer normalization to ease the optimization difficulties caused by its multi-layer encoder/decoder structure. While several previous works show that even with residual connection and layer normalization, deep Transformers still have difficulty in training, and particularly a Transformer model with more than 12 encoder/decoder layers fails to converge. In this paper, we first empirically demonstrate that a simple modification made in the official implementation which changes the computation order of residual connection and layer normalization can effectively ease the optimization of deep Transformers. In addition, we deeply compare the subtle difference in computation order, and propose a parameter initialization method which simply puts Lipschitz restriction on the initialization of Transformers but can effectively ensure their convergence. We empirically show that with proper parameter initialization, deep Transformers with the original computation order can converge, which is quite in contrast to all previous works, and obtain significant improvements with up to 24 layers. Our proposed approach additionally enables to benefit from deep decoders compared to previous works which focus on deep encoders.
Motivation & Objective
- To investigate why deep Transformers (beyond 12 layers) fail to converge despite residual connections and layer normalization.
- To analyze the impact of computation order—specifically, the sequence of residual connection and layer normalization—on optimization stability.
- To develop a parameter initialization method that enforces Lipschitz constraints to stabilize training in deep Transformers.
- To enable deep decoder training, which previous works have largely overlooked, by ensuring convergence with minimal architectural changes.
Proposed method
- Empirically demonstrate that changing the computation order—applying layer normalization before the residual connection—improves training stability in deep Transformers.
- Propose a novel parameter initialization scheme that imposes a Lipschitz constraint on the model weights to control gradient flow and improve optimization.
- Formulate the Lipschitz-restricted initialization by constraining the spectral norm of the weight matrices in the feed-forward and self-attention sublayers.
- Evaluate the proposed method on machine translation benchmarks using both deep encoders and deep decoders, comparing convergence and performance with standard initialization.
- Use ablation studies to isolate the effect of computation order and initialization, showing that proper initialization can restore convergence even with the original order.
- Analyze gradient dynamics and loss trajectories to validate that the Lipschitz constraint stabilizes training in deep networks.
Experimental results
Research questions
- RQ1How does the computation order of residual connection and layer normalization affect the optimization of deep Transformers?
- RQ2Can a Lipschitz-restricted parameter initialization method stabilize training in deep Transformers without modifying the computation order?
- RQ3Does the proposed initialization enable convergence in deep decoders, which are less explored than deep encoders in prior work?
- RQ4To what extent can the model depth be increased (e.g., up to 24 layers) with the proposed method while maintaining convergence and performance?
Key findings
- A simple change in computation order—applying layer normalization before the residual connection—significantly improves training stability in deep Transformers.
- With the proposed Lipschitz-restricted initialization, deep Transformers with up to 24 layers converge successfully even when using the original computation order.
- The method enables effective training of deep decoders, which previous works have largely failed to achieve, demonstrating broader applicability beyond deep encoders.
- The proposed initialization achieves significant performance gains on machine translation benchmarks, outperforming standard initialization and prior deep Transformer approaches.
- Empirical analysis shows that the Lipschitz constraint stabilizes gradient flow and reduces training loss variance, especially in deeper architectures.
- The method achieves convergence where standard initialization fails, even in models with more than 12 layers, resolving a long-standing training difficulty in deep Transformer architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.