RMSNorm and SwiGLU: Mathematical Foundations of Scaling-Invariant Normalization, Gated Activations, and FFN Architectures in Modern LLMs
This post details the mathematical shifts from LayerNorm to RMSNorm and ReLU to SwiGLU in modern LLMs. It explains hardware efficiency gains, gradient stability via Pre-LN, and bias elimination for optimized Transformer blocks.
