[Paper Review] Analysis on Gradient Propagation in Batch Normalized Residual Networks
This paper provides a mathematical analysis of batch normalization (BN) in residual networks, showing that BN and residual connections jointly stabilize gradient backpropagation by confining gradient variance within a bounded range across layers. The key contribution is demonstrating that BN is essential for preventing gradient explosion/vanishing, with experiments confirming that removing BN severely hampers training, even when residual connections are retained.
We conduct mathematical analysis on the effect of batch normalization (BN) on gradient backpropogation in residual network training, which is believed to play a critical role in addressing the gradient vanishing/explosion problem, in this work. By analyzing the mean and variance behavior of the input and the gradient in the forward and backward passes through the BN and residual branches, respectively, we show that they work together to confine the gradient variance to a certain range across residual blocks in backpropagation. As a result, the gradient vanishing/explosion problem is avoided. We also show the relative importance of batch normalization w.r.t. the residual branches in residual networks.
Motivation & Objective
- To mathematically analyze the effect of batch normalization (BN) on gradient backpropagation in residual networks.
- To understand how BN and residual connections jointly mitigate the gradient vanishing/explosion problem during training.
- To quantify the relative importance of BN versus residual branches in enabling stable training of deep residual networks.
- To provide theoretical and empirical evidence that BN is critical for gradient stability, even when residual connections are present.
Proposed method
- Derives a mathematical model for gradient propagation through a layer composed of batch normalization, convolution, and ReLU activation.
- Analyzes the mean and variance behavior of gradients during backpropagation through residual blocks.
- Models the interaction between BN and residual branches to show how they jointly constrain gradient variance across layers.
- Employs empirical evaluation on CIFAR-10 using three variants: full residual network (BN + residual), BN-only, and residual-only.
- Measures gradient variance across residual blocks at different training epochs to assess stability.
- Uses Xavier weight initialization and tracks training/test accuracy and loss dynamics to compare model performance.
Experimental results
Research questions
- RQ1How does batch normalization affect gradient variance propagation in residual networks during backpropagation?
- RQ2What is the relative contribution of batch normalization versus residual connections in stabilizing training?
- RQ3Can a residual network train effectively without batch normalization, even with residual skip connections?
- RQ4How does gradient variance evolve across residual blocks when BN is removed or retained?
Key findings
- Batch normalization and residual connections work synergistically to confine gradient variance within a stable range across residual blocks during backpropagation.
- The removal of batch normalization leads to immediate gradient explosion, rendering the network untrainable, as evidenced by undefined loss at epoch 1 in the residual-only model.
- The model with only batch normalization (no residual branches) achieves 90.6% test accuracy, demonstrating that BN alone enables significant learning, though less than the full residual network.
- The full residual network with both BN and residual branches achieves 92.5% test accuracy, outperforming both variants, indicating that both components are essential for optimal performance.
- Gradient variance remains bounded in models with BN (both with and without residual branches), while it explodes in the absence of BN, confirming BN’s critical role in gradient stability.
- Even with residual connections, the absence of BN causes training failure due to uncontrolled gradient dynamics, highlighting BN’s indispensable role in deep residual network training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.