Convergence rates for the Adam optimizer

Steffen Dereich,Arnulf Jentzen
2024-07-30
Abstract:Stochastic gradient descent (SGD) optimization methods are nowadays the method of choice for the training of deep neural networks (DNNs) in artificial intelligence systems. In practically relevant training problems, usually not the plain vanilla standard SGD method is the employed optimization scheme but instead suitably accelerated and adaptive SGD optimization methods are applied. As of today, maybe the most popular variant of such accelerated and adaptive SGD optimization methods is the famous Adam optimizer proposed by Kingma & Ba in 2014. Despite the popularity of the Adam optimizer in implementations, it remained an open problem of research to provide a convergence analysis for the Adam optimizer even in the situation of simple quadratic stochastic optimization problems where the objective function (the function one intends to minimize) is strongly convex. In this work we solve this problem by establishing optimal convergence rates for the Adam optimizer for a large class of stochastic optimization problems, in particular, covering simple quadratic stochastic optimization problems. The key ingredient of our convergence analysis is a new vector field function which we propose to refer to as the Adam vector field. This Adam vector field accurately describes the macroscopic behaviour of the Adam optimization process but differs from the negative gradient of the objective function (the function we intend to minimize) of the considered stochastic optimization problem. In particular, our convergence analysis reveals that the Adam optimizer does typically not converge to critical points of the objective function (zeros of the gradient of the objective function) of the considered optimization problem but converges with rates to zeros of this Adam vector field.
Optimization and Control,Machine Learning,Probability
What problem does this paper attempt to address?
The paper aims to address the issue of convergence analysis of the Adam optimizer in simple quadratic stochastic optimization problems. Although the Adam optimizer is very popular in practical applications, its convergence analysis in simple quadratic stochastic optimization problems (where the objective function is a strongly convex function) has remained an unresolved issue. This paper resolves this issue by introducing a new vector field function—the Adam vector field—and establishes the optimal convergence rate for the Adam optimizer under a class of stochastic optimization problems. Specifically, the authors address this issue through the following points: 1. **Introduction of the Adam vector field**: This is a key tool for describing the macroscopic behavior of the Adam optimization process, which is different from the negative direction of the objective function gradient. 2. **Establishment of convergence rate**: It is proven that the Adam optimizer generally does not converge to the critical points of the objective function (i.e., points where the gradient is zero), but rather converges to the zero points of the Adam vector field at a certain rate. 3. **Theoretical analysis**: Through the method of ordinary differential equations (ODE), a detailed mathematical analysis of the convergence behavior of the Adam optimizer is conducted. In summary, this paper fills the theoretical gap in the convergence analysis of the Adam optimizer in simple quadratic stochastic optimization problems, providing a solid theoretical foundation for understanding and further improving this algorithm.