Convergence of Adam Under Relaxed Assumptions

Haochuan Li, Alexander Rakhlin, Ali Jadbabaie

Introduction

In this paper, we study the non-convex unconstrained stochastic optimization problem

The Adaptive Moment Estimation (Adam) algorithm (Kingma and Ba, 2014) has become one of the most popular optimizers for solving (1) when ff is the loss for training deep neural networks. Owing to its efficiency and robustness to hyper-parameters, it is widely applied or even sometimes the default choice in many machine learning application domains such as natural language processing (Vaswani et al., 2017; Brown et al., 2020; Devlin et al., 2019), generative adversarial networks (Radford et al., 2015; Isola et al., 2016; Zhu et al., 2017), computer vision (Dosovitskiy et al., 2020), and reinforcement learning (Lillicrap et al., 2015; Mnih et al., 2016; Schulman et al., 2017). It is also well known that Adam significantly outperforms stochastic gradient descent (SGD) for certain models like transformer (Zhang et al., 2020b; Kunstner et al., 2023; Ahn et al., 2023).

Despite its success in practice, theoretical analyses of Adam are still limited. The original proof of convergence in (Kingma and Ba, 2014) was later shown by Reddi et al. (2018) to contain gaps. The authors in (Reddi et al., 2018) also showed that for a range of momentum parameters chosen independently with the problem instance, Adam does not necessarily converge even for convex objectives. However, in deep learning practice, the hyper-parameters are in fact problem-dependent as they are usually tuned after given the problem and weight initialization. Recently, there have been many works proving the convergence of Adam for non-convex functions with various assumptions and problem-dependent hyper-parameter choices. However, these results leave significant room for improvement. For example, (D’efossez et al., 2020; Guo et al., 2021) prove the convergence to stationary points assuming the gradients are bounded by a constant, either explicitly or implicitly. On the other hand, (Zhang et al., 2022; Wang et al., 2022) consider weak assumptions, but their convergence results are still limited. See Section 2 for more detailed discussions of related works.

To address the above-mentioned gap between theory and practice, we provide a new convergence analysis of Adam without assuming bounded gradients, or equivalently, Lipschitzness of the objective function. In addition, we also relax the standard global smoothness assumption, i.e., the Lipschitzness of the gradient function, as it is far from being satisfied in deep neural network training. Instead, we consider a more general, relaxed, and non-uniform smoothness condition according to which the local smoothness (i.e., Hessian norm when it exists) around xx is bounded by a sub-quadratic function of the gradient norm f(x)\left\|\nabla f(x)\right\| (see Definition 3.2 and Assumption 2 for the details). This generalizes the (L0,L1)(L_{0},L_{1}) smoothness condition proposed by (Zhang et al., 2019) based on language model experiments. Even though our assumptions are much weaker and more realistic, we can still obtain the same O(ϵ4)\mathcal{O}(\epsilon^{-4}) gradient complexity for convergence to an ϵ\epsilon-stationary point.

The key to our analysis is a new technique to obtain a high probability, constant upper bound on the gradients along the optimization trajectory of Adam, without assuming Lipschitzness of the objective function. In other words, it essentially turns the bounded gradient assumption into a result that can be directly proven. Bounded gradients imply bounded stepsize at each step, with which the analysis of Adam essentially reduces to the simpler analysis of AdaBound (Luo et al., 2019). Furthermore, once the gradient boundedness is achieved, the analysis under the generalized non-uniform smoothness assumption is not much harder than that under the standard smoothness condition. We will introduce the technique in more details in Section 5. We note that the idea of bounding gradient norm along the trajectory of the optimization algorithm can be use in other problems as well. For more details, we refer the reader to our concurrent work (Li et al., 2023) in which we present a set of new techiniques and methods for bounding gradient norm for other optimization algorithms under a generalized smoothness condition.

Another contribution of this paper is to show that the gradient complexity of Adam can be further improved with variance reduction methods. To this end, we propose a variance-reduced version of Adam by modifying its momentum update rule, inspired by the idea of the STORM algorithm (Cutkosky and Orabona, 2019). Under additional generalized smoothness assumption of the component function f(,ξ)f(\cdot,\xi) for each ξ\xi, we show that this provably accelerates the convergence with a gradient complexity of O(ϵ3)\mathcal{O}(\epsilon^{-3}). This rate improves upon the existing result of (Wang and Klabjan, 2022) where the authors obtain an asymptotic convergence of their approach to variance reduction for Adam in the non-convex setting, under the bounded gradient assumption.

In light of the above background, we summarize our main contributions as follows.

We develop a new analysis to show that Adam converges to stationary points under relaxed assumptions. In particular, we do not assume bounded gradients or Lipschitzness of the objective function. Furthermore, we also consider a generalized non-uniform smoothness condition where the local smoothness or Hessian norm is bounded by a sub-quadratic function of the gradient norm. Under these more realistic assumptions, we obtain a dimension free gradient complexity of O(ϵ4)\mathcal{O}(\epsilon^{-4}) if the gradient noise is centered and bounded.

We generalize our analysis to the setting where the gradient noise is centered and has sub-Gaussian norm, and show the convergence of Adam with a gradient complexity of O(ϵ4log3.25(1/ϵ))\mathcal{O}(\epsilon^{-4}\log^{3.25}(1/\epsilon)).

We propose a variance-reduced version of Adam (VRAdam) with provable convergence guarantees. In particular, we obtain the accelerated O(ϵ3)\mathcal{O}(\epsilon^{-3}) gradient complexity.

Related work

In this section, we discuss the relevant literature related to different aspects of our work.

Adam was first proposed by Kingma and Ba (2014) with a theoretical convergence guarantee for convex functions. However, Reddi et al. (2018) found a gap in the proof of this convergence analysis, and also constructed counter-examples for a range of hyper-parameters on which Adam does not converge. That being said, the counter-examples depend on the hyper-parameters of Adam, i.e., they are constructed after picking the hyper-parameters. Therefore, it does not rule out the possibility of obtaining convergence guarantees for problem-dependent hyper-parameters, as also pointed out by (Shi et al., 2021; Zhang et al., 2022).

Many recent works have developed convergence analyses of Adam with various assumptions and hyper-parameter choices. Zhou et al. (2018b) show Adam with certain hyper-parameters can work on the counter-examples of (Reddi et al., 2018). De et al. (2018) prove convergence for general non-convex functions assuming gradients are bounded and the signs of stochastic gradients are the same along the trajectory. The analysis in (D’efossez et al., 2020) also relies on the bounded gradient assumption. Guo et al. (2021) assume the adaptive stepsize is upper and lower bounded by two constants, which is not necessarily satisfied unless assuming bounded gradients or considering the AdaBound variant (Luo et al., 2019). (Zhang et al., 2022; Wang et al., 2022) consider very weak assumptions. However, they show either 1) “convergence” only to some neighborhood of stationary points with a constant radius, unless assuming the strong growth condition; or 2) convergence to stationary points but with a slower rate.

After Reddi et al. (2018) pointed out the non-convergence issue with Adam, various variants of Adam that can be proved to converge were proposed (Zou et al., 2018; Gadat and Gavra, 2022; Chen et al., 2018, 2022; Luo et al., 2019; Zhou et al., 2018b). For example, AMSGrad (Reddi et al., 2018) and AdaFom (Chen et al., 2018) modify the second order momentum so that it is non-decreasing. AdaBound (Luo et al., 2019) explicitly imposes upper and lower bounds on the second order momentum so that the stepsize is also bounded. AdaShift (Zhou et al., 2018b) uses a new estimate of the second order momentum to correct the bias. There are also some works (Zhou et al., 2018a; Gadat and Gavra, 2022; Iiduka, 2023) that provide convergence guarantees of these variants. One closely related work to ours is (Wang and Klabjan, 2022), which considers a variance-reduced version of Adam by combining Adam and SVRG (Johnson and Zhang, 2013). However, they assume bounded gradients and can only get an asymptotic convergence in the non-convex setting.

Generalizing the standard smoothness condition in a variety of settings has been a focus of many recent papers. Recently, (Zhang et al., 2019) proposed a generalized smoothness condition called (L0,L1)(L_{0},L_{1}) smoothness, which assumes the local smoothness or Hessian norm is bounded by an affine function of the gradient norm. The assumption was well-validated by extensive experiments conducted on language models. Various analyses of different algorithms under this condition were later developed (Zhang et al., 2020a; Qian et al., 2021; Zhao et al., 2021; Faw et al., 2023; Reisizadeh et al., 2023; Crawshaw et al., 2022). One recent closely-related work is (Wang et al., 2022) which studies converges of Adam under the (L0,L1)(L_{0},L_{1}) smoothness condition. However, their results are still limited, as we have mentioned above. In this paper, we consider an even more general smoothness condition where the local smoothness is bounded by a sub-quadratic function of the gradient norm, and prove the convergence of Adam under this condition. In our concurrent work (Li et al., 2023), we further analyze various other algorithms in both convex and non-convex settings under similar generalized smoothness conditions following the same key idea of bounding gradients along the trajectory.

