The Power of Adaptivity in SGD: Self-Tuning Step Sizes with Unbounded Gradients and Affine Variance

Matthew Faw, Isidoros Tziotis, Constantine Caramanis, Aryan Mokhtari, Sanjay Shakkottai, Rachel Ward

Introduction

Due to its simplicity, an enormous amount of literature, starting by [RM51], has sought to understand convergence guarantees for variants of stochastic gradient descent (SGD):

for minimizing a function F(⋅)F(\cdot) using stochastic gradients gt\bm{g}_{t} and a step size schedule ηt\eta_{t}. When the (non-convex) objective function is smooth (i.e., has LL-Lipschitz-continuous gradients) and the stochastic gradients are unbiased and have affine varianceWhile the proof of convergence under affine variance is not given explicitly in [GL13], by slightly modifying the step size choice, the analysis given in this work continues to hold with no additional modifications. Indeed, this observation is made explicitly by [BCN18, Theorem 4.8 ]., i.e.,

then it is well-known that SGD with a properly-tuned step size (depending on LL and σ1\sigma_{1}) converges to a first-order stationary point with error O(\nicefrac1T)\mathcal{O}(\nicefrac{{1}}{{\sqrt{T}}}) after TT iterations [GL13, BCN18]. Moreover, [ACDFSW19] showed this rate is tight under these assumptions.

Given these results, it is natural to ask if knowledge of LL and σ1\sigma_{1} is necessary to obtain this optimal rate of convergence. Indeed, this has been the motivation for adaptive step size algorithms such as AdaGrad-Norm, where for any parameters η,b0>0\eta,b_{0}>0, the step size, ηt\eta_{t}, is given by

[WWB19] showed that AdaGrad-Norm enjoys a O(\nicefraclog⁡(T)T)\mathcal{O}(\nicefrac{{\log(T)}}{{\sqrt{T}}}) convergence rate even when neither LL nor σ0\sigma_{0} is used to tune the step size-schedule. However, their analysis only holds when σ1=0\sigma_{1}=0 and the gradients are uniformly upper-bounded – an assumption which is violated even by strongly convex functions such as F(w)=∥w∥2F(\mathbf{w})=\left\lVert\mathbf{w}\right\rVert^{2}. In fact, [LO19, Section 4] suggests that, due to the correlation between ηt\eta_{t} and gt\bm{g}_{t} in the standard AdaGrad-Norm, the assumption that the gradients are uniformly-bounded might be necessary to prove their convergence guarantee. Although some works on similar adaptive SGD algorithms do not require the gradients to be uniformly upper-bounded [LO19, LO20], their analysis only holds when the step-size ηt\eta_{t} is (conditionally) independent of the current stochastic gradient gt\bm{g}_{t}, and require subgaussian noise (a condition which forces σ1=0\sigma_{1}=0). However, disentangling ηt\eta_{t} from gt\bm{g}_{t} is detrimental to the normalization scheme, rendering these methods crucially dependent on the knowledge of the Lipschitz constant LL for determining their step size.

Extending these results from the bounded variance setting (σ1=0\sigma_{1}=0) to the affine variance setting is important. Indeed, results that hold only for the case of bounded variance effectively require that one has noiseless access to gradients when their magnitudes are large (see Remark 1 for more discussion). As opposed to the non-adaptive SGD setting where this extension is immediate (discussed above), in AdaGrad-Norm (and more generally, in adaptive methods), the bias introduced by the correlation between ηt\eta_{t} and gt\bm{g}_{t} causes this additional variance to be significantly more problematic.

Our analysis must overcome two main challenges: (i) possibly unbounded gradients, and (ii) an additional bias term introduced by affine variance. Prior work avoided or circumvented these challenges via additional assumptions. Our work requires several new insights that we believe may be of independent interest. Furthermore, as we state in Remark 14, these insights are broadly applicable to related adaptive algorithms such as coordinate-wise AdaGrad. We outline these below.

Main Challenge 2: Additional bias from affine variance.

In the affine variance setting, the expected difference in function value between consecutive time steps is bounded as:

Related Work. [GL13] were the first to study the convergence of SGD for opimizing a non-convex, smooth objective function. They proved that a properly-tuned SGD converges to a first-order stationary point at rate O(\nicefrac1T)\mathcal{O}(\nicefrac{{1}}{{\sqrt{T}}}), if the step sizes are chosen as ηt=min⁡{\nicefrac1(1+σ12)L,\nicefracD~σ0T}\eta_{t}=\min\left\{\nicefrac{{1}}{{(1+\sigma_{1}^{2})L}},\nicefrac{{\widetilde{D}}}{{\sigma_{0}\sqrt{T}}}\right\} for a constant D~>0\widetilde{D}>0. Further, [ACDFSW19] proved that the O(\nicefrac1T)\mathcal{O}(\nicefrac{{1}}{{\sqrt{T}}}) rate is unimprovable for any algorithm with only first-order oracle access, assuming the function is non-convex, smooth, and the stochastic gradients are unbiased with bounded variance.

