SARAH: A Novel Method for Machine Learning Problems Using Stochastic Recursive Gradient

Lam M. Nguyen, Jie Liu, Katya Scheinberg, Martin Takáč

Introduction

We are interested in solving a problem of the form

where each fif_{i}, i∈[n]=def{1,…,n}i\in[n]\stackrel{{\scriptstyle\text{def}}}{{=}}\{1,\dots,n\}, is convex with a Lipschitz continuous gradient. Throughout the paper, we assume that there exists an optimal solution w∗w^{*} of (1).

In recent years, many advanced optimization methods have been developed for problem (1). While the objective function is smooth and convex, the traditional optimization methods, such as gradient descent (GD) or Newton method are often impractical for this problem, when nn – the number of training samples and hence the number of fif_{i}’s – is very large. In particular, GD updates iterates as follows

Under strong convexity assumption on PP and with appropriate choice of ηt\eta_{t}, GD converges at a linear rate in terms of objective function values P(wt)P(w_{t}). However, when nn is large, computing ∇P(wt)\nabla P(w_{t}) at each iteration can be prohibitive.

As an alternative, stochastic gradient descent (SGD)We mark here that even though stochastic gradient is referred to as SG in literature, the term stochastic gradient descent (SGD) has been widely used in many important works of large-scale learning, including SAG/SAGA, SDCA, SVRG and MISO., originating from the seminal work of Robbins and Monro in 1951 (Robbins & Monro, 1951), has become the method of choice for solving (1). At each step, SGD picks an index i∈[n]i\in[n] uniformly at random, and updates the iterate as wt+1=wt−ηt∇fi(wt)w_{t+1}=w_{t}-\eta_{t}\nabla f_{i}(w_{t}), which is up-to nn times cheaper than an iteration of a full gradient method. The convergence rate of SGD is slower than that of GD, in particular, it is sublinear in the strongly convex case. The tradeoff, however, is advantageous due to the tremendous per-iteration savings and the fact that low accuracy solutions are sufficient. This trade-off has been thoroughly analyzed in (Bottou, 1998). Unfortunately, in practice SGD method is often too slow and its performance is too sensitive to the variance in the sample gradients ∇fi(wt)\nabla f_{i}(w_{t}). Use of mini-batches (averaging multiple sample gradients ∇fi(wt)\nabla f_{i}(w_{t})) was used in (Shalev-Shwartz et al., 2007; Cotter et al., 2011; Takáč et al., 2013) to reduce the variance and improve convergence rate by constant factors. Using diminishing sequence {ηt}\{\eta_{t}\} is used to control the variance (Shalev-Shwartz et al., 2011; Bottou et al., 2016), but the practical convergence of SGD is known to be very sensitive to the choice of this sequence, which needs to be hand-picked.

Recently, a class of more sophisticated algorithms have emerged, which use the specific finite-sum form of (1) and combine some deterministic and stochastic aspects to reduce variance of the steps. The examples of these methods are SAG/SAGA (Le Roux et al., 2012; Defazio et al., 2014), SDCA (Shalev-Shwartz & Zhang, 2013), SVRG (Johnson & Zhang, 2013; Xiao & Zhang, 2014), DIAG (Mokhtari et al., 2017), MISO (Mairal, 2013) and S2GD (Konečný & Richtárik, 2013), all of which enjoy faster convergence rate than that of SGD and use a fixed learning rate parameter η\eta. In this paper we introduce a new method in this category, SARAH, which further improves several aspects of the existing methods. In Table 2 we summarize complexity and some other properties of the existing methods and SARAH when applied to strongly convex problems. Although SVRG and SARAH have the same convergence rate, we introduce a practical variant of SARAH that outperforms SVRG in our experiments.

In addition, theoretical results for complexity of the methods or their variants when applied to general convex functions have been derived (Schmidt et al., 2016; Defazio et al., 2014; Reddi et al., 2016; Allen-Zhu & Yuan, 2016; Allen-Zhu, 2017). In Table 2 we summarize the key complexity results, noting that convergence rate is now sublinear.

