Adam Reduces a Unique Form of Sharpness: Theoretical Insights Near the Minimizer Manifold

Xinghan Li, Haodong Wen, Kaifeng Lyu

Abstract

While Adam is the standard optimizer for modern deep learning, a rigorous understanding of why its solutions generalize differently than those found by SGD has been elusive. This research demonstrates that Adam implicitly minimizes a unique form of "adaptive sharpness"—specifically the trace of the square root of the Hessian's diagonal. This theoretical framework explains why Adam excels at sparse recovery but can underperform SGD in tasks like matrix factorization, providing a mathematical signature for the solutions Adam selects on the minimizer manifold.

The Challenge of Implicit Bias in Overparameterized Models

In the overparameterized regime of deep learning, models typically possess an entire manifold of global minimizers—a continuous "valley" where training loss is zero. The specific point an optimizer selects on this manifold determines the model's generalization performance on unseen data, a phenomenon known as implicit bias.

While the implicit bias of Stochastic Gradient Descent (SGD) is well-studied—it tends to find "flat" solutions by minimizing the trace of the Hessian matrix—Adam's behavior is more complex. Because Adam employs adaptive learning rates for every parameter, standard SGD-based proofs often fail to capture its unique dynamics. This paper addresses this gap by asking: What is the unique mathematical signature of the solutions Adam finds, and how does it differ from SGD?

Theoretical Framework: The Slow SDE Approach

To analyze Adam's long-term behavior, the authors utilize a Slow Stochastic Differential Equation (SDE) framework. Unlike standard SDEs that track convergence to the loss valley, "Slow" SDEs characterize the infinitesimal "drifts" and "diffusions" that push the model along the bottom of the manifold over extended timescales.

Key components of this analysis include:

  • Preconditioner Flow Projection: Adam’s updates are scaled by a moving average of squared gradients (the preconditioner). The authors developed a method to project these dynamics onto the minimizer manifold while accounting for this coordinate-wise scaling.
  • The "2-scheme" Analysis: To ensure mathematical tractability, the researchers analyzed a regime where the second-moment decay ($\beta_2$) is linked to the learning rate ($\eta$), specifically $1 - \beta_2 = \Theta(\eta^2)$.

Key Insights: Adaptive Sharpness and Sparsity

The most significant finding is that Adam does not minimize the standard Hessian trace $\text{tr}(\mathbf{H})$. Instead, it minimizes an "adaptive" sharpness measure: $\text{tr}(\text{Diag}(\mathbf{H})^{1/2})$. This implies that Adam prioritizes the "flatness" of each parameter individually rather than the collective flatness of the parameter space.

Visualization of optimizer trajectories on a 2D elliptical loss manifold showing how Adam and SGD drift to different points on the manifold.

This unique bias has profound implications for different architectures:

  • The Sparsity Connection: In diagonal linear networks, minimizing Adam’s unique sharpness measure is mathematically equivalent to minimizing the $\ell_{0.5}$ norm of the weights. Since $\ell_p$ norms with $p < 1$ strongly favor sparsity, this explains Adam's natural proficiency in sparse recovery tasks.
  • The Matrix Factorization Failure: Conversely, Adam’s "coordinate-aligned" bias ignores interactions between parameters. In matrix factorization, where low-rank structures involve off-diagonal interactions, Adam’s bias can be detrimental compared to SGD, which considers the full Hessian trace.

Experimental Results

The authors validated their theory using controlled synthetic environments:

  1. Sparse Recovery: In diagonal linear networks, Adam recovered sparse ground truths with significantly fewer training samples than SGD.
  2. Generalization Gap: In deep matrix factorization, Adam achieved training errors comparable to SGD but significantly higher test errors. Adam successfully minimized its "diagonal sharpness" while allowing the actual Hessian trace—which correlates with low-rank generalization—to remain high.
  3. Convergence Proof: The paper provides a new high-probability convergence guarantee for adaptive gradient methods under the Polyak-Łojasiewicz (PL) condition, showing they remain near the manifold for $O(\eta^{-2})$ steps.

Limitations and Future Directions

While providing a breakthrough in understanding adaptive optimizers, several questions remain:

  • Hyperparameter Scaling: The results rely on the "2-scheme" ($1 - \beta_2 \propto \eta^2$). It is unclear if the bias shifts under the fixed $\beta_2$ values (e.g., 0.999) typically used in practice.
  • AdamW: The analysis does not yet cover AdamW, where weight decay is decoupled from the gradient update.
  • Early Training Dynamics: The theory assumes the model is already near a smooth manifold of minimizers, leaving the "chaotic" early phase of training for future study.

Summary updated

BibTeX
@inproceedings{li2025adam,
  author = {Xinghan Li and Haodong Wen and Kaifeng Lyu},
  title = {{Adam Reduces a Unique Form of Sharpness: Theoretical Insights Near the Minimizer Manifold}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=kCUDzyKQ7G},
}
Figure