[Paper Review] Batch Size Matters: A Diffusion Approximation Framework on Nonconvex Stochastic Gradient Descent.
This paper develops a diffusion approximation framework to analyze nonconvex stochastic gradient descent (SGD), showing that small step sizes and omnidirectional noise lead to exponential escape from local minimizers and almost linear escape from saddle points. It demonstrates that small batch sizes aid in escaping sharp minimizers and unstable points, while increasing batch size later helps trap SGD in flatter minimizers for better generalization.
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 understand the dynamics of SGD in nonconvex optimization through the lens of diffusion processes.
- To rigorously analyze how SGD escapes local minimizers and saddle points under small step sizes and noise.
- To investigate the role of batch size in controlling escape behavior and generalization performance.
- To provide theoretical justification for increasing batch size in later training stages to favor flat minimizers.
Proposed method
- Uses the weak form of the master equation to weakly approximate the probability evolution of SGD via a diffusion process.
- Applies large deviations theory to analyze exit times from neighborhoods of local minimizers.
- Employs exit time theory for unstable stationary points to study saddle point escape dynamics.
- Characterizes the dependence of escape time on step size, showing exponential vs. almost linear scaling.
- Derives theoretical conditions under which small batch sizes enhance escape from sharp minimizers and saddle points.
- Proposes a training strategy of increasing batch size over time to favor flat minimizers.
Experimental results
Research questions
- RQ1How does the step size influence the escape time of SGD from local minimizers in nonconvex optimization?
- RQ2What is the theoretical relationship between batch size and the ability of SGD to escape saddle points and sharp minimizers?
- RQ3How do diffusion approximations explain the dynamics of SGD near unstable and stable stationary points?
- RQ4Why does increasing batch size in later training stages improve generalization?
Key findings
- The weak approximation of SGD by a diffusion process confirms that escape from local minimizers scales exponentially with the inverse step size.
- Escape from saddle points occurs in almost linear time relative to the inverse step size under the same conditions.
- Small batch sizes enhance the likelihood of escaping sharp minimizers and unstable stationary points due to higher noise levels.
- The theory supports increasing batch size during training to favor convergence to flatter minimizers, which generalize better.
- The results are grounded in large deviations for local minimizers and exit time theory for unstable equilibria.
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.