In this paper, we propose a novel algorithm which combines some of the good properties of existing algorithms, such as SAGA and SVRG, while aiming to improve on both of these methods. In particular, our algorithm does not take steps along a stochastic gradient direction, but rather along an accumulated direction using past stochastic gradient information (as in SAGA) and occasional exact gradient information (as in SVRG). We summarize the key properties of the proposed algorithm below.

Similarly to SVRG, SARAH’s iterations are divided into the outer loop where a full gradient is computed and the inner loop where only stochastic gradient is computed. Unlike the case of SVRG, the steps of the inner loop of SARAH are based on accumulated stochastic information.

Like SAG/SAGA and SVRG, SARAH has a sublinear rate of convergence for general convex functions, and a linear rate of convergence for strongly convex functions.

SARAH uses a constant learning rate, whose size is larger than that of SVRG. We analyze and discuss the optimal choice of the learning rate and the number of inner loop steps. However, unlike SAG/SAGA but similar to SVRG, SARAH does not require a storage of nn past stochastic gradients.

We also prove a linear convergence rate (in the strongly convex case) for the inner loop of SARAH, the property that SVRG does not possess. We show that the variance of the steps inside the inner loop goes to zero, thus SARAH is theoretically more stable and reliable than SVRG.

We provide a practical variant of SARAH based on the convergence properties of the inner loop, where the simple stable stopping criterion for the inner loop is used (see Section 4 for more details). This variant shows how SARAH can be made more stable than SVRG in practice.

Stochastic Recursive Gradient Algorithm

Now we are ready to present our SARAH (Algorithm 1).

The key step of the algorithm is a recursive update of the stochastic gradient estimate (SARAH update)

For comparison, SVRG update can be written in a similar way as

SARAH is similar to SVRG since they both contain outer loops which require one full gradient evaluation per outer iteration followed by one full gradient descent step with a given learning rate. The difference lies in the inner loop, where SARAH updates the stochastic step direction vtv_{t} recursively by adding and subtracting component gradients to and from the previous vt−1 (t≥1)v_{t-1}\ (t\geq 1) in (2). Each inner iteration evaluates 22 stochastic gradients and hence the total work per outer iteration is O⁡(n+m)\operatorname{\mathcal{O}}(n+m) in terms of the number of gradient evaluations. Note that due to its nature, without running the inner loop, i.e., m=1m=1, SARAH reduces to the GD algorithm.

Theoretical Analysis

To proceed with the analysis of the proposed algorithm, we will make the following common assumptions.

Note that this assumption implies that P(w)=1n∑i=1nfi(w)P(w)=\frac{1}{n}\sum_{i=1}^{n}f_{i}(w) is also L-smooth. The following strong convexity assumption will be made for the appropriate parts of the analysis, otherwise, it would be dropped.

Another, stronger, assumption of μ\mu-strong convexity for (1) will also be imposed when required in our analysis. Note that Assumption 2b implies Assumption 2a but not vice versa.

Under Assumption 2a, let us define the (unique) optimal solution of (1) as w∗w^{*}, Then strong convexity of PP implies that

We note here, for future use, that for strongly convex functions of the form (1), arising in machine learning applications, the condition number is defined as κ=defL/μ\kappa\stackrel{{\scriptstyle\text{def}}}{{=}}L/\mu. Furthermore, we should also notice that Assumptions 2a and 2b both cover a wide range of problems, e.g. l2l_{2}-regularized empirical risk minimization problems with convex losses.

Finally, as a special case of the strong convexity of all fif_{i}’s with μ=0\mu=0, we state the general convexity assumption, which we will use for convergence analysis.

Again, we note that Assumption 2b implies Assumption 3, but Assumption 2a does not. Hence in our analysis, depending on the result we aim at, we will require Assumption 3 to hold by itself, or Assumption 2a and Assumption 3 to hold together, or Assumption 2b to hold by itself. We will always use Assumption 1.

Our iteration complexity analysis aims to bound the number of outer iterations T\mathcal{T} (or total number of stochastic gradient evaluations) which is needed to guarantee that ∥∇P(wT)∥2≤ϵ\|\nabla P(w_{\mathcal{T}})\|^{2}\leq\epsilon. In this case we will say that wTw_{\mathcal{T}} is an ϵ\epsilon-accurate solution. However, as is common practice for stochastic gradient algorithms, we aim to obtain the bound on the number of iterations, which is required to guarantee the bound on the expected squared norm of a gradient, i.e.,

The most important property of the SVRG algorithm is the variance reduction of the steps. This property holds as the number of outer iteration grows, but it does not hold, if only the number of inner iterations increases. In other words, if we simply run the inner loop for many iterations (without executing additional outer loops), the variance of the steps does not reduce in the case of SVRG, while it goes to zero in the case of SARAH. To illustrate this effect, let us take a look at Figures 2 and 2.

In Figure 2, we applied one outer loop of SVRG and SARAH to a sum of 55 quadratic functions in a two-dimensional space, where the optimal solution is at the origin, the black lines and black dots indicate the trajectory of each algorithm and the red point indicates the final iterate. Initially, both SVRG and SARAH take steps along stochastic gradient directions towards the optimal solution. However, later iterations of SVRG wander randomly around the origin with large deviation from it, while SARAH follows a much more stable convergent trajectory, with a final iterate falling in a small neighborhood of the optimal solution.

In Figure 2, the x-axis denotes the number of effective passes which is equivalent to the number of passes through all of the data in the dataset, the cost of each pass being equal to the cost of one full gradient evaluation; and y-axis represents ∥vt∥2\|v_{t}\|^{2}. Figure 2 shows the evolution of ∥vt∥2\|v_{t}\|^{2} for SARAH, SVRG, SGD+ (SGD with decreasing learning rate) and FISTA (an accelerated version of GD (Beck & Teboulle, 2009)) with m=4nm=4n, where the left plot shows the trend over multiple outer iterations and the right plot shows a single outer iterationIn the plots of Figure 2, since the data for SVRG is noisy, we smooth it by using moving average filters with spans 100 for the left plot and 10 for the right one.. We can see that for SVRG, ∥vt∥2\|v_{t}\|^{2} decreases over the outer iterations, while it has an increasing trend or oscillating trend for each inner loop. In contrast, SARAH enjoys decreasing trends both in the outer and the inner loop iterations.

We will now show that the stochastic steps computed by SARAH converge linearly in the inner loop. We present two linear convergence results based on our two different assumptions of μ\mu-strong convexity. These results substantiate our conclusion that SARAH uses more stable stochastic gradient estimates than SVRG. The following theorem is our first result to demonstrate the linear convergence of our stochastic recursive step vtv_{t}.

Suppose that Assumptions 1, 2a and 3 hold. Consider vtv_{t} defined by (2) in SARAH (Algorithm 1) with η<2/L\eta<2/L. Then, for any t≥1t\geq 1,

This result implies that by choosing η=O⁡(1/L)\eta=\operatorname{\mathcal{O}}(1/L), we obtain the linear convergence of ∥vt∥2\|v_{t}\|^{2} in expectation with the rate (1−1/κ2)(1-1/\kappa^{2}). Below we show that a better convergence rate can be obtained under a stronger convexity assumption.

Suppose that Assumptions 1 and 2b hold. Consider vtv_{t} defined by (2) in SARAH (Algorithm 1) with η≤2/(μ+L)\eta\leq 2/(\mu+L). Then the following bound holds, ∀ t≥1\forall\ t\geq 1,

Again, by setting η=O⁡(1/L)\eta=\operatorname{\mathcal{O}}(1/L), we derive the linear convergence with the rate of (1−1/κ)(1-1/\kappa), which is a significant improvement over the result of Theorem 1a, when the problem is severely ill-conditioned.

