Fractional moment-preserving initialization schemes for training deep neural networks

Mert Gurbuzbalaban, Yuanhan Hu

TL;DR

Traditional neural network initialization focuses on preserving variance, but training often pushes weights into heavy-tailed regimes where variance is infinite. This paper introduces a generalized initialization framework that preserves any fractional moment $s \in (0, 2]$, leading to more robust signal propagation and faster early-stage training by effectively mitigating the "dying neuron" problem.

What Problem Does This Paper Address?

Standard initialization techniques, such as Xavier (Glorot) or Kaiming (He) initialization, are designed to keep the variance (the 2nd moment) of signals constant as they pass through the layers of a deep neural network (DNN). This prevents signals from exploding or vanishing.

However, recent research has revealed a catch: during training with Stochastic Gradient Descent (SGD), the distribution of weights and gradients often becomes "heavy-tailed." In these scenarios, the variance can become infinite, making traditional variance-preserving schemes theoretically inconsistent with the actual dynamics of the trained network. The authors address this gap by proposing a principled theory for initialization that preserves fractional moments (moments of order $s < 2$), which remain finite even when variance does not.

Methods

The authors develop a novel class of initialization schemes for fully connected feed-forward networks. Their approach involves:

  • Analytical Moment Derivation: They derive explicit mathematical formulas for the $s$-th moment of layer outputs for a variety of activation functions, including ReLU, Leaky ReLU, Randomized Leaky ReLU, and linear activations.
  • Critical Variance Identification: They identify a "critical variance" level, $\bar{\sigma}_a^2(s, d)$, for weight initialization. By setting the initial weight variance to this specific value, the $s$-th moment of the signal is provably preserved across layers.
  • Log-Normality Proof: Using techniques from random matrix theory, they prove that the logarithm of the norm of the network output converges to a Gaussian distribution as the number of layers increases.
  • Asymptotic Approximations: For practical use, they provide simplified formulas for the critical variance that are highly accurate for networks with large widths ($d$).
Figure 3: Dependency of ¯σ0(s, d) to parameters s and d.

Datasets

The proposed initialization schemes were evaluated on two standard computer vision benchmarks:

  • MNIST: A dataset of 70,000 grayscale images of handwritten digits (0-9).
  • CIFAR-10: A dataset of 60,000 color images in 10 different classes (e.g., airplanes, dogs, ships).

Key Insights and Ideas

  • Beyond Variance: The core "aha moment" is that we don't have to preserve variance. Preserving lower-order moments (like the mean absolute value, where $s=1$) is a valid and potentially superior strategy for deep networks.
  • Stochastic Dominance: By choosing to preserve a moment $s < 2$, the resulting initialization uses a larger variance than Kaiming initialization. This leads to a "first-order stochastic dominance" property, meaning the network is significantly less likely to produce very small output values. This helps keep neurons "alive" and gradients flowing during the crucial early stages of training.
Figure 2: Left: Probability density fk(r) of Rk,0. Right: Cumulative density function (cdf) of Rk,0. The blue line in both figures is the result of Kaiming’s method, which corresponds to s = 2. The red line in both figures is the result of our method with s ≈1.
  • Heavy Tails by Design: The paper shows that signal propagation itself can induce heavy-tailed behavior in the output if the initialization variance exceeds a certain threshold, providing a theoretical link to the heavy tails observed empirically in SGD.

Key Results

The fractional moment-preserving (FMP) initialization acts as a "warm start" for SGD, improving performance across several metrics:

  • Faster Convergence: On MNIST, a 20-layer ReLU network initialized with $s=0.8$ reached 85.02% training accuracy in 30 epochs, compared to 80.08% for Kaiming initialization.
  • Improved Test Performance: Similar gains were seen in test accuracy and loss, with the FMP scheme consistently outperforming Xavier, Kaiming, and Random Walk initializations in the initial training phase.
  • Robustness Across Activations: The benefits were consistent across ReLU, Leaky ReLU, and linear activations. Figure 4 shows the log-norm distributions for Linear and Leaky-ReLU, confirming the Gaussian (log-normal) shape predicted by their theory.
Distribution of the natural logarithm of the output norm for Linear and Leaky-ReLU activations, showing the predicted Gaussian behavior.

Limitations and Future Work

  • Activation Scope: While covering the most popular piecewise linear activations (the ReLU family), the theory hasn't yet been extended to smooth, non-linear activations like Swish or GELU.
  • Choosing 's': The paper demonstrates that $s < 2$ is beneficial but doesn't provide a definitive "optimal" value for $s$ for every architecture. Currently, finding the best $s$ requires some empirical tuning (e.g., testing $s=0.8$ or $s=1$).
  • Architecture Extensions: The current work focuses on fully connected and convolutional layers. Extending these fractional moment-preserving principles to more complex structures like Transformers or Attention mechanisms is a promising future direction.

Summary updated

BibTeX
@inproceedings{gurbuzbalaban2021fractional,
  author = {Mert Gurbuzbalaban and Yuanhan Hu},
  title = {{Fractional moment-preserving initialization schemes for training deep neural networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure