On Biased Compression for Distributed Learning
Aleksandr Beznosikov, Samuel Horváth, Peter Richtárik, Mher Safaryan
Introduction
In order to achieve state-of-the-art performance, modern machine learning models need to be trained using large corpora of training data, and often feature an even larger number of trainable parameters (Vaswani et al. 2019; Brown et al. 2020). The data is typically collected in a distributed manner and stored across a network of edge devices, as is the case in federated learning (Konečný et al. 2016; McMahan et al. 2017; Li et al. 2019; Kairouz and et al 2019), or collected centrally in a data warehouse composed of a large collection of commodity clusters. In either scenario, communication among the workers is typically the bottleneck.
Motivated by the need for more efficient training methods in traditional distributed and emerging federated environments, we consider optimization problems of the form
with being the distribution of training data owned by worker . In federated learning applications, these local distributions can be very different and we do not impose any similarity assumption for them.
A fundamental baseline for solving problem (1) is (distributed) gradient descent (GD), performing updates of the form
where is a stepsize. Due to the communication issues inherent to distributed systems, several enhancements to this baseline have been proposed that can better deal with the communication cost challenges of distributed environments, including acceleration (Nesterov 2013; Beck and Teboulle 2009; Allen-Zhu 2017), reducing the number of iterations via momentum, local methods (McMahan et al. 2017; Khaled et al. 2020a; Karimireddy et al. 2019a), reducing the number of communication rounds via performing multiple local updates before each communication round, and communication compression (Seide et al. 2014; Alistarh et al. 2017; Zhang et al. 2017; Lim et al. 2018; Alistarh et al. 2018; Lin et al. 2018; Safaryan and Richtárik 2021), reducing the size of communicated messages via compression operators.
2 Contributions
In this paper we contribute to a better understanding of the latter approach to alleviating the communication bottleneck: communication compression. In particular, we study the theoretical properties of gradient-type methods which employ biased gradient compression operators, such as Top- sparsification (Alistarh et al. 2018), or deterministic rounding (Sapio et al. 2019). Surprisingly, current Here we refer to the initial online appearance of our work on February of 2020, after which several enhancements were developed. See Section 1.3 for more details. theoretical understanding of such methods is very limited. For instance, there is no general theory of such methods even in the case, only a handful of biased compression techniques have been proposed in the literature, we do not have any theoretical understanding of why biased compression operators could outperform their unbiased counterparts and when. More importantly, there is no good convergence theory for any gradient-type method with a biased compression in the crucial setting.
In this work we address all of the above problems. In particular, our main contributions are:
We then proceed to give a long list of new and known biased (and some unbiased) compression operators which belong to the above classes in Section 2.2. A summary of all compressors considered can be found in Table 3.
In Section 3 we analyze compressed GD in the case for compressors belonging to all three classes under smoothness and strong convexity assumption. Our theorems generalize existing results which hold for unbiased operators in a tight manner, and also recover the rate of GD in this regime. Our linear convergence results are summarized in Table 1.
We ask the question: do biased compressors outperform their unbiased counterparts in theory, and by how much? We answer this question by studying the performance of compressors under various synthetic and empirical statistical assumptions on the distribution of the entries of gradient vectors which need to be compressed. Particularly, we quantify the gains of the Top- sparsifier when compared against the unbiased Rand- sparsifier in Section 4.
Finally, we study the important setting in Section 5 and argue by giving a counterexample that a naive application of biased compression to distributed GD might diverge. We then show that distributed SGD method equipped with an error-feedback mechanism (Stich and Karimireddy 2019) provably handles biased compressors. In our main result (Theorem 24; also see Table 2) we consider three learning schedules and iterate averaging schemes to provide three distinct convergence rates. Our analysis provides the first convergence guarantee for distributed gradient-type method which provably converges for biased compressors, and we thus solve a major open problem in the literature.
3 Related work
There has been extensive work related to communication compression, mostly focusing on unbiased compressions (Alistarh et al. 2017) as these are much easier to analyze. In particular, it was shown (Gorbunov et al. 2020a) that both the classical method with unbiased compression (Alistarh et al. 2017) and more advanced modifications (Mishchenko et al. 2019; Horváth et al. 2019b) can be considered as special versions of SGD. Subsequently, the results of (Gorbunov et al. 2020a) for strongly convex problems were transferred to general convex (Khaled et al. 2020b) and non-convex (Li and Richtárik 2020) target functions. In the meantime, works concerning biased compressions show stronger empirical results but with limited or no analysis (Vogels et al. 2019; Lin et al. 2017a; Sun et al. 2019). There have been several attempts trying to address this issue, e.g., Wu et al. 2018 provided analysis for quadratics in distributed setting, Zhao et al. 2019 gave analysis for momentum SGD with a specific biased compression, but under unreasonable assumptions, i.e., bounded gradient norm and memory. The first result that obtained linear rate of convergence for biased compression was done by Karimireddy et al. 2019b, but only for one node and under bounded gradient norm assumption, which was later overcome by Stich and Karimireddy 2019.
After the initial online appearance of our work, there has been several enhancements in the literature. In particular, Ajalloeian and Stich 2021 developed theory for non-convex objectives in the single node setup, Gorbunov et al. 2020b designed a novel error compansated SGD algorithm converging linearly in a more relaxed setting with the help of additional unbiased compressor, Horváth and Richtárik 2021 proposed a simple trick to convert any biased compressor to corresponding induced (unbiased) compressor leading to improved theoretical guarantees. Recently, a new variant of error feedback mechanism was introduced in (Richtárik et al. 2021; Fatkhullin et al. 2021) showing an improved rates for distributed non-convex problems.
4 Basic notation and definitions
We say that it is -strongly convex if
Biased Compressors
We instead focus on understanding biased compression operators, or “compressors” in short. We now introduce three classes of biased compressors, the first two are new, which can be seen as natural extensions of unbiased compressors.
As we shall show next, the second inequality in (3) implies .
If , this implies . Plugging this back into (5), we get (4). If , then from (3) we see that , and (4) holds trivially. ∎
In the second class, we require the inner product between uncompressed and compressed vectors to dominate the squared norms of both vectors in expectation.
Finally, in the third class, we require the compression error to be strictly smaller than the squared norm of the input vector in expectation.
This last definition was also considered by Stich et al. 2018; Cordonnier 2018. All three definitions require the compressed vector to be in the neighborhood of the uncompressed vector so that initial information is preserved with some accuracy. We now establish several basic properties and connections between the classes. We first show that the three classes of biased compressors defined above are equivalent in the following sense: a compressor from any of those three classes can be shown to belong to all three classes with different parameters and after possible scaling.
Let be a free scaling parameter.
Let us prove this implications for each class separately.
Let us choose any and observe that (3) implies that . Further, from (3) we get the bounds
where the second inequality is due to Cauchy-Schwarz, and the last inequality follows by applying Jensen inequality.
Minimizing the above expression in , we get , and the result follows.
where the first and third inequalities follow from (6) and the third and the last from Cauchy-Schwarz inequality with Jensen inequality.
If we choose , then we can continue as follows:
Pick . Since and we assume , we must necessarily have .
Next, we show that, with a proper scaling, any unbiased compressor also belongs to all the three classes of biased compressors.
Given any , consider the scaled operator . We have
Given any , consider the scaled operator . We have
Given such that , consider the scaled operator . We have
2 Examples of biased compressors: old and new
For , the unbiased random (aka Rand-) sparsification operator is defined via
Let be a random set, with probability vector , where for all (such a set is called a proper sampling (Richtárik and Takáč 2016)). Define biased random sparsification operator via
Adaptive random sparsification is defined via
Greedy (aka Top-) sparsification operator is defined via
where coordinates are ordered by their magnitudes so that .
Notice that is minimizing for exponential roundings with some basis , in which case .
In the special case of exponential rounding with some base , we get
Natural compression operator of Horváth et al. 2019a is the special case of general unbiased rounding operator (12) when . So,
For , define general exponential dithering operator with respect to -norm and with exponential levels via
where the random variable for is set to either or with probabilities proportional to and , respectively.
Natural dithering introduced by Horváth et al. 2019a without norm compression is the spacial case of general exponential dithering (14) when .
Ternary quantization of Wen et al. 2017 is the extreme case of general exponential dithering (14) with levels and .
Top- combined with exponential dithering. Let be the Top- sparsification operator (11) and be general exponential dithering operator (14) with some base and parameter from (15). Define a new compression operator as the composition of these two:
Gradient Descent with Biased Compression
As we discussed in previous section, compression operators can have different equivalent parametrizations. Next, we aim to investigate the influence of those parametrizations on the theoretical convergence rate of an algorithm employing compression operators. To achieve clearer understanding of the interaction of compressor parametrization and convergence rate, we first consider the single node, unconstrained optimization problem
Superiority of Biased Compressors Under Statistical Assumptions
Here we highlight some advantages of biased compressors by comparing them with their unbiased cousins. We evaluate compressors by their average capacity of preserving the gradient information or, in other words, by expected approximation error they produce. In the sequel, we assume that gradients have i.i.d. coordinates drawn from some distribution.
We now compare two sparsification operators: Rand- (8) which is unbiased and which we denote as , and Top- (11) which is biased and which we denote as . We define variance of the approximation error of via
Expectations in these expressions are taken with respect to the randomization of the compression operator rather than input vector . Clearly, there exists for which these two operators incur identical variance, e.g. . However, in practice we apply compression to gradients which evolve in time, and which may have heterogeneous components. In such situations, could be much smaller than . This motivates a quantitative study of the average case behavior in which we make an assumption on the distribution of the coordinates of the compressed vector.
We first consider the case of uniform and exponentially distributed entries, and quantify the difference.
(b) If they follow standard exponential distribution, then
Now we compare these two sparsification methods on an empirical bases and show the significant advantage of greedy sparsifier against random sparsifier. We assume that coordinates of to-be-compressed vector are i.i.d. Gaussian random variables.
First, we compare the savings and of these compressions. For random sparsification, we have
where and are the mean and variance of the Gaussian distribution. For computing , we use the probability density function of -th order statistics (see (31) or (2.2.2) of (Arnold et al. 1992)). Table 4 shows that Top- and Top- sparsifiers “save” – more information in expectation and the factor grows with the dimension.
Next we compare normalized variances and for randomly generated Gaussian vectors. In an attempt to give a dimension independent comparison, we compare them against the average number of encoding bits per coordinate, which is quite stable with respect to the dimension. Figure 1 reveals the superiority of greedy sparsifier against the random one.
We obtained various gradient distributions via logistic regression (mushrooms LIBSVM dataset) and least squares. We used the sklearn package and built Gaussian smoothing of the practical gradient density. The second moments, i.e. energy “saving”, were already calculated from it by formula for density function of -order statistics, see Appendix A.4 or (Arnold et al. 1992). We conclude experiments for Top-5 and Rand-5, see Figure 2 for details.
2 New compressor: Top-kk combined with dithering
Distributed Setting
We now focus attention on a distributed setup with machines, each of which owns non-iid data defining one loss function . Our goal is to minimize the average loss:
Perhaps the most straightforward extension of CGD to the distributed setting is to consider the method
where (Gorbunov et al. 2020a). In particular, in the overparameterized setting when , the method converges to the exact solution, and does so at the same rate as GD as long as . These results hold even if a regularizer is considered, and a proximal step is added to DCGD. Moreover, as shown by Mishchenko et al. 2019 and Horváth et al. 2019b, a variance reduction technique can be devised to remove the neighborhood convergence and replace it by convergence to , at the negligible additional cost of .
2 Failure of DCGD with biased compressors
However, as we now demonstrate by giving some counter-examples, DCGD may fail if the compression operators are allowed to be biased. In the first example below, DCGD used with the Top-1 compressor diverges at an exponential rate.
where , and . Let the starting iterate be , where . Then
Using the Top-1 compressor, we get , and . The next iterate of DCGD is
Since , the entries of diverge exponentially fast to .
The above counter-example can be extended to the case of Top- when .
Fix the dimension and let be the number of nodes, where and . Choose positive numbers such that
where sets are all possible -subsets of enumerated in some way. Define
and let the initial point be , where is the vector of all s. Then
Since , then using the Top- compressor, we get
Since and , the entries of diverge exponentially fast to .
Finally, we present more general counter-example with different type of failure for DCGD when non-randomized compressors are used.
Consider the distributed optimization problem (17) with devices and with the following strongly convex loss functions
Then and . Hence, the optimal point . However, it can be easily checked that, with initialization , we have
Thus, when initialized at , not only DCGD does not converge to the solution , it remains stuck at the same initial point for all iterates, namely for all .
Condition (18) can be easily satisfied for specific biased compressors. For instance, Top- satisfies (18) with , , .
The above examples suggests that one needs to devise a different approach to solving the distributed problem (17) with biased compressors. We resolve this problem by employing a memory feedback mechanism.
3 Error Feedback
We show that distributed version of Distributed SGD wtih Error-Feedback (Karimireddy et al. 2019b), displayed in Algorithm 1, is able to resolve the issue. Moreover, this algorithm allows for the computation of stochastic gradients. Each step starts with all machines in parallel computing a stochastic gradient of the form
where is the true gradient, and is a stochastic error. Then, this is multiplied by a stepsize and added to the memory/error-feedback term , and subsequently compressed. The compressed messages are communicated and aggregated. The difference of message we wanted to send and its compressed version becomes stored as for further correction in the next communication round. The output is an ergodic average of the form
4 Complexity theory
We assume the stochastic error in (19) satisfies the following condition.
Stochastic error is unbiased, i.e. , and for some constants
Note that this assumption is much weaker than the bounded variance assumption (i.e., ) and bounded gradient assumption (i.e., ). We can now state the main result of this section. To the best of our knowledge, this was an open problem: we are not aware of any convergence results for distributed optimization that tolerate general classes of biased compression operators and have reasonable assumptions on the stochastic gradient.
Let denote the iterates of Algorithm 1 for solving problem (1), where each is -smooth and -strongly convex. Let be the minimizer of and let and
stepsizes & weights. Let, for all , the stepsizes and weights be set as and , respectively, where . Then
where and .
stepsizes & weights. Let, for all , the stepsizes and weights be set as and , respectively, where . Then
where and .
stepsizes & equal weights. Let, for all , the stepsizes and weights be set as and , respectively, where . Then
where .
Let us make a few observations on these results. First, Algorithm 1 employing general biased compressors and error feedback mechanism indeed resolves convergence issues of DCGD method by converging the optimal solution . Second, note that the choice of stepsizes and weights leading to convergence is not unique and several schedules are feasible. Third, all the rates are sublinear and based on the second rate (ii) above, linear convergence is guaranteed if . Based on (24), one setup when the condition holds is when all devices compute full local gradients (i.e., ). Furthermore, the condition is equivalent to for all , which is typically satisfied for over-parameterized models. Lastly, under these two assumptions (i.e., devices can compute full local gradients and the model is over-parameterized), we show that distributed SGD method with error feedback converges with the same linear rate as single node CGD algorithm. To the best of our knowledge, this was the first regime where distributed first order method with biased compression is guaranteed to converge linearly.
Experiments
In Sections 6.1–6.4, we present our experiments, which are primarily focused on supporting our theoretical findings. Therefore, we simulate these experiments on one machine which enable us to do rapid direct comparisons against the prior methods. In more details, we use the machine with 24 Intel(R) Xeon(R) Gold 6146 CPU @ 3.20GHz cores and GPU GeForce GTX 1080 Ti. Section 6.5 is devoted to real experiments with a large model and big data. For these experiments, we use a computational cluster with 10 GPUs Tesla T4. We implement all methods in Python 3.7 using Pytorch Paszke et al. 2019.
Motivated by our theoretical results in Section 4, we show that similar behaviour can be seen in the empirical variance of gradients. We run 2 sets of experiments with Resnet18 on CIFAR10 dataset. In Figure 6, we display empirical variance, which is obtained by running a training procedure with specific compression. We compare unbiased and biased compressions with the same communication complexities–deterministic with classic/unbiased and Top- with Rand- with to be of coordinates. One can clearly see, that there is a gap in empirical variance between biased and unbiased methods, similar to what we have shown in theory, see Section 4.
2 Error-feedback is needed in distributed training with biased compression
The next experiment shows the need of error-feedback for methods with biased compression operators. Based on Example 1, error feedback is necessary to prevent divergence from the optimal solution. Figure 4 displays training/test loss and accuracy for VGG19 on CIFAR10 with data equally distributed among nodes. We use plain SGD with a default step size equal to for all methods, i.e. Top- with and without error feedback, Rand- and no compression. As suggested by the counterexample, not using error feedback can really hurt the performance when biased compressions are used. Also note, that performance of Rand- is significantly worse than Top-.
3 Top-kk mixed with natural dithering saves in communication significantly
Next, we experimentally show the superiority of our newly proposed compressor–Top- combined with natural dithering. We compare this against current state-of-the-art for low bandwidth approach Top- for some small . In Figure 5, we plot comparison of methods–Top-, Rand-, natural dithering, Top- combined with natural dithering and plain SGD. We use levels with infinity norm for natural dithering and for sparsification methods. For all the compression operators, we train VGG11 on CIFAR10 with plain SGD as an optimizer and default step size equal to . We can see that adding natural dithering after Top- has the same effect as the natural dithering comparing to no compression, which is a significant reduction in communications without almost no effect on convergence or generalization. Using this intuition, one can come to the conclusion that Top- with natural dithering is the best compression operator for any bandwidth, where we adjust to given bandwidth by adjusting . This exactly matches with our previous theoretical variance estimates displayed in Figure 3.
4 Theoretical behavior predicts the actual performance in practice
In the next experiment, we provide numerical results to further show that our predicted theoretical behavior matches the actual performance observed in practice. We run two regression experiments optimized by gradient descent with step-size . We use a slightly adjusted version of Theorem 19 with adaptive step-sizes, namely
Note that this is the direct consequence of our analysis. We apply this property to display the theoretical convergence. In the first experiment depicted in Figure 7, we randomly generate random square matrix of dimension where it is constructed in the following way: we sample random diagonal matrix , which elements are independently sampled from the uniform distribution , , and , respectively. is then constructed using , where is a random matrix and is obtained using QR-decomposition. The label is generated the same way from the uniform distribution . The optimization objective is then
For the second experiment shown in Figure 8, we run standard linear regression on two scikit-learn datasets–Boston and Diabetes–and applied data normalization as the preprocessing step.
Looking into Figures 7 and 8, one can clearly see that as predicted by our theory, biased compression with less empirical variance leads to better convergence in practice and the gap almost matches the improvement.
5 Transformer training
In the last experiment, we work with a real big model. In particular, we train ALBERT-large (Lan et al. 2020) (18M parameters) with layer sharing on a combination of Bookcorpus (Zhu et al. 2015) and Wikipedia (Devlin et al. 2018) datasets. We use the same optimizer (LAMB) and the same tuning for it as in the original paper (Lan et al. 2020). Our goal is to find an unbiased and biased operators such that we maximize the improvement in terms of communication cost without losing much in terms of training quality. In this case, we include in the communication cost both the time to perform the communication round and the time to perform the compression and decompression operations. It is important to note that we do not compress packages with gradients corresponding to LayerNorm scales, but this is less than percent of the whole package. Among unbiased compressors, we try natural compression (Section 2.2 (g)) and random sparsification (Section 2.2 (a)). The best result is shown by natural compression, which compresses the packages by a factor of . The Rand- operator (which also compresses the information by a factor of ) performs much worse even with the use of the error feedback technique. For communications with natural compression, we use the classical allreduce procedure. Among unbiased compressors, we try Top- sparsification (Section 2.2 (d)) and Power compression (Vogels et al. 2019). The best result is shown by Power compression with the rank parameter and the error feedback. The organization of communications (allreduce procedures) occurs as in the original paper (Vogels et al. 2019). We measure how the training loss changes (Figure 9) as well as at the end of training we evaluate the final performance for each model on several popular tasks from (Wang et al. 2018) (Table 5). The results show that the use of biased compression can significantly reduce the communication time cost compared to uncompressed and even unbiased compression setups. At the same time, the quality of the training does not drop much.
Appendix
A.2 Smoothness
If convexity is assumed as well, then the following inequalities hold:
A.3 Useful inequalities
A.4 Facts from order statistics
For i.i.d. samples from an absolutely continuous distribution with probability density function and cumulative distribution function let be the order statistics obtained by arranging samples in increasing order of magnitude. Then the following expressions give the density function of ()
and the joint density function of all order statistics
Appendix B Proofs for Section 2.2
From the definition of -nice sampling we have . Hence
B.2 Proof of Lemma 9: Biased Random Sparsification
Let be a proper sampling with probability vector , where for all . Then
Letting , we get
B.3 Proof of Lemma 10: Adaptive Random Sparsification
From the definition of the compression operator, we have
whence . Furthermore, by Chebychev’s sum inequality, we have
B.4 Proof of Lemma 11: Top-kk sparsification
Clearly, and . Hence
B.5 Proof of Lemma 12: General Unbiased Rounding
The unbiasedness follows immediately from the definition (12)
Since the rounding compression operator applies to each coordinate independently, without loss of generality we can consider the compression of scalar values and show that . From the definition we compute the second moment as follows
Checking the optimality condition, one can show that the maximum is achieved at
which being the harmonic mean of and , is in the range . Plugging it to the expression for variance we get
Thus, the parameter for general unbiased rounding would be
B.6 Proof of Lemma 13: General Biased Rounding
From the definition (13) of compression operator we derive the following inequalities
It can be easily checked that is an increasing function and is a decreasing function of . Thus, the maximum is achieved when they are equal. In contrast to unbiased general rounding, it happens at the middle of the interval,
Given this, the parameter can be computed from
B.7 Proof of Lemma 15: General Exponential Dithering
The proof goes with the same steps as in Theorem 4 of Horváth et al. 2019a. To show the unbiasedness of , first we show the unbiasedness of for in the same way as (33) was done. Then we note that
To compute the parameter , we first estimate the second moment of as follows:
Then we use this bound to estimate the second moment of compressor :
where and Hölder’s inequality is used to bound in case of and in the case .
B.8 Proof of Lemma 16: Top-kk Combined with Exponential Dithering
From the unbiasedness of general dithering operator we have
from which we conclude . Next, using Lemma 15 on exponential dithering we get
which implies . Using Lemma 11 we show as . Utilizing the derivations (34) and (35) it can be shown that and therefore
Hence, . To compute the parameter we use Theorem 6, which yields .
Appendix C Proofs for Section 3
Letting , we have Alternatively, we can write Both approaches lead to the same bound.
Since is -strongly convex, . Combining this with Lemma 25 applied to and , we get
Since is -strongly convex, . Combining this with Lemma 26 applied to and , we get
Subtracting from both sides, and multiplying both sides by (now we assume that ), we get
Assuming that , we can combine this with (37) and the lemma is proved.
Since is -strongly convex, . Combining this with Lemma 27 applied to and , we get
Appendix D Proofs for Section 4
(a) As it was already mentioned, we have the following expressions for and :
The expected variance for Rand- is easy to compute as all coordinates are independent and uniformly distributed on $$:
In order to compute the expected variance for Top-, we use the following formula from order statistics (see (31), (32) or (2.2.2), (2.2.3) of Arnold et al. 1992) see also https://en.wikipedia.org/wiki/Order_statistic, https://www.sciencedirect.com/science/article/pii/S0167715212001940
Combining (39) and (41) completes the first relation. Thus, on average (w.r.t. uniform distribution) Top- has roughly times less variance than Rand-.
For the second relation, we use (38) and (40) for and get
Clearly, one can extend this for any .
(b) Recall that for the standard exponential distribution (with ) probability density function (PDF) is given as follows:
Both mean and variance can be shown to be equal to . The expected saving can be computed directly:
To compute the expected saving we prove the following lemma:
Let be an i.i.d. sample from the standard exponential distribution and
where . Then is an i.i.d. sample from the standard exponential distribution.
The joint density function of is given by (see (32))
Next we express variables using new variables
Then the joint density of new variables is given as follows
Notice that and . Hence
which means that variables are independent and have standard exponential distribution. ∎
Using this lemma we can compute the mean and the second moment of as follows
In this section, we include our analysis for the Distributed SGD with biased compression. Our analysis is closely related to the analysis of Stich and Karimireddy 2019.
We start with the definition of some auxiliary objects:
The sequence of positive values is -slow decreasing for parameter :
The sequence of positive values is -slow increasing for parameter :
Taking the conditional expectation conditioned on previous iterates, we get
Given the unbiased stochastic gradient ():
Using that mutually independent and we have:
All are -smooth and -strongly convex, thus is -smooth and -strongly convex. We can rewrite :
Using definition of :
Using (28) with and -smothness of (27):
The lemma follows by the choice and . ∎
, and – -slow decreasing. Then
Furthermore, for any -slow increasing non-negative sequence it holds:
We prove the first part of the statement:
Here we have taken into account that the operator of full expectation is a combination of operators of expectation by the randomness of the operator and the randomness of the stochastic gradient, i.e. . Given the unbiased stochastic gradient ():
Using the recurrence for , and let , then , and we have
For -slow decreasing by definition (42) we get that . Due to the fact that , we have:
As the last step, we use formula for geometric progression in the following way:
By observing that the choice of the stepsize :
which concludes the proof of (54). For the second part, we use the previous results. Summing over all :
For -slow decreasing , it holds which follows from (42) and and for -slow increasing by (43) we have . Then
Observing and using concludes the proof. ∎
For decreasing stepsizes , and weights for parameters , it holds for every non-negative sequence and any , that
where .
By plugging in the definitions of and in , we end up with the following telescoping sum:
The lemma now follows from and . ∎
For every non-negative sequence and any parameters , , , there exists a constant , such that for constant stepsizes and weights it holds
By plugging in the values for and , we observe that we again end up with a telescoping sum and estimate
where we used the estimate for the last inequality. The lemma now follows by carefully tuning . ∎
For every non-negative sequence and any parameters , , , there exists a constant , such that for constant stepsizes it holds:
For constant stepsizes we can derive the estimate
We distinguish two cases: if , then we chose the stepsize and get
on the other hand, if , then we choose and get
Substituting (55) and summing over we have:
First, when the stepsizes , it is easy to see that :
Not difficult to check that is slow decreasing:
Furthermore, the weights are -slow increasing:
The conditions for Lemma 32 are satisfied, and we obtain the desired statement. For the second case, the conditions of Lemma 33 are easy to check (see the previous paragraph). The claim follows by this lemma. Finally, for the third claim, we invoke Lemma 34. ∎