Data-dependent initialization is an umbrella term for methods that pass a small amount of real training data through the network before training starts and set the initial weights and biases to match the measured statistics. Unlike Xavier initialization or He initialization, which derive the variance of the random weights from a formula, these methods equalize the output scale of every layer without making assumptions about the activation function or layer type.
The best-known method under this name was proposed by Philipp KrΓ€henbΓΌhl et al. in 2015 (ICLR 2016, "Data-dependent Initializations of Convolutional Neural Networks"). This article centers on that method and also covers two closely related methods from the same period: the initialization in Section 3 of the Weight Normalization paper, and LSUV.
The problem KrΓ€henbΓΌhl et al. address is that even networks that represent the same function can train at very different speeds per layer, depending on how weight magnitude is distributed across layers. For example, take two convolutional layers with a ReLU between them. Multiplying the weights and bias of the lower layer by and dividing the weights of the upper layer by leaves the output of the whole network unchanged. The gradients, however, become times as large in the lower layer and times as large in the upper layer. On top of that, the lower layer now has larger weights, so an update of the same size has less effect. As a result, one layer may barely learn, or may suffer exploding gradients, even though the represented function is the same.
The method measures two things on data and corrects them:
- Within a layer: make every output channel of each layer have the same mean and variance.
- Between layers: make the weights of every layer change at the same rate relative to their magnitude (i.e., learn at the same speed).
On PASCAL VOC 2007 classification and detection, where training data is scarce, the paper substantially improved networks trained from random initialization, reaching accuracy close to unsupervised pre-training that takes weeks, with an initialization that takes only 54 seconds.
The left side of the figure at the top shows what is passed through the network during measurement, and the right side shows the three steps that set the weights.

