Batch Normalization (BatchNorm) is a technique that normalizes the distribution of the input data to each layer during the training of a neural network. Specifically, it computes the mean and variance of the data within a mini-batch and uses them to scale and shift the data, which makes training more stable and speeds up convergence. Batch normalization was developed to mitigate the problem of "Internal Covariate Shift" that arises when training deep learning models. Addressing this problem improves training stability and performance, and the effect is especially pronounced in deep networks. Batch normalization computes the mean (μ) and variance (σ²) of the mini-batch and standardizes each data point so that the characteristics of the input to the next layer stay consistent.
Glossary
Batch Normalization
Updated:

Explanation
Where It Is Used
Batch normalization is applied to many kinds of networks and is used especially in the following situations. First, it can normalize the output of each convolutional layer in a convolutional neural network (CNN) to improve training stability. Normalizing at each time step of a recurrent neural network (RNN) also mitigates vanishing and exploding gradients. In deep fully connected layers, it stabilizes the input to the next layer and contributes to fast convergence. In addition, applying batch normalization when fine-tuning a pretrained model in transfer learning often makes training proceed smoothly. Used together with dropout, it is also possible to prevent overfitting while still benefiting from batch normalization. Batch normalization has become an essential component of many modern architectures and greatly improves training efficiency.
FAQ
- Q. What is batch normalization used for?
- A.
It is used to stabilize the input distribution to each layer, which stabilizes training and speeds up convergence.
- Q. How is the normalization performed?
- A.
The mean and variance are computed per mini-batch, the data is standardized, and then a scale (γ) and shift (β) are applied.
- Q. Where is it used?
- A.
It is used in a wide range of settings, including CNNs, RNNs, fully connected layers, transfer learning and in combination with dropout, and it plays an important role in many modern models.
