LayerNorm spends compute on both subtracting the layer mean and dividing by the standard deviation, yet Zhang and Sennrich show that mean subtraction is dispensable: normalizing solely by the root mean square preserves training stability and cuts runtime by 7% to 64% across tested models.
- Drop-in simplification: RMSNorm replaces LayerNorm’s mean and variance statistics with a single
RMS(a)division and a learned element-wise gaing, eliminating re-centering arithmetic and bias terms. - Transformer parity with modest speedup: On WMT14 English-German translation, an unnormalized Transformer fails to train (0 BLEU), while RMSNorm matches LayerNorm (
26.8 / 27.7vs.26.6 / 27.7SacreBLEU on Test14/Test17) and cuts step time by 6.9% (231svs.248sper 1k steps on V100). - Largest gains in recurrent models: Where LayerNorm slows GRU-based
RNNSearchby 67% over unnormalized baselines, RMSNorm cuts training time by 24.7% in TensorFlow, 34.0% in Theano, and 40.8% on MS COCO order-embeddings (63.9% with partialpRMSNorm). - Robustness without shift invariance: Removing mean centering did not hurt abnormal weight initialization (
mean = 0.2), where LayerNorm diverged onRNNSearchwhile RMSNorm stayed stable.
Why re-scaling matters more than re-centering
Standard LayerNorm computes two reductions over every activation vector a of length n: the mean mu and the variance sigma^2, then normalizes as (a_i - mu) / sigma * g_i. Zhang and Sennrich argue that re-centering invariance (making outputs insensitive to constant additive shifts) contributes little to optimization stability compared with re-scaling invariance.
RMSNorm drops mu completely and scales every coordinate by the root mean square RMS(a) = sqrt((1/n) * sum(a_i^2)). Whenever the activation mean happens to be zero, RMSNorm reduces identically to LayerNorm. Critically, the 1/sqrt(n) factor inside RMS(a) matters: replacing RMS with an unscaled Euclidean L2-norm degraded RNNSearch BLEU from 22.4 / 23.7 to 20.7 / 22.0 (Table 2), because scaling the sphere by sqrt(n) stabilizes magnitudes across layer widths.
Backpropagation through RMS(a) gives RMSNorm an implicit learning-rate adaptor: scaling inputs x leaves weight gradients dL/dW unchanged, while scaling the weight matrix by delta scales dL/dW by 1/delta, naturally damping exploding weight norms. The authors also test partial RMSNorm (pRMSNorm), which estimates RMS from only the first p% (typically 6.25%) of elements.
Measured speedups and quality across architectures
Because normalization takes a very different share of total FLOPs and kernel launches in recurrent versus self-attention networks, measured wall-clock speedups vary nearly tenfold across the paper’s benchmarks (averaged over three runs on TITAN X Pascal, V100, or RTX 2080 Ti):
Across all four tasks, accuracy matched or slightly exceeded LayerNorm. On MS COCO image-caption retrieval, RMSNorm reached 48.7 Recall@1 (caption) and 39.0 Recall@1 (image) compared with 47.9 and 38.4 for LayerNorm. On CIFAR-10 ConvPool-CNN-C, LayerNorm overfit with 10.49% test error versus 8.96% unnormalized, whereas RMSNorm generalized at 8.83% test error (though still behind BatchNorm at 8.25% and WeightNorm at 8.28%). Even without mean subtraction, hidden-state means inside the GRU stayed bounded (-0.40 to -0.74 across positions vs. -2.60 to -1.19 without normalization).
Caveats and builder takeaway
Three practical caveats separate the 2019 benchmarks from modern Transformer stacks. First, the headline 64% speedup came from pRMSNorm on a lightweight GRU order-embedding model in Theano; on the actual Transformer, RMSNorm saved 6.9% (231s vs. 248s), and on modern GPUs running fused CUDA/Triton kernels, memory bandwidth rather than arithmetic dominates normalization cost. Second, pRMSNorm frequently ran slower than full RMSNorm in TensorFlow and Theano because tensor slicing broke memory coalescing, and it regressed CIFAR-10 test error from 8.83% to 10.37%. Third, RMSNorm is not invariant to additive shifts (x + c), so architectures relying on strict centering should verify stability under their own initialization.
Today, RMSNorm pairs cleanly with Pre-Norm residual blocks and SwiGLU feed-forward layers in LLaMA, Mistral, and Qwen precisely because it simplifies kernel fusion and eliminates one reduction pass without sacrificing convergence. Measure fused kernel throughput on your target hardware, and skip pRMSNorm unless custom slicing kernels beat full-vector reductions.


