Analysis on Gradient Propagation in Batch Normalized Residual Networks

Abhishek Panigrahi, Yueru Chen, C.-c. Jay KuoarXiv 2018

Introduction

Training deep neural networks is fundamentally limited by the vanishing and exploding gradient problems. As gradients backpropagate from the output layer toward the input, they often diminish to zero or grow exponentially, hindering effective learning. While Batch Normalization (BN) and Residual Networks (ResNets) have become standard architectural choices to mitigate these issues, the precise mathematical mechanism behind their synergy has remained partially understood. This research provides a rigorous analysis of gradient variance propagation, identifying BN as the primary stabilizer in deep architectures.

Methodology: Modeling the BN-ReLU-CONV Triplet

The study models a standard deep learning layer as a sequence of three operations: Batch Normalization, ReLU activation, and Convolution (BN-ReLU-CONV). By deriving equations for the mean and variance of gradients passing through this triplet, the authors characterize how signals evolve during the backward pass.

The BN-ReLU-Convolution triplet used for modeling gradient variance propagation.

The analysis extends to full Residual Blocks, incorporating both the transformation branch and the shortcut connection. Under assumptions of independent elements and zero-mean weights, the authors derive an upper bound for the expected variance of the gradient at each block, demonstrating that the architecture naturally prevents sudden spikes or drops in gradient magnitude.

The Stabilizing Role of Batch Normalization

A central finding of this work is that Batch Normalization is the critical component for training stability, even more so than residual connections. BN acts as a "check" that simplifies weight initialization by maintaining stable propagated gradients.

Forward and backward propagation through a Batch Normalization (BN) layer.

The mathematical model reveals a "confinement" effect: BN and residual branches work together to ensure that gradient variance changes gradually across the network's scales rather than exponentially. Interestingly, the variance tends to increase slightly when moving from output to input within a scale, explaining why lower layers often experience more vigorous weight updates while higher layers undergo finer refinement.

Experimental Results

To validate the theoretical model, the authors conducted an ablation study on the CIFAR-10 dataset using ResNet-15 and ResNet-99 architectures. Three configurations were compared to isolate the effects of BN and residual connections.

Model Configuration Final Accuracy (CIFAR-10) Observation
Model-1 (BN + Residual) 92.5% Optimal performance and stability.
Model-2 (BN Only) 90.6% High performance; confirms BN handles the bulk of stability.
Model-3 (Residual Only) 9.09% Failure; gradients exploded at the first epoch.

The results underscore that while residual connections improve performance, they cannot prevent gradient explosion without the stabilizing influence of BN. The mathematical derivation confirms that the change in gradient variance between adjacent blocks remains small as the number of blocks increases, ensuring stable backpropagation in extremely deep networks.

Limitations and Future Directions

The current mathematical model relies on simplifying assumptions, such as the independence of elements within activations and gradients. Future research may explore more complex correlations present in real-world data. Additionally, the authors suggest investigating the relationship between these stability principles and non-gradient-based learning methods, such as Saak transforms, to determine if similar confinement effects can be achieved without traditional backpropagation.

Summary updated

BibTeX
@misc{panigrahi2018analysis,
  author = {Abhishek Panigrahi and Yueru Chen and C.-C. Jay Kuo},
  title = {{Analysis on Gradient Propagation in Batch Normalized Residual Networks}},
  year = {2018},
  eprint = {1812.00342},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00342},
}
Figure