LGCLMLOct 16, 2019

Root Mean Square Layer Normalization

arXiv:1910.07467v11654 citationsHas Code
Originality Incremental advance
AI Analysis

This work addresses efficiency issues in training deep networks, particularly for RNNs, by offering a faster normalization method, though it is incremental as it builds on LayerNorm.

The paper tackles the computational overhead of LayerNorm in deep neural networks by proposing RMSNorm, which removes re-centering invariance and uses root mean square for normalization, achieving comparable performance while reducing running time by 7% to 64% across various models.

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.

Code Implementations8 repos

Data from Papers with Code (CC-BY-SA-4.0)

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes