Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift

  • Problem Layer inputs keep shifting as earlier layers train, which slows SGD and requires careful tuning of learning rates and initialization.
  • Method Batch Normalization standardizes each activation with its mini-batch mean and variance, applies learned scale and shift parameters, and switches to population statistics at inference.
  • Results BN-x5 reached Inception's 72.2% single-crop validation accuracy in 14 times fewer training steps.

Why layer inputs drift during training

Stochastic gradient descent updates all parameters from gradient estimates on mini-batches, but the inputs each layer receives depend on the parameters of every layer below it. A small change in an early layer therefore gets amplified as the network gets deeper, and the later layers must keep adapting to a distribution that keeps moving. The authors call the change in the distribution of internal activations during training internal covariate shift, and they argue that reducing it should speed up training.

The effect is sharpest for saturating nonlinearities. For a sigmoid, the derivative shrinks as the magnitude of the input grows, so drifting inputs that fall into the flat region slow the gradient flow to earlier layers. The usual remedies are ReLU, careful initialization and small learning rates, whereas keeping the input distribution of each nonlinearity stable addresses the cause directly.

The proposed remedy, Batch Normalization, inserts a normalization step into the model architecture. It fixes the means and variances of layer inputs, is computed on each training mini-batch, and reduces the dependence of gradients on parameter scale. Batch Normalization also regularizes the model and can reduce the need for Dropout, and it makes saturating nonlinearities usable again by keeping units out of the saturated regime.

Normalizing each activation over a mini-batch

Whitening all layer inputs jointly needs a covariance matrix and its inverse square root, which is costly and not everywhere differentiable. The authors simplify this by normalizing each scalar feature on its own, so that each dimension has zero mean and unit variance.

The statistics come from the current mini-batch, so each step needs only the batch mean and batch variance of each activation, not a pass over the whole training set. Because the variance is taken per dimension, a mini-batch smaller than the number of activations does not produce a singular covariance estimate.

For one activation over a mini-batch of m values, the transform subtracts the batch mean from each value, divides by the square root of the batch variance plus a small constant, and then applies the learned scale and shift. \[\mu_B=\frac{1}{m}\sum_{i=1}^{m}x_i,\quad \sigma_B^2=\frac{1}{m}\sum_{i=1}^{m}(x_i-\mu_B)^2,\quad \hat x_i=\frac{x_i-\mu_B}{\sqrt{\sigma_B^2+\epsilon}},\quad y_i=\gamma\hat x_i+\beta\] The constant \(\epsilon\) is added to the mini-batch variance for numerical stability.

The scale \(\gamma\) and shift \(\beta\) are learned for each activation together with the network weights. Setting \(\gamma\) to the square root of the variance and \(\beta\) to the mean would recover the original activation, so the transform can represent the identity.

Each output depends on the other examples in the mini-batch, not only on its own input. Ignoring \(\epsilon\), the normalized values have mean 0 and variance 1 when the mini-batch elements come from the same distribution.

Backpropagation and inference

Backpropagation passes the gradient of the loss through the normalized values and through the batch mean and variance, so the statistics take part in the gradient computation. The gradients with respect to the learned parameters are the sums of the upstream gradients weighted by the normalized values, and the sum of the upstream gradients alone for the shift.

\[\frac{\partial \ell}{\partial \gamma}=\sum_{i=1}^{m}\frac{\partial \ell}{\partial y_i}\,\hat x_i,\qquad \frac{\partial \ell}{\partial \beta}=\sum_{i=1}^{m}\frac{\partial \ell}{\partial y_i}\]

At inference the output should depend only on the input, so the mini-batch statistics are replaced by population statistics. The mean is the average of the batch means over training mini-batches, and the variance is the unbiased estimate m/(m-1) times the average of the batch variances. \[\hat x=\frac{x-E[x]}{\sqrt{\mathrm{Var}[x]+\epsilon}}\]

Once these statistics are fixed, normalization is a linear map of each activation, and it can be merged with the scale and shift into one affine transform. \[y=\frac{\gamma}{\sqrt{\mathrm{Var}[x]+\epsilon}}\,x+\left(\beta-\frac{\gamma\,E[x]}{\sqrt{\mathrm{Var}[x]+\epsilon}}\right)\]

Placing the transform in convolutional layers

A layer is written as an affine map followed by a nonlinearity, \(z=g(Wu+b)\), and the transform is inserted on the affine output \(x=Wu+b\), before \(g\). The layer input is usually the output of another nonlinearity, so its distribution keeps changing in shape, whereas \(Wu+b\) tends to be more symmetric and less sparse, which makes its normalized distribution more stable.

Because the mean subtraction cancels the bias, the bias \(b\) can be dropped, and the role of the bias passes to \(\beta\). \[z=g(BN(Wu))\]

In convolutional layers the statistics are pooled over the mini-batch and all spatial positions of a feature map, so for a mini-batch of size m and maps of size p by q the effective size is m' = m p q. One pair of \(\gamma\) and \(\beta\) is learned per feature map rather than per activation, and at inference the same linear transform is applied to every activation in a feature map.

Scale, gradients and regularization

For a scalar a, the authors write BN(Wu) = BN((aW)u), so the normalized output does not depend on the weight scale, and the layer Jacobian with respect to u is unchanged. The identity assumes the constant \(\epsilon\) is negligible. With \(\epsilon\) in the denominator, the variance scales with a squared, and that is not the same as multiplying the normalized value by a.