The original AdaGrad algorithm was proposed simultaneously by [DHS11, MS10] whereas [SM10] were the first to consider a variant of AdaGrad referred to as AdaGrad-Norm. [WWB19] analyzed AdaGrad-Norm for minimizing a smooth, non-convex function with uniformly-bounded gradients. They showed that AdaGrad-Norm converges at essentially the same rate as SGD, but without the need to know the smoothness constant (albeit under the restrictive assumption that the gradients are uniformly upper-bounded). In a simultaneous work, [LO19] studied a variant of AdaGrad-Norm where step size ηt\eta_{t} is conditionally independent of the current stochastic gradient gt\bm{g}_{t}, unlike in the standard AdaGrad setting. They provided a similar convergence guarantee without needing a uniform upper-bound on the stochastic gradients, but requiring that the noise have bounded support and additionally requiring knowledge of the smoothness parameter LL to tune their step sizes. In a followup work [LO20], the same authors proved high-probability convergence of a class of adaptive algorithms (including their variant of AdaGrad-Norm, as well as coordinate-wise AdaGrad with momentum) under the assumption of subgaussian noise. Note that, like the earlier result, their step sizes needed to be tuned with knowledge of the smoothness parameter, and further needed to be conditionally independent of the current gradient. [KLC22] established high probability results for AdaGrad without knowledge of the smoothness parameter in the bounded variance regime, assuming that the norm of the gradients are uniformly upper-bounded (i.e., the objective function is Lipschitz). They were further able to remove the Lipschitz assumption, but only when in addition to bounded variance, the noise of the stochastic gradients is subgaussian. [GG20] studied the asymptotic convergence of AdaGrad (as well as and RMSProp), where their analysis requires uniform gradient bounds as well as uniform bounds on the 22nd and 44th moments of the gradient noise. Very recently, [JXH22] established asymptotic almost-sure convergence of the AdaGrad-Norm iterates to first-order stationary points. Unlike our work, they do not provide rates of convergence, and their focus on asymptotics makes their analysis and results significantly different. [ZSJSL18] studied a weighted version of coordinate-wise AdaGrad with momentum, where they assumed the gradients were uniformly bounded. [DBBU20] later improved upon these results with respect to the dependence on the momentum parameter.

Several recent works have studied the convergence of other adaptive algorithms, all of which are based on the assumption of uniformly-bounded stochastic gradients. For instance, [KLBC19] developed an adaptive, accelerated algorithm that achieves optimal rates in the constrained, convex (smooth and non-smooth) regime, without knowledge of the smoothness or noise parameters. [CLSH18] studied the convergence of a class of Adam-like algorithms (originally introduced by [KB15]). Later, building on the results of [WWB19], [DBBU20] improved on this analysis of Adam with respect to the dependence on the momentum parameter and range of valid hyperparameters. [GXYJY21] provide an alternate analysis of a class of Adam-like algorithms for different momentum parameter scaling. [SMBM21] studied “delayed” versions of Adam (as well as a new algorithm they called AvaGrad), which makes the step sizes ηt\eta_{t} conditionally independent of the current stochastic gradient, gt\bm{g}_{t}.

Preliminaries

(Motivation for Affine Variance) This scaling is important for machine learning applications with feature noise (including missing features) [Ful09, KL20], in robust linear regression [XCM08], and generally whenever the model parameters are multiplicatively perturbed by noise (e.g., a multilayer network, where noise from a previous layer multiplies the parameters in subsequent layers). More broadly, restricting to bounded variance (i.e., assuming σ12=0\sigma_{1}^{2}=0) is equivalent to assuming “noiseless” access to the gradient when the magnitude of the gradient grows (e.g., a strongly convex function); this is because the stochastic gradient is an arbitrarily small perturbation of the true gradient in this regime. Finally, as discussed earlier, the analysis for non adaptive SGD is essentially unaffected by affine variance [BCN18].

Further, we will assume that the function F(⋅)F(\cdot) is LL-smooth:

A key property of AdaGrad-Norm is that the step-size sequence is tightly controlled:

In fact, variations of this observation have been noted for a number of AdaGrad variants [WWB19, DBBU20]. While simple, it is crucially important to our analysis, since, taken together with Assumption 3, it implies that the gradient at time tt scales at most polynomially in tt.

Consider any times t1≤t2∈[T]t_{1}\leq t_{2}\in[T] during a run of algorithm (AG-Norm). Then, deterministically,

Moreover, with probability at least 1−δ1-\delta, the following bound also holds

