Skip to main content
QUICK REVIEW

[Paper Review] Towards Theoretical Understanding of Large Batch Training in Stochastic Gradient Descent

Xiaowu Dai, Yuhua Zhu|arXiv (Cornell University)|Dec 3, 2018
Stochastic Gradient Optimization TechniquesComputer Science4 references8 citations
TL;DR

This paper provides a theoretical justification for the hypothesis that large-batch SGD tends to converge to sharp minima by analyzing finite-time escaping times and asymptotic convergence behavior. It proves that SGD converges to flatter minima regardless of batch size, with convergence speed increasing under higher learning rate to batch size ratios, though generalization may suffer.

ABSTRACT

Stochastic gradient descent (SGD) is almost ubiquitously used for training non-convex optimization tasks. Recently, a hypothesis proposed by Keskar et al. [2017] that large batch methods tend to converge to sharp minimizers has received increasing attention. We theoretically justify this hypothesis by providing new properties of SGD in both finite-time and asymptotic regimes. In particular, we give an explicit escaping time of SGD from a local minimum in the finite-time regime and prove that SGD tends to converge to flatter minima in the asymptotic regime (although may take exponential time to converge) regardless of the batch size. We also find that SGD with a larger ratio of learning rate to batch size tends to converge to a flat minimum faster, however, its generalization performance could be worse than the SGD with a smaller ratio of learning rate to batch size. We include numerical experiments to corroborate these theoretical findings.

Motivation & Objective

  • To theoretically justify the hypothesis that large-batch SGD converges to sharp minima, as proposed by Keskar et al. (2017).
  • To analyze the finite-time escaping behavior of SGD from local minima to understand convergence dynamics.
  • To investigate asymptotic convergence properties of SGD in terms of minimum flatness, independent of batch size.
  • To examine the impact of the learning rate to batch size ratio on convergence speed and generalization performance.
  • To provide theoretical and empirical support for the relationship between SGD hyperparameters and the flatness of minima.

Proposed method

  • Models mini-batch SGD as a discretization of a stochastic differential equation (SDE) with drift and diffusion terms derived from gradient estimates.
  • Uses the Euler scheme to link the SDE to the standard SGD update rule, enabling theoretical analysis via diffusion processes.
  • Applies large deviation theory and Freidlin-Wentzell theory to derive the escaping time from a local minimum to its nearest neighbor.
  • Derives the limiting stationary distribution of SGD to show that flatter minima are more likely to be selected asymptotically.
  • Introduces a probability expression involving the Hessian determinant and eigenvalues to quantify the likelihood of converging to a given minimum.
  • Performs numerical illustrations using synthetic loss functions with multiple minima to validate theoretical predictions on the role of $M/\gamma$, Hessian, and variance.

Experimental results

Research questions

  • RQ1Does large-batch SGD indeed converge to sharp minima, and can this be theoretically justified?
  • RQ2How does the finite-time escaping time of SGD from a local minimum depend on the batch size and learning rate?
  • RQ3What is the asymptotic behavior of SGD in terms of minimum flatness, and does it favor flatter minima regardless of batch size?
  • RQ4How does the ratio of learning rate to batch size affect the convergence speed to flat minima?
  • RQ5What is the trade-off between convergence speed to flat minima and generalization performance under different $\gamma/M$ ratios?

Key findings

  • SGD exhibits a finite escaping time from a local minimum to its nearest neighbor, and this time decreases with a larger learning rate to batch size ratio.
  • In the asymptotic regime, SGD converges to flatter minima regardless of batch size, though convergence may take exponential time.
  • A higher ratio of learning rate to batch size accelerates convergence to flatter minima, but this can lead to worse generalization performance.
  • The probability of converging to a minimum is proportional to the product of the eigenvalues of the Hessian matrix at that minimum, not the sum or extremal eigenvalues.
  • Increased variance in the gradient estimate reduces the effectiveness of the $M/\gamma$ ratio in favoring flatter minima.
  • Numerical experiments confirm that as $M/\gamma$ increases, the probability of converging to flatter minima grows faster than to sharper ones, especially when the Hessian ratio between minima increases.

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.