Skip to main content
QUICK REVIEW

[Paper Review] Adam Can Converge Without Any Modification On Update Rules

Yushun Zhang, Congliang Chen|arXiv (Cornell University)|Aug 20, 2022
Stochastic Gradient Optimization TechniquesComputer Science6 citations
TL;DR

This paper proves that the Adam optimizer converges to a neighborhood of critical points without any modification to its update rules, under a new theoretical framework that reverses the order of hyperparameter and problem selection. It establishes convergence when β₂ is large and β₁ < √β₂ < 1, covering standard settings like β₁ = 0.9, and identifies a phase transition from divergence to convergence as β₂ increases.

ABSTRACT

Ever since Reddi et al. 2018 pointed out the divergence issue of Adam, many new variants have been designed to obtain convergence. However, vanilla Adam remains exceptionally popular and it works well in practice. Why is there a gap between theory and practice? We point out there is a mismatch between the settings of theory and practice: Reddi et al. 2018 pick the problem after picking the hyperparameters of Adam, i.e., $(β_1, β_2)$; while practical applications often fix the problem first and then tune $(β_1, β_2)$. Due to this observation, we conjecture that the empirical convergence can be theoretically justified, only if we change the order of picking the problem and hyperparameter. In this work, we confirm this conjecture. We prove that, when $β_2$ is large and $β_1 &lt; \sqrt{β_2}&lt;1$, Adam converges to the neighborhood of critical points. The size of the neighborhood is propositional to the variance of stochastic gradients. Under an extra condition (strong growth condition), Adam converges to critical points. It is worth mentioning that our results cover a wide range of hyperparameters: as $β_2$ increases, our convergence result can cover any $β_1 \in [0,1)$ including $β_1=0.9$, which is the default setting in deep learning libraries. To our knowledge, this is the first result showing that Adam can converge without any modification on its update rules. Further, our analysis does not require assumptions of bounded gradients or bounded 2nd-order momentum. When $β_2$ is small, we further point out a large region of $(β_1,β_2)$ where Adam can diverge to infinity. Our divergence result considers the same setting as our convergence result, indicating a phase transition from divergence to convergence when increasing $β_2$. These positive and negative results can provide suggestions on how to tune Adam hyperparameters.

Motivation & Objective

  • To resolve the long-standing theory-practice gap in Adam optimizer convergence.
  • To identify conditions under which vanilla Adam converges without algorithmic modifications.
  • To explain why Adam works well in practice despite theoretical divergence issues.
  • To establish a convergence framework that aligns with practical hyperparameter tuning order.
  • To characterize the phase transition from divergence to convergence as β₂ increases.

Proposed method

  • Reformulate the theoretical analysis by fixing the optimization problem first, then tuning β₁ and β₂—contrary to prior work that fixed hyperparameters first.
  • Prove convergence of Adam to a neighborhood of critical points when β₂ is large and β₁ < √β₂ < 1.
  • Establish convergence to critical points under the strong growth condition, without requiring bounded gradients or bounded second-order momentum.
  • Analyze divergence in a large region of (β₁, β₂) when β₂ is small, using the same framework as the convergence result.
  • Use a novel analysis technique that accounts for the variance of stochastic gradients in the convergence neighborhood.
  • Provide a unified theoretical framework that explains both convergence and divergence in Adam based on β₂ values.

Experimental results

Research questions

  • RQ1Why does Adam converge in practice despite theoretical divergence in prior work?
  • RQ2Can vanilla Adam converge without any modification to its update rules under realistic hyperparameter settings?
  • RQ3What is the role of β₂ in determining the convergence or divergence of Adam?
  • RQ4Is there a phase transition in Adam’s behavior as β₂ increases?
  • RQ5Can convergence be proven without assuming bounded gradients or bounded second-order momentum?

Key findings

  • Adam converges to a neighborhood of critical points when β₂ is large and β₁ < √β₂ < 1, with the neighborhood size proportional to the stochastic gradient variance.
  • Under the strong growth condition, Adam converges to critical points, not just their neighborhood.
  • The convergence result covers all standard β₁ values, including β₁ = 0.9, which is the default in deep learning libraries.
  • A divergence region is identified for small β₂, indicating a phase transition from divergence to convergence as β₂ increases.
  • The analysis does not require bounded gradients or bounded second-order momentum, making it more general than prior works.
  • The theoretical framework aligns with practical hyperparameter tuning order, resolving the mismatch between theory and practice.

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.