As a consequence of Lemma 2, we derive ∑t∈[T]∥∇F(wt)∥2=T(∥∇F(w1)∥+ηLT)2=O(T3)\sum_{t\in[T]}\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2}=T(\left\lVert\nabla F(\mathbf{w}_{1})\right\rVert+\eta LT)^{2}=\mathcal{O}(T^{3}) deterministically, and an analogous bound of O(T2log⁡(\nicefracTδ))\mathcal{O}(T^{2}\log(\nicefrac{{T}}{{\delta}})) with probability 1−δ1-\delta. Of course, Lemma 2 only gives a much weaker control over ∥∇F(wt)∥2\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2} than a uniform bound, and has not (to the best of our knowledge) been previously exploited. However loose, this bound nonetheless is one of the key steps to removing the uniform gradient bound, and may be of independent interest (e.g., useful for refining the convergence rates for strongly convex problems).

As mentioned earlier, a key difficulty in analyzing adaptive algorithms is the bias introduced by the correlation between the step size ηt\eta_{t} and the stochastic gradient gt\bm{g}_{t} at each time tt. To analyze the convergence of such algorithms, it is useful to introduce the following “decorrelated” step size.

Motivating the Proof

We have discussed the two main challenges in Section 1.1: unbounded gradients and affine variance. Now that we have the required mathematical definitions from Section 2, we discuss these challenges in more detail. Adaptive stochastic gradient methods exhibit two difficulties not present in the non-adaptive regime: (i) Since the step size ηt\eta_{t} depends on the trajectory of stochastic gradients, one must argue about the scaling of these stochastic gradients, and (ii) the step size is correlated with the current gradient, gt\bm{g}_{t}, as well as the past gradients. These manifest themselves as follows: by LL-smoothness (Assumption 3) and the AdaGrad-Norm algorithm (AG-Norm), we have that

When ηt\eta_{t} and gt\bm{g}_{t} are conditionally independent, then the inner product term above is mean-zero. As a consequence, as long as the step size ηt≤\nicefrac1L(1+σ12)\eta_{t}\leq\nicefrac{{1}}{{L(1+\sigma_{1}^{2})}}, (5) immediately implies that

Although in the non-adaptive setting, we could simply choose ηt=Ω(\nicefrac1T)\eta_{t}=\Omega(\nicefrac{{1}}{{\sqrt{T}}}), in the adaptive regime it is no longer obvious that such a condition holds. One may observe, however, that by Jensen’s inequality and Definition 3

Affine Variance: Upper-bounding the bias.

The bias term in (3) presents another difficulty in analyzing the rate of convergence in the adaptive setting. Specifically, in the affine variance setting

Main Results

In this section, we sketch out the key ideas that go into deriving a bound on the convergence rate of AdaGrad-Norm to a first order stationary point. Our main result is the following:

With probability at least 1−δ1-\delta, the iterates of (AG-Norm) satisfy:

where C∝(1+σ1)(\nicefracF(w1)−F∗η+b0+σ0+(1+σ12)∥∇F(w1)∥+(1+σ16)ηL)2+o(\nicefrac1T)C\propto(1+\sigma_{1})\left(\nicefrac{{F(\mathbf{w}_{1})-F^{*}}}{{\eta}}+b_{0}+\sigma_{0}+(1+\sigma_{1}^{2})\left\lVert\nabla F(\mathbf{w}_{1})\right\rVert+(1+\sigma_{1}^{6})\eta L\right)^{2}+o(\nicefrac{{1}}{{T}}).We use the notation x∝yx\propto y to mean β⋅y≤x≤α⋅y\beta\cdot y\leq x\leq\alpha\cdot y for some absolute constant α>β\alpha>\beta independent of all problem parameters. Moreover, when σ1≤\nicefrac18\sigma_{1}\leq\nicefrac{{1}}{{8}}, then with probability at least 1−δ1-\delta,

where A∝\nicefracF(w1)−F∗η+σ0+ηLA\propto\nicefrac{{F(\mathbf{w}_{1})-F^{*}}}{{\eta}}+\sigma_{0}+\eta L, B\propto(1+\sigma_{1}^{\nicefrac{{3}}{{2}}})(b_{0}+\sigma_{0}+\left\lVert\nabla F(\mathbf{w}_{1})\right\rVert+\eta L{\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}+\nicefrac{{F(\mathbf{w}_{1})-F^{*}}}{{\eta}})^{2}}, and C^{\prime}\propto{\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}(1+\sigma_{1}^{2})(b_{0}+\sigma_{0}+\eta L+\nicefrac{{F(\mathbf{w}_{1})-F^{*}}}{{\eta}})^{2}}.