2 Convergence Analysis

In this section, we derive the general convergence rate results for Algorithm 1. First, we present two important Lemmas as the foundation of our theory. Then, we proceed to prove sublinear convergence rate of a single outer iteration when applied to general convex functions. In the end, we prove that the algorithm with multiple outer iterations has linear convergence rate in the strongly convex case.

Suppose that Assumption 1 holds. Consider SARAH (Algorithm 1). Then, we have

Suppose that Assumption 1 holds. Consider vtv_{t} defined by (2) in SARAH (Algorithm 1). Then for any t≥1t\geq 1,

Now we are ready to provide our main theoretical results.

Suppose that Assumptions 1 and 3 hold. Consider vtv_{t} defined as (2) in SARAH (Algorithm 1) with η<2/L\eta<2/L. Then we have that for any t≥1t\geq 1,

Using the above lemmas, we can state and prove one of our core theorems as follows.

Suppose that Assumptions 1 and 3 hold. Consider SARAH (Algorithm 1) with η≤1/L\eta\leq 1/L. Then for any s≥1s\geq 1, we have

Since v0=∇P(w0)v_{0}=\nabla P(w_{0}) implies ∥∇P(w0)−v0∥2=0\|\nabla P(w_{0})-v_{0}\|^{2}=0 then by Lemma 3, we can write

Hence, by Lemma 1 with η≤1/L\eta\leq 1/L, we have

Theorem 2, in the case when η≤1/L\eta\leq 1/L implies that

By choosing the learning rate η=2L(m+1)\eta=\sqrt{\frac{2}{L(m+1)}} (with mm such that 2L(m+1)≤1/L\sqrt{\frac{2}{L(m+1)}}\leq 1/L) we can derive the following convergence result,

Clearly, this result shows a sublinear convergence rate for SARAH under general convexity assumption within a single inner loop, with increasing mm, and consequently, we have the following result for complexity bound.

Suppose that Assumptions 1 and 3 hold. Consider SARAH (Algorithm 1) within a single outer iteration with the learning rate η=2L(m+1)\eta=\sqrt{\frac{2}{L(m+1)}} where m≥2L−1m\geq 2L-1 is the total number of iterations, then ∥∇P(wt)∥2\|\nabla P(w_{t})\|^{2} converges sublinearly in expectation with a rate of 2Lm+1\sqrt{\frac{2L}{m+1}}, and therefore, the total complexity to achieve an ϵ\epsilon-accurate solution defined in (7) is O⁡(n+1/ϵ2)\operatorname{\mathcal{O}}(n+1/\epsilon^{2}).

We now turn to estimating convergence of SARAH with multiple outer steps. Simply using Theorem 2 for each of the outer steps we have the following result.

Suppose that Assumptions 1 and 3 hold. Consider SARAH (Algorithm 1) and define

and δ=max⁡0≤k≤s−1δk\delta=\max_{0\leq k\leq s-1}\delta_{k}. Then we have

where Δ=δ(1+ηL2(1−ηL)),\Delta=\delta\left(1+\tfrac{\eta L}{2(1-\eta L)}\right), and α=ηL2−ηL.\alpha=\tfrac{\eta L}{2-\eta L}.

Based on Theorem 3, we have the following total complexity for SARAH in the general convex case.

Let us choose Δ=ϵ/4\Delta=\epsilon/4, α=1/2\alpha=1/2 (with η=2/(3L)\eta=2/(3L)), and m=O⁡(1/ϵ)m=\operatorname{\mathcal{O}}(1/\epsilon) in Theorem 3. Then, the total complexity to achieve an ϵ\epsilon-accuracy solution defined in (7) is O⁡((n+(1/ϵ))log⁡(1/ϵ))\operatorname{\mathcal{O}}((n+(1/\epsilon))\log(1/\epsilon)).

