[Paper Review] Towards Understanding the Importance of Shortcut Connections in Residual Networks
This paper provides a theoretical analysis of why residual networks (ResNets) train efficiently despite non-convex optimization landscapes. It shows that gradient descent with proper normalization and initialization at zero for the shortcut-weighted layer avoids spurious local optima and converges to the global optimum in polynomial time, demonstrating the critical role of shortcut connections in enabling convergence.
Residual Network (ResNet) is undoubtedly a milestone in deep learning. ResNet is equipped with shortcut connections between layers, and exhibits efficient training using simple first order algorithms. Despite of the great empirical success, the reason behind is far from being well understood. In this paper, we study a two-layer non-overlapping convolutional ResNet. Training such a network requires solving a non-convex optimization problem with a spurious local optimum. We show, however, that gradient descent combined with proper normalization, avoids being trapped by the spurious local optimum, and converges to a global optimum in polynomial time, when the weight of the first layer is initialized at 0, and that of the second layer is initialized arbitrarily in a ball. Numerical experiments are provided to support our theory.
Motivation & Objective
- To understand the theoretical reasons behind the efficient training of Residual Networks (ResNets), which empirically outperform standard feedforward CNNs despite non-convex optimization.
- To investigate whether shortcut connections in ResNets help avoid spurious local optima in the optimization landscape of a simplified two-layer non-overlapping convolutional ResNet.
- To analyze the convergence behavior of gradient descent in a realizable setting where the student network matches the teacher network's architecture.
- To establish conditions under which gradient descent with proper normalization and initialization converges to the global optimum in polynomial time.
Proposed method
- The study analyzes a two-layer non-overlapping convolutional ResNet with ReLU activation, where the output is defined as $ f(w,a,Z) = a^{ op}\sigma\left(Z^{ op}(\frac{\mathds{1}}{\sqrt{p}} + w)\right) $, with $ \norm{v}_2 = 1 $ enforced via $ v = \frac{\mathds{1}}{\sqrt{p}} + w $.
- The optimization problem is formulated as minimizing the expected squared error between the student and teacher network outputs: $ \mathbb{E}_Z[ f(w,a,Z) - g(v^*,a^*,Z) ]^2 $, with $ v^* $ and $ a^* $ being the true parameters.
- Gradient descent is applied with separate step sizes $ \eta_a $ and $ \eta_w $, and the analysis focuses on initialization with $ w = 0 $ and $ a $ in a bounded ball.
- Theoretical analysis proves that with proper normalization and initialization, gradient descent avoids the spurious local optimum and converges to the global optimum in polynomial time.
- The method introduces a two-stage convergence process: a slow initial phase where $ a_t $ aligns with $ a^* $, followed by rapid convergence of both $ w_t $ and $ a_t $ to the global optimum.
- Numerical experiments validate the theoretical findings, showing that standard gradient descent without shortcut-specific normalization gets trapped in a spurious local optimum, while the proposed setup avoids it.
Experimental results
Research questions
- RQ1Does the presence of shortcut connections in ResNets prevent gradient descent from being trapped in spurious local optima in a simplified two-layer ResNet?
- RQ2What initialization conditions enable gradient descent to converge to the global optimum in a non-convex ResNet optimization problem with a spurious local optimum?
- RQ3How does proper normalization and step size selection influence the convergence behavior of gradient descent in ResNet training?
- RQ4Can the theoretical convergence of gradient descent in a simplified ResNet model be linked to practical training success in deep ResNets?
- RQ5What role does the initialization of the shortcut-weighted layer (specifically $ w = 0 $) play in avoiding poor local minima?
Key findings
- Gradient descent with proper normalization and initialization at $ w = 0 $, $ a $ in a bounded ball, converges to the global optimum in polynomial time despite the existence of a spurious local optimum.
- The algorithm exhibits a two-stage convergence process: an initial phase where $ a_t $ aligns with $ a^* $ and $ w_t $ evolves slowly, followed by rapid convergence of both parameters.
- Without the shortcut-specific normalization and initialization, gradient descent is trapped in a spurious local optimum, as confirmed by numerical experiments.
- Theoretical analysis shows that the shortcut connection enables gradient descent to avoid the spurious local optimum by ensuring the gradient flow remains effective even when $ a_t $ is initially misaligned with $ a^* $.
- The convergence is robust to initialization of $ a $, as long as it lies within a bounded ball, and the initialization of $ w $ at zero is critical for avoiding poor local minima.
- The results are consistent with empirical practices such as learning rate warmup and differential learning rates, suggesting theoretical grounding for common deep learning training heuristics.
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.