A Mean-field Analysis of Deep ResNet and Beyond: Towards Provable Optimization Via Overparameterization From Depth

Yiping Lu, Chao Ma, Yulong Lu, Jianfeng Lu, Lexing YingarXiv 2020

Abstract

Deep Residual Networks (ResNets) have revolutionized deep learning, yet a theoretical understanding of their optimization success remains elusive. This paper introduces a "mean-field" continuum limit for ResNets, modeling them as Ordinary Differential Equations (ODEs) where residual blocks are treated as particles in a distribution. This framework allows for the first global convergence proof for multi-layer networks in this regime, demonstrating that every local minimizer is a global one.

Introduction

Deep learning practitioners frequently observe that increasing network depth improves performance and simplifies optimization via Stochastic Gradient Descent (SGD). However, theoretical explanations have largely been confined to two narrow regimes: the "lazy" kernel regime, which fails to capture feature learning, and shallow network theory, which does not easily scale to deep architectures. ResNets, despite their non-convex nature, are remarkably easy to train to zero loss. This paper bridges the gap between practice and theory by providing a mathematical guarantee of global convergence for deep ResNets through a mean-field lens.

Methodology: The Mean-Field Continuum

The authors propose a novel perspective by treating a deep ResNet as a continuous-time dynamical system. In this model, the forward pass is viewed as the evolution of a state $x$ over "time" $\tau$, representing depth.

Continuum Limit as ODEs

By modeling the network as an ODE, the training process becomes an exercise in evolving a distribution of "particles," where each particle represents a residual block. This shift from discrete layers to a continuous distribution $\rho$ allows the application of tools from statistical physics and optimal control.

Adjoint Sensitivity and Ensembles

To compute gradients in this continuous space, the authors utilize the Adjoint Sensitivity Method. A critical theoretical insight is the "unraveled" view of ResNets: a deep ResNet can be mathematically shown to behave like an ensemble of many shallow networks. This equivalence allows the authors to adapt existing mean-field proofs for two-layer networks to the multi-layer ResNet setting.

Key Insights and Ideas

The mean-field analysis yields several profound conclusions about the nature of deep learning optimization.

Local is Global

The most significant theoretical contribution is the proof that in the mean-field limit, the loss landscape of a deep ResNet is "well-behaved." Specifically, under the assumption of overparameterization, any local minimum reached during training is guaranteed to be a global minimum.

Loss landscapes of ResNet vs. Two-layer Neural Networks in the mean-field regime.

ResNets as Shallow Ensembles

The paper formalizes the intuition that ResNets do not function as a single rigid chain but as a collection of paths of varying lengths. This ensemble-like behavior simplifies the optimization landscape, making it more akin to the convex-like landscapes seen in shallow overparameterized models.

Beyond the Kernel Regime

Unlike Neural Tangent Kernel (NTK) approaches, this mean-field analysis allows neurons to adapt and "travel" through the parameter space. This captures the essential feature-learning behavior of real-world deep networks that "lazy" training theories miss.

Empirical Results

The authors validated their theory by developing a "Mean-Field Training" algorithm. This scheme involves sorting residual blocks by their position in the continuum to maintain mean-field behavior. Testing on CIFAR-10 and CIFAR-100 benchmarks showed that this approach consistently outperforms standard SGD.

Model Vanilla SGD (Error %) Mean-Field Training (Error %) Dataset
ResNet20 8.75 8.19 CIFAR-10
ResNet110 6.37 6.10 CIFAR-10
ResNet164 5.46 5.19 CIFAR-10
ResNeXt29 (16x64d) 17.65 16.81 CIFAR-100

Conclusion and Future Work

This work provides the first rigorous proof that overparameterization from depth can lead to provable global optimality in multi-layer nonlinear networks. While the proof relies on certain assumptions, such as the "full support" of the gradient flow's stationary point, it opens new avenues for research. Future directions include incorporating neural birth-death dynamics to ensure convergence in more restrictive settings and exploring higher-order approximations of the ResNet-ensemble relationship.

Summary updated

BibTeX
@misc{lu2020mean,
  author = {Yiping Lu and Chao Ma and Yulong Lu and Jianfeng Lu and Lexing Ying},
  title = {{A Mean-field Analysis of Deep ResNet and Beyond: Towards Provable Optimization Via Overparameterization From Depth}},
  year = {2020},
  eprint = {2003.05508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.05508},
}
Figure