2.2 Strongly Convex Case

We now turn to the discussion of the linear convergence rate of SARAH under the strong convexity assumption on PP. From Theorem 2, for any s≥1s\geq 1, using property (6) of the μ\mu-strongly convex PP, we have

Let us define σm=def1μη(m+1)+ηL2−ηL\sigma_{m}\stackrel{{\scriptstyle\text{def}}}{{=}}\tfrac{1}{\mu\eta(m+1)}+\tfrac{\eta L}{2-\eta L}. Then by choosing η\eta and mm such that σm<1\sigma_{m}<1, and applying (14) recursively, we are able to reach the following convergence result.

Suppose that Assumptions 1, 2a and 3 hold. Consider SARAH (Algorithm 1) with the choice of η\eta and mm such that

Theorem 4 implies that any η<1/L\eta<1/L will work for SARAH. Let us compare our convergence rate to that of SVRG. The linear rate of SVRG, as presented in (Johnson & Zhang, 2013), is given by

We observe that it implies that the learning rate has to satisfy η<1/(4L)\eta<1/(4L), which is a tighter restriction than η<1/L\eta<1/L required by SARAH. In addition, with the same values of mm and η\eta, the rate or convergence of (the outer iterations) of SARAH is always smaller than that of SVRG.

To further demonstrate the better convergence properties of SARAH, let us consider following optimization problem

which can be interpreted as the best convergence rates for different values of mm, for both SARAH and SVRG. After simple calculations, we plot both learning rates and the corresponding theoretical rates of convergence, as shown in Figure 3, where the right plot is a zoom-in on a part of the middle plot. The left plot shows that the optimal learning rate for SARAH is significantly larger than that of SVRG, while the other two plots show significant improvement upon outer iteration convergence rates for SARAH over SVRG.

Based on Theorem 4, we are able to derive the following total complexity for SARAH in the strongly convex case.

A Practical Variant

Different from SARAH, SARAH+ provides a possibility of earlier termination and unnecessary careful choices of mm, and it also covers the classical gradient descent when we set γ=1\gamma=1 (since the while loop does not proceed). In Figure 4 we present the numerical performance of SARAH+ with different γ\gammas on rcv1 and news20 datasets. The size of the inner loop provides a trade-off between the fast sub-linear convergence in the inner loop and linear convergence in the outer loop. From the results, it appears that γ=1/8\gamma=1/8 is the optimal choice. With a larger γ\gamma, i.e. γ>1/8\gamma>1/8, the iterates in the inner loop do not provide sufficient reduction, before another full gradient computation is required, while with γ<1/8\gamma<1/8 an unnecessary number of inner steps is performed without gaining substantial progress. Clearly γ\gamma is another parameter that requires tuning, however, in our experiments, the performance of SARAH+ has been very robust with respect to the choices of γ\gamma and did not vary much from one data set to another.

Similarly to SVRG, ∥vt∥2\|v_{t}\|^{2} decreases in the outer iterations of SARAH+. However, unlike SVRG, SARAH+ also inherits from SARAH the consistent decrease of ∥vt∥2\|v_{t}\|^{2} in expectation in the inner loops. It is not possible to apply the same idea of adaptively terminating the inner loop of SVRG based on the reduction in ∥vt∥2\|v_{t}\|^{2}, as ∥vt∥2\|v_{t}\|^{2} may have side fluctuations as shown in Figure 2.

Numerical Experiments

on datasets covtype, ijcnn1, news20 and rcv1 All datasets are available at http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/.. For ijcnn1 and rcv1 we use the predefined testing and training sets, while covtype and news20 do not have test data, hence we randomly split the datasets with 70%70\% for training and 30%30\% for testing. Some statistics of the datasets are summarized in Table 3.

