[KongchangAI]
Concept批量归一化 / Batch Normalization

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)

Nov 12

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).

Unverified50%
Nov 12

During training, BatchNorm computes the mean and variance for each mini-batch and maintains a moving average, typically with momentum set to 0.1.

Unverified50%
Nov 12

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.

Unverified50%
Nov 12

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.

Unverified50%
Nov 10

The batch statistics during training introduce noise, acting as a regularization similar to Dropout.

Unverified50%
Nov 10

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.

Unverified50%
Nov 10

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.

Unverified50%
Nov 10

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.

Unverified50%
Nov 10

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.

Unverified50%
Nov 10

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.

Unverified50%

15 more timeline events

All Facts (20)

Verified

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%
Unverified

With 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%
Unverified

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.

50%
Unverified

During training, BatchNorm computes the mean and variance for each mini-batch and maintains a moving average, typically with momentum set to 0.1.

50%
Unverified

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).

50%
Unverified

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.

50%
Unverified

If BatchNorm acts through multiple paths, then seeking a single "root cause" is itself a wrongly posed question.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

Some research points out that BatchNorm makes the loss surface smoother, allowing larger learning rates and improving training stability.

50%
Unverified

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.

50%
Unverified

The batch statistics during training introduce noise, acting as a regularization similar to Dropout.

50%
Unverified

BatchNorm 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%
Unverified

On 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%
Unverified

In 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%
Unverified

Updating normalization statistics often improves performance when handling corrupted images, but once a single class dominates the batch, this intervention instead severely harms accuracy.

50%
Unverified

Practical 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%
Unverified

If 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%

Source Articles