BatchNorm vs LayerNorm vs GroupNorm
Normalization techniques compared, plus InstanceNorm
Sergey Ioffe, Jimmy Lei Ba, Yuxin Wu, Dmitry Ulyanov
5
Concepts
6
Formulas
5
Demos
Paper Overview
Normalization layers are essential building blocks in modern deep learning. They stabilize training, enable higher learning rates, and reduce sensitivity to initialization — but different normalization types operate over different dimensions, making them suited for different architectures.
Batch Normalization (2015) normalizes across the batch dimension, making it ideal for CNNs with large batches. Layer Normalization (2016) normalizes across features per sample, becoming the standard for Transformers. Group Normalization (2018) and Instance Normalization (2016) offer alternatives for small-batch and style transfer scenarios.
Understanding which dimensions each method normalizes — and why that matters — is the key to choosing the right normalization for your architecture.
Chapter Roadmap
Click any topic to jump in
Covariate Shift
Layer input distributions drift during training, causing slow convergence and init sensitivity.
BatchNorm
Normalizes per channel across batch and spatial dims — best for CNNs with large batches.
LayerNorm
Normalizes per sample across all features — batch-independent, standard in Transformers.
GroupNorm / InstanceNorm
Interpolates between LN and per-channel normalization — used in detection and style transfer.
Choosing Norm
Architecture and batch size determine the best choice; RMSNorm is the modern LLM default.
Concept by concept
5 sections, in reading order.