[Paper Review] The Impact of Local Geometry and Batch Size on Stochastic Gradient Descent for Nonconvex Problems
This paper challenges the widely accepted stochastic mechanism explaining why SGD favors flatter minimizers in nonconvex optimization, proposing instead a deterministic mechanism based on local geometry and batch size. It derives a theoretical framework showing that SGD diverges from sharp minimizers when batch size and learning rate are mismatched, verified through experiments on nonconvex problems with exponential divergence patterns.
In several experimental reports on nonconvex optimization problems in machine learning, stochastic gradient descent (SGD) was observed to prefer minimizers with flat basins in comparison to more deterministic methods, yet there is very little rigorous understanding of this phenomenon. In fact, the lack of such work has led to an unverified, but widely-accepted stochastic mechanism describing why SGD prefers flatter minimizers to sharper minimizers. However, as we demonstrate, the stochastic mechanism fails to explain this phenomenon. Here, we propose an alternative deterministic mechanism that can accurately explain why SGD prefers flatter minimizers to sharper minimizers. We derive this mechanism based on a detailed analysis of a generic stochastic quadratic problem, which generalizes known results for classical gradient descent. Finally, we verify the predictions of our deterministic mechanism on two nonconvex problems.
Motivation & Objective
- To challenge the widely accepted stochastic mechanism that claims SGD prefers flatter minimizers due to noise-induced basin exploration.
- To identify a more rigorous, deterministic explanation for why SGD converges to flatter minimizers in nonconvex problems.
- To develop a mechanism based on local geometry and batch size that predicts convergence or divergence from minimizers.
- To empirically validate the proposed mechanism on two nonconvex problems using SGD with varying batch sizes and learning rates.
Proposed method
- Analyzes a generic stochastic quadratic problem to generalize classical gradient descent results to nonconvex settings.
- Derives a deterministic condition for divergence from a minimizer based on the Hessian's eigenvalues and batch size.
- Introduces a learning rate threshold dependent on the minimizer's local curvature and batch size to predict stability or divergence.
- Uses SGD- $k$ as a proxy for mini-batch SGD, where $k$ represents the batch size, to simulate and analyze convergence behavior.
- Employs numerical experiments on two nonconvex models to test predictions of exponential divergence from sharp minimizers.
- Compares SGD behavior across different initial radii and learning rates to validate robustness of the deterministic mechanism.
Experimental results
Research questions
- RQ1Why does SGD prefer flatter minimizers over sharper ones, contrary to what the stochastic mechanism predicts?
- RQ2Can a deterministic mechanism based on local geometry and batch size explain SGD's convergence behavior in nonconvex problems?
- RQ3Does the proposed mechanism predict exponential divergence from sharp minimizers under specific learning rate and batch size conditions?
- RQ4How do variations in learning rate and initial starting radius affect convergence or divergence from minimizers?
- RQ5Can the deterministic mechanism reliably predict whether SGD will stabilize near a minimizer or diverge?
Key findings
- The stochastic mechanism fails to explain SGD’s preference for flatter minimizers, as it predicts higher probability of being in larger basins, not flatter ones.
- Exponential divergence from sharp minimizers is observed in experiments when learning rates exceed a threshold derived from local geometry and batch size.
- For learning rates below the threshold (e.g., 0.5u), both flat and sharp minimizers show stability and convergence, consistent with the deterministic mechanism.
- The mechanism correctly predicts divergence from both flat and sharp minimizers when learning rates are too high (e.g., 1.5l and 0.5(u+l)).
- The behavior is robust across different starting radii, confirming that the mechanism depends on local geometry and batch size, not initial position.
- Empirical results on two nonconvex models confirm that the deterministic mechanism accurately predicts divergence patterns, with strong alignment to theoretical predictions.
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.