Adam Reduces a Unique Form of Sharpness: Theoretical Insights Near the Minimizer Manifold
Xinghan Li, Haodong Wen, Kaifeng Lyu
TL;DR
The paper investigates Adam's implicit bias beyond SGD by developing a slow SDE framework that tracks adaptive preconditioning near the minimizer manifold $\Gamma$ over long time horizons. It proves that Adam implicitly minimizes a unique sharpness measure $\mathrm{tr}(\mathrm{Diag}(\mathbf{H})^{1/2})$, distinct from SGD's Hessian-trace goal, and shows this bias can improve sparse ground-truth recovery in diagonal-net settings but may hurt generalization in matrix-factorization tasks with label noise. The authors extend the slow SDE approach to a broad class of adaptive gradient methods (AGMs) and provide high-probability convergence guarantees, a principled interpretation of the preconditioner’s role, and practical variants like AdamE to tune the implicit bias. Empirical results on diagonal nets and matrix factorization illustrate the distinct trajectories and generalization outcomes under label noise, while theoretical results suggest careful optimizer design is needed to leverage adaptive sharpness reduction for generalization benefits. Overall, the work offers a unified perspective on how adaptive optimizers reduce sharpness and opens avenues for designing AGMs with targeted implicit regularizers.
Abstract
Despite the popularity of the Adam optimizer in practice, most theoretical analyses study Stochastic Gradient Descent (SGD) as a proxy for Adam, and little is known about how the solutions found by Adam differ. In this paper, we show that Adam implicitly reduces a unique form of sharpness measure shaped by its adaptive updates, leading to qualitatively different solutions from SGD. More specifically, when the training loss is small, Adam wanders around the manifold of minimizers and takes semi-gradients to minimize this sharpness measure in an adaptive manner, a behavior we rigorously characterize through a continuous-time approximation using stochastic differential equations. We further demonstrate how this behavior differs from that of SGD in a well-studied setting: when training overparameterized models with label noise, SGD has been shown to minimize the trace of the Hessian matrix, $\tr(\mH)$, whereas we prove that Adam minimizes $\tr(\Diag(\mH)^{1/2})$ instead. In solving sparse linear regression with diagonal linear networks, this distinction enables Adam to achieve better sparsity and generalization than SGD. Finally, our analysis framework extends beyond Adam to a broad class of adaptive gradient methods, including RMSProp, Adam-mini, Adalayer and Shampoo, and provides a unified perspective on how these adaptive optimizers reduce sharpness, which we hope will offer insights for future optimizer design.