4 demonstrates two interesting regimes for our guarantee. Namely, (11) shows a O~(\nicefrac1T)\widetilde{\mathcal{O}}(\nicefrac{{1}}{{\sqrt{T}}}) convergence rate for any choices of b0,η>0b_{0},\eta>0, thus establishing our parameter-free guarantee. However, this bound does not recover the \nicefrac1T\nicefrac{{1}}{{T}} convergence rate in the “small-noise” regime. Through a minor modification to the proof technique used to obtain (11), we are able to derive (12), which demonstrates that (AG-Norm) recovers an O~(\nicefrac1T)\widetilde{\mathcal{O}}(\nicefrac{{1}}{{T}}) rate of convergence when σ0,σ1=O(\nicefrac1T)\sigma_{0},\sigma_{1}=\mathcal{O}(\nicefrac{{1}}{{\sqrt{T}}}) – the rate obtainable by a well-tuned gradient descent in the noiseless regime up to logarithmic factors. We emphasize that (AG-Norm) does not require a priori knowledge of the smoothness parameter LL or the variance parameters σ0,σ1\sigma_{0},\sigma_{1} to obtain either of the convergence rates in (11) or (12). Indeed, (AG-Norm) adapts automatically to obtain the faster rate in the “small-noise” regime.

As displayed in (9), the affine variance scaling introduces additional bias that our analysis must handle. Indeed, this bound taken together with (3) implies the following lemma.

Recall the step size proxy of Definition 3 and the notation in Definition 6. With c0=2σ0η+\nicefracLη22c_{0}=2\sigma_{0}\eta+\nicefrac{{L\eta^{2}}}{{2}}, we obtain

Key Idea: Compensating for the “bad” times.

Lemma 7 shows that, even when we focus on the good times, we still must argue about the deviations at bad times to obtain a convergence guarantee. In order to address this problem, we begin by rewriting Lemma 7 by: (i) upper bounding the “bad” times using the (potentially quite large) bound obtained from Lemma 5, and (ii) subtracting some of the “good” deviation terms from both sides to compensate for the bad terms.

In the same setting as Lemma 7, we have that

2 Bounding the Expected Sum of Gradients via Recursive Improvement

Suppose that, for some parameters x∈x\in, y≥1y\geq 1, h(T)h(T) a sufficiently large polynomial function of TT, and sufficiently large constant c2c_{2},

In particular, as a consequence of Lemma 2,

3 Wrapping up

With these bounds from Lemmas 12 and 13 in place, obtaining the convergence result for (AG-Norm) in 4 is immediate. Indeed, we note that Lemma 12 gives us essentially the same bound as the one obtainable in the uniformly-bounded variance case (10) (modulo the summation over the set S~\widetilde{S} instead of all times [T][T]). Therefore, we may apply (essentially) the same Hölder’s inequality argument as in [WWB19], replacing their application of the uniform gradient bound with our bound on the expected sum of gradients from Lemma 13, and taking extra care that our summation from Lemma 12 is over a random set S~\widetilde{S}. We give the full proof of this theorem in Appendix F.

While we focus in this paper on the convergence rate of one particular adaptive SGD method, our methods are not overly specialized to AdaGrad-Norm. Indeed, using nearly identical arguments per coordinate, we can obtain similar O~(\nicefrac1T)\widetilde{\mathcal{O}}(\nicefrac{{1}}{{\sqrt{T}}}) convergence rates under similar assumptions for coordinate-wise AdaGrad, albeit with an additional polynomial dependence on dd.

Conclusion

Acknowledgements

This research is supported in part by NSF Grants 1952735, 1934932, 2019844, 2127697, and 2112471, ARO Grant W911NF2110226, AFOSR MURI FA9550-19-1-0005, the Machine Learning Lab (MLL) at UT Austin, and the Wireless Networking and Communications Group (WNCG) Industrial Affiliates Program.

References

Appendix A Preliminaries

Here, we provide proofs for claims from Section 2, as well as some auxiliary results and notation. We additionally state some definitions that will be useful for proving our results.

For any sequence {as}s=0∞\{a_{s}\}_{s=0}^{\infty} such that a0>0a_{0}>0 and as≥0a_{s}\geq 0 for all ss,

The base case of T=0T=0 holds with equality. Let us now assume that the claim holds at TT. Then, we have that

where the first inequality holds by the induction hypothesis, and the second because of the fact x<−log⁡(1−x)x<-\log(1-x) (where log⁡(⋅)\log(\cdot) denotes the natural logarithm). ∎

Our analysis will focus on adaptive gradient algorithms with a particularly convenient structure, which we refer to as the Bounded Step-Size Property

We say that an optimization algorithm has β1\beta_{1}-Bounded Step-Sizes if, for any pair of adjacent iterates (wt,wt+1)(\mathbf{w}_{t},\mathbf{w}_{t+1}) generated by the algorithm, the following inequality holds deterministically:

Another convenient property of the algorithms we study is what we call the Decay Property:

We say that an optimization algorithm satisfies the (β2,b0)(\beta_{2},b_{0})-Decay Property if the iterate sequence {wt}t∈[T]\{\mathbf{w}_{t}\}_{t\in[T]} satisfies the following inequality deterministically:

We observe that these property is satisfied by a number of interesting adaptive gradient algorithms.

AdaGrad-Norm has η\eta-Bounded Step-Sizes and (η2,b0)(\eta^{2},b_{0})-Decay. The first follows since for any time t≥0t\geq 0,

