Skip to main content
QUICK REVIEW

[Paper Review] On the diffusion approximation of nonconvex stochastic gradient descent

Wenqing Hu, Chris Junchi Li|arXiv (Cornell University)|May 22, 2017
Stochastic Gradient Optimization TechniquesComputer Science34 references29 citations
TL;DR

This paper establishes a rigorous weak diffusion approximation for nonconvex stochastic gradient descent (SGD) using the master equation framework, showing that SGD escapes local minimizers exponentially fast and saddle points almost linearly fast in inverse stepsize, depending on noise structure. It demonstrates that small batch sizes enhance escape from sharp minimizers and unstable points, supporting adaptive batch size scheduling for better generalization in deep learning.

ABSTRACT

We study the Stochastic Gradient Descent (SGD) method in nonconvex optimization problems from the point of view of approximating diffusion processes. We prove rigorously that the diffusion process can approximate the SGD algorithm weakly using the weak form of master equation for probability evolution. In the small step size regime and the presence of omnidirectional noise, our weak approximating diffusion process suggests the following dynamics for the SGD iteration starting from a local minimizer (resp.~saddle point): it escapes in a number of iterations exponentially (resp.~almost linearly) dependent on the inverse stepsize. The results are obtained using the theory for random perturbations of dynamical systems (theory of large deviations for local minimizers and theory of exiting for unstable stationary points). In addition, we discuss the effects of batch size for the deep neural networks, and we find that small batch size is helpful for SGD algorithms to escape unstable stationary points and sharp minimizers. Our theory indicates that one should increase the batch size at later stage for the SGD to be trapped in flat minimizers for better generalization.

Motivation & Objective

  • To rigorously establish a weak diffusion approximation for nonconvex SGD using the master equation in the small stepsize regime.
  • To analyze the escape dynamics of SGD from unstable stationary points (saddles) and local minimizers via large deviations and exit time theory.
  • To investigate the role of batch size in SGD dynamics and its impact on generalization in deep neural networks.
  • To provide theoretical justification for adaptive batch size scheduling, particularly increasing batch size in later training stages.

Proposed method

  • Formal weak approximation of the discrete SGD iteration by a stochastic differential equation (SDE) using the weak form of the master equation.
  • Application of large deviation theory to characterize the escape time from local minimizers, showing exponential dependence on inverse stepsize.
  • Use of exit time theory for unstable stationary points to derive almost linear escape scaling with inverse stepsize.
  • Analysis of the diffusion process under omnidirectional noise to model the stochastic dynamics of SGD.
  • Derivation of the diffusion approximation for mini-batch SGD, linking batch size to noise level and diffusivity.
  • Numerical validation using MNIST with fully connected networks, comparing large and small batch methods on weight trajectory diffusion and test accuracy.

Experimental results

Research questions

  • RQ1How does the diffusion approximation framework explain the escape dynamics of SGD from local minimizers and saddle points in nonconvex optimization?
  • RQ2What is the scaling of escape time from unstable stationary points and local minimizers with respect to the stepsize and noise structure?
  • RQ3How does batch size influence the diffusivity and randomness of SGD, and what is its effect on convergence and generalization?
  • RQ4Can the diffusion approximation framework justify adaptive batch size scheduling strategies for improved generalization in deep learning?
  • RQ5What is the role of omnidirectional noise in enabling fast escape from sharp minimizers and saddle points?

Key findings

  • The escape time from a local minimizer scales exponentially with the inverse stepsize, indicating fast escape under small steps and sufficient noise.
  • Escape from saddle points scales almost linearly with the inverse stepsize, suggesting a significantly faster rate than the O(η−2) rate previously reported.
  • Small batch sizes generate higher levels of omnidirectional noise, enhancing the diffusion process and enabling faster escape from sharp minimizers and unstable stationary points.
  • Large batch sizes lead to lower diffusivity, causing SGD to converge to sharper minimizers with poorer generalization, as confirmed by numerical experiments on MNIST.
  • Numerical results validate that small batch methods exhibit larger weight trajectory diffusion and better test accuracy, while large batch methods show higher training accuracy but lower test accuracy.
  • The study supports the conjecture that increasing batch size in later training stages helps trap SGD in flatter minimizers for improved generalization.

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.