Why BatchNorm helps: two copies of one network, one normalized

The same sigmoid network, three hidden layers of 16, trained side by side on two spirals with the same minibatches: once plain, once with a BatchNorm before every sigmoid (Ioffe & Szegedy 2015). It starts training on its own; then try a learning rate of 0.1 or 10.

1. One hidden unit’s input to its sigmoid, over training (median and 15–85% band over the training set, as in Ioffe & Szegedy’s Fig. 1)

Without BatchNormThe 15th, 50th and 85th percentiles of one last-layer unit's input to its sigmoid, over the whole training set, plotted against training steps, for the plain network. With BatchNormThe same percentiles for the same unit of the batch-normalized network. Training lossTraining loss of both networks against steps, on a log scale.
learning rate unit

2. The range of learning rates that work

Learning-rate sweepTraining loss after 800 steps against learning rate on a log axis, for the plain and the batch-normalized network; the batch-normalized curve is low across a much wider range.

3. A normalized layer does not care how big its weights are

Loss against weight scaleTraining loss when the second layer's weights are multiplied by a factor from a quarter to four: flat for the batch-normalized network, changing for the plain one. Gradient against weight scaleThe size of the gradient on the second layer's weights against the same factor, on log-log axes: for the batch-normalized network a line of slope minus one. Weight norm over trainingThe norm of the batch-normalized network's second-layer weights against training steps.