Online Adaptive Methods, Universality and Acceleration
Kfir Y. Levy, Alp Yurtsever, Volkan Cevher
Introduction
The accelerated gradient method of Nesterov 1983 is one of the cornerstones of modern optimization. Due to its appeal as a computationally efficient and fast method, it has found use in numerous applications including: imaging (Chambolle and Pock 2011), compressed sensing (Foucart and Rauhut 2013), and deep learning (Sutskever et al. 2013), amongst other.
Despite these merits, accelerated methods are less prevalent in Machine Learning due to two major issues: (i) acceleration is inappropriate for handling noisy feedback, and (ii) acceleration requires the knowledge of the objective’s smoothness. While each of these issues was separately resolved in (Lan 2012; Hu et al. 2009; Xiao 2010), and respectively in (Nesterov 2015); it was unknown whether there exists an accelerated method that addresses both issues. In this work we propose such a method.
Concretely, Nesterov 2015 devises a method that obtains an accelerated convergence rate of for smooth convex objectives, and a standard rate of for non-smooth convex objectives, over iterations. This is done without any prior knowledge of the smoothness parameter, and is therefore referred to as a universal Following Nesterov’s paper (Nesterov 2015), we say that an algorithm is universal if it does not require to know in advance whether the objective is smooth or not. Note that universality does not mean a parameter free algorithm. Specifically, Nesterov’s universal methods (Nesterov 2015) as well as ours are not parameter free. method. Nonetheless, this method uses a line search technique in every round, and is therefore inappropriate for handling noisy feedback. On the other hand, Lan 2012, Hu et al. 2009, and Xiao 2010, devise accelerated methods that are able to handle noisy feedback and obtain a convergence rate of , where is the variance of the gradients. However, these methods are not universal since they require the knowledge of both and of the smoothness.
Conversely, adaptive first order methods are very popular in Machine Learning, withAdaGrad, (Duchi et al. 2011), being the most prominent method among this class. AdaGrad is an online learning algorithm which adapts its learning rate using the feedback (gradients) received through the optimization process, and is known to successfully handle noisy feedback. This renders AdaGrad as the method of choice in various learning applications. Note however, that AdaGrad (probably) can not ensure acceleration. Moreover, it was so far unknown whether AdaGrad is able to exploit smoothness in order to converge faster.
In this work we investigate unconstrained convex optimization. We suggest AcceleGrad (Alg. 2), a novel universal method which employs an accelerated-gradient-like update rule together with an adaptive learning rate à la AdaGrad. Our contributions,
We also present a new result regarding the AdaGrad algorithm. We show that in the case of stochastic optimization with a smooth expected loss, AdaGrad ensures an convergence rate, where is the variance of the gradients. AdaGrad does not require a knowledge of the smoothness, hence this result establishes the universality of AdaGrad (though without acceleration).
On the technical side our algorithm emoploys three simultaneous mechanisms: learning rate adaptation in conjunction with importance weighting, in the spirit of adaptive online learning algorithms (Duchi et al. 2011; Levy 2017), combined with an update rule that linearly couples two sequences, in the spirit of (Allen-Zhu and Orecchia 2017).
This paper is organized as follows. In Section 2 we present our setup and review relevant background. Our results and analysis for the offline setting are presented in Section 3, and Section 4 presents our results for the stochastic setting. In Section 5 we present our empirical study, and Section 6 concludes.
In his pioneering work, Nesterov 1983, establishes an accelerated rate for smooth convex optimization. This was later generalized in, (Nesterov 2003; Beck and Teboulle 2009), to allow for general metrics and line search.
In recent years there has been a renewed interest in accelerated methods, with efforts being made to understand acceleration as well as to extend it beyond the standard offline optimization setting.
An extension of acceleration to handle stochastic feedback was developed in, (Lan 2012; Hu et al. 2009; Xiao 2010; Cohen et al. 2018). Acceleration for modern variance reduction optimization methods is explored in, (Shalev-Shwartz and Zhang 2014; Allen-Zhu 2017), and generic templates to accelerating variance reduction algorithms are developed in, (Lin et al. 2015; Frostig et al. 2015). Scieur et al. 2016, derives a scheme that enables hindsight acceleration of non-accelerated methods. In (Yurtsever et al. 2015), the authors devise a universal accelerated method for primal dual problems. And the connection between acceleration and ODEs is investigated in, (Su et al. 2014; Wibisono et al. 2016; Flammarion and Bach 2015; Lessard et al. 2016; Aujol and Dossal 2017; Attouch and Chbani 2015). Universal accelerated schemes are explored in Nesterov 2015; Lan 2015; Neumaier 2016, yet these works do not apply to the stochastic setting. Alternative accelerated methods and interpretations are explored in, (Arjevani et al. 2016; Bubeck et al. 2015; Diakonikolas and Orecchia 2017).
Curiously, Allen-Zhu and Orecchia 2017, interpret acceleration as a linear coupling between gradient descent and mirror descent, our work builds on their ideas. Our method also relies on ideas from (Levy 2017), where universal (non-accelerated) procedures are derived through a conversion scheme of online learning algorithms.
Setting and Preliminaries
We focus on first order methods, i.e., methods that only require gradient information, and consider both smooth and non-smooth objectives. The former is defined below,
It is well known that with the knowledge of the smoothness parameter, , one may obtain fast convergence rates by an appropriate adaptation of the update rule. In this work we do not assume any such knowledge; instead we assume to be given a bound on the distance between some initial point, , and a global minimizer of the objective.
An access to the exact gradients of the objective is not always possible. And in many scenarios we may only access an oracle which provides noisy and unbiased gradient estimates. This Stochatic Optimization setting is prevalent in Machine Learning, and we discuss it more formally in Section 4.
The adaptive method presented in this paper is inspired by AdaGrad (Alg. 1), a well known online optimization method which employs an adaptive learning rate. The following theorem states AdaGrad’s guarantees Actually AdaGrad is well known to ensure regret guarantees in the online setting. For concreteness, Thm. 2.1 provides error guarantees in the offline setting. , (Duchi et al. 2011),
Let be a convex set with diameter . Let be a convex function. Then Algorithm 1 guarantees the following error;
Offline Setting
This section discusses the offline optimization setting where we have an access to the exact gradients of the objective. We present our method in Algorithm 2, and substantiate its universality by providing rate in the smooth case (Thm. 3.1), and a rate of in the general convex case (Thm. 3.2). The analysis for the smooth case appears in Section 3.1 and we defer the proof of the non-smooth case to the Appendix.
AcceleGrad is summarized in Algorithm 2. Inspired by, (Allen-Zhu and Orecchia 2017), our method linearly couples between two sequences into a sequence . Using the gradient , , these sequences are then updated with the same learning rate, , yet with different reference points and gradient magnitudes. Concretely, takes a gradient step starting at . Conversely, for we scale the gradient by a factor of and then take a projected gradient step starting at . Our method finally outputs a weighted average of the sequence.
Our algorithm coincides with the method of (Allen-Zhu and Orecchia 2017) upon taking and outputting the last iterate, , rather then a weighted average; yet this method is not universal. Below we present our -independent choice of learning rate and weights,
The learning rate that we suggest adapts similarly to AdaGrad. Differently from AdaGrad we consider the importance weights, , inside the learning rate rule; an idea that we borrow from (Levy 2017). The weights that we employ are increasing with , which in turn emphasizes recent queries.
Next we state the guarantees of AcceleGrad for the smooth and non-smooth cases,
Assume that is convex and -smooth. Let be a convex set with bounded diameter , and assume there exists a global minimizer for in . Then Algorithm 2 with weights and learning rate as in Equation (1) ensures,
Remark: Actually, in the smooth case we do not need a bound on the Lipschitz continuity, i.e., is only required in case that the objective is non-smooth. Concretely, if we know that is smooth then we may use , which yields a rate of .
Next we show that the exactly same algorithm provides guarantees in the general convex case (see proof in Appendix B),
Assume that is convex and -Lipschitz. Let be a convex set with bounded diameter , and assume there exists a global minimizer for in . Then Algorithm 2 with weights and learning rate as in Equation (1) ensures,
Remark: For non-smooth objectives, we can modify AcceleGrad and provide guarantees for the constrained setting. Concretely, using Alg. 2 with a projection step for the ’s, i.e., , then we can bound its error by . This holds even in the case where minimizer over is not a global one.
Here we provide a proof sketch for Theorem 3.1 (the full proof is deferred to Appendix A) . For brevity, we will use to denote a global mimimizer of which belongs to .
Recall that Algorithm 2 outputs a weighted average of the queries. Consequently, we may employ Jensen’s inequality to bound its error as follow,
Combining this with , implies that in order to substantiate the proof it is sufficient to show that, , is bounded by a constant. This is the bulk of the analysis.
We start with the following lemma which provides us with a bound on ,
Assume that is convex and -smooth. Then for any sequence of non-negative weights , and learning rates , Algorithm 2 ensures the following to hold,
Interestingly, choosing , implies that the above term, , does not contribute to the sum. We can show that this choice facilitates a concise analysis establishing an error of for While we do not spell out this analysis, it is a simplified version of our proof for Thm. 3.1..
Note however that our learning rate does not depend on , and therefore the mentioned term is not necessarily negative. This issue is one of the main challenges in our analysis. Next we provide a proof sketch of Theorem 3.1. The full proof is deferred to Appendix A.
Lemma 3.1 enables to decompose ,
Next we separately bound each of the above terms.
Using the fact that is monotonically increasing allows to show,
We will require the following property of the weights that we choose (Eq. (1)),
Where the last inequality uses Equation (5) (see full proof for the complete derivation).
Let us denote We may now split the term according to ,
where in the second line we use which holds for , implying that ; in the last line we use .
Combining the bounds in Equations (4),(3.1),(3.1) into Eq. (3.1), and re-arranging gives,
We are now in the intricate part of the proof where we need to show that the above is bounded by a constant. As we show next this crucially depends on our choice of the learning rate. To simplify the proof sketch we assume to be using , , i.e. taking in the learning rate. We will require the following lemma before we go on,
For any non-negative numbers the following holds:
Equipped with the above lemma and using explicitly enables to bound ,
where in the last inequality we have used the definition of which implies that .
Using similar argumentation allows to bound the term by . Plugging these bounds back into Eq. (8) we get,
Combining this with Eq. (2) and noting that , concludes the proof. ∎
Stochastic Setting
This section discusses the stochastic optimization setup which is prevalent in Machine Learning scenarios. We formally describe this setup and prove that Algorithm 2, without any modification, is ensured to converge in this setting (Thm. 4.1). Conversely, the universal gradient methods presented in (Nesterov 2015) rely on a line search procedure, which requires exact gradients and function values, and are therefore inappropriate for stochastic optimization.
As a related result we show that the AdaGrad algorithm (Alg. 1) is universal and is able to exploit small variance in order to ensure fast rates in the case of stochastic optimization with smooth expected loss (Thm. 4.2). We emphasize that AdaGrad does not require the smoothness nor a bound on the variance. Conversely, previous works with this type of guarantees, Xiao 2010; Lan 2012, require the knowledge of both of these parameters.
We also assume that the internal coin tosses (randomizations) of the oracle are independent. It is well known that variants of Stochastic Gradient Descent (SGD) are ensured to output an estimate such that the excess loss is bounded by for the setups of stochastic convex optimization, Nemirovskii et al. 1983. Similarly to the offline setting we assume to be given a set with bounded diameter , such that there exists a global optimum of in .
The next theorem substantiates the guarantees of Algorithm 2 in the stochastic case,
Assume that is convex and -Lipschitz. Let be a convex set with bounded diameter , and assume there exists a global minimizer for in . Assume that we invoke Algorithm 2 but provide it with noisy gradient estimates (see Eq. (9)) rather then the exact ones. Then Algorithm 2 with weights and learning rate as in Equation (1) ensures,
The analysis of Theorem 4.1 goes along similar lines to the proof of its offline counterpart (i.e., Thm. 3.2). The full proof is deferred to Appendix C.
It is well known that AdaGrad (Alg. 1) enjoys the standard rate of in the stochastic setting. The next lemma demonstrates that: (i) AdaGrad is universal, and (ii) AdaGrad implicitly make use of smoothness and small variance in the stochastic setting.
Assume that is convex and -smooth. Let be a convex set with bounded diameter , and assume there exists a global minimizer for in . Assume that we invoke AdaGrad (Alg. 1) but provide it with noisy gradient estimates (see Eq. (9)) rather then the exact ones. Then,
Next we provide a proof of the above theorem,
the last line uses the lemma below, which holds since we assume contains a global minimum.
Eq. (10) enables to show, . Combining this together with the definition of and Jensen’s inequality concludes the proof. ∎
Experiments
In this section we compare AcceleGrad against AdaGrad (Alg. 1) and universal gradient methods (Nesterov 2015), focusing on the effect of tuning parameters and the level of adaptivity.
We consider smooth () and non-smooth () regression problems of the form
Universal gradient methods are based on an inexact line-search technique that requires an input parameter . Moreover, these methods have convergence guarantees only up to -suboptimality. For smooth problems, these methods perform better with smaller . In stark contrast, for the non-smooth problems, small causes late adaptation, and large ends up with early saturation. Tuning is a major problem for these methods, since it requires rough knowledge of the optimal value.
Universal gradient method (also the fast version) provably requires two line-search iterations on average at each outer iteration. Consequently, it performs two data pass at each iteration (four for the fast version), while AdaGrad and AcceleGrad require only a single data pass.
The parameter denotes the ratio between and the distance between initial point and the solution. Parameter plays a major role on the step-size of AdaGrad and AcceleGrad. Overestimating causes an overshoot in the first iterations. AcceleGrad consistently overperforms AdaGrad in the deterministic setting. As a final note, it needs to be mentioned that the iterates of AcceleGrad empirically converge faster than the averaged sequence . Note that for AcceleGrad we always take , i.e., use .
We also study the stochastic setup (Appendix E), where we provide noisy gradients of based on minibatches. As expected, universal line search methods fail in this case, while AcceleGrad converges and performs similarly to AdaGrad.
Large batches: In Appendix E.3 we show results on a real dataset which demonstrate the appeal of AcceleGrad in the large-minibatch regime. We show that with the increase of batch size the performance of AcceleGrad verses the number of gradient calculations does not degrade and might even improve. This is beneficial when we like to parallelize a stochastic optimization problem. Conversely, for AdaGrad we see a clear degradation of the performance as we increase the batch size.
Conclusion and Future Work
We have presented a novel universal method that may exploit smoothness in order to accelerate while still being able to successfully handle noisy feedback. Our current analysis only applies to unconstrained optimization problems. Extending our work to the constrained setting is a natural future direction. Another direction is to implicitly adapt the parameter , this might be possible using ideas in the spirit of scale-free online algorithms, Orabona and Pál 2015; Cutkosky and Orabona 2018.
Acknowledgement
The authors would like to thank Zalán Borsos for his insightful comments on the manuscript.
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement no - time-data). K.Y.L. is supported by the ETH Zurich Postdoctoral Fellowship and Marie Curie Actions for People COFUND program.
References
Appendix A Proofs for the Smooth Case (Thm. 3.1)
Here we provide the complete proof of Theorem 3.1, and of the related lemmas. For brevity, we will use to denote a global mimimizer of which belongs to .
Recall that Algorithm 2 outputs a weighted average of the queries. Consequently, we may employ Jensen’s inequality to bound its error as follow,
Combining this with , implies that in order to substantiate the proof it is sufficient to show that, , is bounded by a constant. This is the bulk of the analysis.
We start by recalling Lemma 3.1 which provides us with abound on ,
Assume that is convex and -smooth. Then for any sequence of non-negative weights , and learning rates , Algorithm 2 ensures the following to hold,
The proof Lemma 3.1 appears in Appendix A.1. Next we prove Theorem 3.1.
It is natural to separately bound each of the sums above.
Using the fact that is monotonically increasing we may bound as follows,
We will require the next lemma regarding the specific choice of the weights,
The following holds for the ’s which are described in Eq. (1),
where in the fourth line we use Lemma A.1, we also use and .
Let us denote as follows: We may now split the last term as follows,
where in the third line we use which holds for , implying that ; in the fourth line we use .
Combining the bounds in Eq. (A)-(A) into Eq. (A), we obtain,
This is the intricate part of the proof where we show that the above is bounded by a constant. This crucially depends on our choice of the learning rate, i.e., . We require the following lemma (proof is found in Appendix A.4) before we go on,
For any non-negative numbers the following holds:
Equipped with the above lemma and using explicitly enables to bound ,
where in the second line we use the left hand nequality of Lemma A.2; in the fourth line we use the right hand inequality of Lemma A.2 ; and in the last line we have used the definition of which implies that .
We will also require the following lemma (proof is found in Appendix A.5),
For any non-negative real numbers ,
Equipped with the above lemma and using explicitly enables to bound ,
where in the third line we used Lemma A.3, and in the last line we have used the definition of which implies that . Combining Equations (A), (A) back into Eq. (17) and using Jensen’s inequality we are now ready to establish the final bound,
where we have used and therefore .
A.1 Proof of Lemma 3.1
Our starting point is bounding which can be decomposed as follows,
where we use in conjunction with the gradient inequality. Let us now bound the terms in the above equation.
The next lemma enables to bound this term,
The proof of Lemma A.4 is provided in Appendix A.2.
We can now relate the first term in the above lemma to . Define , and notice that . Using this we may write,
where we use ; also in the inequality we use the following equivalent form for the update rule of ,
this equivalence can be directly validated by finding the global optimum of the above objective and showing that it is obtained by choosing .
Combining Eq. (A.1) with Lemma A.4 gives,
Notice that re-arranging the relation between (recall ) gives,
where we denote . Also note that the smoothness of implies,
where second line uses the gradient inequality. We have also used (see Alg. 2).
Combining Equations (A.1), (22) and (A.1) we get,
A.2 Proof of Lemma A.4
Writing the update of the ’s explicitly we have,
Simplifying the above implies the following equivalent form,
where . Since is a solution of the above minimization problem it satisfies the first order optimality conditions, i.e. ,
which follows by the first order optimality conditions for . We are now ready to complete the proof,
where the second line follows due to Eq. (26), and the second line is due to following lemma (which may be easily extended to general Bergman divergences),
Below we provide the proof of this lemma.
Noticing that the lemma may be validated by a direct calculation. Indeed, . Also,
A.3 Proof of Lemma A.1
For we have and the lemma immediately follows. For we have,
A.4 Proof of Lemma A.2
First direction: We will prove this part by induction. The base case, , immediately holds. For the induction step assume that the lemma holds for and let us show it holds for . By the induction assumption,
where we denote and (note that ). Thus, in order to prove the lemma it is sufficient to show that,
which we do next. Multiplying both sides by we get that the above is equivalent to,
Taking the square of the above an re-ordering we get that the above is equivalent to,
Which holds in our case since . This concludes the first part of the proof.
Second direction: The second inequality in the lemma is due to Lemma in (McMahan and Streeter 2010). For completeness we include their proof.
This part is also proved by induction. The base case, , immediately holds. For the induction step assume that the lemma holds for and let us show it holds for . By the induction assumption,
where we denote and (note that ). The derivative of the right hand side with respect to is , which is negative for . Thus, subject to the constraint , the right hand side is maximized at , and is therefore at most . This concludes the second part of the proof. ∎
A.5 Proof of Lemma A.3
We will prove the statement by induction over . The base case holds since,
For the induction step, let us assume that the guarantee holds for , which implies that for any ,
The above suggests that establishing following inequality concludes the proof,
Using the notation , Equation (27) is equivalent to the following,
However, it is immediate to validate that the function , is non-negative for any , which establishes the lemma. ∎
Appendix B Proofs for the General Convex Case (Thm. 3.2)
Here we provide the complete proof of Theorem 3.2, and of the related lemmas. For brevity, we will use to denote a global mimimizer of which belongs to .
Recall that Algorithm 2 outputs a weighted average of the queries. Consequently, we may employ Jensen’s inequality to bound its error as follow,
We start with the following lemma which provides us with a bound on ,
Assume that is convex and -Lipschitz. Then for any sequence of non-negative weights , and learning rates , Algorithm 2 ensures the following to hold,
The proof of Lemma B.1 is provided in Appendix B.1. We are now ready to prove Theorem 3.2.
It is natural to separately bound each of the sums above.
Similarly to part in the proof of Theorem 3.1 we can show the following to hold,
Note that by the definition of we have
where the second inequality uses Lemma A.2.
Writing down explicitly we get,
where we used . The last line uses the following lemma (see proof in Appendix B.2),
Consider the ’s used by our algorithm, i.e.,
And assume a sequence of non-negative numbers, . Then the following holds,
Combining the bounds on the different terms, Eq. (30)-(B), together with Eq. (B), we have,
Re-arranging and using the explicit expression for we get,
where we have used , and also, implying that .
Using Jensen’s inequality we are now ready to establish the final bound,
where we have used and therefore .
B.1 Proof of Lemma B.1
Our starting point is bounding which can be decomposed as follows,
where we use in conjunction with the gradient inequality. Let us now bound the terms in the above equation.
Similarly to the proof of Lemma 3.1 we can show the following to hold (see Eq. (22) in Lemma 3.1),
Combining the above with implies,
Notice that re-arranging the relation between (recall ) gives,
where we denote . Using the above we get,
where second line uses the gradient inequality, in the third line we used (see Alg. 2); and in the last line we used , which follows by the -Lipschitzness of .
Combining Equations (B.1), (35), (B.1) we get,
Re-arranging the above equation and we get,
B.2 Proof of Lemma B.2
Let us define the following time variables,
By the definition of , the following applies,
For the other time variables we can similarly show the following bounds, i.e., ,
Using the definition of the time variables together with Equations (37),(38) we get,
where in the third line we use which by definition holds for any .
Thus, we are left to show that . To do so, first notice that the maximal value of is bounded as follows,
Thus, assuming we have , and therefore,
Appendix C Proof of Theorem 4.1
For brevity we will not rehearse all of the details which are similar to the proof of the offline setting, but rather only emphasize the differences compared to the analysis of Theorem 3.2. First note the following which is analogous to Lemma B.1,
Assume that is convex and -Lipschitz. Assume that we invoke Algorithm 2 but provide it with noisy gradient estimates (see Eq. (9)) rather then the exact ones. Then for any sequence of non-negative weights , and learning rates , the following holds,
Taking expectations and using the above in conjunction with the definition of and Jensen’s inequality concludes the proof. ∎
The proof follows similar lines to the proof of Lemmas B.1 and 3.1. Here we will highlight the changes due to the stochastic setting.
Our starting point is bounding which can be decomposed as follows,
Similarly to the proof of Lemma 3.1 we can show the following to hold (see Eq. (22) in Lemma 3.1),
Similarly to the proof of Lemma B.1 we can show the following to hold (see Eq. (B.1) therein),
Combining Equations (40), (41) and (C.1) we get,
Re-arranging the above equation and we get,
Appendix D Proof of Lemma 4.1
Taking we get,
where in the last inequality we used which holds since is the global minimum. ∎
Appendix E Additional Numerical Experiments
Here, we present numerical experiments on the stochastic setting, and on a practical variant that neglects the projection steps.
We consider the same problem setup as in Section 5. Rather than using the exact gradients, we compute the unbiased estimates evaluated by a single data point (i.e. minibatch of size ) The results are shown in Figure 2.
AdaGrad and AcceleGrad perform similar empirically for most of the parameter choices. AdaGrad overperforms AcceleGrad only for the smooth problem with . This bahavior is caused by the projection step, and slightly increasing cures the problem for AcceleGrad.
Universal gradient methods (Nesterov 2015) are based on a line-search technique that relies on the exact first order oracle information. Thus, it is not so surprising that in practice these methods fail upon receiving stochastic feedback, and we therefore do not present their performance.
E.2 Numerical Experiments Neglecting the Projections
We observed that the methods work well in practice even if we ignore the projection step in the unconstrained setting. In some cases, this simple tweak may even improve the performance. We used the same test setup as in Section 5, and the results are shown in Figures 3 and 4 for the deterministic and stochastic settings respectively. Note that the method works also when we underestimate .
E.3 Experiments with Large Minibatch
In this section we apply AcceleGrad to a real world stochastic optimization problem and compare its performance with AdaGrad. We examine the effect of minibatch size verses performance. The large minibatch regime is important when one likes to apply SGD using several machines in parallel. This is done by dividing the minibatch computation between the machines. Unfortunately, it is well known that the performance of SGD degrades with the increase of minibatch size . Here, we show that AcceleGrad might be more appropriate in this case.
Concretely we consider the RCV1 available in the UCI repository website (https://archive.ics.uci.edu/ml/) dataset which is a binary labeled set with datapoints samples and features. We train a classifier for this dataset using logistic loss (smooth case) as well as using the hinge loss (SVM). We compare the performance of AcceleGrad with AdaGrad. For each method we examine several minibatch sizes, and observe the performance of each method verses the number of epochs (total number of gradients that we have computed).
The results for logistic regression appear in Figure 6. For AdaGrad we see that the performance degrades as we increase the minibatch size beyond . This actually agrees with theory that predicts a degradation with the increase of .
For AcceleGrad we observe an interesting phenomenon: if we aim for a very small error (in this case smaller than ) then as we increase the minibatch size the performance actually improves. The intuition behind this is the following: upon using small the gradients are noisy and both AcceleGrad and AdaGrad will obtain the slow rate, where is the number of iterations. However, as increases the gradients are becoming more accurate and AcceleGrad with obtain a rate approaching while AdaGrad will approach rate. Now note that the number of gradient calculations , depends on and as follows, Thus, for small minibatch, both methods will ensure a rate of , which clearly degrades with . As increases AcceleGrad will obtain a rate approaching while AdaGrad will approach rate.
We have observed similar behaviour when train an SVM (i.e., using hinge loss). This can be seen in Figure 5.