[Paper Review] Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learning
The paper explains SGD’s better generalization over Adam by modeling gradient noise with Lévy-driven SDEs and analyzing escape times from local basins, linking Radon measure to basin stability.
It is not clear yet why ADAM-alike adaptive gradient algorithms suffer from worse generalization performance than SGD despite their faster training speed. This work aims to provide understandings on this generalization gap by analyzing their local convergence behaviors. Specifically, we observe the heavy tails of gradient noise in these algorithms. This motivates us to analyze these algorithms through their Levy-driven stochastic differential equations (SDEs) because of the similar convergence behaviors of an algorithm and its SDE. Then we establish the escaping time of these SDEs from a local basin. The result shows that (1) the escaping time of both SGD and ADAM~depends on the Radon measure of the basin positively and the heaviness of gradient noise negatively; (2) for the same basin, SGD enjoys smaller escaping time than ADAM, mainly because (a) the geometry adaptation in ADAM~via adaptively scaling each gradient coordinate well diminishes the anisotropic structure in gradient noise and results in larger Radon measure of a basin; (b) the exponential gradient average in ADAM~smooths its gradient and leads to lighter gradient noise tails than SGD. So SGD is more locally unstable than ADAM~at sharp minima defined as the minima whose local basins have small Radon measure, and can better escape from them to flatter ones with larger Radon measure. As flat minima here which often refer to the minima at flat or asymmetric basins/valleys often generalize better than sharp ones , our result explains the better generalization performance of SGD over ADAM. Finally, experimental results confirm our heavy-tailed gradient noise assumption and theoretical affirmation.
Motivation & Objective
- Motivate the generalization gap between SGD and Adam in deep learning.
- Introduce a Lévy-driven SDE framework to model gradient noise in SGD and Adam.
- Analyze escaping times from local basins to explain convergence to flatter minima.
- Link gradient-noise tail heaviness and geometry-adaptation to generalization performance.
Proposed method
- Formulate SGD and Adam as discretizations of Lévy-driven stochastic differential equations (SDEs).
- Assume gradient noise follows SαS (heavy-tailed) distributions with time-dependent covariance.
- Derive the escaping time Γ from a local basin Ω and characterize it via Radon measure m(W).
- Prove Γ has order O(ε^{-1}/m(W)) and analyze how geometry adaptation (Adam) and noise tails affect escape.
- Decompose Lévy processes into jump and small-motion parts to study escape dynamics (Theorem 2).
- Provide empirical validation of heavy-tailed gradient noise and the theoretical framework.
Experimental results
Research questions
- RQ1Why does SGD generalize better than Adam in deep learning settings?
- RQ2How do heavy-tailed gradient noise and per-coordinate learning-rate adaptations influence optimization dynamics?
- RQ3What is the role of basin geometry, via Radon measure, in the escaping behavior of SGD and Adam?
- RQ4How do escape times relate to converging to flatter/asymmetric basins and generalization performance.
Key findings
- Gradient noise in SGD and Adam is heavy-tailed and can be modeled by SαS distributions; this Tail behavior affects optimization dynamics.
- Both SGD and Adam escape from sharp minima, with SGD typically escaping faster to basins with larger Radon measure, explaining better generalization.
- Adam’s per-coordinate scaling reduces the effective Radon measure of escaping sets, hindering escape to flatter basins.
- The escaping time Γ scales as O(1 / (m(W) Θ(ε^{-1}))) showing larger basins (Radon measure) resist escape and favor flatter minima.
- SGD can exhibit heavier tail indices α at times, enabling larger jumps and faster basin transitions, contributing to flatter minima.
- Experiments corroborate heavy-tailed gradient noise and support the theoretical claims.
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.