Skip to main content
QUICK REVIEW

[Paper Review] Demystifying ResNet

Sihan Li, Jiantao Jiao|arXiv (Cornell University)|Nov 3, 2016
Domain Adaptation and Few-Shot LearningComputer Science7 references5 citations
TL;DR

This paper provides a theoretical explanation for why residual networks (ResNets) with shortcut connections of length 2 outperform those with other shortcut depths. It shows that shortcut length 2 ensures a depth-invariant condition number of the Hessian at initialization, enabling stable training of very deep networks, while other depths lead to ill-conditioned or high-order saddle points that hinder optimization.

ABSTRACT

The Residual Network (ResNet), proposed in He et al. (2015), utilized shortcut connections to significantly reduce the difficulty of training, which resulted in great performance boosts in terms of both training and generalization error. It was empirically observed in He et al. (2015) that stacking more layers of residual blocks with shortcut 2 results in smaller training error, while it is not true for shortcut of length 1 or 3. We provide a theoretical explanation for the uniqueness of shortcut 2. We show that with or without nonlinearities, by adding shortcuts that have depth two, the condition number of the Hessian of the loss function at the zero initial point is depth-invariant, which makes training very deep models no more difficult than shallow ones. Shortcuts of higher depth result in an extremely flat (high-order) stationary point initially, from which the optimization algorithm is hard to escape. The shortcut 1, however, is essentially equivalent to no shortcuts, which has a condition number exploding to infinity as the number of layers grows. We further argue that as the number of layers tends to infinity, it suffices to only look at the loss function at the zero initial point. Extensive experiments are provided accompanying our theoretical results. We show that initializing the network to small weights with shortcut 2 achieves significantly better results than random Gaussian (Xavier) initialization, orthogonal initialization, and shortcuts of deeper depth, from various perspectives ranging from final loss, learning dynamics and stability, to the behavior of the Hessian along the learning process.

Motivation & Objective

  • To explain why shortcut length 2 in ResNets uniquely enables training of very deep networks, despite empirical observations that other shortcut depths (1 or 3) do not yield the same benefits.
  • To analyze the optimization landscape of deep residual networks at the zero initialization point, particularly focusing on the Hessian's condition number and its dependence on shortcut depth.
  • To demonstrate that shortcut length 2 avoids the ill-conditioning and high-order saddle points that impede optimization in deeper shortcuts, while shortcut length 1 behaves like a linear network with exploding condition numbers.
  • To validate theoretically derived insights through extensive experiments comparing training dynamics, loss convergence, and Hessian behavior across different initialization schemes and shortcut depths.

Proposed method

  • Theoretical analysis of the Hessian of the loss function at the zero initialization point for deep residual networks with varying shortcut depths.
  • Derivation showing that for shortcut length 2, the Hessian's condition number remains bounded (depth-invariant), while for shortcut length 1 it grows unboundedly with depth.
  • Proof that for shortcut lengths >2, the zero initialization point becomes a high-order saddle point (Hessian is zero matrix), making escape from it difficult during optimization.
  • Empirical validation using linear and nonlinear ResNet architectures across MNIST and CIFAR-10 datasets, comparing training dynamics, final losses, and Hessian eigenvalue behavior.
  • Use of linear interpolation to compute eigenvalue statistics (max, 10th percentile, negative eigenvalue ratio) at different loss levels across training trajectories.
  • Comparison of initialization methods: random Gaussian (Xavier), orthogonal, and zero initialization with shortcut length 2, under controlled depth and parameter count.

Experimental results

Research questions

  • RQ1Why does shortcut length 2 in ResNets uniquely enable training of extremely deep networks, while shortcut lengths 1 and 3 do not?
  • RQ2How does the condition number of the Hessian at zero initialization vary with shortcut depth in deep residual networks?
  • RQ3What is the nature of the critical point at zero initialization for different shortcut depths, and how does it affect optimization dynamics?
  • RQ4Does zero initialization with shortcut length 2 outperform standard initialization schemes (Xavier, orthogonal) in terms of training stability and convergence speed?
  • RQ5How do the Hessian eigenvalue distributions and negative curvature behavior differ across shortcut depths during training?

Key findings

  • Shortcut length 2 ensures a depth-invariant Hessian condition number at zero initialization, enabling stable training of arbitrarily deep networks.
  • Shortcut length 1 leads to a condition number that grows unboundedly with depth, making optimization increasingly difficult.
  • Shortcut lengths greater than 2 result in a high-order saddle point at zero initialization (Hessian is zero), which is hard to escape from during optimization.
  • Experiments show that initializing with small weights (zero) and shortcut length 2 achieves significantly better final losses than Xavier or orthogonal initialization, especially in deep networks.
  • The 2-shortcut network exhibits faster learning dynamics and lower negative eigenvalue ratios, indicating a tendency to converge to lower-loss critical points.
  • On CIFAR-10, only ResNets with shortcut length 2 show performance gains with increasing depth beyond 400 layers, while others degrade.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.