BatchNorm
A normalization technique used in deep learning to stabilize training dynamics. It computes the mean and variance of activations over a mini-batch and recenters and rescales the features, thereby suppressing abnormal gradients.
Core Facts
Timeline (last 90 days)
The core of BatchNorm is to standardize each layer's input, that is, to force its mean to 0 and its variance to 1 (followed by a learnable scaling).
During training, BatchNorm computes the mean and variance for each mini-batch and maintains a moving average, typically with momentum set to 0.1.
In practice it is often recommended to avoid placing Dropout directly after BatchNorm, or to switch to other regularization methods, in order to alleviate the conflict between the two.
Dropout and BatchNorm have inconsistent statistical baselines: during training BatchNorm statistics cover the activation distribution that includes Dropout noise, while at inference Dropout is off but BatchNorm still uses statistics estimated during training, causing the normalization results to shift at inference time.
The batch statistics during training introduce noise, acting as a regularization similar to Dropout.
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.
When the batch size is very small, the batch statistics are too noisy and BatchNorm's effectiveness degrades significantly, which directly conflicts with distributed training and memory-constrained scenarios.
Subsequent research (such as the 2018 work by Santurkar et al.) showed experimentally that BatchNorm still accelerates training even when covariate shift is artificially injected, while suppressing the shift does not necessarily bring acceleration.
Some views in Reddit discussions also hold that BatchNorm may act through multiple paths simultaneously—improved optimization landscape, implicit regularization, and gradient scale control—with the dominant path differing across tasks.
BatchNorm gradually fell out of favor because it is extremely inconvenient to use, but no one has yet given a universally convincing answer to the fundamental reason for its effectiveness.
15 more timeline events
All Facts (20)
Data mixture ratio refers to the proportion of different types of data in a pre-training dataset, and profoundly affects the distribution of a model's capabilities.
75%UnverifiedWith a fixed learning_rate, when batch_size scales linearly with the number of environments and num_epoch remains unchanged, the total displacement pushing the policy toward a new distribution in a single iteration may increase, manifesting as violent oscillation or even collapse of rewards in the early stages of training.
70%UnverifiedDropout and BatchNorm have inconsistent statistical baselines: during training BatchNorm statistics cover the activation distribution that includes Dropout noise, while at inference Dropout is off but BatchNorm still uses statistics estimated during training, causing the normalization results to shift at inference time.
50%UnverifiedDuring training, BatchNorm computes the mean and variance for each mini-batch and maintains a moving average, typically with momentum set to 0.1.
50%UnverifiedThe core of BatchNorm is to standardize each layer's input, that is, to force its mean to 0 and its variance to 1 (followed by a learnable scaling).
50%UnverifiedIn practice it is often recommended to avoid placing Dropout directly after BatchNorm, or to switch to other regularization methods, in order to alleviate the conflict between the two.
50%UnverifiedIf BatchNorm acts through multiple paths, then seeking a single "root cause" is itself a wrongly posed question.
50%UnverifiedBatchNorm gradually fell out of favor because it is extremely inconvenient to use, but no one has yet given a universally convincing answer to the fundamental reason for its effectiveness.
50%UnverifiedSome views in Reddit discussions also hold that BatchNorm may act through multiple paths simultaneously—improved optimization landscape, implicit regularization, and gradient scale control—with the dominant path differing across tasks.
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%UnverifiedWhen the batch size is very small, the batch statistics are too noisy and BatchNorm's effectiveness degrades significantly, which directly conflicts with distributed training and memory-constrained scenarios.
50%UnverifiedSome research points out that BatchNorm makes the loss surface smoother, allowing larger learning rates and improving training stability.
50%UnverifiedSubsequent research (such as the 2018 work by Santurkar et al.) showed experimentally that BatchNorm still accelerates training even when covariate shift is artificially injected, while suppressing the shift does not necessarily bring acceleration.
50%UnverifiedThe batch statistics during training introduce noise, acting as a regularization similar to Dropout.
50%UnverifiedBatchNorm standardizes activations during training using the mean and variance of the current mini-batch; when the batch size is B, the variance of the mean estimate is roughly proportional to 1/B, and at BS=1 the standardization becomes meaningless.
50%UnverifiedOn CIFAR-100 (ResNet-18), SALU achieves 83.42% Top-1 at BS=512 and still retains 76.23% Top-1 at BS=1, whereas standard BatchNorm collapses at BS=1.
50%UnverifiedIn data-parallel training, BatchNorm's mean and variance need to be aggregated via all-reduce across all devices, and each BN layer triggers cross-device communication in both the forward and backward passes.
50%UnverifiedUpdating normalization statistics often improves performance when handling corrupted images, but once a single class dominates the batch, this intervention instead severely harms accuracy.
50%UnverifiedPractical consensus tends toward: freeze the BN statistics with small datasets and small batches; when the data volume is sufficient and the batch size is large, allow the BN layers to update.
50%UnverifiedIf the BatchNorm layers are set to train mode during fine-tuning, the running mean and running variance will be re-estimated and overwritten by the statistics of the current mini-batch; when the batch size is small (such as 8 or 16), this causes the running statistics to drift drastically and destroys the learned normalization baseline, manifesting as loss oscillation or even a sharp drop in accuracy.
50%