Large learning rates can grow the weights, and with normalization a growing scale no longer amplifies the gradient through the layer. Larger weights lead to smaller gradients, and normalization stabilizes the growth of the parameters.

The authors conjecture that normalization keeps the singular values of the layer Jacobians near 1, which is considered beneficial for training. Their argument assumes that the normalized inputs and outputs are Gaussian and uncorrelated and that the layer map is linear, and they note that none of these conditions holds exactly. \[JJ^T=I\]

A training example is normalized together with the other examples in its mini-batch, so its output varies with the batch it is in. The authors found this variation advantageous for generalization, and they report that Dropout can be removed or reduced in strength in a batch-normalized network.

Activation distributions and accuracy on MNIST

The first experiment classifies MNIST digits from 28x28 binary images with a network of three fully-connected hidden layers of 100 sigmoid activations each. The output layer has 10 activations with cross-entropy loss, the network was trained for 50000 steps, and each mini-batch had 60 examples.

Batch Normalization is added to each hidden layer, and the comparison is between this baseline and the batch-normalized version, not a state-of-the-art MNIST model. The figure shows held-out test accuracy against training steps, and the batch-normalized network has the higher test accuracy; the paper gives no numeric accuracy for this experiment.

To look at the cause, the authors tracked one typical sigmoid input from the last hidden layer at the 15th, 50th and 85th percentiles. In the original network its mean and variance change significantly over training, while in the batch-normalized network the distribution is much more stable.

Speeding up an Inception variant on ImageNet

The experiments use a new Inception variant trained on the 1000 classes of ImageNet, in which each 5x5 convolution is replaced by two stacked 3x3 convolutions with up to 128 filters. The network has 13.6·106 parameters and no fully-connected layers apart from the top softmax, and it is trained with SGD with momentum and a mini-batch size of 32.

Single-crop validation accuracy @1 is the metric throughout. The Inception architecture that the experiments start from is laid out in the appendix figure.

In every variant Batch Normalization is applied to the input of each nonlinearity, while the rest of the architecture is kept. The accelerated variants also raise the learning rate, remove Dropout, reduce the L2 weight regularization by a factor of 5, decay the learning rate six times faster, remove Local Response Normalization, use within-shard shuffling and reduce photometric distortions.

These changes are applied together, so the paper isolates a separate effect only for the shuffling step.

Inception needed 31.0·106 training steps to reach 72.2%. BN-Baseline needed 13.3·106 steps to reach 72.2% and reached a maximum of 72.7%, and BN-x5 needed 2.1·106 steps with a maximum of 73.0%. BN-x5 needs 14 times fewer steps than Inception to reach 72.2%.

Batch Normalization alone, in BN-Baseline, matches the accuracy of Inception in less than half the number of training steps. BN-x5-Sigmoid reached 69.8% maximum accuracy, while Inception with sigmoid nonlinearity never achieved better than 1/1000 accuracy without Batch Normalization. Within-shard shuffling of the training data gave about a 1% improvement in validation accuracy, which the authors connect to Batch Normalization acting as a regularizer.

Ensemble results against earlier ImageNet bests

The ensemble has 6 networks, each based on BN-x30 and modified in some of the following ways: increased initial weights in the convolutional layers, Dropout with a probability of 5% or 10% instead of 40%, and non-convolutional per-activation Batch Normalization in the last hidden layers. Each network reached its maximum accuracy after about 6·106 training steps, and the ensemble prediction is the arithmetic average of the class probabilities of its constituent networks.

In the comparison table the BN-Inception single crop has 7.82% top-5 error, the BN-Inception multicrop with 144 crops has 5.82%, and the BN-Inception ensemble with 6 models has 4.9% on the 50000-image validation set.

How it differs from the standardization layer

The authors note a similarity to the standardization layer of Gülçehre and Bengio (2013), though the two methods have different goals and perform different tasks. Batch Normalization aims at a stable distribution of activations and is applied before the nonlinearity, while the standardization layer is applied to the output of the nonlinearity, which yields sparser activations.

The authors report that they did not observe sparse nonlinearity inputs in their large-scale experiments, with or without Batch Normalization.

Batch Normalization also has a learned scale and shift that let the transform represent the identity, handles convolutional layers, gives deterministic inference that does not depend on the mini-batch, and normalizes each convolutional layer.

Limitations

The precise effect of Batch Normalization on gradient propagation is not established, and the authors describe it as an area of further study. The singular-value argument remains a conjecture built on Gaussian, uncorrelated and linear assumptions.

The MNIST network is deliberately modest, and the authors say the architecture does not reach state-of-the-art MNIST performance. The activation evidence is one typical sigmoid activation from the last hidden layer.

The ImageNet speedups come from several changes applied together to an Inception variant, and only the shuffling step has its own reported effect of about 1%. The ensemble test error comes from the ILSVRC test server, while the 4.9% figure is on the 50000-image validation set.

Applications to Recurrent Neural Networks, domain adaptation and further theoretical analysis are left as future work.

Paper info

Authors
Sergey Ioffe, Christian Szegedy
Venue
arXiv · Preprint
First published
2015-2-11
Added
2026-10-20
Updated
2015-3-2
Version
v3
arXiv
1502.03167
Category
cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Sergey Ioffe, Christian Szegedy (2015). Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. arXiv:1502.03167v3. https://arxiv.org/abs/1502.03167v3

BibTeX
@misc{ioffe2015batch,
  title = {{Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift}},
  author = {Sergey Ioffe and Christian Szegedy},
  year = {2015},
  eprint = {1502.03167},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.03167v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up