Machine learning

batch normalizationBN

批归一化

Batch normalization standardizes features using the mean and variance estimated from a training minibatch, then applies a learned scale and offset to each normalized feature.

In a convolutional network, batch normalization typically computes separate statistics for each channel over the images and spatial positions in a minibatch. It centers the channel values and divides by a stabilized standard deviation. A learned scale and offset then give the network control over the range and baseline of that channel.

At inference, a typical implementation uses running estimates collected during training. This allows the output for an image to stay the same when other images in the batch change. Three-dimensional scans can force very small batches because of memory limits. Neighboring voxels often carry correlated information. In a small batch, the mean and variance can therefore shift when the set of patients changes.

Sources
  1. Ioffe S, Szegedy C. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. ICML, 2015. arxiv.org/abs/1502.03167

Key works · 1

Landmark2015ICML 2015 (PMLR 37)43,230 citations

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

Sergey Ioffe, Christian Szegedy

Batch normalization standardizes activations using mini-batch statistics and then applies a learned scale and offset. The authors incorporated it into an ImageNet classifier and reported that the modified network reached the original accuracy using roughly one-fourteenth as many training steps.

SignificanceBatch normalization became a reusable component in convolutional networks. The original ResNet paper applies it after convolution, and the PyTorch BatchNorm2d documentation specifies the corresponding training and inference computations for image-shaped inputs. Later models could reuse the same operation without redesigning it.