The second is an immediate consequence of Lemma 15, taking a0=b02a_{0}=b_{0}^{2} and as=∥gs∥2a_{s}=\left\lVert\bm{g}_{s}\right\rVert^{2} for s>0s>0.

Coordinate-wise AdaGrad (with coordinate-dependent step sizes

has η⋅d\eta\cdot\sqrt{d}-Bounded Step-Sizes and (dη2,b0)(d\eta^{2},b_{0})-Decay. The first follows since since ∣wt+1,i−wt,i∣≤η\left|\mathbf{w}_{t+1,i}-\mathbf{w}_{t,i}\right|\leq\eta for every coordinate i∈[d]i\in[d]. The second follows by applying Lemma 15 to the sum of ∣wt+1,i−wt,i∣2=η2(gt,i)2bt−1,i2+(gt,i)2|\mathbf{w}_{t+1,i}-\mathbf{w}_{t,i}|^{2}=\eta^{2}\frac{\left(\bm{g}_{t,i}\right)^{2}}{b_{t-1,i}^{2}+\left(\bm{g}_{t,i}\right)^{2}} for each coordinate.

We note here that all of the remaining results in this section could be stated in more generality by using Definitions 16 and 17. To showcase our ideas in the simplest manner, we will state everything in the context of the AdaGrad-Norm algorithm (AG-Norm).

By Assumption 3 and 18, we also have the following simple, but quite useful, facts, which give us crude but, crucially, polynomial (in TT) bound on ∥∇F(wt)∥2\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2}:

Consider the AdaGrad-Norm algorithm (AG-Norm) running on an LL-smooth objective function FF. Then, for any times t2≥t1t_{2}\geq t_{1},

The proof follows by first applying the triangle inequality and using a telescoping sum to bound

then noting that, for each s∈[t1,t2]s\in[t_{1},t_{2}], by Assumptions 3 and 18,

The above bound on ∥∇F(wt)∥\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert is quite useful, since it guarantees a polynomial (in TT) bound for ∥∇F(wt)∥\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert. However, note that this bound is much more crude than the bound assumed by [WWB19, DBBU20] (where they assumed ∥∇F(wt)∥2≤B<∞\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2}\leq B<\infty for every tt). It turns out that, on “nice” sample paths, a significantly tighter bound can be derived. Intuitively, these sample paths are those for which the quantity bT2=b02+∑t=1T∥gt∥2b_{T}^{2}=b_{0}^{2}+\sum_{t=1}^{T}\left\lVert\bm{g}_{t}\right\rVert^{2} is bounded by a polynomial in T.T.

For any time s\in{\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}\{0\}\cup}[T] and failure probability δ∈(0,1]\delta\in(0,1], we define the following “nice event”:

and take Es(δ)=∅\mathcal{E}_{s}(\delta)=\emptyset for δ>1\delta>1.

As we will soon see, bounding the quantity ∑t∈[T]∥wt+1−wt∥2\sum_{t\in[T]}\left\lVert\mathbf{w}_{t+1}-\mathbf{w}_{t}\right\rVert^{2} will be crucial in many parts of our analysis. Under the “nice” events from Definition 22, this quantity can be easily controlled:

For any choice of b02b_{0}^{2}, and any sample path, (AG-Norm) satisfies

Further, assuming that the “nice event” (20) (Es(δ)\mathcal{E}_{s}(\delta)) is true at time s∈[T]s\in[T], and taking f(⋅)f(\cdot) as in (21),

In particular, since E0(1)\mathcal{E}_{0}(1) is (trivially) always true, the above implies that

Additionally, when ET(δ)\mathcal{E}_{T}(\delta) (the nice event at time TT) is true,

We already established (22) in 18. For the remaining inequalities, we may assume without loss of generality that δ≤1\delta\leq 1. Indeed, whenever δ>1\delta>1, then Es(δ)=∅\mathcal{E}_{s}(\delta)=\emptyset by Definition 22, and thus Es(δ)\mathcal{E}_{s}(\delta) is never true, so all of the claims follow trivially.

To show (23), we note that, on any sample path, by (22) and Jensen’s inequality,

To bound this term above, first observe that, as noted in (3), Assumptions 1 and 2 imply that

Further, when (20) (Es(δ)\mathcal{E}_{s}(\delta)) is true at time ss, we have that, by Lemma 21,

Combining the above bounds, we conclude that

as claimed. Finally, observe that (24) and (25) follow immediately from (23), taking s=0s=0 (noting that E0(1)\mathcal{E}_{0}(1) is true deterministically) and s=Ts=T, respectively. ∎

With the above construction in place, we are ready to give a slightly stronger bound for ∥∇F(wt)∥2\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2}, improving upon Lemma 21 (with high probability) in many interesting regimes.

Consider any time t∈[T]t\in[T] during a run of (AG-Norm) initialized at a starting point w1\mathbf{w}_{1}, and is currently at iterate wt\mathbf{w}_{t}. Then,