The penalty parameter λ\lambda is set to 1/n1/n as is common practice (Le Roux et al., 2012). Note that like SVRG/S2GD and SAG/SAGA, SARAH also allows an efficient sparse implementation named “lazy updates” (Konečný et al., 2016). We conduct and compare numerical results of SARAH with SVRG, SAG, SGD+ and FISTA. SVRG (Johnson & Zhang, 2013) and SAG (Le Roux et al., 2012) are classic modern stochastic methods. SGD+ is SGD with decreasing learning rate η=η0/(k+1)\eta=\eta_{0}/(k+1) where kk is the number of effective passes and η0\eta_{0} is some initial constant learning rate. FISTA (Beck & Teboulle, 2009) is the Fast Iterative Shrinkage-Thresholding Algorithm, well-known as an efficient accelerated version of the gradient descent. Even though for each method, there is a theoretical safe learning rate, we compare the results for the best learning rates in hindsight.

Figure 5 shows numerical results in terms of loss residuals (top) and test errors (bottom) on the four datasets, SARAH is sometimes comparable or a little worse than other methods at the beginning. However, it quickly catches up to or surpasses all other methods, demonstrating a faster rate of decrease across all experiments. We observe that on covtype and rcv1, SARAH, SVRG and SAG are comparable with some advantage of SARAH on covtype. On ijcnn1 and news20, SARAH and SVRG consistently surpass the other methods.

In particular, to validate the efficiency of our practical variant SARAH+, we provide an insight into how important the choices of mm and η\eta are for SVRG and SARAH in Table 4 and Figure 6. Table 4 presents the optimal choices of mm and η\eta for each of the algorithm, while Figure 6 shows the behaviors of SVRG and SARAH with different choices of mm for covtype and ijcnn1, where m∗m^{*}s denote the best choices. In Table 4, the optimal learning rates of SARAH vary less among different datasets compared to all the other methods and they approximate the theoretical upper bound for SARAH (1/L1/L); on the contrary, for the other methods the empirical optimal rates can exceed their theoretical limits (SVRG with 1/(4L)1/(4L), SAG with 1/(16L)1/(16L), FISTA with 1/L1/L). This empirical studies suggest that it is much easier to tune and find the ideal learning rate for SARAH. As observed in Figure 6, the behaviors of both SARAH and SVRG are quite sensitive to the choices of mm. With improper choices of mm, the loss residuals can be increased considerably from 10−1510^{-15} to 10−310^{-3} on both covtype in 40 effective passes and ijcnn1 in 17 effective passes for SARAH/SVRG.

Conclusion

We propose a new variance reducing stochastic recursive gradient algorithm SARAH, which combines some of the properties of well known existing algorithms, such as SAGA and SVRG. For smooth convex functions, we show a sublinear convergence rate, while for strongly convex cases, we prove the linear convergence rate and the computational complexity as those of SVRG and SAG. However, compared to SVRG, SARAH’s convergence rate constant is smaller and the algorithms is more stable both theoretically and numerically. Additionally, we prove the linear convergence for inner loops of SARAH which support the claim of stability. Based on this convergence we derive a practical version of SARAH, with a simple stopping criterion for the inner loops.

Acknowledgements

The authors would like to thank the reviewers for useful suggestions which helped to improve the exposition in the paper.

References

Appendix A Technical Results

Note that (16) does not require the convexity of ff.

Consider the rate of convergence σm\sigma_{m} in Theorem 4. If we choose η=1/(θL)\eta=1/(\theta L) with θ>1\theta>1 and fix σm\sigma_{m}, then the best choice of mm is

where κ=defL/μ,\kappa\stackrel{{\scriptstyle\text{def}}}{{=}}L/\mu, with θ∗\theta^{*} calculated as:

Furthermore, we require θ∗>1+2/2\theta^{*}>1+\sqrt{2}/2 for σm<1\sigma_{m}<1.

Appendix B Proofs

By Assumption 1 and wt+1=wt−ηvtw_{t+1}=w_{t}-\eta v_{t}, we have

