COMPUTERVISION RESEARCHSCIENTIST

RESEARCHSCIENTIST

19^{th}APRIL2017

S. Ioffe, C. Szegedy. *Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift*. ICML, 2015.

What is **your opinion** on the summarized work? Or do you know related work that is of interest? **Let me know** your thoughts in the comments below or using the following platforms:

Update.A simple implementation of batch normalization in Tensorflow can be found in this snippet.Ioffe and Szegedy present batch normalization, a layer intended to normalize the input distribution to individual layers in deep networks in order to improve training and performance. The overall motivation can be stated as follows: In machine learning, it has been known that normalization and whitening operations, making sure that the input distribution during training and testing is approximately the same, improves training and performance. Ioffe and Szegedy argue that this also holds for individual subnetworks (and layers) within deep networks. However, in deep networks, the input distribution of a specific subnetwork changes during training due to changing parameters in "lower" subnetworks. To accommodate these changes, they propose to normalize the output of subnetworks over the current batch (in case of mini-batch training).

The used normalization scheme

$\hat{x}^{(k)} = \frac{x^{(k)} - E[x^{(k)}]}{\sqrt{\text{Var}[x^{(k)}]}}$

normalizes the output of a fully connected layer $x^{(k)}$ by the mean and standard deviation over the current mini-batch. Note that this approach includes two simplifications: it is prohibitive to normalize over the whole training set such that mini-batches are used instead; and decorrelation is computational expensive such that all variables are treated independently. The overall scheme is summarized in Algorithm 1. Note that this scheme is differentiable and backpropagation can, therefore, be performed as usual. The corresponding derivatives can be found in the paper or derived easily using the chain rule and Algorithm 1. Note that for testing, the normalization scheme of each batch normalization layer still follows the above equations but mean and standard deviation are estimated over the whole population.

Algorithm 1: The operations involved in a batch normalization layer.

For convolutional neural networks, Ioffe and Szegedy introduce what could be called convolutional batch normalization. The normalization scheme remains the same, but to follow the overall framework of convolutional neural networks, normalization is performed across spatial locations as well as across the mini-batch samples.

For practical use, Ioffe and Szegedy demonstrate the usefulness on MNIST and ImageNet. While the specific performance can be found in the paper, they provide some useful best practices to use batch normalization:

During experiments, they also visualize the input distributions for specific layers. I found this visualization to be quite interesting for monitoring training.