and additionally, assuming that Et(δ)\mathcal{E}_{t}(\delta) from Definition 22 is true, and taking f(⋅)f(\cdot) as in (21), then

The proof follows effectively from the same arguments used to prove Lemma 21, only using the improved bound from Lemma 23 in place of Lemma 21. Indeed, using the same decomposition, and applying Cauchy-Schwarz, we have that

where the first inequality follows from the decomposition used in the proof of Lemma 21, the second follows by Cauchy-Schwarz, and the third from Lemma 15.

The second claim follows immediately from the above, combined with Lemma 23. ∎

Appendix B Deriving the Starting Point

Here, we provide the proof for the starting point of our analysis, Lemma 5, from Section 4.

We will begin by using our assumption of LL-smoothness, along with the definition of the algorithm, to get the bound:

Hence, by taking expectations of our first inequality and adding this mean-zero quantity to the resulting expression, we have that

We will now focus on bounding the second term. Observe that, denoting a=bt−12+∥gt∥2a=b_{t-1}^{2}+\left\lVert\bm{g}_{t}\right\rVert^{2}{} and b=bt−12+(1+σ12)∥∇F(wt)∥2+σ02b=b_{t-1}^{2}+(1+\sigma_{1}^{2})\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2}{}+\sigma_{0}^{2},

Plugging this bound into the above, and taking expectation with respect to the filtration at t−1t-1, we have shown that

We will now show that the second and third terms above have the same upper bound. Focus on the second term above, we apply Hölder’s inequality and the affine variance assumption to conclude that

Now, focusing on the third term, by Jensen’s inequality to the concave function ⋅\sqrt{\cdot}, we know that

which show that the second and third terms have exactly the same upper bound. Combining these expressions and rearranging, we find

Appendix C Most Times are (Typically) Good

Here, we provide proofs regarding properties and consequences of the “good” times (Definition 6) from Section 4.

Recalling the step size proxy of Definition 3 and the notation in Definition 6, we obtain

where c0=2σ0η+\nicefracLη22c_{0}=2\sigma_{0}\eta+\nicefrac{{L\eta^{2}}}{{2}}, and f(⋅)f(\cdot) is the function defined in (21).

Observe that an equivalent condition for a time tt to be “good” in the sense of Definition 6 is:

Now, summing the above expression over all times t∈[T]t\in[T], and applying Lemma 23, we find that

Now, by (23) in Lemma 23, we know that, whenever Es(δ)\mathcal{E}_{s}(\delta) is true, then

By (27), we additionally know that, for each time t1≤Tt_{1}\leq T,

Appendix D Compensating for “Bad” Time-Steps

Here, we provide proofs for the compensation arguments presented in Section 4

Let us begin by proving that, for any times t≥t′t\geq t^{\prime},

The claim is trivial when t′=t,t^{\prime}=t, so we focus on the case when t′<tt^{\prime}<t. Let us denote a=bt−12+(1+σ12)∥∇F(wt)∥2+σ02a=b_{t-1}^{2}+(1+\sigma_{1}^{2})\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2}+\sigma_{0}^{2} and b=bt′−12+(1+σ12)∥∇F(wt′)∥2+σ02b=b_{t^{\prime}-1}^{2}+(1+\sigma_{1}^{2})\left\lVert\nabla F(\mathbf{w}_{t^{\prime}})\right\rVert^{2}+\sigma_{0}^{2}. Then, observe that

Therefore, we can observe that the step sizes are sufficiently close, since

where the last line follows by Lemma 21. We will now use this observation in order to prove the claimed inequality. We will proceed by considering two cases.

In the first case, if ∥∇F(wt)∥>2ηL(t−t′)\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert>2\eta L(t-t^{\prime}), then by Lemma 21, ∥∇F(wt′)∥≥∥∇F(wt)∥−ηL(t−t′)≥\nicefrac12∥∇F(wt)∥\left\lVert\nabla F(\mathbf{w}_{t^{\prime}})\right\rVert\geq\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert-\eta L(t-t^{\prime})\geq\nicefrac{{1}}{{2}}\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert. This implies that

In the alternative case, when ∥∇F(wt)∥≤2ηL(t−t′)\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert\leq 2\eta L(t-t^{\prime}), then

Now, we will use Lemma 10 to bound the first term above. We will use the trivial bound for the second term: by Definition 3 and Lemma 21, we may bound each term inside of the sum of the second expression above as:

where c1=c~0+c~1.c_{1}=\widetilde{c}_{0}+\widetilde{c}_{1}.

The result follows immediately by combining Lemmas 29 and 27. Note that this result, up to logarithmic factors, takes essentially the same form as in the uniformly-bounded setting (10). ∎

Appendix E Bounding the Expected Sum of Gradients via Recursive Improvement

Here, we provide a proof for the recursive improvement argument presented in Section 4.

Suppose that, for some constants x≥1x\geq 1 and y≥0y\geq 0, the following inequality is true:

Then, in fact, the following tighter bound also holds:

In particular, as a consequence of Lemmas 24 and 23,

The proof will proceed in three steps, in which we will invoke the auxiliary Lemmas 32, 33 and 34. It is straightforward to verify that the constant c2c_{2} specified in this lemma, as well as the choice of h(T)=T2f(T)h(T)=T^{2}f(T), satisfy the constraints from those lemmas. Thus, we are free to use these results to prove our desired result.

In order to “remove” the indicator from the expectation above, we will need to show that, when ET(δ)\mathcal{E}_{T}(\delta) is false, ∑t∈S~∥∇F(wt)∥2\sum_{t\in\widetilde{S}}\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2} cannot be too large. Recall that we have two main tools to upper bound the size of this sum: Lemma 21, which gives a deterministic upper bound of O(T3)\mathcal{O}(T^{3}), and Lemma 24, which gives a high-probability upper bound of O~(T2)\widetilde{\mathcal{O}}(T^{2}). These insights allow us to prove Lemma 33, which tells us that

Step 2: Bounding the “good” terms.

With the indicator removed from the above expression, we are now ready to use Lemma 30 together with (40) and (41) to obtain a bound on the expected size of the gradients at the good times:

where the second inequality follows by upper bounding 42\nicefrac(F(w1)−F∗+c1)η≤\nicefracc24.4\sqrt{2}\nicefrac{{(F(\mathbf{w}_{1})-F^{*}+c_{1})}}{{\eta}}\leq\nicefrac{{\sqrt{c_{2}}}}{{4}}. Hence, by choosing γ1=max⁡{\nicefrac(4−x)3,0}\gamma_{1}=\max\{\nicefrac{{(4-x)}}{{3}},0\} and γ2=max⁡{\nicefrac2(y−1)3,0}\gamma_{2}=\max\{\nicefrac{{2(y-1)}}{{3}},0\}Note that these choices of γ1,γ2\gamma_{1},\gamma_{2} satisfy the requirements of Lemmas 32, 33 and 34. Indeed, γ1,γ2≥0\gamma_{1},\gamma_{2}\geq 0 by construction. Further, since x≥1x\geq 1, we have that γ1≤\nicefrac(4−x)3≤1\gamma_{1}\leq\nicefrac{{(4-x)}}{{3}}\leq 1 and, whenever x∈x\in, x+γ1=\nicefrac(2x+4)3≥2x+\gamma_{1}=\nicefrac{{(2x+4)}}{{3}}\geq 2, and when x>4x>4, x+γ1=x>4>2x+\gamma_{1}=x>4>2. Finally, y−γ2=min⁡{\nicefrac(y+2)3,y}≥0y-\gamma_{2}=\min\{\nicefrac{{(y+2)}}{{3}},y\}\geq 0 since y≥0y\geq 0., we conclude that

Step 3: Bounding the “bad” terms.

E.2 Technical Lemmas

We divide the proof in two cases: (1) δ>1\delta>1, and (2) δ≤1\delta\leq 1. In the first case, the claimed result (45) holds trivially, since ET(δ)=∅\mathcal{E}_{T}(\delta)=\emptyset by definition (see Definition 22), and thus,

Let us assume that ET(δ)\mathcal{E}_{T}(\delta) (the “nice” event from Definition 22) is true. Then, we have that

where the first inequality follows by definition of ET(δ)\mathcal{E}_{T}(\delta) and by the assumed bound (44). The second inequality follows since 1≤\nicefrac1δ1\leq\nicefrac{{1}}{{\delta}}, and the third since x≥1x\geq 1 and log⁡(h(T))≥1\log(h(T))\geq 1. The final inequality follows by plugging in our choice of δ\delta, and using the fact that c2≥b02+σ02c_{2}\geq b_{0}^{2}+\sigma_{0}^{2}.

Now, since bt−12≤bT2b_{t-1}^{2}\leq b_{T}^{2}, the above inequality implies that

where the first inequality follows since bt−12≤bT2b_{t-1}^{2}\leq b_{T}^{2} and by Lemma 21, and the second since x+γ1≥2x+\gamma_{1}\geq 2 and c2≥(1+σ12)(∥∇F(w1)∥+ηL)2+σ02c_{2}\geq(1+\sigma_{1}^{2})(\left\lVert\nabla F(\mathbf{w}_{1})\right\rVert+\eta L)^{2}+\sigma_{0}^{2}.

Now, in order to “remove” the indicator from the expectation, we will need to show that, when ET(δ)\mathcal{E}_{T}(\delta) is false, ∑t∈S~∥∇F(wt)∥2\sum_{t\in\widetilde{S}}\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{2} cannot be too large. Recall that we have two main tools to upper bound the size of this sum: Lemma 21, which gives a deterministic upper bound of O(T3)\mathcal{O}(T^{3}), and Lemma 24, which gives a high-probability upper bound of O~(T2)\widetilde{\mathcal{O}}(T^{2}). To exploit this “lighter” regime of Lemma 24, it will be useful to introduce the following event:

