Skip to content

He Initialization Keeps ReLU Signal Variance Steady

2026-11-15

He initialization draws each weight with variance 2/n, where n is the number of inputs to a unit, so that a ReLU layer neither shrinks nor inflates the signal passing through it. He, Zhang, Ren, and Sun derive it in Section 2.2 of their ImageNet paper, because the earlier "Xavier" rule of Glorot and Bengio assumes linear activations and that assumption fails for ReLU.

Their derivation tracks the variance of a layer's responses. With independent zero-mean weights, Equation 7 gives Var[y_l] = n_l Var[w_l] E[x_l²]. E[x²] equals Var[x] only when x has zero mean; in general E[x²] = Var[x] + E[x]². A ReLU output x = max(0, y) does not have zero mean. If the weights are zero-mean and symmetric and the biases are zero, y_(l−1) is symmetric around zero, and only half of it survives, so E[x_l²] = ½ Var[y_(l−1)], and Equation 8 becomes Var[y_l] = ½ n_l Var[w_l] Var[y_(l−1)]. Across L layers (Equation 9) the variance is multiplied by the product of those factors, so a factor away from 1 compounds exponentially with depth. Requiring ½ n_l Var[w_l] = 1 (Equation 10) gives a zero-mean Gaussian with standard deviation √(2/n_l). The Xavier rule, n_l Var[w_l] = 1, leaves the factor at ½ in every layer.

Try it by hand. Let each unit have n = 100 inputs. Assume zero-mean symmetric weights and zero bias, and let the previous layer's pre-activation y_(l−1) have variance 4. After ReLU, E[x²] = 2. With Xavier weights, Var[w] = 1/100, so the next pre-activation has Var[y] = 100 × 0.01 × 2 = 2, half the previous one. With He weights, Var[w] = 2/100 = 0.02, so Var[y] = 100 × 0.02 × 2 = 4, which matches the previous layer. Repeat for ten layers: the Xavier-scaled stack gives 4 × 2^−10 ≈ 0.0039, while the He-scaled stack stays at 4. The standard deviations are 0.1 for Xavier and about 0.141 for He.

The paper reports that on a 22-layer model both rules converge, though He starts reducing error earlier. On a 30-layer model, the Xavier rule "completely stalls the learning" while He converges. The authors also note that the 30-layer model's ImageNet error (38.56 percent top-1) was worse than the 14-layer model's (33.82 percent), so the gain is trainability, not accuracy.

He, Zhang, Ren, and Sun, 2015, §2.2 (Equations 7 to 10)