[Paper Review] Adam Converges Without Any Modification On Update Rules
The paper proves that vanilla Adam converges when problem-dependent hyperparameters are chosen, revealing a beta1–beta2 phase transition and batch-size dependence, and offering practical tuning guidance.
Adam is the default algorithm for training neural networks, including large language models (LLMs). However, \citet{reddi2019convergence} provided an example that Adam diverges, raising concerns for its deployment in AI model training. We identify a key mismatch between the divergence example and practice: \citet{reddi2019convergence} 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)$. In this work, we prove that Adam converges with proper problem-dependent hyperparameters. First, we prove that Adam converges when $β_2$ is large and $β_1 < \sqrt{β_2}$. Second, when $β_2$ is small, we point out a region of $(β_1,β_2)$ combinations where Adam can diverge to infinity. Our results indicate a phase transition for Adam from divergence to convergence when changing the $(β_1, β_2)$ combination. To our knowledge, this is the first phase transition in $(β_1,β_2)$ 2D-plane reported in the literature, providing rigorous theoretical guarantees for Adam optimizer. We further point out that the critical boundary $(β_1^*, β_2^*)$ is problem-dependent, and particularly, dependent on batch size. This provides suggestions on how to tune $β_1$ and $β_2$: when Adam does not work well, we suggest tuning up $β_2$ inversely with batch size to surpass the threshold $β_2^*$, and then trying $β_1< \sqrt{β_2}$. Our suggestions are supported by reports from several empirical studies, which observe improved LLM training performance when applying them.
Motivation & Objective
- Motivate the discrepancy between classical divergence results and practical success of Adam in fixed problems.
- Establish conditions under which vanilla Adam converges with no changes to the update rules.
- Characterize a divergence–convergence phase transition in the beta1–beta2 plane.
- Highlight the dependence of convergence on batch size and provide tuning guidance for practitioners.
Proposed method
- Analyze Adam under two sampling schemes: with-replacement and random shuffling.
- Derive non-asymptotic convergence results for arbitrary problem class F_L,D0,D1^n via Theorem 3.1 (with-replacement) and Theorem 3.3 (random shuffling).
- Show that large beta2 and beta1 < sqrt(beta2) yield convergence to critical points (realizable) or a neighborhood (non-realizable).
- Demonstrate a divergence region for small beta2 and provide a problem-dependent boundary beta1*, beta2*.
- Explain concentration analysis around 1/sqrt(v_k) to handle unbounded gradients without assuming boundedness.
- Compare to Reddi et al. (2018) by fixing the problem before selecting beta1,beta2 and by revealing a phase transition dependent on problem class and batch size.

Experimental results
Research questions
- RQ1Can vanilla Adam converge without modifying its update rules when the problem is fixed and hyperparameters are chosen appropriately?
- RQ2How do beta1 and beta2 influence convergence/divergence regions for Adam in finite-sum ERM problems?
- RQ3Does a phase transition exist in the beta1–beta2 plane that separates convergence from divergence?
- RQ4How do batch size and problem-class parameters affect the critical boundary for convergence?
- RQ5What practical tuning guidance emerges from a theory that couples beta1, beta2 to batch size and problem class?
Key findings
- There is a convergence region: if 0 ≤ beta1 < sqrt(beta2) < 1 and beta2 exceeds a problem-dependent threshold, Adam converges to critical points (realizable) or a neighborhood (non-realizable).
- There is a divergence region: for small beta2, there exists problem-class instances where Adam diverges to infinity, with the boundary expanding with the number of mini-batches n (i.e., smaller batch size).
- A phase transition in the beta1–beta2 plane exists, separating divergence and convergence, and the boundary depends on the problem class and batch size.
- The critical boundary (beta1*, beta2*) is problem-dependent and grows inversely with batch size, implying larger beta2 is needed for smaller batches.
- Large beta2 empirically aligns with improved training in LLM pre-training when adjusting beta2 with batch size; tuning beta1 below sqrt(beta2) is recommended once beta2 is sufficiently large.
- The analysis covers two sampling schemes (with-replacement and random shuffling) and does not assume bounded gradients, enabling insights into unbounded-gradient behavior.

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.