RMSNorm
A normalization method that scales only by the root mean square, without mean subtraction or bias addition; compared with LayerNorm it is computationally simpler while remaining stable in training.
Timeline (last 90 days)
In tasks such as variable-length sequences and autoregressive generation, the statistical assumptions along the batch dimension are not natural, and alternatives such as LayerNorm and RMSNorm have become the default choice in Transformer architectures.
The emergence of LayerNorm, GroupNorm, and RMSNorm is more an engineering-driven substitution than a product of theoretical derivation.
RMSNorm scales only by the root mean square, omitting mean centering, making computation more efficient and performing comparably in many large models.
The developer manually implemented four core LLaMa architecture components—RoPE, GQA, RMSNorm, and SwiGLU—without relying on an existing training framework.
RMSNorm replaces LayerNorm with root-mean-square normalization, making computation simpler and numerical stability during training better.
Residual RMSNorm performs root-mean-square normalization on the residual branch, and the normalization coefficient is determined by global statistics, so any premature rounding is amplified across the entire hidden state.
The method proposed in the study keeps selected intermediate results at FP32 precision in three key regions—RoPE (rotary position embedding), SwiGLU (activation function), and residual RMSNorm—and only rounds at their BF16 output stage.
The study conducted experiments on four Qwen series models, and the results show that simultaneously aligning the three regions of RoPE, SwiGLU, and residual RMSNorm can completely prevent training collapse under the default BF16 baseline.
FlyDSL covers core operations such as dense and grouped GEMM, fused multi-head attention (FMHA/Attention), MXFP8/MXFP4 scaled GEMM, RMSNorm and TopK.
The standard Transformer (Post-LN) performs normalization after residual addition, while many modern large models such as LLaMA switch to Pre-LN or RMSNorm, moving normalization to before the residual addition.
All Facts (13)
The emergence of LayerNorm, GroupNorm, and RMSNorm is more an engineering-driven substitution than a product of theoretical derivation.
50%UnverifiedRMSNorm scales only by the root mean square, omitting mean centering, making computation more efficient and performing comparably in many large models.
50%UnverifiedIn tasks such as variable-length sequences and autoregressive generation, the statistical assumptions along the batch dimension are not natural, and alternatives such as LayerNorm and RMSNorm have become the default choice in Transformer architectures.
50%UnverifiedThe developer manually implemented four core LLaMa architecture components—RoPE, GQA, RMSNorm, and SwiGLU—without relying on an existing training framework.
50%UnverifiedRMSNorm replaces LayerNorm with root-mean-square normalization, making computation simpler and numerical stability during training better.
50%UnverifiedResidual RMSNorm performs root-mean-square normalization on the residual branch, and the normalization coefficient is determined by global statistics, so any premature rounding is amplified across the entire hidden state.
50%UnverifiedThe method proposed in the study keeps selected intermediate results at FP32 precision in three key regions—RoPE (rotary position embedding), SwiGLU (activation function), and residual RMSNorm—and only rounds at their BF16 output stage.
50%UnverifiedThe study conducted experiments on four Qwen series models, and the results show that simultaneously aligning the three regions of RoPE, SwiGLU, and residual RMSNorm can completely prevent training collapse under the default BF16 baseline.
50%UnverifiedFlyDSL covers core operations such as dense and grouped GEMM, fused multi-head attention (FMHA/Attention), MXFP8/MXFP4 scaled GEMM, RMSNorm and TopK.
50%UnverifiedThe standard Transformer (Post-LN) performs normalization after residual addition, while many modern large models such as LLaMA switch to Pre-LN or RMSNorm, moving normalization to before the residual addition.
50%UnverifiedRMSNorm replaces LayerNorm, reducing computational overhead while maintaining effectiveness.
50%UnverifiedRMSNorm 相比传统 LayerNorm 去掉了均值中心化步骤,仅保留均方根归一化,计算更轻量
50%UnverifiedGemma adopts modern Transformer designs including Rotary Position Embedding (RoPE), GeGLU activation functions, and RMSNorm normalization.
50%