[Paper Review] Root Mean Square Layer Normalization
RMSNorm replaces LayerNorm by normalizing the summed inputs with RMS, removing mean centering to gain faster training with comparable performance across tasks.
Layer normalization (LayerNorm) has been successfully applied to various deep neural networks to help stabilize training and boost model convergence because of its capability in handling re-centering and re-scaling of both inputs and weight matrix. However, the computational overhead introduced by LayerNorm makes these improvements expensive and significantly slows the underlying network, e.g. RNN in particular. In this paper, we hypothesize that re-centering invariance in LayerNorm is dispensable and propose root mean square layer normalization, or RMSNorm. RMSNorm regularizes the summed inputs to a neuron in one layer according to root mean square (RMS), giving the model re-scaling invariance property and implicit learning rate adaptation ability. RMSNorm is computationally simpler and thus more efficient than LayerNorm. We also present partial RMSNorm, or pRMSNorm where the RMS is estimated from p% of the summed inputs without breaking the above properties. Extensive experiments on several tasks using diverse network architectures show that RMSNorm achieves comparable performance against LayerNorm but reduces the running time by 7%~64% on different models. Source code is available at https://github.com/bzhangGo/rmsnorm.
Motivation & Objective
- Motivate the removal of mean centering in LayerNorm and test whether RMS-based re-scaling suffices for stable training.
- Propose RMSNorm and partial RMSNorm (p RMSNorm) as drop-in replacements for LayerNorm.
- Evaluate RMSNorm across NLP, vision, and cross-modal tasks to assess accuracy and speed gains.
Proposed method
- Normalize neuron inputs by dividing by RMS(a) and scaling with gain g (Equation 4).
- Drop in replacement interpretation relative to LayerNorm and analysis of invariance properties (Table 1).
- Derive gradients under RMSNorm to show stability and implicit learning-rate adaptation (Equation 8, Eq. 9).
- Introduce p RMSNorm estimating RMS from first p% of summed inputs (k = ceil(n*p)).
- Compare with LayerNorm, BatchNorm, and other baselines across multiple architectures and frameworks.
Experimental results
Research questions
- RQ1Does RMSNorm achieve comparable task performance to LayerNorm across diverse models and datasets?
- RQ2Can RMSNorm provide training speedups relative to LayerNorm while preserving accuracy?
- RQ3What are the invariance and gradient properties of RMSNorm under input/weight scaling?
- RQ4How does partial RMSNorm (p RMSNorm) trade off accuracy and efficiency?
- RQ5Is RMSNorm robust to different initializations and architectures (RNNs, CNNs, Transformers)?
Key findings
- RMSNorm achieves comparable BLEU scores to LayerNorm on RNNSearch with a 24.7% speedup in one setup and 25.9% in another (Table 2).
- RMSNorm provides a 7%–64% speedup over LayerNorm across models, architectures, and frameworks (abstract and experiments).
- In Transformer experiments, RMSNorm yields BLEU scores comparable to LayerNorm with a 7%–9% speedup (Table 5).
- Partial RMSNorm (6.25%) often yields similar performance to RMSNorm with notable but framework-dependent speed benefits (Table 2, Table 3).
- RMSNorm stabilizes activations and gradients without explicit input mean normalization, and can be a robust drop-in replacement for LayerNorm (discussion of invariance and robustness).
- Across tasks (machine translation, image-caption retrieval, CNN/CIFAR-10), RMSNorm consistently improves convergence speed versus Baseline and often matches or outperforms LayerNorm in efficiency (Tables 2–10).
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.