Skip to main content
QUICK REVIEW

[Paper Review] A Diffusion Theory for Deep Learning Dynamics: Stochastic Gradient Descent Escapes From Sharp Minima Exponentially Fast.

Zeke Xie, Issei Sato|arXiv (Cornell University)|Feb 10, 2020
Stochastic Gradient Optimization TechniquesComputer Science2 references12 citations
TL;DR

This paper introduces a Density Diffusion Theory (DDT) to explain why Stochastic Gradient Descent (SGD) favors flat minima in deep learning exponentially more than sharp minima, due to Hessian-dependent noise covariance. It proves that SGD escapes sharp minima exponentially fast, while GD with white noise only escapes polynomially, and shows large-batch training requires exponentially many steps to reach flat minima, limiting efficiency in practice.

ABSTRACT

Stochastic Gradient Descent (SGD) and its variants are mainstream methods for training deep networks in practice. SGD is known to find a flat minimum that often generalizes well. However, it is mathematically unclear how deep learning can select a flat minimum among so many minima. To answer the question quantitatively, we develop a density diffusion theory (DDT) to reveal how minima selection quantitatively depends on the minima sharpness and the hyperparameters. To the best of our knowledge, we are the first to theoretically and empirically prove that, benefited from the Hessian-dependent covariance of stochastic gradient noise, SGD favors flat minima exponentially more than sharp minima, while Gradient Descent (GD) with injected white noise favors flat minima only polynomially more than sharp minima. We also reveal that either a small learning rate or large-batch training requires exponentially many iterations to escape from minima in terms of the ratio of the batch size and learning rate. Thus, large-batch training cannot search flat minima efficiently in a realistic computational time.

Motivation & Objective

  • To quantitatively explain why SGD selects flat minima that generalize well, despite the presence of many minima.
  • To clarify the mathematical mechanism by which stochastic gradient noise influences minima selection in deep learning.
  • To compare the efficiency of SGD versus GD with white noise in escaping sharp minima, particularly in terms of convergence speed.
  • To investigate the computational cost of large-batch training in reaching flat minima, especially under realistic time constraints.

Proposed method

  • Develop a Density Diffusion Theory (DDT) to model the stochastic dynamics of SGD as a diffusion process in the loss landscape.
  • Analyze the Fokker-Planck equation derived from the SDE of SGD to quantify the escape rate from minima based on sharpness and noise covariance.
  • Incorporate the Hessian matrix into the noise covariance to capture the curvature-dependent behavior of stochastic gradients.
  • Derive analytical expressions for the escape time from minima, showing exponential dependence on minima sharpness and the ratio of batch size to learning rate.
  • Compare the escape dynamics of SGD with Hessian-dependent noise to GD with white noise, revealing differing polynomial vs. exponential scaling.

Experimental results

Research questions

  • RQ1How does the curvature of a minimum (sharpness) affect the escape time of SGD from that minimum?
  • RQ2Why does SGD favor flat minima over sharp minima, and what is the mathematical mechanism behind this preference?
  • RQ3How does the ratio of batch size to learning rate influence the computational cost of escaping minima in large-batch training?
  • RQ4What is the difference in escape efficiency between SGD with Hessian-dependent noise and GD with white noise?

Key findings

  • SGD escapes sharp minima exponentially faster than flat minima due to Hessian-dependent noise covariance, favoring flat minima exponentially more.
  • In contrast, GD with white noise favors flat minima only polynomially more than sharp minima, indicating a much weaker selection mechanism.
  • Large-batch training requires exponentially many iterations to escape from minima, making it inefficient for finding flat minima in realistic time.
  • The escape time from a minimum scales exponentially with the ratio of batch size to learning rate, highlighting a fundamental trade-off in training hyperparameters.

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.