A new regret analysis for Adam-type algorithms
Ahmet Alacaoglu, Yura Malitsky, Panayotis Mertikopoulos, Volkan Cevher
Introduction
One of the most popular optimization algorithms for training neural networks is Adam (Kingma & Ba, 2014), which is a variant of the general class of Adagrad-type algorithms (Duchi et al., 2011). The main novelty of Adam is to apply an exponential moving average (EMA) to gradient estimate (first-order) and to element-wise square-of-gradients (second-order), with parameters and , respectively.
In practice, constant and values are used (the default parameters in PyTorch and Tensorflow, for example, are and ). However, the regret analysis in Kingma & Ba (2014) requires with a linear rate, causing a clear discrepancy between theory and practice.
Recently, it has been shown by Reddi et al. (2018) that the analysis of Adam contained a technical issue. After this discovery, many variants of Adam were proposed with optimal regret guarantees (Reddi et al., 2018; Chen & Gu, 2018; Huang et al., 2019). Unfortunately, in all these analyses, the requirement of is inherited and is needed to derive the optimal regret. In contrast, methods that are shown to exhibit favorable practical performance continued to use a constant in the experiments.
One can wonder whether there is an inherent obstacle — in the proposed methods or the setting — which prohibits optimal regret bounds with a constant .
In this work, we show that this specific discrepancy between the theory and practice is indeed an artifact of the previous analyses. We point out the shortcomings responsible for this artifact, and then introduce a new analysis framework that attains optimal regret bounds with constant at no additional cost (and even comes with better constants in the obtained bounds).
Our contributions. In the convex setting, our technique obtains data-dependent \mathcal{O}\big{(}\sqrt{T}\big{)} regret bounds for AMSGrad and AdamNc (Reddi et al., 2018). Moreover, our technique can also be applied to a strongly convex variant of AdamNc, known as Sadam (Wang et al., 2020), yielding again data-dependent logarithmic regret with constant . To the best of our knowledge, these are the first optimal regret bounds with constant .
Finally, we illustrate the flexibility of our framework by applying it to zeroth-order (bandit) and nonconvex optimization. In the zeroth-order optimization setting, we improve on the current best result which requires , and show that a constant again suffices. In the non-convex setting, we recover the existing results in the literature, with a simpler proof and slight improvements in the bounds.
2 Preliminaries
and a weighted projection operator onto
Related work
In the setting of online convex optimization (OCO), Assumption 1.1 is standard (Hazan et al., 2016; Duchi et al., 2011). It allows us to consider nonsmooth stochastic minimization (though we are not limited to this setting), and even allows for adversarial loss functions.
The algorithms AMSGrad and AdamNc were proposed by Reddi et al. (2018) to fix the issue in the original proof of Adam (Kingma & Ba, 2014). However, as the proof template of Reddi et al. (2018) follows very closely the proof of Kingma & Ba (2014), the requirement for remains in all the regret guarantees of these algorithms. In particular, as noted by Reddi et al. (2018, Corollary 1, 2), a schedule of is needed for obtaining optimal regret. Reddi et al. (2018) also noted that regret bounds of the same order can be obtained by setting . On the other hand, in the numerical experiments, a constant value is used consistent with the huge literature following Kingma & Ba (2014).
Following Reddi et al. (2018), there has been a surge of interest in proposing new variants of Adam with good practical properties; to name a few, Padam by Chen & Gu (2018), Adabound and Amsbound by Luo et al. (2019); Savarese (2019), Nostalgic Adam by Huang et al. (2019). As the regret analyses of these methods follow very closely the analysis of Reddi et al. (2018), the resulting bounds inherited the same shortcomings. In particular, in all these algorithms, to achieve \mathcal{O}\big{(}\sqrt{T}\big{)} regret, one needs either or . On the other hand, the experimental results reported on these algorithms note that a constant value of is used in practice in order to obtain better performance.
Similar issues are present in other problem settings. For strongly convex optimization, Wang et al. (2020) proposed the Sadam algorithm as a variant of AdamNc, which exploits strong convexity to obtain \mathcal{O}\big{(}\log T\big{)} regret. Sadam was shown to exhibit favorable practical performance in the experimental results of Wang et al. (2020). However, the same discrepancy exists as with previous Adam variants: a linearly decreasing schedule is required in theory but a constant is used in practice.
One work that tried to address this issue is that of Fang & Klabjan (2019), where the authors focused on OCO with strongly convex loss functions and derived an regret bound with a constant value of , where is the strong convexity constant and is the step size that is set as (Fang & Klabjan, 2019, Theorem 2). However, this result is still not satisfactory, since the obtained bound for is weak: both strong convexity and the step size are small. This does not allow for the standard choices of .
Moreover, a quick look into the proof of Fang & Klabjan (2019, Theorem 2) reveals that the proof in fact follows the same lines as Reddi et al. (2018) with the difference of using the contribution of strong convexity to get rid of the spurious terms that require . Therefore, it is not surprising that the theoretical bound for depends on and and can only take values close to . Second, in addition to the standard Assumption 1.1, Fang & Klabjan (2019) also assumes strong convexity, which is a quite stringent assumption by itself. In contrast, our approach does not follow the lines of Reddi et al. (2018), but is an alternative way that does not encounter the same roadblocks.
2 Nonconvex world
A related direction to what we have reviewed in the previous subsection is to analyze Adam-type algorithms without convexity assumptions. When convexity is removed, the standard setting in which the algorithms are analyzed, is stochastic optimization with a smooth loss function and no constraints (Chen et al., 2019a; Zhou et al., 2018; Zou et al., 2019). As a result, these algorithms, compared to the convex counterparts, do not perform projections in the update step of (cf., Algorithm 1).
In addition to smoothness, bounded gradients are assumed, which is also restrictive, as many nonconvex functions do not satisfy this property. Indeed, one can show that it is equivalent to the Lipschitz continuity of the function (not its gradient!). Under these assumptions, the standard results bound the minimum gradient norm across all iterations.
An interesting phenomenon in this line of work is that a constant is permitted for the theoretical results, which may seem like weakening our claims. However, it is worth noting that these results do not imply any guarantee for regret in OCO setting.
Indeed, adding the convexity assumption to the setting of unconstrained, smooth stochastic optimization, would only help obtaining a gradient norm bound in the averaged iterate, rather than the minimum across all iterations. However, this bound does not imply any guarantee in the objective value, unless more stringent Polyak-Lojasiewicz or strong convexity requirements are added in the mix.
Moreover, in the OCO setting that we analyze, loss functions are nonsmooth, and there exists a constraint onto which a projection is performed in the step (cf., Algorithm 1). Finally, online optimization includes stochastic optimization as a special case. Given the difference of assumptions, the analyses in (Chen et al., 2019a; Zhou et al., 2018; Zou et al., 2019) indeed do not help obtaining any regret guarantee for standard OCO.
A good example demonstrating this difference on the set of assumptions is the work (Chen et al., 2019b). In this paper, a variant of AMSGrad is proposed for zeroth order optimization and it is analyzed in the convex and nonconvex settings. Consistent with the previous literature in both, convergence result for the nonconvex setting allows a constant (Chen et al., 2019b, Theorem 1). However, the result in the convex setting requires a decreasing schedule such that (Chen et al., 2019b, Proposition 4).
As we highlighted above, the analyses in convex/nonconvex settings follow different paths and the results or techniques are not transferrable to each other. Thus, our main aim in this paper is to bridge the gap in the understanding of regret analysis for OCO and propose a new analytic framework. As we see in the sequel, our analysis not only gives the first results in OCO setting, it is also general enough to apply to the abovementioned nonconvex optimization case and recover similar results as the existing ones.
Main results
We start by describing the shortcoming of the previous approaches in (Reddi et al., 2018; Wang et al., 2020) and, then explain the mechanism that allows us to obtain regret bounds with constant . In this subsection, for full generality, we assume that the update for is not done with , but with , as in (Reddi et al., 2018; Kingma & Ba, 2014):
The standard way to analyze Adam-type algorithms is to start by the nonexpansiveness property (3) and to write
Let us analyze the above inequality. Its left-hand side is exactly what we want to bound, since by convexity . The last two terms in the right-hand side are easy to analyze, all of them can be bounded in a standard way using just definitions of , , and .
What can we do with the term ? Analysis in (Reddi et al., 2018) bounds it with Young’s inequality
The term is precisely what leads to the second term in the regret bound in (Reddi et al., 2018, Theorem 4). Since , one must require .
Note that the update for has a projection. This is important, since otherwise a solution must lie in the interior of , which is not the case in general for problems with a compact domain. However, let us assume for a moment that the update for does not have any projection. In this simplified setting, applying the following trick will work.
Recall that , or equivalently . Plugging it into the error term yields
where the second equality follows from the Cosine Law and the first inequality is from and . We now compare this bound with the previous one. The term , as we already observed, is good for summation (cf., Lemma 4). And other two terms are going to cancel after summation over . Hence, it is easy to finish the analysis to conclude regret with a fixed .
Unfortunately, the update for does have a projection, without it the assumption for the domain to be bounded is very restrictive. This prevents us from using the above trick. Its message, however, is that it is feasible to expect a good bound even with a fixed , and under the same assumptions on the problem setting.
For having a more general technique to handle , we will take a different route in the very beginning — we will analyze the term in a completely different way, without resorting to any crude inequality as in (Reddi et al., 2018). Basically, this idea can be applied to any framework with a similar update for the moment .
2 A key lemma
As we understood above, the presence of the projection complicates handling . A high level explanation for the cause of the issue is that the standard analysis does not leave much flexibility, since it uses nonexpansiveness in the very beginning.
The main message of Lemma 1 is that the decomposition of , in the second part of the analysis in Section 3.1 is now done before using nonexpansiveness, therefore there would be no need for using Young’s inequality which is the main shortcoming of the previous analysis.
Upon inspection on the bound, it is now easy to see that the last two terms will telescope. The second term can be shown to be of the order , and as we have seen before, summing this term will give \mathcal{O}\big{(}\sqrt{T}\big{)}. To see that the first term is also benign, a high level explanation is to notice that is the gradient estimate used in the update , therefore it can be analyzed in the classical way. We will now proceed to illustrate the flexibility of the new analysis on three most popular Adam variants that are proven to converge.
3 AMSGrad
AMSGrad is proposed by (Reddi et al., 2018) as a fix to Adam. The algorithm incorporates an extra step to enforce monotonicity of second moment estimator .
The regret bound for this algorithm in (Reddi et al., 2018, Theorem 4, Corollary 1) requires a decreasing at least at the order of to obtain \mathcal{O}\big{(}\sqrt{T}\big{)} worst case regret. Moreover, it is easy to see that a constant results in \mathcal{O}\big{(}T\sqrt{T}\big{)} worst case regret in (Reddi et al., 2018, Theorem 4).
We now present the following theorem which shows that the same \mathcal{O}\big{(}\sqrt{T}\big{)} can be obtained by AMSGrad under the same structural assumptions as (Reddi et al., 2018).
Under Assumption 1.1, , , , and , AMSGrad achieves the regret
We would like to note that our bound for is also better than the one in (Reddi et al., 2018) in term of constants. We have only two terms in contrast to three in (Reddi et al., 2018) and each of them is strictly smaller than their counterparts in (Reddi et al., 2018). The reason is that we used i) new way of decomposition as in Lemma 1, ii) wider admissible range for , iii) more refined estimates for analyzing terms. For example, the standard analysis to estimate uses several Cauchy-Schwarz inequalities. We instead give a better bound by applying generalized Hölder inequality (Beckenbach & Bellman, 1961).
Another observation is that having a constant explicitly improves the last term in the regret bound. If one uses a non-decreasing , instead of constant , then this term will have an additional multiple of . Given that in general one chooses close to , this factor is significant.
Notice that Theorem 1 requires in order to have the weighted projection operator in (2) well-defined. Such a requirement is common in the literature for theoretical analysis, see (Duchi et al., 2011, Theorem 5). In practice, however, one can set .
We sum from Lemma 1 over , use to get
By using the fact that , and the same estimation as deriving ,
By Hölder and Young’s inequalities, we can bound as
Lastly, we see that is common in all these terms and it is well known that this term is good for summation
Combining the terms gives the final bound. ∎
Finally, if we are interested in the worst case scenario, it is clear that Theorem 1 gives regret . A quick look into the calculations yields that if one uses the worst case bound , then the bound will not include a logarithmic term. However, then the data-dependence of the bound will be lost. It is not clear if one can obtain a data-dependent regret bound. In the following corollary, we give a partial answer to this question.
Under Assumption 1.1, , , , and , AMSGrad achieves the regret
We remark that even though this bound does not contain a term, thus better in the worst-case, its data-dependence is actually worse than the standard bound. Standard bound contains whereas bound above contains . Therefore, when the values are very small, the bound with can be better. We leave it as an open question to have a bound with the same data-dependence as the original bound.
4 AdamNc
Another variant that is proposed by Reddi et al. (2018) as a fix to Adam is AdamNc which features an increasing schedule for . In particular, one sets in
that results in the following expression for
which is a reminiscent of Adagrad (Duchi et al., 2011). In fact, to ensure that is well-defined, one needs to consider the more general update similar to the previous case with AMSGrad.
AdamNc is analyzed in (Reddi et al., 2018, Theorem 5, Corollary 2) and similar to AMSGrad it has been shown to exhibit \mathcal{O}\big{(}\sqrt{T}\big{)} worst case regret only when decreases to . We show in the following theorem that the same regret can be obtained with a constant .
Under Assumption 1.1, , and , AdamNc achieves the regret
We skip the proof sketch of this theorem as it will have the same steps as AMSGrad, just different estimation for , due to different .
Compared with the bound from (Reddi et al., 2018, Corollary 2), we see again that constant not only removes the middle term of (Reddi et al., 2018, Corollary 2) but improves the last term of the bound by a factor of .
5 Sadam
It is known that Adagrad can obtain logarithmic regret (Duchi et al., 2010), when the loss functions satisfy -strong convexity, defined as
and .
A variant of AdamNc for this setting is proposed in (Wang et al., 2020, Theorem 1) and shown to obtain logarithmic regret, only with the assumption that decreases linearly to .
Similar to AMSGrad and AdamNc, our new technique applies to Sadam to show logarithmic regret with a constant under the same assumptions as (Wang et al., 2020).
Let Assumption 1.1 hold and be -strongly convex, . Then, if , , and , Sadam achieves
Consistent with the standard literature of OGD (Hazan et al., 2007), to obtain the logarithmic regret, first step size has a lower bound that depends on strong convexity constant . Compared with the requirement of (Wang et al., 2020) for , our requirement is strictly milder as and in practice since is near , it is much milder. We also remark that our bound is again strictly better than (Wang et al., 2020). Consistent with our previous results, we remove a factor of from the last term of the bound, compared to (Wang et al., 2020, Theorem 1).
We include the proof sketch to highlight how strong convexity helps in the analysis.
We will start the same as proof sketch of Theorem 1 to get
with the definitions of , , from the proof sketch of Theorem 1.
Now, due to strong convexity, one gets an improved estimate for the left-hand side,
Similar as before, we note the bound for as
For , one does not finish the estimation as before, but keep some terms that will be gotten rid of using strong convexity, and use the same estimation as to obtain
As strong convexity gives more flexibility in the analysis, one can select , resulting in an improved bound
It is now easy to see that the negative term in (8), when first step size is selected properly, can be used to remove the first term in the bound of (10).
It only remains to use Hölder inequality on , combine the estimates and use (11) to get the final bound. ∎
Extensions
In this section, we further demonstrate the applicability of our analytic framework in different settings. First, we focus on the recently proposed zeroth-order version of AMSGrad which required decreasing in the convex case (Chen et al., 2019b, Proposition 4), and we show that the same guarantees can be obtained with constant . Second, we show how to recover the known guarantees in the nonconvex setting, with small improvements. Finally, we extend our analysis to show that it allows any non-increasing variable schedule.
We first recall the setting of (Chen et al., 2019b), where a zeroth order variant of AMSGrad is proposed. The problem is
We note that this stochastic optimization setting corresponds to a special case of general OCO, with independent and identically distributed loss functions , indexed by .
The algorithm ZO-AdaMM (Chen et al., 2019b) is similar to AMSGrad applied with a zeroth order gradient estimator , instead of regular gradient . The gradient estimator is computed by
where is the sample selected at iteration , is a random vector drawn with uniform distribution from the sphere of a unit ball and is a sampling radius – or smoothing – parameter.
The benefit of this gradient estimator is that it is an unbiased estimator of the randomized smoothed version of , i.e.,
Two cases are analyzed by Chen et al. (2019b): convex and nonconvex . The authors proved guarantees with constant for nonconvex (Chen et al., 2019b, Proposition 2). However, surprisingly, their result for convex requires (Chen et al., 2019b, Proposition 4).
We identify that this discrepancy is due to the fact that their proof follows the same path as the standard regret analysis of Reddi et al. (2018). We give below a simple corollary of our technique showing that the same guarantees for convex can be obtained with constant .
Assume that is convex, -smooth, and -Lipschitz, is compact with diameter . Then ZO-AdaMM with , achieves
To finish the arguments, one can use standard bounds in zeroth order optimization, as in Chen et al. (2019b). Compared with Chen et al. (2019b, Proposition 4), the same remarks hold as for AMSGrad. Not only our result allows constant , but it also comes with better constants.
2 Nonconvex AMSGrad
In this section, we focus on the nonconvex, unconstrained, smooth, stochastic optimization setting:
We give a different and simpler proof using our new analysis, without defining . In terms of guarantees, we recover the same rates, with slightly better constants.
Under Section 4.2, , , and AMSGrad achieves
Compared with (Chen et al., 2019a, Corollary 3.1), the initial value of only affects one of the terms in our bound, whereas appears in all the terms of (Chen et al., 2019a, Corollary 3.1). The reason is that (Chen et al., 2019a) uses in many places of the proof, even when it was unnecessary.
Compared with (Zhou et al., 2018, Corollary 3.9), our result allows for bigger values of , since we require whereas (Zhou et al., 2018, Corollary 3.9) requires . Moreover, (Zhou et al., 2018, Corollary 3.9) has a constant step size that requires setting a horizon and becomes very small with large .
Lastly, we have a dependence, whereas (Zhou et al., 2018, Corollary 3.9) does not. However, this is not for free and it stems from the choice of a constant step size therein. In fact, it is well known that for online gradient descent analysis, can be shaved when . However, in practice using a variable step size is more favorable, since it does not require setting in advance. Therefore, we choose to work with variable step size and have the term in the bound.
We have focused on the case of constant throughout our paper, as it is the most popular choice in practice. However, it is possible that in some applications, practitioners might see benefit of using other schedules. For instance, one can decrease until some threshold and keep it constant afterwards. This is not covered by the previous regret analyses as needed to decrease to . With our framework however, one can use not only constant , but any schedule as long as it is nonincreasing, and optimal regret bounds will follow.
Due to space constraints, we do not repeat all the proofs with this modification, but illustrate the main change that happens with variable and show that our proofs will go through. In this section we switch to notation of to illustrate time-varying case.
We start from the result of Lemma 1, after summing over
For bounding the terms on the first and third lines of (15), the only place that will change with varying in the proof, is that will have a slightly different estimation, since now . One can use that to obtain the same bounds, but with factor multiplying the bounds now. As explained before, this is one thing we lose with varying in theory.
Next, we estimate the terms in the second line of (15)
Now, for the last line we use that is non-increasing, , and , to get
Thus upon summation over to , as ,
where we let . Indeed, the contribution of this term will only be constant as , , .
Note that the estimation of the terms on the first and third lines of (15) are the same, as in the constant case (up to constants). Also, the contribution of the terms in the second line of (15) with varying is a constant. Thus, one can repeat our proofs, with any nonincreasing schedule and obtain the same optimal regret bounds, but with slightly worse constants (compared to constant case).
Acknowledgements
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon research and innovation programme (grant agreement no - time-data), the Swiss National Science Foundation (SNSF) under grant number , the Department of the Navy, Office of Naval Research (ONR) under a grant number N62909-17-1-211. PM acknowledges financial support from the French National Research Agency (ANR) under grant ORACLESS (ANR-16-CE33-0004-01) and the COST Action CA16229 “European Network for Game Theory” (GAMENET).
References
Appendix A Proofs
By definition of , . Thus, we have
The above lemma is used to obtain a slightly tighter bound for , compared to the standard analysis.
Under Assumption 1.1, , , , , and the definitions of , , , in AMSGrad, it holds that
From the definition of and , it follows that
where the first inequality follows from the fact that , the second one follows from the generalized Hölder inequality (Lemma 2) for
and the third one follows from the sum of geometric series and the assumption .
We now comment on the possibility of observing many zero gradients in the beginning, causing until some , which would cause the appearance of the indeterminate form in the upper bound derived above — specifically in the term . For this, we will use the convention , in which case the above derivations are always well-defined. For this, we argue as follows: recall first that iff for all . This being the case, we also get , and hence, . In fact, this was done only for convenience, since and we can always exclude zero terms from , before using the first line in the above chain of inequalities. ∎
Under Assumption 1.1, , , , , and the definitions of , , , in AMSGrad, we have
We now restate Theorem 1 for easy navigation and proceed to its proof.
Under Assumption 1.1, , , , and , AMSGrad achieves the regret
Let . Then by convexity, we immediately have
Hence, our goal is to bound the latter expression. If we sum the inequality from Lemma 1 over and use the fact that , we obtain
We will separately bound each term in the right-hand side of (22) and then combine these bounds together.
Bound for .
As , by the nonexpansiveness property (3), we get
We rearrange and divide both sides of (A.1) by to get
where the last inequality is due to the fact that , , and the definition of .Note that for we suppose that ; this makes the above derivation still valid, as is not used in the algorithm, and this is only for convenience.
Summing (24) over and using that yields
Bound for .
At this point, we could use eq. 21 to obtain a final bound for . However, we postpone it to combine it with the term in (22) to have a shorter expression.
Bound for .
We now have all the ingredients required to bound the right-hand side of (22). To that end, after all substitutions and some straightforward algebra, we obtain
where the second inequality follows from the assumption , , and , and the last follows by Lemma 4. ∎
A.2 Proofs for AdamNc
We first give analogous results to Lemmas 3 and 4, which are mostly standard and simplified thanks to a constant .
Under Assumption 1.1, , , and the definitions of , , in AdamNc, it holds that
Using the expression (20) for and , we obtain:In the sequel, the same comments about the indeterminate form apply here as in Lemma 3.
where the first inequality is due to , second inequality is by Cauchy-Schwarz, the third one by the sum of geometric series, and the final one is by . ∎
Under Assumption 1.1, , , and the definitions of , , in AdamNc, it holds that
where the second equality is due to , third equality is by changing the order of summation, first inequality by summation of the geometric series. For the last inequality, we use a standard inequality for numerical sequences, encountered for example in Auer et al. (2002, Lemma 3.5)
We now restate Theorem 2 and present its proof.
Under Assumption 1.1, , and , AdamNc enjoys the regret bound
We will follow the proof structure of Theorem 1. First, we start from (22) which applies to AdamNc as the update of is the same as AMSGrad
Then we again bound each term in the right-hand side seperately.
Bound for .
We proceed similarly to the derivations in (A.1) and (24), the main change being that we now have instead of . We have:
where the last inequality is due to , since by definition and .
We now proceed to telescope this inequality, assuming as before that . Doing so, we obtain:
Bounds for and
These bounds will be similar as in the proof of Theorem 1. Again, the only change in calculations in (26) and (A.1) is that now we have instead of
We now combine (33), (34), and (35) in (31), estimate using the same steps in (28), and use the bound for from Lemma 6 to conclude:
A.3 Proofs for Sadam
Under Assumption 1.1, , , and the definitions of , , , in Sadam, it holds that
where we used the definitions and the expression for from (20) in the first line. First inequality follows from Cauchy-Schwarz and sum of geometric series; and the last inequality is by . ∎
Under Assumption 1.1, , , and the definitions of , , , in Sadam, it holds that
where the second equality is by the definition of and the third equality is by changing the order of summation. Moreover, first inequality is by the sum of geometric series and the last inequality is due to the fact that
for nonnegative and – see e.g., Duchi et al. (2010, Lemma 12) and Hazan et al. (2007, Lemma 11). ∎
We now restate Theorem 3 and present its proof.
Let Assumption 1.1 hold and be -strongly convex, . Then, if , , and , Sadam achieves
Let . In Theorem 1 we used convexity only once: going from to . Instead, strong convexity gives us , which combined for all yields
We want to estimate . Similarly to (22), we have
Bound for .
We proceed similarly to (A.1) and (24). The only change is that now we have instead of
We sum the above inequality and use the fact that to obtain
Bound for
This bound will be similar to the one we derived for Theorem 1. The main change in the calculations of (26) is that we will have instead of for using Hölder’s inequality and nonexpansiveness
We collect these estimations in (42) and (41) to derive
We collect the last two terms and use the assumption on the step size and the definition to derive
We finalize by using , Lemma 8 for the last term, and , for the first term
A.4 Proof for Zeroth order Adam
We restate Proposition 1 and provide its proof.
Assume that is convex, -smooth, and -Lipschitz, is compact with diameter . Then ZO-AdaMM with , achieves
We first note that ZO-AdaMM (Chen et al., 2019b) corresponds to using AMSGrad with as the gradient input, rather than the true gradient . Therefore, we follow the proof structure of Theorem 1 with as gradient input (instead of the true gradient ), until (28):
Our claim then follows by applying Jensen’s inequality, after taking expectations in (46). ∎
A.5 Proofs for nonconvex AMSGrad
(Bound for ). Under Section 4.2, , , , and the definitions of , , , in AMSGrad, it holds that
We first note the inequality for positive numbers
which is a consequence of Cauchy-Schwarz inequality.
where the first inequality uses , and the second equality uses the expressions from (20). The second inequality is by (48), and the final one by the sum of geometric series with . Since , the final inequality (47) follows. ∎
The reader could notice that all proofs so far were based on Lemma 1. In fact, we can formulate a more general statement, which will be the key in the nonconvex settings.
For convex case, we plugged in , while for the nonconvex case we will use . Obviously, its proof relies on the same algebra as in Lemma 1.
We move onto restating Theorem 4 and presenting its proof.
Under Section 4.2, , , and AMSGrad achieves
Let for and . By summing (50) over and using that , , , we obtain
Bound for
To simplify derivations, we set . Now, for the last term in the right-hand side we have
where we used Hölder’s inequality, and (note that for , this is still true, since and ). Combining (53) and (52) yields
Bound for
For the first term we use almost the same inequality as in (53)
For the second term we use smoothness of and the update rule for
We apply above estimates in (A.5) to derive
Bound for
By the update of and the descent lemma, we have
By Young’s inequality, , and ,
where in the second inequality we used , , and and the final inequality follows from Lemma 9, as .
Now we analyze the left-hand side of (A.5). Using (54), we deduce
where we used and .
Finally, combining (A.5), (A.5), and (A.5), we arrive at
where we used that .
Thus, by taking the full expectation in (A.5), we deduce
from which the final bound follows immediately. ∎