Dynamics of SGD with Stochastic Polyak Stepsizes: Truly Adaptive Variants and Convergence to Exact Solution
Antonio Orvieto, Simon Lacoste-Julien, Nicolas Loizou
Introduction
We consider the stochastic optimization problem:
In this setting, the algorithm of choice is often Stochastic Gradient Descent (SGD), i.e. , where is the stepsize at iteration , a random subset of datapoints (minibatch) with cardinality sampled independently at each iteration , and is the minibatch gradient.
A careful choice of is crucial for most applications . The simplest option is to pick to be constant over training, with its value inversely proportional to the Lipschitz constant of the gradient. While this choice yields fast convergence to the neighborhood of a minimizer, two main problems arise: (a) the optimal depends on (often unknown) problem parameters — hence often requires heavy tuning ; and (b) it cannot be guaranteed that is reached in the limit . A simple fix for the last problem is to allow polynomially decreasing stepsizes (second option) : this choice for often leads to convergence to , but hurts the overall algorithm speed. The third option, which became very popular with the rise of deep learning, is to implement an adaptive stepsize. These methods do not commit to a fixed schedule, but instead use the optimization statistics (e.g. gradient history, cost history) to tune the value of at each iteration. These stepsizes are known to work very well in deep learning , and include Adam , Adagrad , and RMSprop .
A promising new direction in the adaptive stepsizes literature is based on the idea of Polyak stepsizes, introduced by in the context of deterministic convex optimization. Recently successfully adapted Polyak stepsizes to the stochastic setting, and provided convergence rates matching fine-tuned SGD — while the algorithm does not require knowledge of the unknown quantities such as the gradient Lipschitz constant. The results especially shines in the overparameterized strongly convex setting, where linear convergence to is shown. This result is especially important since, under the same assumption, no such rate exists for AdaGrad (see e.g. for the latest results) or other adaptive stepsizes. Moreover, the method was shown to work surprisingly well on deep learning problems, without requiring heavy tuning .
Even if the stochastic Polyak stepsize (SPS) comes with strong convergence guarantees, it has two main drawbacks when it is used in non-over-parameterized regimes: (i) It requires a priori knowledge of the optimal mini-batch losses, which are not often available for big batch sizes or regularized objectives (see discussion in §1.1) and (ii) it guarantees convergence only to a neighborhood of the solution. In this work, we study the dynamics and the convergence properties of SGD equipped with new variants of SPS for solving general convex optimization problems. Our new proposed variants provide solutions to both drawbacks of the original SPS.
Crucially the algorithm requires knowledge of for every realization of the mini-batch . In the non-regularized overparametrized setting (e.g. neural networks), is often zero for every subset . However, this is not the only setting where is computable: e.g., in the regularized logistic loss with batch size 1, it is possible to recover a cheap closed form expression for each . Unfortunately, if the batch-size is bigger than or the loss becomes more demanding (e.g. cross-entropy), then no such closed-form computation is possible.
Rates and comparison with AdaGrad.
2 Main Contributions
As we already mentioned, in the non-interpolated setting SPSmax has the following issues:
For (minibatch setting), SPSmax requires the exact knowledge of . This is not practical.
SPSmax guarantees convergence to a neighborhood of the solution. It is not clear how to modify it to yield convergence to the exact minimizer.
Having the above two issues in mind, the main contributions of our work (see also Table 1 for a summary of the main complexity results obtained in this paper) are summarized as follows:
In §3, we provide a direct solution for Issue (1). We explain how only a lower bound on (trivial if all s are non-negative) is required for convergence to a neighborhood of the solution. While this neighborhood is bigger that the one for SPSmax, our modified version provides a practical baseline for the solution to the second issue.
We explain why Issue (2) is highly non-trivial and requires an in-depth study of the bias induced by the interaction between gradients and Polyak stepsizes. Namely, we show that simply multiplying the stepsize of SPSmax by — which would work for vanilla SGD — yields a bias in the solution found by SPS (§4), regardless of the estimation of .
In §5, we provide a solution to the problem (Issue (2)) by introducing additional structure — as well as the fix to Issue (1) — into the stepsize. We call the new algorithm Decreasing SPS (DecSPS), and provide a convergence guarantee under the bounded domain assumption — matching the standard AdaGrad results.
In §5.2 we go one step further and show that, if strong convexity is assumed, iterates are bounded with probability 1 and hence we can remove the bounded iterates assumption. To the best of our knowledge, DecSPS, is the first stochastic adaptive optimization method that converges to the exact solution without assuming strong assumptions like bounded iterates/gradients.
In §5.3 we provide extensions of our approach to the non-smooth setting.
In §6, we corroborate our theoretical results with experimental testing.
Background on Stochastic Polyak Stepsize
In this section, we provide a concise overview of the results in , and highlight the main assumptions and open questions.
It is easy to realize that as soon as problem (1) is interpolated, then for each . In addition, note that is non-increasing as a function of .
In the overparametrized setting, the result guarantees convergence to the exact minimizer, without knowledge of the gradient Lipschitz constant (as vanilla SGD would instead require) and without assuming bounded iterates (in contrast to ).
As soon as (1) a regularizer is applied to the loss (e.g. penalty), or (2) the number of datapoints gets comparable to the dimension, then the problem is not interpolated and SPSmax only converges to a neighborhood and it gets impractical to compute — this is the setting we study in this paper.
In the rare case that , there is no need to evaluate the stepsize. In this scenario, the update direction and thus the iterate is not updated irrespective of the choice of step-size. If this happens, the user should simply sample a different minibatch. We note that in our experiments (see §6), such event never occurred.
The classical Polyak stepsize has been successfully used in the analysis of deterministic subgradient methods in different settings . First attempts on providing an efficient variant of the stepsize that works well in the stochastic setting were made in . However, as explained in , none of these approaches provide a natural stochastic extension with strong theoretical convergence guarantees, and thus Loizou et al. proposed the stochastic Polyak stepsize SPSmax as a better alternative.A variant of SGD with SPSmax was also proposed by Asi and Duchi as a special case of a model-based method called the lower-truncated model. Asi and Duchi also proposed a decreasing step-size variant of SPSmax which is closely related but different than the DecSPS that we propose in §5. Among some differences, they assume interpolation for their convergence results whereas we do not in §5. We describe the differences between our work and Asi and Duchi in more detail in Appendix A. Despite its recent appearance, SPSmax has already been used and analyzed as a stepsize for SGD for solving structured non-convex problems , in combination with other adaptive methods , with a moving target and in the update rule of stochastic mirror descent . These extensions are orthogonal to our approach, and we speculate that our proposed variants can also be used in the above settings. We leave such extensions for future work.
The following results can be seen as an easy extension of the main result of , under a newly defined suboptimality measure:
And we also have an easy practical corollary.
Bias in the SPS dynamics.
In this section, we study convergence of the standard SPSmax in the non-interpolated regime, under an additional (decreasing) multiplicative factor, in the most ideal setting: batch size 1, and we have knowledge of each . That is, we consider with , e.g. or . We note that, in the SGD case, simply picking e.g. would guarantee convergence of to , in expectation and with high probability . Therefore, it is natural to expect a similar behavior for SPS, if safisfies the usual Robbins-Monro conditions : .
We show that this is not the case: quite interestingly, converges to a biased solution due to the correlation between and . we show this formally, in the case of non-interpolation (otherwise both SGD and SPS do not require a decreasing learning rate).
Consider the following finite-sum setting: with . To make the problem interesting, we choose and : this introduces asymmetry in the average landscape with respect to the origin. During optimization, we sample and independently and seek convergence to the unique minimizer . The first thing we notice is that is not a stationary point for the dynamics under SPS. Indeed note that since for we have (assuming large enough): , if , and if .
In the same picture, we show how our modified variant of the vanilla stepsize — we call this new algorithm DecSPS, see §5 — instead converges to the correct solution.
In the appendix, we go one step further and provide an analysis of the bias of SPS in the one-dimensional quadratic case (Prop. 4). Yet, we expect the precise characterization of the bias phenomenon in the non-quadratic setting to be particularly challenging. We provide additional insights in §D.2. Instead, in the next section, we show how to effectively modify to yield convergence to without further assumptions.
DecSPS: Convergence to the exact solution
We propose the following modification of the vanilla SPS proposed in , designed to yield convergence to the exact minimizer while keeping the main adaptiveness propertiesSimilar choices are possible. We found that this leads to the biggest stepsize magnitude, allowing for faster convergence in practice.. We call it Decreasing SPS (DecSPS), since it combines a steady stepsize decrease with the adaptiveness of SPS.
Let each be smooth and let be any non-decreasing positive sequence of real numbers. Under DecSPS, we have , and
As stated in the last lemma, under the assumption of non-decreasing, is trivially non-increasing since .
The proof can be found in the appendix, and is based on a simple induction argument.
The following result provides a proof of convergence of SGD for the sequence defined above.
Under the setting of Thm. 3, for () we have
The result above crucially relies on the bounded iterates assumption: . To the best of our knowledge, if no further regularity is assumed, modern convergence results for adaptive methods (e.g. variants of AdaGrad) in convex stochastic programming requirePerhaps the only exception is the result of , where the authors work on a different setting: i.e. they introduce the RUIG inequality. this assumption, or else require gradients to be globally bounded. To mention a few: . A simple algorithmic fix to this problem is adding a cheap projection step onto a large bounded domain . We can of course include this projection step in DecSPS, and the theorem above will hold with no further modification. Yet we found this to be not necessary: the strong guarantees of SPS in the strongly convex setting let us go one step beyond: in §5.2 we show that, if each is strongly convex (e.g. regularizer is added), then one can bound the iterates globally with probability one, without knowledge of the gradient Lipschitz constant. To the best of our knowledge, no such result exist for AdaGrad — except , for the deterministic case.
In standard results for AdaGrad, a dependency on the problem dimension often appears (e.g. Thm. 1 in ). This dependency follows from a bound on the AdaGrad preconditioner that can be found e.g. in Thm. 4 in . In the SPS case no such dependency appears — specifically because the stepsize is lower bounded by .
2 Removing the bounded iterates assumption
We prove that under DecSPS the iterates live in a set of diameter almost surely. This can be done by assuming strong convexity of each .
Note that trivially under the assumption that all are lower bounded and .
The proof relies on the variations of constants formula and an induction argument — it is provided in the appendix. We are now ready to state the main theorem for the unconstrained setting, which follows from Prop. 1 and Thm. 3.
The careful reader might notice that, while we assumed strong convexity, our rate is slower than the optimal . This is due to the adaptive nature of DecSPS. It is indeed notoriously hard to achieve a convergence rate of for adaptive methods in the strongly convex regime. While further investigations will shed light on this interesting problem, we note that the result we provide is somewhat unique in the literature: we are not aware of any adaptive method that enjoys a similar convergence rate without either (a) assuming bounded iterates/gradients or (b) assuming knowledge of the gradient Lipschitz constant or the strong convexity constant.
On a convex problem, the non-asymptotic performance of SGD with a decreasing stepsize strongly depends on the choice of . The optimizer might diverge if is too big for the problem at hand. Indeed, most bounds for SGD, under no access to the gradient Lipschitz constant, display a dependency on the size of the domain and rely on projections after each step. If one applies the method in the unconstrained setting, such convergence rates technically do not hold, and tuning is sometimes necessary to retrieve stability and good performance. Instead, for DecSPS, simply by adding a small regularizer, the method is guaranteed to converge at the non-asymptotic rate we derived even in the unconstrained setting.
3 Extension to the non-smooth setting
For any , we denote in this section by the subgradient of evaluated at . We discuss the extension of DecSPS to the non-smooth setting.
A straightforward application of DecSPS leads to a stepsize which is no longer lower bounded (see Lemma 1) by the positive quantity . Indeed, the gradient Lipschitz constant in the non-smooth case is formally . Hence, prescribed by DecSPS can get arbitrarily smallTake for instance the deterministic setting one-dimensional setting . As , the stepsize prescribed by DecSPS converges to zero. This is not the case e.g. in the quadratic setting. for finite . One easy solution to the problem is to enforce a lower bound, and adopt a new proof technique. Specifically we propose the following:
For any non-decreasing positive sequence , consider SGD with DecSPS-NS. Assume that each is convex and lower bounded. We have
where and .
One can then easily derive an convergence rate. This is presented in §F (appendix).
Numerical Evaluation
Comparison with vanilla SGD with decreasing stepsize.
We compare the performance of DecSPS against the classical decreasing SGD stepsize , which guarantees convergence to the exact solution at the same asymptotic rate as DecSPS. We show that, while the asymptotics are the same, DecSPS with hyperparameters performs competitively to a fine-tuned — where crucially the optimal value of depends on the problem. This behavior is shown on all the considered datasets, and is reported in Figures 4 (Breast and Synthetic reported in the appendix for space constraints). If lower regularization () is considered, then DecSPS can still match the performance of tuned SGD — but further tuning is needed (see Figure 14. Specifically, since the non-regularized problems do not have strong curvature, we found that DecSPS works best with a much higher parameter and .
DecSPS yields a truly adaptive stepsize.
We inspect the value of returned by DecSPS, shown in Figures 4 & 8 (in the appendix). Compared to the vanilla SGD stepsize , a crucial difference appears: decreases faster than . This showcases that, while the factor can be found in the formula of DecSPSWe pick , as suggested by Cor. 2 & 3 , the algorithm structure provides additional adaptation to curvature. Indeed, in (regularized) logistic regression, the local gradient Lipschitz constant increases as we approach the solution. Since the optimal stepsize for steadily-decreasing SGD is , where is the global Lipschitz constant , it is pretty clear that should be decreased over training for optimal converge (as effectively increases). This is precisely what DecSPS is doing.
Comparison with AdaGrad stepsizes.
Last, we compare DecSPS with another adaptive coordinate-independent stepsize with strong theoretical guarantees: the norm version of AdaGrad (a.k.a. AdaGrad-Norm, AdaNorm), which guarantees the exact solution at the same asymptotic rate as DecSPS . AdaGrad-norm at each iteration updates the scalar and then selects the next step as . Hence, it has tuning parameters and . In Fig. 4 we show that, on the Breast Cancer dataset, after fixing as recommended in (see their Figure 3), tuning cannot quite match the performance of DecSPS. This behavior is also observed on the other two datasets we consider (see Fig. 9 in the Appendix). Last, in Fig. 10& 11 in the Appendix, we show that further tuning of likely does not yield a substantial improvement.
Comparison with Adam and AMSgrad without momentum.
In Figures 5&12&13 we compare DecSPS with Adam and AMSgrad on the A1A and Breast Cancer datasets. Results show that DecSPS with the usual hyperparameters is comparable to the fine-tuned version of both these algorithms — which however do not enjoy convergence guarantees in the unbounded domain setting.
Conclusions and Future Work
We provided a practical variant of SPS , which converges to the true problem solution without the interpolation assumption in convex stochastic problems — matching the rate of AdaGrad. If in addition, strong convexity is assumed, then we show how, in contrast to current results for AdaGrad, the bounded iterates assumption can be dropped. The main open direction is a proof of a faster rate under strong convexity. Other possible extensions of our work include using the proposed new variants of SPS with accelerated methods, studying further the effect of mini-batching and non-uniform sampling of DecSPS, and extensions to the distributed and decentralized settings.
Acknowledgements
This work was partially supported by the Canada CIFAR AI Chair Program. Simon Lacoste-Julien is a CIFAR Associate Fellow in the Learning in Machines & Brains program.
References
Appendix A Comparison with closely related work
In this section we present a more detailed comparison to closely related works on stochastic variants of the Polyak stepsize. We start with the work of Asi and Duchi , and then continue with a brief presentation of other papers (already presented in Loizou et al. ).
In Loizou et al. , the proposed SPSmax stepsize is
This stepsize is similar to the one in Asi and Duchi : in both, a Polyak-like stochastic stepsize is bounded from above in order to guarantee convergence. However there are crucial differences.
SPSmax can be applied to non-interpolated problems and leads to fast convergence to a ball around the solution in the non-interpolated setting (see Theorem 1). Instead, Asi and Duchi only formulated and studied Eq. (8) in the interpolated setting.
As we will see in the next paragraph, one can formulate few conditions under which it is possible to derive linear convergence rates for Eq. (8) in the interpolated setting. As can be easily seen from Theorem 1, SPSmax has similar convergence guarantees but works under a more standard/restrictive set of assumptions. In particular, in the interpolated setting, while Asi and Duchi require some specific assumptions on the noise statistics (see next paragraph), the rates in Loizou et al. can be applied without the need for, e.g., probabilistic bound on the gradient magnitude.
In this paper, starting from the SPSmax algorithm we propose the following stepsize for convergence to the exact solution in the non-interpolated setting:
We now compare DecSPS with Eq. (8) and our results with the rates in .
Convergence rates: The form of Eq. (8) and the convergence guarantees of are restricted to the interpolated setting. Instead, in this paper we focus on the non-interpolated setting: using DecSPS we provided the first stochastic adaptive optimization method that converges in the non-interpolated setting to the exact solution without restrictive assumptions like bounded iterates/gradients.
Inspection of the stepsize: DecSPS provides a version of SPS where is steadily decreasing and is upper bounded by the decreasing quantity , where yields the optimal asymptotic rate (Theorem 4) . Hence, DecSPS can be compared to Eq. (8) for . However, note that there are two fundamental differences: First, in DecSPS we have that (see Lemma 1), a feature which Eq. (8) does not have. Secondly, compared to our DecSPS, the stepsize in Eq. (8) with decreasing polynomially is asymptotically non-adaptive. Indeed, assuming that each has -Lipschitz gradients and that each is non-negative, we have (see ) that
therefore, after iterationsSimply plugging in and solving for . the algorithm coincides with SGD with stepsize .
For completeness, we provide in the next paragraph an overview of the results in Asi and Duchi .
Precise theoretical guarantees in Asi and Duchi [2].
The stepsize in Equation (8) yields linear convergence guarantees under a specific set of assumptions. We summarize the two main results of Asi and Duchi below in the case of differentiable lossesThe results of Asi and Duchi also work in the subdifferentiable setting.:
Then, for with the stepsize of Equation (8) yields a linear convergence rate dependent on and the choice of .
Then, for with the stepsize of Equation (8) yields a linear convergence rate dependent on and the choice of .
A.2 Comparisons with other versions of the Polyak stepsize for stochastic problems
To the best of our knowledge, no prior work has provided a computationally feasible modification of the Polyak stepsize for convergence to the exact solution in stochastic non-interpolated problems. In the next lines, we outline the details for a few related works on Polyak stepsize for stochastic problems.
SPSmax: As discussed in the main paper, our starting point is the SPSmax algorithm in , which provides linear (for strongly convex) or sublinear (for convex) convergence to a ball around the minimizer, with size dependent of the problems’ degree of interpolation. Instead, in this work, we provide convergence guarantees to the exact solution in the non-interpolated setting for a modified version of this algorithm. In addition, when compared to SPSmax, our method does not require knowledge of the single s, but just of lower bounds on these quantities (see §3).
L4: A stepsize very similar to SPSmax (the L4 algorithm) was proposed back in 2018 by . While this stepsize results in promising performance in deep learning, (1) it has no theoretical convergence guarantees, and (2) each update requires an online estimation of the , which in turn requires tuning up to three hyper-parameters.
ALI-G: Last, the ALI-G stepsize proposed by Berrada et al. is , where is a tuning parameter. Unlike the SPSmax setting, their theoretical analysis relies on an -interpolation condition. Moreover, the values of the parameter and that guarantee convergence heavily depend on the smoothness parameter of the objective , limiting the method’s practical applicability. In addition, in the interpolated setting, while ALI-G converges to a neighborhood of the solution, the SPSmax method is able to provide linear convergence to the solution.
Appendix B Technical Preliminaries
Let us present some basic definitions used throughout the paper.
If a function is -strongly convex and -smooth the following bounds holds:
The following lemma is the fundamental starting point in .
Let where the functions are -strongly convex and -smooth, then
where , and .
The proofs in this subsection is an easy adaptation of the proofs appeared in . To avoid redundancy in the literature, we provide skecth of the proofs showing the fundamental differences and invite the interested reader to read the details in .
We highlight in blue text the differences between this proof and the one in .
As in we use a standard expansion as well as the stepsize definition.
Next, adding and subtracting gives
Since it holds that . We obtain:
where in the last inequality we use that . Note that this factor pops up in the proof, not in the stepsize! By rearranging:
where , and is the maximum smoothness constant.
Strongly Convex setting.
From convexity of functions it holds that , . Thus,
where and is the maximum smoothness constant. ∎
Appendix D Lack of convergence of SGD with SPSmax in the non-interpolated setting
We recall the variation of constants formula
For we get . The induction step yields
This completes the proof of the variations of constants formula. ∎
If then and therefore
Finally, to get a rate on the distance-shrinking, we take the expectation w.r.t. conditioned on : the cross-term disappears and we get
Therefore, using the tower property and the variation of constants formula,
D.2 Asymptotic vanishing of the SPS bias in 1d quadratics
As , it is possible to see that, under some additional assumptions (e.g. Beta-distributed), the variance of collapses to zero, hence one has in probability, as , with rate .
where denotes the moment generating function of the distribution. Next, we solve the integral using the closed-form expression for (else does not exist). Note that we integrate only for so the MGF is always defined:
where in the third-last inequality we changed variables and in the second last we changed variables .
All in all, we have that . This implies that converges to in quadratic mean — hence also in probability.
Appendix E Convergence of SGD with DecSPS in the smooth setting
Here we study Decreasing SPS (DecSPS), which combines stepsize decrease with the adaptiveness of SPS.
for , where we set and (stepsize bound, similar to ), to get
First, note that is trivially non-increasing since . Next, we prove the bounds on . For , we can directly use Lemma 2:
Next, we proceed by induction: we assume the proposition holds true for :
Then, we have : , where
by the induction hypothesis. This bound directly implies that the proposition holds true for , since again by Lemma 2 we have . This concludes the induction step. ∎
E.2 Proof of Thm. 3
The fundamental problem towards a proof for DecSPS is that the error to control due to gradient stochasticity does not come from the term in the expansion of , as instead is usual for SGD with decreasing stepsizes. Instead, the error comes from the inner product term . Hence, the error is proportional to , and not . As a result, the usual Robbins-Monro conditions do not yield convergence. A similar problem is discussed for AdaGrad in .
In the first version of this paper, the proof contained a small errorThis was in Eq. (87), where we incorrectly bounded with the constant . This, of course, cannot be done since the term is not positive. However, it’s expectation is positive. Since is a constant, we avoid bounding it in the early stages and instead bound it after taking the expectation at the end of the proof. The result is unchanged.. This is now fixed, the result is unchanged.
Multiplying by and rearranging terms we get the fundamental inequality
Using the definition of DecSPS and convexity we get
Let us divide everything by .
In step (94), we are able to collect because . This is guaranteed by the new SPS definition (DecSPS), along with the fact that is increasing. Note that one could not perform this step under the original SPS update rule of .
We conclude by using Jensen’s inequality as follows:
where is as defined in (3). ∎
Note that, in the convergence rate, the second term does not depend on while the first does. This is different from the original SPS result , and due to the different proof technique: specifically, we divide by early in the proof — and not at the end. To point to the exact source of this difference, we invite the reader to inspect Equation 24 in the appendixhttp://proceedings.mlr.press/v130/loizou21a/loizou21a-supp.pdf of : the last term there is proportional to , where is a lower bound on the SPS and is an upper bound. In our proof approach, these terms — which bound the same quantity — effectively cancel out (because we divide by earlier in the proof), at the price of having in the first term.
E.3 Proof of Prop. 1
We need the following lemma. An illustration of the result can be found in Fig. 6.
Let with and . If , , , then for all .
Simple to prove by induction. The base case is trivial, since . Let us now assume the proposition holds true for (that is, ) , we want to show it holds true for . We have
If , then we get, by induction
Else, if , then by induction
where the last inequality holds because and is positive. This completes the proof. ∎
For and , this implies
Since , we can substitute this inequality in Equation (106) and get
where we used the inequality (Lemma 1).
Now we seek an upper bound for the contraction factor. Under , using again Lemma 1 we have, since ,
Now have all ingredients to bound the iterates: the result follows from Lemma 5 using and . So, we get
Appendix F Convergence of stochastic subgradient method with DecSPS-NS in the non-smooth setting
In this subsection we consider the DecSPS-NS stepsize in the non-smooth setting:
where is the stochastic subgradient using batch size at iteration , and we set and to get
First, note that is trivially non-increasing since . Next, we prove the bounds on .
Without loss of generality, we can work with the simplified stepsize
Similarly to the base case, we can write:
F.2 Proof of Thm. 5
Let us consider the DecSPS stepsize in the non-smooth setting. Using convexity and the gradient bound we get
where the last line follows from definition of subgradient and Lemma 6.
Using the same exact steps as Thm 3, and using the fact that is decreasing, we arrive at the equation
We conclude by taking the expectation and using Jensen’s inequality. ∎
In the setting of Thm. 5, if we have
The bound in Cor. 3 does not depend on , while the one in Cor. 2 does. This is because the proof is different, and does not rely on bounding squared gradients with function suboptimalities (one cannot, if smoothness does not hold). Similarly, usual bounds for non-smooth optimization do not depend on subgradient variance but instead on .
Appendix G Further experimental results
A1A dataset (standard normalization) from , consisting in datapoints in 123 dimensions. We consider again but a substantial regularization with .
Breast Cancer dataset (standard normalization) , consisting in datapoints in 39 dimensions. We consider a small batch size with strong regularization .
All experiments reported below are repeated 5 times. Shown is mean and 2 standard deviations.
Comparison with SGD.
In addition to Figure 4 (A1A dataset), in Figure 8 we provide comparison of DecSPS with SGD with stepsize for the Synthetic and Breast Cancer datasets. From the results, it is clear that DecSPS with standard parameters (see discussion in main paper and paragraph above) is comparable if not faster than vanilla SGD with decreasing stepsize.
Comparison with Adagrad-Norm.
In addition to Figure 4 (Breast Cancer dataset), in Figures 10&11&9 we provide comparison of DecSPS with AdaGrad-Norm for the Synthetic and A1A datasets. AdaGrad-norm at each iteration updates the scalar and then selects the next step as . Hence, it has tuning parameters and ; is recommended in (see their Figure 3). Using this value for we show in Figure 9 that the performance of DecSPS is competitive against a well-tuned value of the AdaGrad-norm stepsize . In Figure 10&11 we show the effect of tuning on the synthetic dataset: no major improvement is observed.
Comparison with Adam and AMSgrad.
We provide a comparison with Adam and AMSgrad . For both methods, we set the momentum parameter to zero (a.k.a RMSprop) for a fair comparison with DecSPS. For , the parameter that controls the moving average of the second moments, we select the value since we found that the standard leads to problematic (exploding) stepsizes. Findings are pretty similar for both the A1A (Figure 12) and Breast Cancer (Figure 13) datasets: when compared to DecSPS with the usual parameters, fine-tuned Adam with fixed stepsize can reach the same performance after a few tens of thousand iterations — however, it is much slower at the beginning of training. While deriving convergence guarantees for Adam is problematic , AMSgrad with stepsize enjoys a convergence guarantee similar to Adagrad and Adagrad-Norm. This is reflected in the empirical convergence: fine-tuned AMSgrad is able to match the convergence of DecSPS with the usual parameters motivated at the beginning of this section. Yet, we recall that the convergence guarantees of AMSgrad require the iterates to live in a bounded domain, an assumption which is not needed in our DecSPS (see § 5.2).
Performance under light regularization.
If the problem at hand does not have strong curvature information, e.g. there is very light regularization, then additional tuning of the DecSPS parameters is required. Figure 14 shows that it is possible to retrieve the performance of SGD also with light regularization parameters () under additional tuning of and .