# Batch normalization (2015)

> Normalize each layer's inputs over the mini-batch, and deep networks train many times faster.

Page: https://mralbu.github.io/ai-datasets/p/batch-norm

## Key facts

- Title: Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
- Authors: Sergey Ioffe, Christian Szegedy
- Venue: ICML 2015
- Category: Foundations
- Paper: https://www.alphaxiv.org/abs/1502.03167

## Why it matters

Batch normalization allowed much higher learning rates and made networks far less sensitive to their initial weights, so very deep networks became routine; ResNet uses it after every convolution. The paper's explanation, "internal covariate shift", was later disputed, and why it works is still debated. Its relative, layer normalization, is used in every Transformer.

## The idea

Inside the network, rescale each feature to zero mean and unit variance using the statistics of the current mini-batch, then let the network learn its own scale and shift. At test time, use running averages instead of batch statistics.

## The result

An Inception network reached the same ImageNet accuracy in 14 times fewer training steps, and an ensemble reached 4.9% top-5 validation error, better than the reported accuracy of human raters.

## The data

- [ImageNet (ILSVRC) (2009)](https://mralbu.github.io/ai-datasets/d/imagenet.md): 1.28 million photos across 1,000 classes, the dataset behind the deep learning boom.
- [MNIST (1998)](https://mralbu.github.io/ai-datasets/d/mnist.md): 70,000 handwritten digits, 28×28 grayscale, 10 classes.

## Led to

- [DCGAN (2015)](https://mralbu.github.io/ai-datasets/p/dcgan.md)
- [Deep Speech 2 (2015)](https://mralbu.github.io/ai-datasets/p/deep-speech-2.md)
- [ResNet (2015)](https://mralbu.github.io/ai-datasets/p/resnet.md)

## Part of

- [Making deep networks trainable](https://mralbu.github.io/ai-datasets/t/deep-nets-trainable.md) (step 6 of 7)