where δ=\nicefrac(2+σ12)log⁡y−γ2(h(T))Tγ1\delta=\nicefrac{{(2+\sigma_{1}^{2})\log^{y-\gamma_{2}}(h(T))}}{{T^{\gamma_{1}}}} is the same choice as in Lemma 32. By definition, E′⊂ET(δ)c\mathcal{E}^{\prime}\subset\mathcal{E}_{T}(\delta)^{c}, so

where in the last inequality, we use the following facts: \nicefrac1δ=Tγ1(2+σ12)log⁡y−γ2(h(T))≤T2\nicefrac{{1}}{{\delta}}=\frac{T^{\gamma_{1}}}{(2+\sigma_{1}^{2})\log^{y-\gamma_{2}}(h(T))}\leq T^{2} (chosen in Lemma 32) and \nicefracf(T)δ≤T2f(T)≤h(T)\nicefrac{{f(T)}}{{\delta}}\leq T^{2}f(T)\leq h(T) which hold since γ1≤2\gamma_{1}\leq 2, y−γ2≥0y-\gamma_{2}\geq 0, and by the initial conditions on h(T)≥eh(T)\geq e. Now, since γ1≤1\gamma_{1}\leq 1 by assumption (which implies that 2−γ1≥12-\gamma_{1}\geq 1), we may simplify the above to conclude that

By our assumption that c2≥16(2+σ12)(∥∇F(w1)∥2+L2η2)c_{2}\geq 16(2+\sigma_{1}^{2})(\left\lVert\nabla F(\mathbf{w}_{1})\right\rVert^{2}+L^{2}\eta^{2}), the claimed bound is immediate. ∎

Therefore, choosing δ=\nicefrac1T2\delta=\nicefrac{{1}}{{T^{2}}}, and assuming that T2f(T)≤h(T)T^{2}f(T)\leq h(T), we conclude that

Appendix F Obtaining the Convergence Rate for AdaGrad-Norm

Here, we provide a proof for the main result of this paper, a proof of convergence for the AdaGrad-Norm algorithm.

With probability at least 1−δ1-\delta, the AdaGrad-Norm algorithm (AG-Norm) for any choice of parameters η,b02>0\eta,b_{0}^{2}>0 satisfies:

Furthermore, whenever σ1≤\nicefrac18\sigma_{1}\leq\nicefrac{{1}}{{8}}, then with probability at least 1−δ1-\delta, (AG-Norm) also satisfies:

where c0=2ησ0+\nicefracLη22c_{0}=2\eta\sigma_{0}+\nicefrac{{L\eta^{2}}}{{2}}.

We note that the second bound in 35, (35), is particularly interesting in the regime when σ0,σ1=O(\nicefrac1T)\sigma_{0},\sigma_{1}=\mathcal{O}(\nicefrac{{1}}{{\sqrt{T}}}). Indeed, in this setting, our bound yields a O~(\nicefrac1T)\widetilde{\mathcal{O}}(\nicefrac{{1}}{{T}}) convergence rate which one should expect in the noiseless regime.

Focusing now on lower bounding the numerator of (49),

where the lower bound above follows since the average is always larger than the minimum. If it were the case that S~=[T]\widetilde{S}=[T], then, at this point, we would essentially be done with our proof. However, since S~\widetilde{S} is a random set, we must take some additional care. Because ∣S~c∣|\widetilde{S}^{c}| is O(log⁡(T))\mathcal{O}(\log(T)) in expectation by Lemma 26, this is only a minor technicality. Indeed,

Therefore, collecting the results we have derived so far into a lower bound on the right-hand side of (49), and applying the result of Lemma 30 to upper bound the left-hand side of (49), we have obtained the following upper bound:

where the inequality follows since min⁡t∈[T]∥∇F(wt)∥\nicefrac43≤∥∇F(w1)∥\nicefrac43\min_{t\in[T]}\left\lVert\nabla F(\mathbf{w}_{t})\right\rVert^{\nicefrac{{4}}{{3}}}\leq\left\lVert\nabla F(\mathbf{w}_{1})\right\rVert^{\nicefrac{{4}}{{3}}}. The above failure probability can be easily upper bounded via Markov’s inequality:

Hence, by a final application of Markov’s inequality, we obtain, for any δ∈(0,1)\delta\in(0,1),

Solving this quadratic inequality, we conclude that

In particular, this implies by Markov’s inequality that, with probability at least 1−δ1-\delta,

This shows that, in the setting when σ02,σ12=O(\nicefrac1T)\sigma_{0}^{2},\sigma_{1}^{2}=\mathcal{O}(\nicefrac{{1}}{{\sqrt{T}}}), then we recover a O~(\nicefrac1T)\widetilde{\mathcal{O}}(\nicefrac{{1}}{{T}}) convergence rate, as in the noiseless setting. ∎