The technique of variance reduction was introduced to accelerate convex optimization in the finite-sum setting (Roux et al., 2012; Johnson and Zhang, 2013; Shalev-Shwartz and Zhang, 2013; Mairal, 2013; Defazio et al., 2014). Later, many works studied variance-reduced methods in the non-convex setting and obtained improved convergence rates for standard smooth functions. For example, SVRG and SCSG improve the O(ϵ4)\mathcal{O}(\epsilon^{-4}) gradient complexity of stochastic gradient descent (SGD) to O(ϵ10/3)\mathcal{O}(\epsilon^{-10/3}) (Allen-Zhu and Hazan, 2016; Reddi et al., 2016; Lei et al., 2017). Many new variance reduction methods (Fang et al., 2018; Tran-Dinh et al., 2019; Liu et al., 2020; Li et al., 2021; Cutkosky and Orabona, 2019; Liu et al., 2023) were later proposed to further improve the complexity to O(ϵ3)\mathcal{O}(\epsilon^{-3}), which is optimal and matches the lower bound in (Arjevani et al., 2023). Recently, (Reisizadeh et al., 2023; Chen et al., 2023) obtained the O(ϵ3)\mathcal{O}(\epsilon^{-3}) complexity for the more general (L0,L1)(L_{0},L_{1}) smooth functions. Our variance-reduced Adam is motivated by the STORM algorithm proposed by (Cutkosky and Orabona, 2019), where an additional term is added in the momentum update to correct the bias and reduce the variance.

Preliminaries

The formal definition of Adam proposed in (Kingma and Ba, 2014) is shown in Algorithm 1, where Lines 5–9 describe the update rule of iterates {xt}1tT\{x_{t}\}_{1\leq t\leq T}. Lines 5–6 are the updates for the first and second order momentum, mtm_{t} and vtv_{t}, respectively. In Lines 7–8, they are re-scaled to m^t\hat{m}_{t} and v^t\hat{v}_{t} in order to correct the initialization bias due to setting m0=v0=0m_{0}=v_{0}=0. Then the iterate is updated by xt+1=xthtm^tx_{t+1}=x_{t}-h_{t}\odot\hat{m}_{t} where ht=η/(v^t+λ)h_{t}=\eta/(\sqrt{\hat{v}_{t}}+\lambda) is the adaptive stepsize vector for some parameters η\eta and λ\lambda.

2 Assumptions

In what follows below, we will state our main assumptions for analysis of Adam.

We start with a standard assumption in optimization on the objective function ff whose domain lies in a Euclidean space with dimension dd.