where the last equality follows from the fact aTb=12[∥a∥2+∥b∥2−∥a−b∥2].a^{T}b=\frac{1}{2}\left[\|a\|^{2}+\|b\|^{2}-\|a-b\|^{2}\right].

where the last inequality follows since w∗w^{*} is a global minimizer of PP.

B.2 Proof of Lemma 2

Note that Fj\mathcal{F}_{j} contains all the information of w0,…,wjw_{0},\dots,w_{j} as well as v0,…,vj−1v_{0},\dots,v_{j-1}. For j≥1j\geq 1, we have

By taking expectation for the above equation, we have

Note that ∥∇P(w0)−v0∥2=0\|\nabla P(w_{0})-v_{0}\|^{2}=0. By summing over j=1,…,t (t≥1)j=1,\dots,t\ (t\geq 1), we have

B.3 Proof of Lemma 3

which, if we take expectation, implies that

By summing the above inequality over j=1,…,t (t≥1)j=1,\dots,t\ (t\geq 1), we have

B.4 Proof of Lemma 6

With η=1/(θL)\eta=1/(\theta L) and κ=L/μ\kappa=L/\mu, the rate of convergence αm\alpha_{m} can be written as

Since σm\sigma_{m} is considered fixed, then the optimal choice of mm in terms of θ\theta can be solved from min⁡θm(θ)\min_{\theta}m(\theta), or equivalently, 0=(∂m)/(∂θ)=m′(θ)0=(\partial m)/(\partial\theta)=m^{\prime}(\theta), and therefore we have the equation with the optimal θ\theta satisfying

and by plugging it into m(θ)m(\theta) we conclude the optimal mm:

while by solving for θ∗\theta^{*} in (21) and taking into account that θ>1\theta>1, we have the optimal choice of θ\theta:

Obviously, for σm<1\sigma_{m}<1, we require θ∗>1+2/2\theta^{*}>1+\sqrt{2}/2.

B.5 Proof of Theorem 1a

Using the proof of Lemma 3, for t≥1t\geq 1, we have

Note that 1−2ηL<01-\tfrac{2}{\eta L}<0 since η<2/L\eta<2/L. The last inequality follows by the strong convexity of PP, that is, μ∥wt−wt−1∥≤∥∇P(wt)−∇P(wt−1)∥\mu\|w_{t}-w_{t-1}\|\leq\|\nabla P(w_{t})-\nabla P(w_{t-1})\| and the fact that wt=wt−1−ηvt−1w_{t}=w_{t-1}-\eta v_{t-1}. By taking the expectation and applying recursively, we have

B.6 Proof of Theorem 1b

where in last inequality we have used that η≤2/(μ+L)\eta\leq 2/(\mu+L). By taking the expectation and applying recursively, the desired result is achieved.

B.7 Proof of Theorem 3

where the second last equality follows since

B.8 Proof of Corollary 2

Based on Theorem 3, if we would aim for an ϵ\epsilon-accuracy solution, we can choose Δ=ϵ/4\Delta=\epsilon/4 and α=1/2\alpha=1/2 (with η=2/(3L)\eta=2/(3L)). To obtain the convergence to an ϵ\epsilon-accuracy solution, we need to have δ=O⁡(ϵ)\delta=\operatorname{\mathcal{O}}(\epsilon), or equivalently, m=O⁡(1/ϵ)m=\operatorname{\mathcal{O}}(1/\epsilon). Then we have

B.9 Proof of Corollary 3

Based on Lemma 6 and Theorem 4, let us pick θ∗=2\theta^{*}=2, i.e, then we have m∗=4.5κ−1.m^{*}=4.5\kappa-1. So let us run SARAH with η=1/(2L)\eta=1/(2L) and m=4.5κm=4.5\kappa, then we can calculate σm\sigma_{m} in (15) as

According to Theorem 4, if we run SARAH for T\mathcal{T} iterations where

thus we can derive (7). If we consider the number of gradient evaluations as the main computational complexity, then the total complexity can be obtained as