Towards Understanding the Importance of Shortcut Connections in Residual Networks

Tianyi Liu, Minshuo Chen, Mo Zhou, Simon S. Du, Enlu Zhou, Tuo Zhao

Residual Networks (ResNets) revolutionized deep learning by enabling the training of models with hundreds or thousands of layers. However, our theoretical understanding of why they optimize so effectively has historically lagged behind their empirical success. Standard feedforward Convolutional Neural Networks (CNNs) are notoriously difficult to optimize beyond 30 layers, often suffering from vanishing gradients and getting trapped in "spurious local optima"—mathematical dead ends where the gradient is zero, but the model has not learned the correct patterns.

This paper provides a rigorous mathematical guarantee that for a two-layer convolutional ResNet, shortcut connections allow Gradient Descent to avoid these spurious local optima and converge to a global solution in polynomial time.

Methodology: The Teacher-Student Setup

To isolate the effect of shortcut connections, the authors study a non-linear, two-layer non-overlapping convolutional ResNet using a realizable "teacher-student" setting. A teacher network generates synthetic data (independent Gaussian noise, $Z \sim \mathcal{N}(0, I)$) and labels, while a student network attempts to recover the teacher's parameters.

The theoretical framework relies on several key components:

  • The Shortcut Prior: The assumption that optimal convolutional weights are relatively small, meaning the "identity" shortcut does most of the heavy lifting initially.
  • Zero Initialization: The convolutional weights ($w$) are initialized at exactly zero. This reflects common practices like Fixup initialization and ensures the network starts by relying entirely on the shortcut.
  • Gradient Descent with Normalization: The optimization uses Gradient Descent combined with a population version of Batch Normalization to maintain stability.
  • Step Size Warmup (SSW): A proposed two-stage training process. Stage I uses a very small step size for the convolutional layer to avoid falling into traps. Stage II increases the step sizes to converge quickly once the model is in a safe "basin of attraction."

Key Insights: Navigating the Optimization Landscape

The core finding is that the shortcut connection fundamentally changes the geometry of the loss landscape. In standard CNNs without shortcuts, Gradient Descent with random initialization gets stuck in a bad local optimum with a probability between 25% and 75%.

By introducing the shortcut and initializing $w=0$, the model starts far away from the spurious trap. The "Stage I" analysis demonstrates that being conservative with weight updates early in training is crucial. This phase allows the output weights to align correctly before the convolutional filters start changing significantly. Ultimately, this provides a formal theoretical justification for why "learning rate warmup"—a common empirical trick among practitioners—is necessary for training deep ResNets.

Optimization landscape comparison showing how CNNs get trapped while ResNets converge using a two-stage process.

Empirical Results

Numerical simulations strongly support the theoretical claims. The authors tested various dimensions, specifically varying the number of patches ($k$) from 16 to 100, with a fixed filter size.

Success rates of ResNet with Step Size Warmup (SSW), ResNet without SSW, and standard CNN across different numbers of patches.
  • 100% Convergence: The ResNet using the proposed Step Size Warmup (SSW) achieved a perfect 1.0 success rate in reaching the global optimum across all tested dimensions.
  • ResNet vs. CNN: Under identical conditions, a standard CNN only reached the global optimum approximately 53% of the time.
  • The Warmup Advantage: A ResNet trained without the two-stage warmup (using a constant learning rate) performed better than a CNN but still failed in 15-30% of cases. This proves that the shortcut connection and the specific training strategy are a package deal for guaranteed success.

Limitations and Future Directions

While this work provides a crucial theoretical stepping stone, it has limitations. The study is confined to a two-layer, non-overlapping architecture, whereas real-world ResNets are much deeper and use overlapping convolutions that introduce complex dependencies. Furthermore, the proofs rely on Gaussian input data, which differs from the complex, low-dimensional manifolds of real-world images. Finally, the analysis focuses on deterministic Gradient Descent (GD); extending these guarantees to Stochastic Gradient Descent (SGD) remains a significant next step for the theory.

Summary updated

BibTeX
@inproceedings{liu2019towards,
  author = {Tianyi Liu and Minshuo Chen and Mo Zhou and Simon S. Du and Enlu Zhou and Tuo Zhao},
  title = {{Towards Understanding the Importance of Shortcut Connections in Residual Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=nLKm0nCuzTT},
}
Figure