Besides Assumption 1, the only additional assumption we make regarding ff is that its local smoothness is bounded by a sub-quadratic function of the gradient norm. More formally, we consider the following (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smoothness condition with 0ρ<20\leq\rho<2.

A differentiable real-valued function ff is (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth for some constants ρ,L0,Lρ0\rho,L_{0},L_{\rho}\geq 0 if the following inequality holds almost everywhere in dom(f)\operatorname*{dom}(f)

When ρ=1\rho=1 , Definition 3.2 reduces to the (L0,L1)(L_{0},L_{1}) smoothness condition in (Zhang et al., 2019). When ρ=0\rho=0 or Lρ=0L_{\rho}=0, it reduces to the standard smoothness condition.

The objective function ff is (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth with 0ρ<20\leq\rho<2.

The standard smooth function class is very restrictive as it only contains functions that are upper and lower bounded by quadratic functions. The (L0,L1)(L_{0},L_{1}) smooth function class is more general since it also contains, e.g., univariate polynomials and exponential functions. Assumption 2 is even more general and contains univariate rational functions, double exponential functions, etc. See Appendix B.1 for the formal propositions and proofs. We also refer the reader to our concurrent work (Li et al., 2023) for more detailed discussions of examples of (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth functions for different ρ\rhos.

It turns out that bounded Hessian norm at a point xx implies local Lipschitzness of the gradient in the neighborhood around xx. In particular, we have the following lemma.

Lemma 3.4 can be actually used as the definition of (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth functions in place of Assumption 2. Besides the local gradient Lipschitz condition, it also suggests that, as long as the update at each step is small enough, the iterates will not go outside of the domain.

For the special case of ρ=1\rho=1, choosing a=max{f(x),L0/L1}a=\max\{\left\|\nabla f(x)\right\|,L_{0}/L_{1}\}, one can verify that the required locality size in Lemma 3.4 satisfies aL0+L1(f(x)+a)13L1\frac{a}{L_{0}+L_{1}(\left\|\nabla f(x)\right\|+a)}\geq\frac{1}{3L_{1}}. In this case, Lemma 3.4 states that xy1/(3L1)\left\|x-y\right\|\leq 1/(3L_{1}) implies f(y)f(x)2(L0+L1f(x))yx.\left\|\nabla f(y)-\nabla f(x)\right\|\leq 2(L_{0}+L_{1}\left\|\nabla f(x)\right\|)\left\|y-x\right\|. Therefore, it reduces to the local gradient Lipschitz condition for (L0,L1)(L_{0},L_{1}) smooth functions in (Zhang et al., 2019, 2020a) up to numerical constant factors. For ρ1\rho\neq 1, the proof is more involved because Grönwall’s inequality used in (Zhang et al., 2019, 2020a) no longer applies. Therefore we defer the detailed proof of Lemma 3.4 to Appendix B.2.

2.2 Stochastic gradient

We consider one of the following two assumptions on the stochastic gradient f(xt,ξt)\nabla f(x_{t},\xi_{t}) in our analysis of Adam.

The gradient noise is centered and almost surely bounded. In particular, for some σ0\sigma\geq 0 and all t1t\geq 1,

The gradient noise is centered with sub-Gaussian norm. In particular, for some R0R\geq 0 and all t1t\geq 1,

Results

In the section, we provide our convergence results for Adam under Assumptions 1, 2, and 3 or 4. To keep the statements of the theorems concise, we first define several problem-dependent constants. First, we let Δ1:=f(x1)f<\Delta_{1}:=f(x_{1})-f^{*}<\infty be the initial sub-optimality gap. Next, given a large enough constant G>0G>0, we define

where LL can be viewed as the effective smoothness constant along the trajectory if one can show f(xt)G\left\|\nabla f(x_{t})\right\|\leq G and xt+1xtr\left\|x_{t+1}-x_{t}\right\|\leq r at each step (see Section 5 for more detailed discussions). We will also use c1,c2c_{1},c_{2} to denote some small enough numerical constants and C1,C2C_{1},C_{2} to denote some large enough ones. The formal convergence results under Assumptions 1, 2, and 3 are presented in the following theorem, whose proof is deferred in Appendix C.

Suppose Assumptions 1, 2, and 3 hold. Denote ι:=log(1/δ)\iota:=\log(1/\delta) for any 0<δ<10<\delta<1. Let GG be a constant satisfying Gmax{2λ,2σ,C1Δ1L0,(C1Δ1Lρ)12ρ}G\geq\max\left\{2\lambda,2\sigma,\sqrt{C_{1}\Delta_{1}L_{0}},(C_{1}\Delta_{1}L_{\rho})^{\frac{1}{2-\rho}}\right\}. Choose

Let T=max{1β2,  C2Δ1Gηϵ2}T=\max\left\{\frac{1}{\beta^{2}},\;\frac{C_{2}\Delta_{1}G}{\eta\epsilon^{2}}\right\}. Then with probability at least 1δ1-\delta, we have f(xt)G\left\|\nabla f(x_{t})\right\|\leq G for every 1tT1\leq t\leq T, and 1Tt=1Tf(xt)2ϵ2\frac{1}{T}\sum_{t=1}^{T}\left\|\nabla f(x_{t})\right\|^{2}\leq\epsilon^{2}.

Note that GG, the upper bound of gradients along the trajectory, is a constant that depends on λ,σ,L0,Lρ\lambda,\sigma,L_{0},L_{\rho}, and the initial sub-optimality gap Δ1\Delta_{1}, but not on ϵ\epsilon. There is no requirement on the second order momentum parameter βsq\beta_{\operatorname{sq}}, although many existing works like (D’efossez et al., 2020; Zhang et al., 2022; Wang et al., 2022) need certain restrictions on it. We choose very small β\beta and η\eta, both of which are O(ϵ2)\mathcal{O}(\epsilon^{2}). Therefore, from the choice of TT, it is clear that we obtain a gradient complexity of O(ϵ4)\mathcal{O}(\epsilon^{-4}), where we only consider the leading term. We are not clear whether the dependence on ϵ\epsilon is optimal or not, as the Ω(ϵ4)\Omega(\epsilon^{-4}) lower bound in (Arjevani et al., 2023) assumes the weaker bounded variance assumption than our Assumpion 3. However, it matches the state-of-the-art complexity among existing analyses of Adam.

One limitation of the dependence of our complexity on λ\lambda is O(λ2)\mathcal{O}(\lambda^{-2}), which might be large since λ\lambda is usually small in practice, e.g., the default choice is λ=108\lambda=10^{-8} in the PyTorch implementation. There are some existing analyses on Adam (D’efossez et al., 2020; Zhang et al., 2022; Wang et al., 2022) whose rates do not depend explicitly on λ\lambda or only depend on log(1/λ)\log(1/\lambda). However, all of them depend on poly(d)\operatorname*{poly}(d), whereas our rate is dimension free. The dimension dd is also very large, especially when training transformers, for which Adam is widely used. We believe that independence on dd is better than that on λ\lambda, because dd is fixed given the architecture of the neural network but λ\lambda is a hyper-parameter which we have the freedom to tune. In fact, based on our preliminary experimental results on CIFAR-10 shown in Figure 1, the performance of Adam is not very sensitive to the choice of λ\lambda. Although the default choice of λ\lambda is 10810^{-8}, increasing it up to 0.010.01 only makes minor differences.

As discussed in Section 3.2.2, we can generalize the bounded gradient noise condition in Assumption 3 to the weaker sub-Gaussian noise condition in Assumption 4. The following theorem formally shows the convergence result under Assumptions 1, 2, and 4, whose proof is deferred in Appendix C.6.

Suppose Assumptions 1, 2, and 4 hold. Denote ι:=log(2/δ)\iota:=\log(2/\delta) and σ:=R2log(4T/δ)\sigma:=R\sqrt{2\log(4T/\delta)} for any 0<δ<10<\delta<1. Let GG be a constant satisfying Gmax{2λ,2σ,C1Δ1L0,(C1Δ1Lρ)12ρ}G\geq\max\left\{2\lambda,2\sigma,\sqrt{C_{1}\Delta_{1}L_{0}},(C_{1}\Delta_{1}L_{\rho})^{\frac{1}{2-\rho}}\right\}. Choose

Let T=max{1β2,  C2Δ1Gηϵ2}T=\max\left\{\frac{1}{\beta^{2}},\;\frac{C_{2}\Delta_{1}G}{\eta\epsilon^{2}}\right\}. Then with probability at least 1δ1-\delta, we have f(xt)G\left\|\nabla f(x_{t})\right\|\leq G for every 1tT1\leq t\leq T, and 1Tt=1Tf(xt)2ϵ2\frac{1}{T}\sum_{t=1}^{T}\left\|\nabla f(x_{t})\right\|^{2}\leq\epsilon^{2}.

Note that the main difference of Theorem 4.2 from Theorem 4.1 is that σ\sigma is now O(logT)\mathcal{O}(\sqrt{\log T}) instead of a constant. With some standard calculations, one can show that the gradient complexity in Theorem 4.2 is bounded by O(ϵ4logp(1/ϵ))\mathcal{O}(\epsilon^{-4}\log^{p}(1/\epsilon)), where p=max{3,9+2ρ4}<3.25p=\max\left\{3,\frac{9+2\rho}{4}\right\}<3.25.

Analysis

We want to bound the gradients along the optimization trajectory mainly for two reasons. First, as discussed in Section 2, many existing analyses of Adam rely on the assumption of bounded gradients, because unbounded gradient norm leads to unbounded second order momentum v^t\hat{v}_{t} which implies very small stepsize, and slow convergence. On the other hand, once the gradients are bounded, it is straightforward to control v^t\hat{v}_{t} as well as the stepsize, and therefore the analysis essentially reduces to the easier one for AdaBound. Second, informally speakingThe statement is informal because here we can only show bounded gradients and Hessians at the iterate points, which only implies local smoothness near the neighborhood of each iterate point (see Section 5.2). However, the standard smoothness condition is a stronger global condition which assumes bounded Hessian at every point within a convex set., under Assumption 2, bounded gradients also imply bounded Hessians, which essentially reduces the (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smoothness to the standard smoothness. See Section 5.2 for more formal discussions.

In this paper, instead of imposing the strong assumption of globally bounded gradients, we develop a new analysis to show that with high probability, the gradients are always bounded along the trajectory of Adam until convergence. The essential idea can be informally illustrated by the following “circular" reasoning that we will make precise later. On the one hand, if f(xt)G\left\|\nabla f(x_{t})\right\|\leq G for every t1t\geq 1, it is not hard to show the gradient converges to zero based on our discussions above. On the other hand, we know that a converging sequence must be upper bounded. Therefore there exists some GG^{\prime} such that f(xt)G\left\|\nabla f(x_{t})\right\|\leq G^{\prime} for every t1t\geq 1. In other words, the bounded gradient condition implies the convergence result and the convergence result also implies the boundedness condition, forming a circular argument.

This circular argument is of course flawed. However, we can break the circularity of reasoning and rigorously prove both the bounded gradient condition and the convergence result using a contradiction argument. Before introducing the contradiction argument, we first need to provide the following useful lemma, which is the reverse direction of a generalized Polyak-Lojasiewicz (PL) inequality, whose proof is deferred in Appendix B.3.

Under Assumptions 1 and 2, we have f(x)2 ⁣3(3L0+4Lρf(x)ρ)(f(x)f)\left\|\nabla f(x)\right\|^{2}\!\leq 3(3L_{0}+4L_{\rho}\left\|\nabla f(x)\right\|^{\rho})(f(x)-f^{*}).

Define the function ζ(u):=u23(3L0+4Lρuρ)\zeta(u):=\frac{u^{2}}{3(3L_{0}+4L_{\rho}u^{\rho})} over u0u\geq 0. It is easy to verify that if ρ<2\rho<2, ζ\zeta is increasing and its range is [0,)[0,\infty). Therefore, ζ\zeta is invertible and ζ1\zeta^{-1} is also increasing. Then, for any constant G>0G>0, denoting F=ζ(G)F=\zeta(G), Lemma 5.1 suggests that if f(x)fFf(x)-f^{*}\leq F, we have

In other words, if ρ<2\rho<2, the gradient is bounded within any sub-level set, even though the sub-level set could be unbounded. Then, let τ\tau be the first time the sub-optimality gap is strictly greater than FF, truncated at T+1T+1, or formally,

Then at least when t<τt<\tau, we have f(xt)fFf(x_{t})-f^{*}\leq F and thus f(xt)G\left\|\nabla f(x_{t})\right\|\leq G. Based on our discussions above, it is not hard to analyze the updates before time τ\tau, and one can contruct some Lyapunov function to obtain an upper bound on f(xτ)ff(x_{\tau})-f^{*}. On the other hand, if τT\tau\leq T, we immediately obtain a lower bound on f(xτ)f(x_{\tau}), that is f(xτ)f>Ff(x_{\tau})-f^{*}>F, by the definition of τ\tau in (3). If the lower bound is greater than the upper bound, it leads to a contradiction, which shows τ=T+1\tau=T+1, i.e., the sub-optimality gap and the gradient norm are always bounded by FF and GG respectively before the algorithm terminates. We will illustrate the technique in more details in the simple deterministic setting in Section 5.3, but first, in Section 5.2, we introduce several prerequisite lemmas on the (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smoothness.

2 Local smoothness

In Section 5.1, we informally mentioned that (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smoothness essentially reduces to the standard smoothness if the gradient is bounded. In this section, we will make the statement more precise. First, note that Lemma 3.4 implies the following useful corollary.

The proof of Corollary 5.2 is deferred in Appendix B.4. Although the inequalities in Corollary 5.2 look very similar to the standard global smoothness condition with constant LL, it is still a local condition as it requires xyr\left\|x-y\right\|\leq r. Fortunately, at least before τ\tau, such a requirement is easy to satisfy for small enough η\eta, according to the following lemma whose proof is deferred in Appendix C.5.

Under Assumption 3, if t<τt<\tau and choosing GσG\geq\sigma, we have xt+1xtηD\left\|x_{t+1}-x_{t}\right\|\leq\eta D where D:=2G/λD:=2G/\lambda.

Then as long as ηr/D\eta\leq r/D, we have xt+1xtr\left\|x_{t+1}-x_{t}\right\|\leq r which satisfies the requirement in Corollary 5.2. Then we can apply the inequalities in it in the same way as the standard smoothness condition. In other words, most classical inequalities derived for standard smooth functions also apply to (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth functions.

3 Warm-up: analysis in the deterministic setting

In this section, we consider the simpler deterministic setting where the stochastic gradient f(xt,ξt)\nabla f(x_{t},\xi_{t}) in Algorithm 1 or (18) is replaced with the exact gradient f(xt)\nabla f(x_{t}). As discussed in Section 5.1, the key in our contradiction argument is to obtain both upper and lower bounds on f(xτ)ff(x_{\tau})-f^{*}. In the following derivations, we focus on illustrating the main idea of our analysis technique and ignore minor proof details. In addition, all of them are under Assumptions 1, 2, and 3.

In order to obtain the upper bound, we need the following two lemmas. First, denoting ϵt:=m^tf(xt)\epsilon_{t}:=\hat{m}_{t}-\nabla f(x_{t}), we can obtain the following informal descent lemma for deterministic Adam.

For any t<τt<\tau, choosing GλG\geq\lambda and a small enough η\eta,

where “\lessapprox” omits less important terms.

By the definition of τ\tau, for all t<τt<\tau, we have f(xt)fFf(x_{t})-f^{*}\leq F which implies f(xt)G\left\|\nabla f(x_{t})\right\|\leq G. Then from the update rule (18) in Proposition C.1 provided later in Appendix C, it is easy to verify v^tG2\hat{v}_{t}\preceq G^{2} since v^t\hat{v}_{t} is a convex combination of {(f(xs))2}st\{(\nabla f(x_{s}))^{2}\}_{s\leq t}. Let ht:=η/(v^t+λ)h_{t}:=\eta/(\sqrt{\hat{v}_{t}}+\lambda) be the stepsize vector and denote Ht:=diag(ht)H_{t}:=\textnormal{diag}(h_{t}). We know

As discussed in Section 5.2, when η\eta is small enough, we can apply Corollary 5.2 to obtain

where in the first (approximate) inequality we ignore the second order term 12Lxt+1xt2η2\frac{1}{2}L\left\|x_{t+1}-x_{t}\right\|^{2}\propto\eta^{2} in Corollary 5.2 for small enough η\eta; the equality applies the update rule xt+1xt=Htm^t=Ht(f(xt)+ϵt)x_{t+1}-x_{t}=-H_{t}\hat{m}_{t}=-H_{t}(\nabla f(x_{t})+\epsilon_{t}); in the second inequality we use 2aAbaA2+bA22a^{\top}Ab\leq\left\|a\right\|_{A}^{2}+\left\|b\right\|_{A}^{2} for any PSD matrix AA and vectors aa and bb; and the last inequality is due to (5). ∎

Compared with the standard descent lemma for gradient descent, there is an additional term of ϵt2\left\|\epsilon_{t}\right\|^{2} in Lemma 5.4. In the next lemma, we bound this term recursively.

Choosing β=Θ(ηGρ+1/2)\beta=\Theta(\eta G^{\rho+1/2}), if t<τt<\tau, we have

By the update rule (18) in Proposition C.1, we have

For small enough η\eta, we can apply Corollary 5.2 to get

where the second inequality is due to L=O(Gρ)L=\mathcal{O}(G^{\rho}) and xt+1xt=O(η)m^t\left\|x_{t+1}-x_{t}\right\|=\mathcal{O}(\eta)\left\|\hat{m}_{t}\right\|; and the last inequality uses m^t=f(xt)+ϵt\hat{m}_{t}=\nabla f(x_{t})+\epsilon_{t} and Young’s inequality a+b22a2+2b2\left\|a+b\right\|^{2}\leq 2\left\|a\right\|^{2}+2\left\|b\right\|^{2}. Therefore,

where the first inequality uses (7) and Young’s inequality a+b2(1+u)a2+(1+1/u)b2\left\|a+b\right\|^{2}\leq(1+u)\left\|a\right\|^{2}+(1+1/u)\left\|b\right\|^{2} for any u>0u>0; the second inequality uses (1αt+1)(1+αt+1/2)1αt+1/2(1-\alpha_{t+1})(1+\alpha_{t+1}/2)\leq 1-\alpha_{t+1}/2 and (8); and in the last inequality we use βαt+1\beta\leq\alpha_{t+1} and choose β=Θ(ηGρ+1/2)\beta=\Theta(\eta G^{\rho+1/2}) which implies O(η2G2ρ/αt+1)λβ16Gβ/4\mathcal{O}(\eta^{2}G^{2\rho}/\alpha_{t+1})\leq\frac{\lambda\beta}{16G}\leq\beta/4. ∎

Now we combine them to get the upper bound on f(xτ)ff(x_{\tau})-f^{*}. Define the function Φt:=f(xt)f+2ηλβϵt2\Phi_{t}:=f(x_{t})-f^{*}+\frac{2\eta}{\lambda\beta}\left\|\epsilon_{t}\right\|^{2}. Note that for any t<τt<\tau, (4)+2ηλβ×+\frac{2\eta}{\lambda\beta}\times(6) gives

The above inequality shows Φt\Phi_{t} is non-increasing and thus a Lyapunov function. Therefore, we have

where in the last inequality we use Φ1=f(x1)f=Δ1\Phi_{1}=f(x_{1})-f^{*}=\Delta_{1} since ϵ1=m^1f(x1)=0\epsilon_{1}=\hat{m}_{1}-\nabla f(x_{1})=0 in the deterministic setting.

As discussed in Section 5.1, if τT\tau\leq T, we have F<f(xτ)fΔ1F<f(x_{\tau})-f^{*}\leq\Delta_{1}. Note that we are able to choose a large enough constant GG so that F=G23(3L0+4LρGρ)F=\frac{G^{2}}{3(3L_{0}+4L_{\rho}G^{\rho})} is greater than Δ1\Delta_{1}, which leads to a contradiction and shows τ=T+1\tau=T+1. Therefore, (9) holds for all 1tT1\leq t\leq T. Taking a summation over 1tT1\leq t\leq T and re-arranging terms, we get

if choosing T8GΔ1ηϵ2T\geq\frac{8G\Delta_{1}}{\eta\epsilon^{2}}, i.e., it shows convergence with a gradient complexity of O(ϵ2)\mathcal{O}(\epsilon^{-2}) since both GG and η\eta are constants independent of ϵ\epsilon in the deterministic setting.

4 Extension to the stochastic setting

Fortunately, τ\tau is in fact a stopping time with nice properties. If the noise is almost surely bounded as in Assumption 3, by a more careful analysis, we can obtain a high probability upper bound on f(xτ)ff(x_{\tau})-f^{*} using concentration inequalities. Then we can still obtain a contradiction and convergence under this high probability event. If the noise has sub-Gaussian norm as in Assumption 4, one can change the definition of τ\tau to

for appropriately chosen FF and σ\sigma. Then at least when t<τt<\tau, the noise is bounded by σ\sigma. Hence we can get the same upper bound on f(xτ)ff(x_{\tau})-f^{*} as if Assumption 3 still holds. However, when tTt\leq T, the lower bound f(xτ)f>Ff(x_{\tau})-f^{*}>F does not necessarily holds, which requires some more careful analyses. The details of the proofs are involved and we defer them in Appendix C.

Variance-reduced Adam

Aside from the adaptive stepsize, one major difference between Algorithm 2 and STORM is that our hyper-parameters η\eta and β\beta are fixed constants whereas theirs are decreasing as a function of tt. Choosing constant hyper-parameters requires a more accurate estimate at the initialization. That is why we use a mega-batch S1\mathcal{S}_{1} to evaluate the gradient at the initial point to initialize m1m_{1} and v1v_{1} (Lines 2–3). In practice, one can also do a full-batch gradient evaluation at initialization. Note that there is no initialization bias for the momentum, so we do not re-scale mtm_{t} and only re-scale vtv_{t}. We also want to point out that although the initial mega-batch gradient evaluation makes the algorithm a bit harder to implement, constant hyper-parameters are usually easier to tune and more common in training deep neural networks. It should be not hard to extend our analysis to time-decreasing η\eta and β\beta and we leave it as an interesting future work.

In addition to Assumption 1, we need to impose the following assumptions which can be viewed as stronger versions of Assumptions 2 and 3, respectively.

The objective function ff and the component function f(,ξ)f(\cdot,\xi) for each fixed ξ\xi are (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth with 0ρ<20\leq\rho<2.

The random variables {ξt}1tT\{\xi_{t}\}_{1\leq t\leq T} are sampled i.i.d. from some distribution P\mathcal{P} such that for any xdom(f)x\in\operatorname*{dom}(f),

Assumption 6 is stronger than Assumption 3. Assumption 3 applies only to the iterates generated by the algorithm, while Assumption 6 is a pointwise assumption over all xdom(f)x\in\operatorname*{dom}(f) and further assumes an i.i.d. nature of the random variables {ξt}1tT\{\xi_{t}\}_{1\leq t\leq T}. Also note that, similar to Adam, it is straightforward to generalize the assumption to noise with sub-Gaussian norm as in Assumption 4.

In this part, we briefly discuss challenges in the analysis of VRAdam. The detailed analysis is deferred in Appendix D. Note that Corollary 5.2 requires bounded update xt+1xtr\left\|x_{t+1}-x_{t}\right\|\leq r at each step. For Adam, it is easy to satisfy for a small enough η\eta according to Lemma 5.3. However, for VRAdam, obtaining a good enough almost sure bound on the update is challenging even though the gradient noise is bounded. To bypass this difficulty, we directly impose a bound on f(xt)mt\left\|\nabla f(x_{t})-m_{t}\right\| by changing the definition of the stopping time τ\tau, similar to how we deal with the sub-Gaussian noise condition for Adam. In particular, we define

Then by definition, both f(xt)\left\|\nabla f(x_{t})\right\| and f(xt)mt\left\|\nabla f(x_{t})-m_{t}\right\| are bounded by GG before time τ\tau, which directly implies bounded update xt+1xt\left\|x_{t+1}-x_{t}\right\|. Of course, the new definition brings new challenges to lower bounding f(xτ)ff(x_{\tau})-f^{*}, which requires more careful analyses specific to the VRAdam algorithm. Please see Appendix D for the details.

2 Convergence guarantees for VRAdam

In the section, we provide our main results for convergence of VRAdam under Assumptions 1, 5, and 6. We consider the same definitions of problem-dependent constants Δ1,r,L\Delta_{1},r,L as those in Section 4 to make the statements of theorems concise. Let cc be a small enough numerical constant and CC be a large enough numerical constant. The formal convergence result is shown in the following theorem.

Suppose Assumptions 1, 5, and 6 hold. For any 0<δ<10<\delta<1, let G>0G>0 be a constant satisfying Gmax{2λ,2σ,CΔ1L0/δ,(CΔ1Lρ/δ)12ρ}.G\geq\max\left\{2\lambda,2\sigma,\sqrt{C\Delta_{1}L_{0}/\delta},(C\Delta_{1}L_{\rho}/\delta)^{\frac{1}{2-\rho}}\right\}. Choose 0βsq10\leq\beta_{\operatorname{sq}}\leq 1 and β=a2η2\beta=a^{2}\eta^{2}, where a=40LGλ3/2a=40L\sqrt{G}\lambda^{-3/2}. Choose

Then with probability at least 1δ1-\delta, we have f(xt)G\left\|\nabla f(x_{t})\right\|\leq G for every 1tT1\leq t\leq T, and 1Tt=1Tf(xt)2ϵ2.\frac{1}{T}\sum_{t=1}^{T}\left\|\nabla f(x_{t})\right\|^{2}\leq\epsilon^{2}.

Note that the choice of GG, the upper bound of gradients along the trajectory of VRAdam, is very similar to that in Theorem 4.1 for Adam. The only difference is that now it also depends on the failure probability δ\delta. Similar to Theorem 4.1, there is no requirement on βsq\beta_{\operatorname{sq}} and we choose a very small β=O(ϵ2)\beta=\mathcal{O}(\epsilon^{2}). However, the variance reduction technique allows us to take a larger stepsize η=O(ϵ)\eta=\mathcal{O}(\epsilon) (compared with O(ϵ2)\mathcal{O}(\epsilon^{2}) for Adam) and obtain an accelerated gradient complexity of O(ϵ3)\mathcal{O}(\epsilon^{-3}), where we only consider the leading term. We are not sure whether it is optimal as the Ω(ϵ3)\Omega(\epsilon^{-3}) lower bound in (Arjevani et al., 2023) assumes the weaker bounded variance condition. However, our result significantly improves upon (Wang and Klabjan, 2022), which considers a variance-reduced version of Adam by combining Adam and SVRG (Johnson and Zhang, 2013) and only obtains asymptotic convergence in the non-convex setting. Similar to Adam, our gradient complexity for VRAdam is dimension free but its dependence on λ\lambda is O(λ2)\mathcal{O}(\lambda^{-2}). Another limitation is that, the dependence on the failure probability δ\delta is polynomial, worse than the poly-log dependence in Theorem 4.1 for Adam.

Conclusion and future works

In this paper, we proved the convergence of Adam and its variance-reduced version under less restrictive assumptions compared to those in the existing literature. We considered a generalized non-uniform smoothness condition, according to which the Hessian norm is bounded by a sub-quadratic function of the gradient norm almost everywhere. Instead of assuming the Lipschitzness of the objective function as in existing analyses of Adam, we use a new contradiction argument to prove that gradients are bounded by a constant along the optimization trajectory. There are several interesting future directions that one could pursue following this work.

Our analysis relies on the assumption of bounded noise or noise with sub-Gaussian norm. However, the existing lower bounds in (Arjevani et al., 2023) consider the weaker bounded variance assumption. Hence, it is not clear whether the O(ϵ4)\mathcal{O}(\epsilon^{-4}) complexity we obtain for Adam is tight in this setting. It will be interesting to see whether one can relax the assumption to the bounded variance setting. One may gain some insights from recent papers such as (Faw et al., 2022; Wang et al., 2023) that analyze AdaGrad under weak noise conditions. An alternative way to show the tightness of the O(ϵ4)\mathcal{O}(\epsilon^{-4}) complexity is to prove a lower bound under the bounded noise assumption.

Another interesting future direction is to see if the techniques developed in this work for bounding gradients (including those in the the concurrent work (Li et al., 2023)) can be generalized to improve the convergence results for other optimization problems and algorithms. We believe it is possible so long as the function class is well behaved and the algorithm is efficient enough so that f(xτ)ff(x_{\tau})-f^{*} can be well bounded for some appropriately defined stopping time τ\tau.

We want to note that our results can not explain why Adam is better than SGD for training transformers, because (Li et al., 2023) shows that non-adaptive SGD converges with the same O(ϵ4)\mathcal{O}(\epsilon^{-4}) gradient complexity under even weaker conditions. It would be interesting and impactful if one can find a reasonable setting (function class, gradient oracle, etc) under which Adam or other adaptive methods provably outperform SGD.

Acknowledgments

This work was supported, in part, by the MIT-IBM Watson AI Lab and ONR Grants N00014-20-1-2394 and N00014-23-1-2299. We also acknowledge support from DOE under grant DE-SC0022199, and NSF through awards DMS-2031883 and DMS-1953181.

References

Appendix A Probabilistic lemmas

In this section, we state several well-known and useful probabilistic lemmas without proof.

Let {Zt}t1\{Z_{t}\}_{t\geq 1} be a martingale with respect to a filtration {Ft}t0\{\mathcal{F}_{t}\}_{t\geq 0}. Assume that ZtZt1ct\left|Z_{t}-Z_{t-1}\right|\leq c_{t} almost surely for all t0t\geq 0. Then for any fixed TT, with probability at least 1δ1-\delta,

In this section, we provide proofs related to (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smoothness. In what follows, we first provide a formal proposition in Appendix B.1 showing that univariate rational functions and double exponential functions are (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth with ρ<2\rho<2, as we claimed in Section 3.2.1, and then provide the proofs of Lemma 3.4, Lemma 5.1, and Corollary 5.2 in Appendix B.2, B.3 and B.4 respectively.

Any univariate rational function P(x)/Q(x)P(x)/Q(x), where P,QP,Q are two polynomials, and any double exponential function a(bx)a^{(b^{x})}, where a,b>1a,b>1, are (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth with 1<ρ<21<\rho<2. However, they are not necessarily (L0,L1)(L_{0},L_{1}) smooth.

We prove the proposition in the following four parts:

1. Univariate rational functions are (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth with 1<ρ<21<\rho<2. Let f(x)=P(x)/Q(x)f(x)=P(x)/Q(x) where PP and QQ are two polynomials. Then the partial fractional decomposition of f(x)f(x) is given by

Then we have f(x)=w(x)+i=1mr=1jipir(x)+i=1nr=1kiqir(x)f(x)=w(x)+\sum_{i=1}^{m}\sum_{r=1}^{j_{i}}p_{ir}(x)+\sum_{i=1}^{n}\sum_{r=1}^{k_{i}}q_{ir}(x). For any 3/2<ρ<23/2<\rho<2, we know that ρ>r+2r+1\rho>\frac{r+2}{r+1} for any r1r\geq 1. Then we can show that

where the first equality is because one can easily verify that the first and second order derivatives of pijip_{ij_{i}} dominate those of all other terms when xx goes to aia_{i}, and the second equality is because piji(x)ρ=O((xai)ρ(ji+1))\left|p^{\prime}_{ij_{i}}(x)\right|^{\rho}=\mathcal{O}\left((x-a_{i})^{-\rho(j_{i}+1)}\right), piji(x)=O((xai)(ji+2))\left|p^{\prime\prime}_{ij_{i}}(x)\right|=\mathcal{O}\left((x-a_{i})^{-(j_{i}+2)}\right), and ρ(ji+1)>ji+2\rho(j_{i}+1)>j_{i}+2 (here we assume ji1j_{i}\geq 1 since otherwise there is no need to prove (10) for ii). Note that (10) implies that, for any Lρ>0L_{\rho}>0, there exists δi>0\delta_{i}>0 such that

Similarly, one can show limxf(x)ρf(x)=\lim_{x\to\infty}\frac{\left|f^{\prime}(x)\right|^{\rho}}{\left|f^{\prime\prime}(x)\right|}=\infty, which implies there exists M>0M>0 such that

We know B\mathcal{B} is a compact set and therefore the continuous function ff^{\prime\prime} is bounded within B\mathcal{B}, i.e., there exists some constant L0>0L_{0}>0 such that

Combining (11), (12), and (13), we have shown

which completes the proof of the first part.

2. Rational functions are not necessarily (L0,L1)(L_{0},L_{1}) smooth. Consider the ration function f(x)=1/xf(x)=1/x. Then we know that f(x)=1/x2f^{\prime}(x)=-1/x^{2} and f(x)=2/x3f^{\prime\prime}(x)=2/x^{3}. Note that for any 0<xmin{(L0+1)1/3,(L1+1)1}0<x\leq\min\{(L_{0}+1)^{-1/3},(L_{1}+1)^{-1}\}, we have

which shows ff is not (L0,L1)(L_{0},L_{1}) smooth for any L0,L10L_{0},L_{1}\geq 0.

3. Double exponential functions are (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth with 1<ρ<21<\rho<2. Let f(x)=a(bx)f(x)=a^{(b^{x})}, where a,b>1a,b>1, be a double exponential function. Then we know that

where the first equality is a direct calculation; the second equality uses change of variable y=bxy=b^{x}; and the last equality is because exponential function grows faster than linear function. Then we complete the proof following a similar argument to that in Part 1.

4. Double exponential functions are not necessarily (L0,L1)(L_{0},L_{1}) smooth. Consider the double exponential function f(x)=e(ex)f(x)=e^{(e^{x})}. Then we have

For any xmax{log(L0+1),log(L1+1)}x\geq\max\left\{\log(L_{0}+1),\log(L_{1}+1)\right\}, we can show that

which shows ff is not (L0,L1)(L_{0},L_{1}) smooth for any L0,L10L_{0},L_{1}\geq 0. ∎

B.2 Proof of Lemma 3.4

Before proving Lemma 3.4, we need the following lemma that generalizes (a special case of) Grönwall’s inequality.

It is straightforward to verify that the solution to (14) satisfies

Then it suffices to show ϕ(u(t))ϕ(v(t))  t[a,b]\phi(u(t))\leq\phi(v(t))\;\forall t\in[a,b]. Note that

With Lemma B.2, one can bound the gradient norm within a small enough neighborhood of a given point as in the following lemma.

Suppose ff is (ρ,L0,Lρ)(\rho,L_{0},L_{\rho}) smooth for some ρ,ρ,L0,Lρ0\rho,\rho,L_{0},L_{\rho}\geq 0. For any a>0a>0 and points x,ydom(f)x,y\in\operatorname*{dom}(f) satisfying yxaL0+Lρ(f(x)+a)ρ\left\|y-x\right\|\leq\frac{a}{L_{0}+L_{\rho}(\left\|\nabla f(x)\right\|+a)^{\rho}}, we have

Denote functions z(t):=(1t)x+tyz(t):=(1-t)x+ty and u(t):=f(z(t))u(t):=\left\|\nabla f(z(t))\right\| for 0t10\leq t\leq 1. Note that for any 0ts10\leq t\leq s\leq 1, by triangle inequality,

We know that u(t)=f(z(t))u(t)=\left\|\nabla f(z(t))\right\| is differentiable since ff is second order differentiableHere we assume u(t)>0u(t)>0 for 0<t<10<t<1. Otherwise, we can define tm=sup{0<t<1u(t)=0}t_{m}=\sup\{0<t<1\mid u(t)=0\} and consider the interval [tm,1][t_{m},1] instead.. Then we have

Let ϕ(w):=0w1(L0+Lρvρ)yxdv\phi(w):=\int_{0}^{w}\frac{1}{(L_{0}+L_{\rho}v^{\rho})\left\|y-x\right\|}dv. By Lemma B.2, we know that

Denote ψ(w):=0w1(L0+Lρvρ)dv=ϕ(w)yx\psi(w):=\int_{0}^{w}\frac{1}{(L_{0}+L_{\rho}v^{\rho})}dv=\phi(w)\cdot\left\|y-x\right\|. We have

Since ψ\psi is increasing, we have f(y)f(x)+a\left\|\nabla f(y)\right\|\leq\left\|\nabla f(x)\right\|+a. ∎

With Lemma B.3, we are ready to prove Lemma 3.4.

On the other hand, by the definition of tbt_{\text{b}}, we know z(t)Xz(t)\in\mathcal{X} for every 0t<tb0\leq t<t_{\text{b}}. Then by Lemma B.3, for all 0t<tb0\leq t<t_{\text{b}}, we have f(z(t))f(x)+a\left\|\nabla f(z(t))\right\|\leq\left\|\nabla f(x)\right\|+a. Therefore for all 0t<tb0\leq t<t_{\text{b}}

which contradicts with (15). Therefore we have shown ydom(f)y\in\operatorname*{dom}(f). We have

where the last inequality is due to Lemma B.3. ∎

B.3 Proof of Lemma 5.1

Denote G:=f(x)G:=\left\|\nabla f(x)\right\| and L:=3L0+4LρGρL:=3L_{0}+4L_{\rho}G^{\rho}. Let y:=x12Lf(x)y:=x-\frac{1}{2L}\nabla f(x). Then we have

where the inequality can be easily verified considering both cases of G(L0/Lρ)1/ρG\leq(L_{0}/L_{\rho})^{1/\rho} and G(L0/Lρ)1/ρG\geq(L_{0}/L_{\rho})^{1/\rho}. Then based on Corollary 5.2, we have ydom(f)y\in\operatorname*{dom}(f) and

B.4 Proof of Corollary 5.2

First, Lemma 3.4 states that for any a>0a>0,

If f(x)G\left\|\nabla f(x)\right\|\leq G, we choose a=max{G,(L0/Lρ)1/ρ}a=\max\{G,(L_{0}/L_{\rho})^{1/\rho}\}. Then it is straightforward to verify that

Therefore we have shown for any x,yx,y satisfying yxr\left\|y-x\right\|\leq r,

Next, let z(t):=(1t)x+tyz(t):=(1-t)x+ty for 0t10\leq t\leq 1. We know

Appendix C Convergence analysis of Adam

In this section, we provide detailed convergence analysis of Adam. We will focus on proving Theorem 4.1 under the bounded noise assumption (Assumption 3) in most parts of this section except Appendix C.6 where we will show how to generalize the results to noise with sub-Gaussian norm (Assumption 4) and provide the proof of Theorem 4.2.

For completeness, we repeat some important technical definitions here. First, we define

as the deviation of the re-scaled momentum from the actual gradient. Given a large enough constant GG defined in Theorem 4.1, denoting F=G23(3L0+4LρGρ)F=\frac{G^{2}}{3(3L_{0}+4L_{\rho}G^{\rho})}, we formally define the stopping time τ\tau as

i.e., τ\tau is the first time when the sub-optimality gap is strictly greater than FF, truncated at T+1T+1 to make sure it is bounded in order to apply Lemma A.2. Based on Lemma 5.1 and the discussions below it, we know that if t<τt<\tau, we have both f(xt)fFf(x_{t})-f^{*}\leq F and f(xt)G\left\|\nabla f(x_{t})\right\|\leq G. It is clear to see that τ\tau is a stopping timeIndeed, τ1\tau-1 is also a stopping time because f(xt)\nabla f(x_{t}) only depends on {ξs}s<t\{\xi_{s}\}_{s<t}, but that is unnecessary for our analysis. with respect to {ξt}t1\{\xi_{t}\}_{t\geq 1} because the event {τt}\{\tau\geq t\} is a function of {ξs}s<t\{\xi_{s}\}_{s<t} and independent of {ξs}st\{\xi_{s}\}_{s\geq t}. Next, let

be the stepsize vector and Ht:=diag(ht)H_{t}:=\textnormal{diag}(h_{t}) be the diagonal stepsize matrix. Then the update rule can be written as

Finally, as in Corollary 5.2 and Lemma 5.3, we define the following constants.

The bias correction steps in Lines 7–8 make Algorithm 1 a bit complicated. In the following proposition, we provide an equivalent yet simpler update rule of Adam.

Denote αt=β1(1β)t\alpha_{t}=\frac{\beta}{1-(1-\beta)^{t}} and αtsq=βsq1(1βsq)t\alpha^{\operatorname{sq}}_{t}=\frac{\beta_{\operatorname{sq}}}{1-(1-\beta_{\operatorname{sq}})^{t}}. Then the update rule in Algorithm 1 is equivalent to

where initially we set m^1=f(x1,ξ1)\hat{m}_{1}=\nabla f(x_{1},\xi_{1}) and v^1=(f(x1,ξ1))2\hat{v}_{1}=(\nabla f(x_{1},\xi_{1}))^{2}. Note that since 1α1=1α1sq=01-\alpha_{1}=1-\alpha^{\operatorname{sq}}_{1}=0, there is no need to define m^0\hat{m}_{0} and v^0\hat{v}_{0}.

Denote Zt=1(1β)tZ_{t}=1-(1-\beta)^{t}. Then we know αt=β/Zt\alpha_{t}=\beta/Z_{t} and mt=Ztm^tm_{t}=Z_{t}\hat{m}_{t}. By the momentum update rule in Algorithm 1, we have

Note that ZtZ_{t} satisfies the following property

Next, we verify the initial condition. By Algorithm 1, since we set m0=0m_{0}=0, we have m1=βf(x1,ξ1)m_{1}=\beta\nabla f(x_{1},\xi_{1}). Therefore we have m^1=m1/Z1=f(x1,ξ1)\hat{m}_{1}=m_{1}/Z_{1}=\nabla f(x_{1},\xi_{1}) since Z1=βZ_{1}=\beta. Then the proof is completed by applying the same analysis on vtv_{t} and v^t\hat{v}_{t}. ∎

C.2 Useful lemmas for Adam

In this section, we list several useful lemmas for the convergence analysis. Their proofs are all deferred in Appendix C.5.

First note that when t<τt<\tau, all the quantities in the algorithm are well bounded. In particular, we have the following lemma.

Next, we provide a useful lemma regarding the time-dependent re-scaled momentum parameters in (18).

Let αt=β1(1β)t\alpha_{t}=\frac{\beta}{1-(1-\beta)^{t}}, then for all T2T\geq 2, we have t=2Tαt23(1+β2T)\sum_{t=2}^{T}\alpha_{t}^{2}\leq 3(1+\beta^{2}T).

In the next lemma, we provide an almost sure bound on ϵt\epsilon_{t} in order to apply Azuma-Hoeffding inequality (Lemma A.1).

Denote γt1=(1αt)(ϵt1+f(xt1)f(xt))\gamma_{t-1}=(1-\alpha_{t})(\epsilon_{t-1}+\nabla f(x_{t-1})-\nabla f(x_{t})). Choosing ηmin{rD,σβDL}\eta\leq\min\left\{\frac{r}{D},\frac{\sigma\beta}{DL}\right\}, if tτt\leq\tau, we have ϵt2σ\left\|\epsilon_{t}\right\|\leq 2\sigma and γt12σ\left\|\gamma_{t-1}\right\|\leq 2\sigma.

Finally, the following lemma hides messy calculations and will be useful in the contradiction argument.

Under the parameter choices in either Theorem 4.1 or Theorem 4.2, we have I1I2I_{1}\leq I_{2} and I1/Tϵ2I_{1}/T\leq\epsilon^{2}.

C.3 Proof of Theorem 4.1

Before proving the main theorems, several important lemmas are needed. First, we provide a descent lemma for Adam.

If t<τt<\tau, choosing Gσ+λG\geq\sigma+\lambda and ηmin{rD,λ6L}\eta\leq\min\left\{\frac{r}{D},\frac{\lambda}{6L}\right\}, we have

Since we choose ηrD\eta\leq\frac{r}{D}, by Lemma 5.3, we have xt+1xtr\left\|x_{t+1}-x_{t}\right\|\leq r if t<τt<\tau. Then we can apply Corollary 5.2 to show that for any t<τt<\tau,

where the second inequality uses (17) and (19); the third inequality is due to Young’s inequality aAb13aA2+34bA2a^{\top}Ab\leq\frac{1}{3}\left\|a\right\|_{A}^{2}+\frac{3}{4}\left\|b\right\|_{A}^{2} and a+bA22aA2+2bA\left\|a+b\right\|_{A}^{2}\leq 2\left\|a\right\|_{A}^{2}+2\left\|b\right\|_{A} for any PSD matrix AA; the second last inequality uses ηλ6L\eta\leq\frac{\lambda}{6L}; and the last inequality is due to (19). ∎

The following lemma bounds the sum of the error term ϵt2\left\|\epsilon_{t}\right\|^{2} before the stopping time τ\tau. Since its proof is complicated, we defer it in Appendix C.4.

If G2σG\geq 2\sigma and ηmin{rD,λ3/2β6LG,σβDL}\eta\leq\min\left\{\frac{r}{D},\frac{\lambda^{3/2}\beta}{6L\sqrt{G}},\frac{\sigma\beta}{DL}\right\}, with probability 1δ1-\delta,

Combining Lemma C.6 and Lemma C.7, we obtain the following useful lemma, which simultaneously bounds f(xt)ff(x_{t})-f^{*} and t=1τ1f(xt)2\sum_{t=1}^{\tau-1}\left\|\nabla f(x_{t})\right\|^{2}.

If G2max{λ,σ}G\geq 2\max\{\lambda,\sigma\} and ηmin{rD,λ3/2β6LG,σβDL}\eta\leq\min\left\{\frac{r}{D},\frac{\lambda^{3/2}\beta}{6L\sqrt{G}},\frac{\sigma\beta}{DL}\right\}, then with probability at least 1δ1-\delta,

With Lemma C.8, we are ready to complete the contradiction argument and the convergence analysis. Below we provide the proof of Theorem 4.1.

By the definition of τ\tau, if τT\tau\leq T, we have

Based on Lemma C.5, we have I1I2I_{1}\leq I_{2}, which leads to a contradiction. Therefore, we must have τ=T+1\tau=T+1 conditioned on E\mathcal{E}. Then, Lemma C.8 also implies that under E\mathcal{E},

where the last inequality is due to Lemma C.5. ∎

C.4 Proof of Lemma C.7

In order to prove Lemma C.7, we need the following several lemmas.

Denote γt1=(1αt)(ϵt1+f(xt1)f(xt))\gamma_{t-1}=(1-\alpha_{t})(\epsilon_{t-1}+\nabla f(x_{t-1})-\nabla f(x_{t})). If G2σG\geq 2\sigma and ηmin{rD,λ3/2β6LG}\eta\leq\min\left\{\frac{r}{D},\frac{\lambda^{3/2}\beta}{6L\sqrt{G}}\right\}, we have for every 2tτ2\leq t\leq\tau,

According to the update rule (18), we have

Since we choose ηrD\eta\leq\frac{r}{D}, by Lemma 5.3, we have xtxt1r\left\|x_{t}-x_{t-1}\right\|\leq r if tτt\leq\tau. Therefore by Corollary 5.2, for any 2tτ2\leq t\leq\tau,

where the first inequality uses Young’s inequality a+b2(1+u)a2+(1+1/u)b2\left\|a+b\right\|^{2}\leq(1+u)\left\|a\right\|^{2}+(1+1/u)\left\|b\right\|^{2} for any u>0u>0; the second inequality is due to

the third inequality uses (24) and Young’s inequality; and in the last inequality we choose ηλ3/2β6LG\eta\leq\frac{\lambda^{3/2}\beta}{6L\sqrt{G}}, which implies 2η2L2λ2βλβ16Gβ2αt2\frac{2\eta^{2}L^{2}}{\lambda^{2}\beta}\leq\frac{\lambda\beta}{16G}\leq\frac{\beta}{2}\leq\frac{\alpha_{t}}{2}. Then by (23), we have

Denote γt1=(1αt)(ϵt1+f(xt1)f(xt))\gamma_{t-1}=(1-\alpha_{t})(\epsilon_{t-1}+\nabla f(x_{t-1})-\nabla f(x_{t})). If G2σG\geq 2\sigma and ηmin{rD,σβDL}\eta\leq\min\left\{\frac{r}{D},\frac{\sigma\beta}{DL}\right\}, with probability 1δ1-\delta,

Since τ\tau is a stopping time, we know that 1τt1_{\tau\geq t} is a function of {ξs}s<t\{\xi_{s}\}_{s<t}. Also, by definition, we know γt1\gamma_{t-1} is a function of {ξs}s<t\{\xi_{s}\}_{s<t}. Then, denoting

Then by the Azuma-Hoeffding inequality (Lemma A.1), we have with probability at least 1δ1-\delta,

where in the last inequality we use Lemma C.3. ∎

By Lemma C.9, we have for every 2tτ2\leq t\leq\tau,

Taking a summation over tt from 22 to τ\tau, we have

where the first inequality uses Lemma C.10; and the second inequality uses Lemma C.3 and ϵ12=f(x1,ξ1)f(x1)2σ2\left\|\epsilon_{1}\right\|^{2}=\left\|\nabla f(x_{1},\xi_{1})-\nabla f(x_{1})\right\|^{2}\leq\sigma^{2}. Then we complete the proof by multiplying both sides by 2/β2/\beta. ∎

C.5 Omitted proofs for Adam

In this section, we provide all the omitted proofs for Adam including those of Lemma 5.3 and all the lemmas in Appendix C.2.

By definition of τ\tau, we have f(xt)G\left\|\nabla f(x_{t})\right\|\leq G if t<τt<\tau. Then Assumption 3 directly implies f(xt,ξt)G+σ\left\|\nabla f(x_{t},\xi_{t})\right\|\leq G+\sigma. m^t\left\|\hat{m}_{t}\right\| can be bounded by a standard induction argument as follows. First note that m^1=f(x1,ξ1)G+σ\left\|\hat{m}_{1}\right\|=\left\|\nabla f(x_{1},\xi_{1})\right\|\leq G+\sigma. Supposing m^k1G+σ\left\|\hat{m}_{k-1}\right\|\leq G+\sigma for some k<τk<\tau, then we have

Then we can show v^t(G+σ)2\hat{v}_{t}\preceq(G+\sigma)^{2} in a similar way noting that (f(xt,ξt))2f(xt,ξt)2(G+σ)2(\nabla f(x_{t},\xi_{t}))^{2}\preceq\left\|\nabla f(x_{t},\xi_{t})\right\|^{2}\leq(G+\sigma)^{2}. Given the bound on v^t\hat{v}_{t}, it is straight forward to bound the stepsize hth_{t}. ∎

First, when t1/βt\geq 1/\beta, we have (1β)t1/e(1-\beta)^{t}\leq 1/e. Therefore,

Next, note that when t<1/βt<1/\beta, we have (1β)t112βt(1-\beta)^{t}\leq 1-\frac{1}{2}\beta t. Then we have

Therefore we have t=2Tαt23(1+β2T).\sum_{t=2}^{T}\alpha_{t}^{2}\leq 3(1+\beta^{2}T).

We prove ϵt2σ\left\|\epsilon_{t}\right\|\leq 2\sigma for all tτt\leq\tau by induction. First, note that for t=1t=1, we have

Now suppose ϵt12σ\left\|\epsilon_{t-1}\right\|\leq 2\sigma for some 2tτ2\leq t\leq\tau. According to the update rule (18), we have

Since we choose ηrD\eta\leq\frac{r}{D}, by Lemma 5.3, we have xtxt1ηDr\left\|x_{t}-x_{t-1}\right\|\leq\eta D\leq r if tτt\leq\tau. Therefore by Corollary 5.2, we have for any 2tτ2\leq t\leq\tau,

where the last inequality uses the choice of η\eta and βαt\beta\leq\alpha_{t}. Therefore we have ϵt2σ\left\|\epsilon_{t}\right\|\leq 2\sigma which completes the induction. Then it is straight forward to show

We first list all the related parameter choices below for convenience.

We will show I1/I21I_{1}/I_{2}\leq 1 first. Note that if denoting W=3LλG2W=\frac{3L}{\lambda G^{2}}, we have

Below are some facts that can be easily verified given the parameter choices.

By the choice of GG, we have G26Δ1(3L0+4LρGρ)=6Δ1LG^{2}\geq 6\Delta_{1}(3L_{0}+4L_{\rho}G^{\rho})=6\Delta_{1}L for large enough C1C_{1}, which implies W12Δ1λW\leq\frac{1}{2\Delta_{1}\lambda}.

By the choice of TT, we have ηβTηβ+C2Δ1Gβϵ2\eta\beta T\leq\frac{\eta}{\beta}+\frac{C_{2}\Delta_{1}G\beta}{\epsilon^{2}}.

By the choice of TT, we have η2T=max{(ηβ)2,C2ηΔ1Gϵ2}(ηβ)2+C2Δ1σβϵ2ηβ32(ηβ)2+12(C2Δ1σβϵ2)2{\eta^{2}T}={\max\left\{\left(\frac{\eta}{\beta}\right)^{2},\frac{C_{2}\eta\Delta_{1}G}{\epsilon^{2}}\right\}}\leq\left(\frac{\eta}{\beta}\right)^{2}+\frac{C_{2}\Delta_{1}\sigma\beta}{\epsilon^{2}}\cdot\frac{\eta}{\beta}\leq\frac{3}{2}\left(\frac{\eta}{\beta}\right)^{2}+\frac{1}{2}\left(\frac{C_{2}\Delta_{1}\sigma\beta}{\epsilon^{2}}\right)^{2}.

By the choice of η\eta, we have η/βc2σλLGι\eta/\beta\leq\frac{c_{2}\sigma\lambda}{LG\sqrt{\iota}}, which implies Wσ2ιηβ3c2σ3G31200W\sigma^{2}\sqrt{\iota}\cdot\frac{\eta}{\beta}\leq\frac{3c_{2}\sigma^{3}}{G^{3}}\leq\frac{1}{200} for small enough c2c_{2}.

By the choice of β\beta and (a), we have Wσ2Δ1Gιβϵ2σ2Gιβ2λϵ21100C2\frac{W\sigma^{2}\Delta_{1}G\sqrt{\iota}\beta}{\epsilon^{2}}\leq\frac{\sigma^{2}G\sqrt{\iota}\beta}{2\lambda\epsilon^{2}}\leq\frac{1}{100C_{2}} for small enough c1c_{1}.

where the first inequality is due to Facts (a-c); the second inequality uses σG\sigma\leq G, ι1\iota\geq 1, and a+ba+b\sqrt{a+b}\leq\sqrt{a}+\sqrt{b} for a,b0a,b\geq 0; and the last inequality is due to Facts (d-e).

Next, we will show I1/Tϵ2I_{1}/T\leq\epsilon^{2}. We have

where in the first inequality we use TC2Δ1Gηϵ2T\geq\frac{C_{2}\Delta_{1}G}{\eta\epsilon^{2}} and a+ba+b\sqrt{a+b}\leq\sqrt{a}+\sqrt{b} for a,b0a,b\geq 0; the second inequality uses T1β2T\geq\frac{1}{\beta^{2}}; the second equality uses the parameter choice of β\beta; and in the last inequality we choose a large enough C2C_{2} and small enough c1c_{1}. ∎

C.6 Proof of Theorem 4.2

We define stopping time τ\tau as follows

Then it is straightforward to verify that τ1,τ2,τ\tau_{1},\tau_{2},\tau are all stopping times.

where the fourth inequality uses Assumption 4; and the last inequality uses σ=R2log(4T/δ)\sigma=R\sqrt{2\log(4T/\delta)}.

Next, if τ=τ1T\tau=\tau_{1}\leq T, by definition, we have f(xτ)f>Ff(x_{\tau})-f^{*}>F, or equivalently,

On the other hand, since for any t<τt<\tau, under the new definition of τ\tau, we still have

By Lemma C.5, we know I1I2I_{1}\leq I_{2}, which suggests that Ec{τ=τ1T}=\mathcal{E}^{c}\cap\{\tau=\tau_{1}\leq T\}=\emptyset, i.e., {τ=τ1T}E\{\tau=\tau_{1}\leq T\}\subset\mathcal{E}. Then we can show

and under the event Ec{τ=T+1}\mathcal{E}^{c}\cap\{\tau=T+1\}, we have τ=T+1\tau=T+1 and

where the last inequality is due to Lemma C.5. ∎

Appendix D Convergence analysis of VRAdam

In this section, we provide detailed convergence analysis of VRAdam and prove Theorem 6.2. To do that, we first provide some technical definitions Note that the same symbol for Adam and VRAdam may have different meanings.. Denote

as the deviation of the momentum from the actual gradient. From the update rule in Algorithm 2, we can write

Let GG be the constant defined in Theorem 6.2 and denote F:=G23(3L0+4LρGρ)F:=\frac{G^{2}}{3(3L_{0}+4L_{\rho}G^{\rho})}. We define the following stopping times as discussed in Section 6.1.

It is straight forward to verify that τ1,τ2,τ\tau_{1},\tau_{2},\tau are all stopping times. Then if t<τt<\tau, we have

Then we can also bound the update xt+1xtηD\left\|x_{t+1}-x_{t}\right\|\leq\eta D where D=2G/λD=2G/\lambda if t<τt<\tau (see Lemma D.3 for the details). Finally, we consider the same definition of rr and LL as those for Adam. Specifically,

We first list several useful lemmas in this section without proofs. Their proofs are deferred later in Appendix D.3.

To start with, we provide a lemma on the local smoothness of each component function f(,ξ)f(\cdot,\xi) when the gradient of the objective function ff is bounded.

With the new definition of stopping time τ\tau in (D), all the quantities in Algorithm 2 are well bounded before τ\tau. In particular, the following lemma holds.

Next, we provide the following lemma which bounds the update at each step before τ\tau.

if t<τt<\tau, xt+1xtηD\left\|x_{t+1}-x_{t}\right\|\leq\eta D where D=2G/λD=2G/\lambda.

The following lemma bounds Wt\left\|W_{t}\right\| when tτt\leq\tau.

If tτt\leq\tau, G2σG\geq 2\sigma, and ηr2D\eta\leq\frac{r}{2D},

Finally, we present some inequalities regarding the parameter choices, which will simplify the calculations later.

Under the parameter choices in Theorem 6.2, we have

D.2 Proof of Theorem 6.2

Before proving the theorem, we will need to present several important lemmas. First, note that the descent lemma still holds for VRAdam.

If t<τt<\tau, choosing Gσ+λG\geq\sigma+\lambda and ηmin{r2D,λ6L}\eta\leq\min\left\{\frac{r}{2D},\frac{\lambda}{6L}\right\}, we have

The proof is essentially the same as that of Lemma C.6. ∎

Choose Gmax{2σ,2λ}G\geq\max\left\{2\sigma,2\lambda\right\}, S112β2TS_{1}\geq\frac{1}{2\beta^{2}T}, and ηmin{r2D,λ3/240LβG}\eta\leq\min\left\{\frac{r}{2D},\frac{\lambda^{3/2}}{40L}\sqrt{\frac{\beta}{G}}\right\}. We have

where in the second inequality we choose ηλ3/240LβG\eta\leq\frac{\lambda^{3/2}}{40L}\sqrt{\frac{\beta}{G}}. Therefore, noting that λβ16Gβ/2\frac{\lambda\beta}{16G}\leq\beta/2, by (25), we have

Taking a summation over 2tτ2\leq t\leq\tau and re-arranging the terms, we get

Taking expectations on both sides, noting that

by the Optional Stopping Theorem (Lemma A.2), we have

Under the parameter choices in Theorem 6.2, we have

First note that according to Lemma D.5, it is straight forward to verify that the parameter choices in Theorem 6.2 satisfy the requirements in Lemma D.6 and Lemma D.7. Then by Lemma D.6, if t<τt<\tau,

Taking a summation over 1t<τ1\leq t<\tau, re-arranging terms, multiplying both sides by 8Gη\frac{8G}{\eta}, and taking an expection, we get

where the last inequality is due to Lemma D.5. Then (28) + (29) gives

With all the above lemmas, we are ready to prove the theorem.

First note that according to Lemma D.5, it is straight forward to verify that the parameter choices in Theorem 6.2 satisfy the requirements in all the lemmas for VRAdam.

Then, first note that if τ=τ1T\tau=\tau_{1}\leq T, we know f(xτ)f>Ff(x_{\tau})-f^{*}>F by the definition of τ\tau. Therefore,

where the second inequality uses Markov’s inequality; the third inequality is by Lemma D.8; and the last inequality is due to Lemma D.5.

Similarly, if τ2=τT\tau_{2}=\tau\leq T, we know ϵτ>G\left\|\epsilon_{\tau}\right\|>G. We have

where the second inequality uses Markov’s inequliaty; the third inequality is by Lemma D.8; and the last inequality is due to Lemma D.5. where the last inequality is due to Lemma D.5. Therefore,

Let F:={1Tt=1Tf(xt)2>ϵ2}\mathcal{F}:=\left\{\frac{1}{T}\sum_{t=1}^{T}\left\|\nabla f(x_{t})\right\|^{2}>\epsilon^{2}\right\} be the event of not converging to stationary points. By Markov’s inequality, we have

i.e., with probability at least 1δ1-\delta, we have both τ=T+1\tau=T+1 and 1Tt=1Tf(xt)2ϵ2\frac{1}{T}\sum_{t=1}^{T}\left\|\nabla f(x_{t})\right\|^{2}\leq\epsilon^{2}. ∎

D.3 Proofs of lemmas in Appendix D.1

This lemma is a direct corollary of Corollary 5.2. Note that by Assumption 6, we have f(x,ξ)G+σ2G\left\|\nabla f(x,\xi)\right\|\leq G+\sigma\leq 2G. Hence, when computing the locality size and smoothness constant for the component function f(,ξ)f(\cdot,\xi), we need to replace the constant GG in Corollary 5.2 with 2G2G, that is why we get a smaller locality size of r/2r/2 and a larger smoothness constant of 4L4L. ∎

The bound on mt\left\|m_{t}\right\| is by the definition of τ\tau in (D). All other quantities for VRAdam are defined in the same way as those in Adam (Algorithm 1), so they have the same upper bounds as in Lemma C.2. ∎

where the first inequality uses the update rule in Algorithm 2 and htη/λh_{t}\preceq\eta/\lambda by Lemma D.2; the second inequality is again due to Lemma D.2. ∎

By the definition of WtW_{t}, it is easy to verify that

where the second inequality uses Lemma D.1; and the last inequality is due to xtxt1ηmt1/λη(f(xt1)+ϵt1)/λ\left\|x_{t}-x_{t-1}\right\|\leq\eta\left\|m_{t-1}\right\|/\lambda\leq\eta\left(\left\|\nabla f(x_{t-1})\right\|+\left\|\epsilon_{t-1}\right\|\right)/\lambda. Then, we have

These inequalities can be obtained by direct calculations. ∎