Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Inertia: Disentangling the Effects of Adaptive Learning Rate and Momentum

Zeke Xie, Xinrui Wang|arXiv (Cornell University)|Jun 29, 2020
Stochastic Gradient Optimization TechniquesComputer Science13 citations
TL;DR

This paper disentangles the effects of adaptive learning rate and momentum in Adam, showing that adaptive learning rate accelerates saddle-point escape but favors sharp minima, while momentum aids escape with minimal impact on minima selection. To improve generalization, the authors propose Adaptive Inertia (Adai), a novel optimizer that adaptively adjusts momentum per parameter, provably favoring flat minima and outperforming both Adam and SGD in generalization while maintaining fast convergence.

ABSTRACT

Adaptive Moment Estimation (Adam), which combines Adaptive Learning Rate and Momentum, would be the most popular stochastic optimizer for accelerating the training of deep neural networks. However, it is empirically known that Adam often generalizes worse than Stochastic Gradient Descent (SGD). The purpose of this paper is to unveil the mystery of this behavior in the diffusion theoretical framework. Specifically, we disentangle the effects of Adaptive Learning Rate and Momentum of the Adam dynamics on saddle-point escaping and flat minima selection. We prove that Adaptive Learning Rate can escape saddle points efficiently, but cannot select flat minima as SGD does. In contrast, Momentum provides a drift effect to help the training process pass through saddle points, and almost does not affect flat minima selection. This partly explains why SGD (with Momentum) generalizes better, while Adam generalizes worse but converges faster. Furthermore, motivated by the analysis, we design a novel adaptive optimization framework named Adaptive Inertia, which uses parameter-wise adaptive inertia to accelerate the training and provably favors flat minima as well as SGD. Our extensive experiments demonstrate that the proposed adaptive inertia method can generalize significantly better than SGD and conventional adaptive gradient methods.

Motivation & Objective

  • To understand why Adam converges faster than SGD but generalizes worse, particularly in terms of minima selection and saddle-point escape.
  • To disentangle the distinct roles of adaptive learning rate and momentum in Adam's dynamics using diffusion theory.
  • To explain the empirical observation that Adam finds sharper minima than SGD despite faster convergence.
  • To design a new optimization framework that retains Adam's fast convergence while improving generalization by favoring flatter minima.
  • To theoretically and empirically validate that Adaptive Inertia (Adai) can escape saddle points quickly and select flatter minima, matching SGD's generalization performance.

Proposed method

  • The authors model Adam's dynamics using a stochastic differential equation (SDE) in the diffusion framework, treating optimization as a continuous-time Langevin process.
  • They decompose Adam into two components: adaptive learning rate (modeled as anisotropic diffusion) and momentum (modeled as a drift term), and analyze their individual effects on saddle-point escape and minima selection.
  • Using Fokker-Planck equations and diffusion matrix analysis, they prove that adaptive learning rate enables fast saddle-point escape but does not favor flat minima, while momentum provides a drift effect for escape with negligible impact on minima sharpness.
  • Based on this analysis, they propose Adaptive Inertia (Adai), which replaces adaptive learning rates with parameter-wise adaptive momentum (inertia), where the inertia coefficient is adjusted based on the moving average of gradient magnitudes.
  • Adai is formulated as a modified momentum update with a time-varying, parameter-specific inertia term, derived from the Newtonian motion analogy of optimization dynamics.
  • The method is implemented with stable and decoupled weight decay variants (AdaiS/AdaiW), ensuring compatibility with standard training practices.

Experimental results

Research questions

  • RQ1How do adaptive learning rate and momentum in Adam individually affect saddle-point escaping and flat minima selection?
  • RQ2Why does Adam converge faster than SGD but generalize worse, despite SGD's superior generalization performance?
  • RQ3Can the dynamics of Adam be disentangled to isolate the contributions of adaptive learning rate and momentum to optimization behavior?
  • RQ4Can a new optimization framework be designed that combines fast convergence (from adaptive learning rate) with good generalization (from flat minima selection)?
  • RQ5Does a parameter-wise adaptive momentum mechanism (Adaptive Inertia) provably favor flat minima while maintaining fast saddle-point escape?

Key findings

  • Adaptive learning rate enables fast escape from saddle points but does not favor flat minima, explaining why Adam finds sharper minima than SGD.
  • Momentum provides a drift effect that aids in escaping saddle points but has minimal influence on the selection of flat versus sharp minima.
  • Adaptive Inertia (Adai) provably escapes saddle points quickly and selects flatter minima, matching the generalization behavior of SGD.
  • Extensive experiments show that Adai generalizes significantly better than both Adam and SGD on CIFAR-10, CIFAR-100, and ImageNet with ResNet and Vision Transformer architectures.
  • The expected minima sharpness analysis confirms that Adai and SGD learn flatter minima than Adam, with Adai showing robustness to weight perturbations.
  • Adai achieves faster convergence than SGD while matching or exceeding its generalization performance, outperforming Adam in test accuracy across multiple benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.