[Paper Review] Towards Practical Adam: Non-Convexity, Convergence Theory, and Mini-Batch Acceleration
This paper proposes a simple, easy-to-check sufficient condition for global convergence of the Adam optimizer in non-convex stochastic optimization, resolving known divergence issues. It further establishes linear speedup in mini-batch and distributed Adam, showing convergence improves with larger batch sizes or more nodes, validated empirically on real-world datasets.
Adam is one of the most influential adaptive stochastic algorithms for training deep neural networks, which has been pointed out to be divergent even in the simple convex setting via a few simple counterexamples. Many attempts, such as decreasing an adaptive learning rate, adopting a big batch size, incorporating a temporal decorrelation technique, seeking an analogous surrogate, extit{etc.}, have been tried to promote Adam-type algorithms to converge. In contrast with existing approaches, we introduce an alternative easy-to-check sufficient condition, which merely depends on the parameters of the base learning rate and combinations of historical second-order moments, to guarantee the global convergence of generic Adam for solving large-scale non-convex stochastic optimization. This observation, coupled with this sufficient condition, gives much deeper interpretations on the divergence of Adam. On the other hand, in practice, mini-Adam and distributed-Adam are widely used without any theoretical guarantee. We further give an analysis on how the batch size or the number of nodes in the distributed system affects the convergence of Adam, which theoretically shows that mini-batch and distributed Adam can be linearly accelerated by using a larger mini-batch size or a larger number of nodes.At last, we apply the generic Adam and mini-batch Adam with the sufficient condition for solving the counterexample and training several neural networks on various real-world datasets. Experimental results are exactly in accord with our theoretical analysis.
Motivation & Objective
- To resolve the known divergence issues of Adam in non-convex optimization by identifying a simple, checkable sufficient condition for global convergence.
- To provide theoretical justification for the practical use of mini-batch and distributed Adam, which lack prior convergence guarantees.
- To establish linear speedup properties for mini-batch and distributed Adam under the parameter-server model.
- To validate the theoretical findings through experiments on real-world neural network training tasks.
Proposed method
- Introduces a sufficient condition for global convergence of generic Adam that depends only on the base learning rate and combinations of historical second-order moments.
- Derives convergence rates for generic Adam under this condition using a refined analysis technique, yielding cleaner bounds than prior work.
- Analyzes mini-batch Adam and distributed Adam in the parameter-server model, proving linear speedup with respect to batch size and number of nodes.
- Employs a novel inequality technique to bound the norm of the gradient, enabling tighter convergence rate derivation.
- Uses a modified analysis framework to handle time-varying learning rates and adaptive momentum terms in non-convex settings.
- Validates theoretical results via experiments on counterexamples and real-world deep learning tasks.
Experimental results
Research questions
- RQ1Can a simple, easy-to-check condition guarantee global convergence of Adam in non-convex stochastic optimization?
- RQ2How does increasing batch size affect the convergence rate of mini-batch Adam?
- RQ3Can distributed Adam achieve linear speedup in the parameter-server model?
- RQ4Does the proposed convergence condition resolve known divergence issues in Adam?
- RQ5What is the theoretical convergence rate of Adam under the new sufficient condition?
Key findings
- The proposed sufficient condition ensures global convergence of generic Adam in non-convex stochastic optimization, providing a practical remedy for known divergence issues.
- The convergence rate of generic Adam is bounded by $\mathcal{O}(T^{-1}s^{1/2}d^{1/2} + T^{-1/2}d + T^{-1/3}s^{-1/4} + T^{-1/4}s^{-1/4}d^{1/2})$, where $T$ is the number of iterations, $s$ is the batch size, and $d$ is the dimension.
- Mini-batch Adam achieves linear speedup: convergence improves proportionally with larger batch sizes, as predicted by the theory.
- Distributed Adam also exhibits linear speedup with respect to the number of nodes in the parameter-server model.
- Empirical results on counterexamples and real-world datasets confirm the theoretical convergence behavior and speedup effects.
- The analysis technique yields cleaner convergence rates compared to prior work, particularly in handling time-varying learning rates and adaptive momentum.
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.