How to Initialize your Network? Robust Initialization for WeightNorm & ResNets

Devansh Arpit, Víctor Campos, Yoshua Bengio

Introduction

In deep learning, how a network is initialized often determines whether it can learn at all. If initial weights are too large, signals explode; if they are too small, they vanish into numerical nothingness. While well-established initialization schemes like He or Xavier exist for standard networks, two highly popular architectural choices have historically lacked principled initialization strategies:

  1. Weight Normalization (WeightNorm): A re-parameterization technique that separates a weight's direction from its magnitude. Practitioners typically "borrow" initializations meant for un-normalized networks, which is mathematically suboptimal.
  2. Residual Networks (ResNets): While ubiquitous, standard initialization for ResNets often ignores the impact of the "shortcut" connections, leading to instability as networks scale in depth.

This paper provides a theoretical "instruction manual" for initializing WeightNorm networks and ResNets. By leveraging mean field theory to ensure signals remain stable, the authors enable the training of extremely deep networks (up to 200 layers) and successfully close the performance gap between Weight Normalization and the industry-standard Batch Normalization.

Theoretical Framework & Methods

The authors utilize mean field approximation to analyze how the norm of activations (during the forward pass) and gradients (during the backward pass) changes as they propagate through the network.

Key Innovations

  • Plain WeightNorm Networks: The authors derive that to keep signal variance stable, the "gain" parameter ($g$) of a ReLU layer should be initialized based on the ratio of input neurons to output neurons. Specifically, they suggest $g = \sqrt{2 \cdot \text{fan-in}/\text{fan-out}}$ and recommend using orthogonal matrices for the weights rather than standard Gaussian distributions.
  • Residual Networks: To prevent signal explosion in residual blocks, they prove that the output of the residual branch must be scaled by $1/\sqrt{B}$, where $B$ is the total number of residual blocks in a given stage.
  • Curvature Analysis: Beyond signal flow, the authors analyze the Hessian (the second derivative of the loss). They demonstrate that their initialization places the network in a "flatter" region of the loss landscape, which naturally accommodates much larger learning rates.
Signal propagation across layers and blocks. The proposed initialization prevents forward and backward signals from exploding or vanishing.

As illustrated above, standard initialization methods (blue lines) cause signals to either vanish or explode as depth increases. The proposed initialization (orange and green lines) maintains a stable signal norm near 1.0 across both forward and backward passes, regardless of network depth.

Key Insights and Results

The authors validated their theory through over 2,500 experiments across MNIST, CIFAR-10, and CIFAR-100, yielding several critical insights:

  • Extreme Depth: Using the proposed initialization, the authors successfully trained a 200-layer MLP on MNIST. In contrast, existing data-dependent initialization methods failed to even begin training once the network depth exceeded 20 to 40 layers.
  • Larger Learning Rates and Generalization: A major takeaway is the link between initialization and generalization. The proposed method allowed for learning rates up to 10x larger than standard methods without diverging. Larger learning rates help guide the optimization toward "wider" minima, which historically correlates with better performance on unseen data.
  • Closing the BatchNorm Gap: Batch Normalization is often considered superior but comes with dependencies on batch size and difficulties in recurrent architectures. This paper proves that WeightNorm's perceived inferiority was largely an initialization problem. On CIFAR-10 with a ResNet-110, the proposed initialization achieved a 6.69% error rate, nearly matching Batch Normalization (6.61%) and significantly outperforming the standard WeightNorm setup (9.33%).
  • Lower Curvature: The spectral norm of the Hessian was consistently lower with the proposed method, confirming that the network starts in a more stable, "trainable" part of the parameter space.

Limitations and Future Work

While highly effective, the current theoretical derivation is specifically tailored for ReLU activation functions. Adapting the math for other modern activations like Swish or GELU would require further adjustment. Additionally, the proofs rely on an "infinite width" limit assumption; while the results hold up well in practical networks, behavior might differ in extremely narrow architectures.

Looking forward, the authors suggest extending this robust initialization framework to Recurrent Neural Networks (RNNs) and Reinforcement Learning. In these domains, Batch Normalization is notoriously difficult to implement, making a stable, well-initialized WeightNorm alternative a potential game-changer.

Summary updated

BibTeX
@inproceedings{arpit2019how,
  author = {Devansh Arpit and Víctor Campos and Yoshua Bengio},
  title = {{How to Initialize your Network? Robust Initialization for WeightNorm \& ResNets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=MtB839BCP1ni},
}
Figure