Generalized-Smooth Nonconvex Optimization is As Efficient As Smooth Nonconvex Optimization
Ziyi Chen, Yi Zhou, Yingbin Liang, Zhaosong Lu
Introduction
Although the class of smooth nonconvex problems can be effectively solved by the above provably optimal algorithms, it does not include many important modern machine learning applications, e.g., distributionally robust optimization (DRO) (jin2021non, ) and language model learning (zhang2019gradient, ), etc. Specifically, for the problems involved in these applications, they are not globally smooth but have been shown to satisfy certain generalized-smooth conditions, in which the smoothness parameters scale with the gradient norm in various ways (see the formal definitions in Section 2). To solve these generalized-smooth-type nonconvex problems, the existing works have developed various gradient-based algorithms, but only with sub-optimal complexity results for stochastic optimization. Therefore, we are motivated to systematically build a comprehensive understanding of generalized-smooth functions and develop algorithms with improved complexities.
To achieve this overarching goal, we need to address several fundamental challenges. First, the existing generalized-smooth conditions are proposed for specific application examples. Therefore, they define relatively restricted classes of functions that do not cover many popular ones such as high-order polynomials and exponential functions. Thus, we are motivated to consider the following question.
Q1: How to extend the existing notion of generalized-smoothness to cover a broad range of functions used in machine learning practice? What are the fundamental properties of the functions in this class?
Second, for such an extended class of generalized-smooth problems, it is expected that first-order algorithms may generally suffer from higher computation complexity (as compared to solving smooth problems). On the other hand, it is unclear how to design first-order algorithms that can efficiently solve these more challenging problems. Therefore, we aim to answer the following question.
Q2: Can first-order algorithms solve generalized-smooth nonconvex problems as efficiently as solving smooth nonconvex problems? In particular, what algorithms can achieve the optimal complexities?
In this paper, we provide comprehensive and affirmative answers to the aforementioned fundamental questions. Our contributions are summarized as follows.
We propose a class of -symmetric generalized-smooth functions, denoted by , which we show strictly contains the popular class of -smooth functions (i.e., functions with Lipschitz continuous gradient), the class of asymmetric generalized-smooth functions (levy2020large, ; jin2021non, ) and the class of Hessian-based generalized-smooth functions (zhang2019gradient, ) (see the definitions in Section 2). In particular, we show that our proposed function class includes a wide range of popular machine learning problems and functions used in practice, including distributionally robust optimization (levy2020large, ; jin2021non, ), objective function of language models (zhang2019gradient, ), high-order polynomials and exponential functions.
We study the fundamental properties of functions in the class and establish new decent lemmas for functions in with different values of (See Proposition 3.2). These technical tools play an important role later in designing new gradient-based algorithms and developing their corresponding convergence analysis.
In summary, our work reveals that generalized-smooth nonconvex (stochastic) optimization is as efficient as smooth nonconvex (stochastic) optimization, and the optimal complexities can be achieved by -GD (for deterministic case) and SPIDER (for stochastic case), respectively.
2 Related Work
Hessian-based Generalized-smooth Functions : (zhang2019gradient, ) extended the -smooth function class to a Hessian-based generalized-smooth function class which allows the Lipschitz constant to linearly increase with the gradient norm (see Definition 2.2) and thus includes higher-order polynomials and many language models that are not -smooth. For objective function on , (zhang2019gradient, ) also proposed clipped GD and normalized GD which keep the optimal iteration complexity , and proposed clipped SGD which also achieves sample complexity . (zhang2020improved, ) proposed a general framework for clipped GD/SGD with momentum acceleration and obtained the same complexities for both deterministic and stochastic optimization. (zhao2021convergence, ) obtained sample complexity for normalized SGD with both small constant stepsize and diminishing stepsize. A contemporary work (reisizadeh2023variance, ) reduced the sample complexity to by combining SPIDER variance reduction technique with gradient clipping.
Asymmetric Generalized-Smooth Functions : Variants of clipped/normalized GD and SGD have been proposed on the asymmetric generalized-smooth function class , which looks like a first-order variant of (see Definition 2.1). For example, (jin2021non, ) applied mini-batch normalized SGD with momentum proposed by (cutkosky2020momentum, ) to distributionally robust optimization problem which has been proved equivalent to minimizing a function in (levy2020large, ; jin2021non, ), and also obtained sample complexity . (yang2022normalized, ) made normalized and clipped SGD differentially private by adding Gaussian noise. (crawshawrobustness2022, ) proposed generalized signSGD with ADAM-type normalization and obtained sample complexity on a smaller coordinate-wise version of .
Existing Notions of Generalized-Smoothness
The class of -smooth functions, which we denote as , includes all continuously differentiable functions with Lipschitz continuous gradient. Specifically, for any , there exists such that
Many useful functions fall into this class, e.g., quadratic functions, logistic functions, etc. Nevertheless, is a restricted function class that cannot efficiently model a broad class of functions, including higher-order polynomials, exponential functions, etc. For example, consider the one-dimensional polynomial function in the range . According to (1), its smoothness parameter can be as large as , leading to an ill-conditioned problem that hinders optimization.
To address this issue and provide a better model for optimization, previous works have introduced various notions of generalized-smoothness, which cover a broader class of functions that are used in machine learning applications. For example, distributionally robust optimization (DRO) is an important machine learning problem, and recently it has been proved that DRO can be reformulated as another problem whose objective function belongs to the following asymmetric generalized-smooth function class () (levy2020large, ; jin2021non, ).
To elaborate, we name the above function class asymmetric generalized-smooth as the definition in (2) takes an asymmetric form. In particular, the smoothness parameter of the functions in scales with the gradient norm . This implies that the nonconvex problem can be ill-conditioned in the initial optimization stage when the gradient is relatively large.
On the other hand, (zhang2019gradient, ) showed that high-order polynomials and many language models belong to the following Hessian-based generalized-smooth function class .
In addition to the above notions of generalized-smoothness, many other works have developed optimization algorithms for minimizing the class of higher-order smooth functions, i.e., functions with Lipschitz continuous higher-order gradients (Nesterov2006, ; carmon2020lower, ; carmon2021lower, ). However, the resulting algorithms usually require either computing higher-order gradients or solving higher-order subproblems, which are not suitable for machine learning applications with big data. In the following subsection, we propose a so-called -symmetric generalized-smooth function class, which we show substantially generalizes the existing generalized-smooth function classes and covers a wide range of functions used in many important machine learning applications.
The α𝛼\alpha-Symmetric Generalized-Smooth Function Class
We propose the following class of -symmetric generalized-smooth functions , which we show later covers the aforementioned generalized-smooth function classes and includes many important machine learning problems. Throughout the whole paper, we define .
where .
Remark: we use to emphasize its dependence on . Later whenever is given, we will use the abbreviation .
It can be seen that the above function class covers the aforementioned function classes (corresponds to ) and (with and being replaced with the smaller term ). In particular, compared to the asymmetric generalized-smooth function class , our proposed function class generalizes it in two aspects. First, defines generalized-smoothness in a symmetric way with regard to the points and since it considers the maximum gradient norm over the line segment . As a comparison, defines generalized-smoothness in an asymmetric way. Second, covers the functions whose smoothness parameter can scale polynomially as , whereas only considers the special case .
Next, we show connections among all these generalized-smooth function classes, and prove that our proposed function class is substantially bigger than others.
The generalized-smooth function classes , and satisfy the following properties.
;
. Moreover, they are equivalent when restricted to the set of twice-differentiable functions;
To elaborate, items 1 & 2 show that a special case of our proposed -symmetric generalized-smooth function class includes the other existing generalized-smooth function classes . In particular, when is restricted to be twice-differentiable, the class is equivalent to . Moreover, items 3 & 4 show that our proposed generalized-smooth function class includes a wide range of ‘fast-growing’ functions, including high-order polynomials and even exponential functions, which are not included in . In summary, our proposed -symmetric generalized-smooth function class extends the existing boundary of smooth functions in nonconvex optimization.
Next, for the functions in , we establish various important technical tools that are leveraged later to develop efficient algorithms and their convergence analysis.
The function class can be equivalently defined as follows.
where K_{0}:=L_{0}\big{(}2^{\frac{\alpha^{2}}{1-\alpha}}+1\big{)}, , .
Consequently, the following descent lemmas hold.
Please refer to (25) in Lemma A.1 in Appendix A for the details. To prove this, we uniformly divide the line segment between and into pieces with the end points . Then, we obtain the following bound.
where and denote with and respectively, and . As , the summation in the above inequality converges to the desired integral . Second, to prove sufficiency, i.e., (9) implies (5) & (6), we derive and solve an ordinary differential equation (ODE) of the function . This ODE is obtained by substituting into the above equivalent definition (9). Then, to prove necessity, i.e., (5) & (6) imply (9), we use a similar dividing technique so that averaging the terms and over yields the desired integral as , while at the same time the other terms vanish as and \exp\big{(}L_{1}\|w_{(k+1)/n}-w_{k/n}\|\big{)}\to 1.
Next, we present some nonconvex machine learning examples that belong to the proposed function class .
The above nonconvex objective function is a high-order polynomial in the high-dimensional space. Therefore, it does not belong to the -smooth function class . In the following result, we formally prove that the above phase retrieval problem can be effectively modeled by our proposed function class .
The nonconvex phase retrieval objective function in (10) belongs to .
Example 2: Distributionally Robust Optimization. In many practical machine learning applications, there is usually a gap between training data distribution and test data distribution. Therefore, it is much desired to train a model that is robust to distribution shift. Distributionally robust optimization (DRO) is such a popular optimization framework for training robust models. Specifically, DRO aims to solve the following problem
where denotes the convex conjugate function of . In particular, the objective function in the above equivalent form has been shown to belong to the function class (jin2021non, ). Therefore, by item 1 of Theorem 1, we can make the following conclusion.
Regarding the equivalent form (12) of the DRO problem (11), its objective function belongs to the function class .
In this section, we develop an efficient and optimal deterministic gradient-based algorithm for minimizing nonconvex functions in and analyze its iteration complexity.
The challenge for optimizing the functions in is that the generalized-smoothness parameter scales with . To address this issue, we need to use a specialized gradient normalization technique, and this motivates us to consider the -normalized gradient descent (-GD) algorithm as shown in Algorithm 1. To elaborate, -GD simply normalizes the gradient update by the gradient norm term for some . Such a normalized update is closely related to some existing gradient-type algorithms, including the clipped GD algorithm that uses the normalization term and the normalized GD that uses the normalization term (zhang2019gradient, ), where is a certain constant.
We obtain the following convergence result of -GD on minimizing functions in .
Apply the -GD algorithm to minimize any function with . Choose See the definition of in Proposition 3.2. if and if ( is the target accuracy). Then, the following convergence rate result holds.
Theorem 2 shows that -GD achieves the iteration complexity when minimizing functions in . Such a complexity result matches the iteration complexity lower bound for deterministic smooth nonconvex optimization and hence is optimal. In particular, Theorem 2 shows that to minimize any function , it suffices to apply -GD with any and a proper learning rate . Intuitively, with a larger , the gradient norm of function in the class increases faster as , and therefore we need to use a larger normalization parameter and a smaller learning rate to alleviate gradient explosion. Interestingly, the convergence and iteration complexity of -GD remain the same as long as is used, i.e., over-normalization does not affect the complexity order. In practice, when is unknown a priori for the function class , one can simply use the conservative choice and is guaranteed to converge.
Technical Novelty. In the proof of Theorem 2, a major challenge is that due to the -normalization term in Algorithm 1, the generalized-smoothness of functions in the class introduces additional higher-order terms to the Taylor expansion upper bounds, as can be seen from the descent lemmas shown in (7) (for ) and (8) (for ). In the convergence proof, these terms contribute to certain fast-increasing terms that reduce the overall optimization progress. For example, when , substituting and into (7) yields that See (i) of (E) in Appendix E for the full expression of in eq. (14).
The above key inequality bounds the optimization progress using gradient norm terms with very different exponents. This makes it challenging to achieve the desired level of optimization progress, as compared with the analysis of minimizing other (generalized) smooth functions in , and (zhang2019gradient, ; jin2021non, ). To address this issue and homogenize the diverse exponents, we develop a technical tool in Lemma E.1 in Appendix A to bridge polynomials with different exponents. With this technique, we further obtain the following optimization progress bound
which leads to the desired result with proper telescoping.
We also obtain the following complementary result to Theorem 2, which shows that -GD may diverge in general with under-normalization.
(Divergence of -GD) For the -GD algorithm with , there always exists a convex function with a unique minimizer such that for any learning rate , -GD diverges for all initialization for some constant .
Expected α𝛼\alpha-Symmetric Generalized-Smooth Functions in Stochastic Optimization
In this section, we propose a class of expected -symmetric generalized-smooth functions and study their properties in stochastic optimization. Specifically, we consider the following nonconvex stochastic optimization problem
where .
Under Assumption 1, the following statements hold.
where , , ;
We first compare deterministic algorithms with fine-tuned learning rate over 500 iterations. This includes the basic GD with , clipped GD (zhang2019gradient, ) with and normalization term , and our -GD with and , respectively. Figure 1 (top left) plots the comparison result on objective function value v.s. iteration. It can be seen that our proposed -GD with converges faster than the existing GD, normalized GD (-GD) and clipped GD algorithms, which shows the advantage of using a proper normalization parameter .
We further compare stochastic algorithms with fine-tuned learning rate and fixed batch size over 500 iterations. This includes the basic SGD with , normalized SGD with , normalized SGD with momentum (jin2021non, ) with and momentum coefficient , clipped SGD (zhang2019gradient, ) with and normalization term , and SPIDER with , epoch size and batchsizes . We generate the initialization by running -GD with for 100 iterations from . Figure 1 (top right) plots the comparison result on objective function value v.s. sample complexity. It can be seen that SPIDER uses slightly more samples at the beginning but converges to a much better solution than the other SGD-type algorithms. This demonstrates the advantage of applying both variance reduction and proper normalization to solve generalized-smooth nonconvex stochastic problems.
2 Application to DRO
We further compare stochastic algorithms with fine-tuned learning rate and fixed minibatch size over 5000 iterations. This includes the basic SGD with , normalized SGD with , normalized SGD with momentum with and momentum coefficient , clipped SGD with and normalization term , and SPIDER with , epoch size and batchsizes . We generate the initialization by running normalized GD with for 30 iterations from . Figure 1 (bottom right) plots the comparison result on objective function value v.s. sample complexity. It can be seen that SPIDER takes slightly more samples at the beginning but converges to a better solution than the other SGD-type algorithms. This demonstrates the advantage of applying both variance reduction and proper normalization to solve generalized-smooth nonconvex stochastic problems.
Conclusion
In this work, we proposed a new class of generalized-smooth functions that extends the existing ones. We developed both deterministic and stochastic gradient-based algorithms for solving problems in this class and obtained the optimal complexities. Our results extend the existing boundary of first-order nonconvex optimization and may inspire new developments in this direction. In the future, it is interesting to explore if other popular variance reduction algorithms such as STORM and SpiderBoost can be normalized to solve generalized-smooth nonconvex stochastic problems.
Acknowledgement
The work of Ziyi and Yi Zhou was supported in part by U.S. National Science Foundation under the grants CCF-2106216, DMS-2134223 and CAREER-2237830.
The work of Yingbin was supported in part by the U.S. National Science Foundation under the grants CCF-1900145 and CCF-1909291.
The work of Zhaosong was supported in part by U.S. National Science Foundation under the grant IIS-2211491.
References
Part Appendix
where .
Lemma A.1 provides an equivalent definition of which is sometimes more convenient to use than Definition 3.1, for example, in the proof in Section B.2.
Eq. (25) directly implies eq. (4) (i.e., ) since
where (i) uses eq. (4) with replaced by respectively ( and denote with and respectively) and (ii) denotes . Since is continuous, letting in the above inequality proves eq. (25) as follows.
where .
It sufficies to prove the equivalence between eqs. (26) & (19).
where (i) applies Jensen’ inequality to the convex function , (ii) uses eq. (19), and (iii) denotes h(u):=\big{(}L_{0}+L_{1}\|\nabla f_{\xi}(w_{\theta u})\|^{\alpha}\big{)}^{2}. Since is a continuous function, letting in the above inequality yields that
Substituting into the above inequality proves eq. (26). ∎
Under Assumption 1, the stochastic gradient and true gradient satisfy the following inequalities for any ,
First, when , Assumption 1 implies eq. (28) as follows.
where (i) applies Jensen’s inequality to the concave function , (ii) uses eq. (29), and (iii) uses the inequality that for any and . ∎
Note that the only randomness of Algorithm 2 comes from , so we can consider the filtration which monotonically increases with larger . Then, it can be easily seen from Algorithm 2 that
Appendix B Proof of Theorem 1
B.2 Proof of Item 2
Note that if a function is not twice-differentiable, it cannot belong to but may still belong to . For example, for the function whose derivative is not differentiable (so ), we have since |f^{\prime}(w^{\prime})-f^{\prime}(w)|\leq 2\big{|}|w^{\prime}|-|w|\big{|}\leq 2|w^{\prime}-w|.
Therefore, it remains to prove for twice-differentiable functions the equivalence between eq. (31) below (definition of ) and eq. (25) with (equivalent definition of ).
Eq. (31) implies eq. (25) as proved below.
where (i) uses eq. (31). Finally, it remains prove eq. (31) given eq. (25).
Note that of the symmetric Hessian matrix has eigenvalue or . Denote as the corresponding eigenvector with , i.e., . In eq. (25) , we adopt (), so and thus eq. (25) becomes
The left side of eq. (32) can be rewritten as follows.
where (i) uses change of variables . The right side of eq. (32) can be rewritten as follows.
where (i) also uses change of variables . Substituting eqs. (33) & (34) into eq. (32) and multiplying both sides by , we obtain that
Letting in the above inequality, we obtain eq. (31) as follows.
B.3 Proof of Item 3
where . This verifies eq. (4) and thus proves that .
As , the left side of the above inequality is whereas the right side has strictly smaller order . Hence, the above inequality cannot hold for sufficiently large , which means the assumption that does not hold.
which implies that |w^{\prime}|\leq\big{(}\frac{L_{0}(1-\alpha)}{2-\alpha}\big{)}^{\frac{1-\alpha}{\alpha}}<+\infty. Hence, the above inequality cannot for all sufficiently large , which means the assumption that does not hold.
B.4 Proof of Item 4
When , ; When , . Combining the two cases yields that , which implies that . Since is twice-differentiable, we have based on item 2 of Theorem 1.
where . Substituting into the above inequality, we obtain the following inequality.
As , the left side of the above inequality goes to while the right sides converges to . Hence, the above inequality cannot hold for sufficiently large , which means the assumption that does not hold.
As , the left side of the above inequality goes to , so the above inequality cannot for all sufficiently large , which means the assumption that does not hold.
Appendix C Proof of Proposition 3.2
where (i) denotes . Then its derivative can be bounded as follows,
where (i) uses eq. (36) and (ii) applies Jensen’s inequality to the concave function . Rearranging the above inequality yields that
Integrating the above inequality over yields that
where (i) uses and applies Jensen’s inequality to the concave function . Therefore,
Substituting the above inequality into eq. (36), we obtain that
Then, substituting the above inequality into eq. (4), we obtain that
where (i) uses the inequality that for any and , and (ii) denotes that K_{0}:=L_{0}\big{(}2^{\frac{\alpha^{2}}{1-\alpha}}+1\big{)}, , .
where (i) denotes , (ii) uses eq. (5) with replaced by respectively and (iii) denotes . Since is continuous, letting in the above inequality proves eq. (25) as follows, which implies by Lemma A.1.
C.2 Proof of Item 2
Note that eq. (37) holds for any function with . Substituting into eq. (37), we obtain that
where . Rearranging the above inequality yields that
Integrating the above inequality over yields that (note that )
Substituting the above inequality and into eq. (36), we obtain that
Then, substituting the above inequality and into eq. (4), we prove eq. (6) as follows.
where (i) denotes , (ii) uses eq. (6) with replaced by respectively and (iii) denotes . Since is continuous, letting in the above inequality proves eq. (25) with as follows, which implies by Lemma A.1.
C.3 Proof of Item 3
where (i) uses eq. (5) with replaced by .
C.4 Proof of Item 4
where (i) uses eq. (6) with replaced by .
Appendix D Proof of Proposition 3.3 and Proposition 5.2
where (i) uses trianagular inequality, , and the following inequality, (ii) uses , (iii) uses eq. (38) and denotes that and that .
D.2 Proof for DRO Problem
We adopt the following assumptions from (jin2021non, ):
is a non-negative convex function with and for all , and is -smooth.
The gradient \nabla L_{\xi}=\big{[}\nabla_{x}L_{\xi};\frac{\partial}{\partial\eta}L_{\xi}\big{]} can be computed as follows.
Therefore, we can prove that as follows.
Appendix E Proof of Theorem 2
We will first prove the following lemma which will be used in the proof of Theorem 2.
For any , , and such that , the following inequality holds
We consider three cases: , and .
(Case I) When , and imply that , so , which implies eq. (44).
(Case II) When , , which implies eq. (44).
(Case III) When , by applying Young’s inequality with and which satisfy , we prove eq. (44) as follows.
Now we will prove Theorem 2. We omit the well-known case of where GD is applied to -smooth function . Hence, we focus on the case of . We first bound in two cases: and .
(Case I) When , eq. (7) holds for . Hence, we have
where (i) uses the update rule of Algorithm 1 (-GD), (ii) uses and applies Lemma E.1 three times respectively with , ( since and ), , , , (iii) uses the inequality that for and any , and (iv) uses .
(Case II) When , we have and eq. (8) holds for . Hence, we have
where (i) uses the update rule of Algorithm 1 (-GD with ) and (ii) and (iii) use . Note that eq. (E) holds in both cases. Therefore, by telescoping eq. (E) and rearranging it, we obtain that
where (i) uses for and any .
Appendix F Proof of Theorem 3
(Case I) When , consider the convex function with unique minimizer and derivative . Based on item 3 of Proposition 1, . Applying -GD to this function yields that
Note that . Hence, if with constant C:=\Big{(}\frac{3(1-\alpha)}{\gamma(2-\alpha)}\Big{)}^{\frac{1-\alpha}{\alpha-\beta}}>0, we have and thus . Therefore, if , by induction we obtain that for any , and thus , , which means -GD diverges.
(Case II) When , consider the convex function with unique minimizer and derivative . Based on item 4 of Proposition 1, . Applying -GD to this function yields that
Since , |w_{t}|^{-1}\big{(}e^{|w_{t}|}-e^{-|w_{t}|}\big{)}^{1-\beta}\to+\infty as . Hence, there exists a constant such that \big{(}e^{|w_{t}|}-e^{-|w_{t}|}\big{)}^{1-\beta}>3|w_{t}| for . Therefore, . Therefore, if , by induction we obtain that for any , and thus , which means -GD diverges.
Appendix G Proof of Proposition 5.3
Integrating the above inequality over yields that
where (i) applies Jensen’s inequality to the concave function . Rearranging the above inequality yields that
Substituting the above inequality into eq. (47), we obtain that
where (i) uses eq. (50) and denotes that , , , and (ii) uses the inequality that for any . This proves eq. (20).
where (i) applies Jensen’ inequality to the convex function and (ii) uses eq. (20). For any , there exists such that for any . Therefore, taking limit superior of both sides of the above inequality, we obtain that
G.2 Proof of Item 2
Integrating the above inequality over , we obtain that
Hence, we have . Substituting this inequality into eq. (47), we obtain that
where (i) uses eq. (53). This proves eq. (21).
where (i) applies Jensen’ inequality to the convex function and (ii) uses eq. (21). For any , there exists such that for any . Therefore, letting in the above inequality, we obtain that
G.3 Proof of Item 3
(Case I) When , eq. (20) holds, so we have
where (i) uses Lemma A.3. The above inequality implies that based on item 1 of Proposition 3.2.
(Case II) When , eq. (21) holds, so we have
where (i) uses Lemma A.3, (ii) uses the inequality that for any . The above inequality implies that based on item 2 of Proposition 3.2.
Appendix H Proof of Theorem 4
We will first prove the following lemmas which will be used in the proof of Theorem 4.
Apply SPIDER algorithm (Algorithm 2) to with stepsize (when ) or (when ) ( is the target accuracy). Then we have,
Given , are non-random based on eq. (30). Hence, eq. (20) or (21) holds respectively when or .
If , eq. (55) can be proved as follows
where (i) uses eq. (20), (ii) uses eq. (28) and based on Algorithm 2, (iii) uses the inequality that for any , (iv) uses \gamma\leq\frac{\epsilon}{2\overline{K}_{0}+2\overline{K}_{2}+2\overline{K}_{1}(\Lambda^{\alpha}+\Gamma^{\alpha}+1)}\leq\frac{\epsilon}{2}\big{(}(\overline{K}_{0}+\overline{K}_{2}+\overline{K}_{1}\Lambda^{\alpha})^{2}+\overline{K}_{1}^{2}(\Gamma^{\alpha}+1)^{2}\big{)}^{-\frac{1}{2}}.
If , eq. (55) can be proved as follows
where (i) uses eq. (21), (ii) uses eq. (28) and based on Algorithm 2, (iii) uses \gamma\leq\frac{\epsilon}{3L_{1}\sqrt{\Gamma^{2}+1}+3\sqrt{L_{0}^{2}+2L_{1}^{2}\Lambda^{2}}}\leq\min\big{(}\frac{1}{3L_{1}},\frac{\epsilon}{3L_{1}\sqrt{\Gamma^{2}+1}+3\sqrt{L_{0}^{2}+2L_{1}^{2}\Lambda^{2}}}\big{)}. ∎
Apply SPIDER algorithm (Algorithm 2) to with stepsize given by Lemma H.1 batchsize when and otherwise. Then the approximation error has the following properties conditional on minibatches .
where (i) uses eq. (30). Then eq. (58) can be proved as follows.
We prove eq. (60) via backward induction on . Note that eq. (60) holds trivially for . Then, assume that eq. (60) holds for a certain value of and we prove eq. (60) for as follows.
where (i) uses eq. (60) for , (ii) applies Jensen’s inequality to the concave function , (iii) uses eq. (58), and (iv) uses the inequality that for any . Substituting into eq. (60), we prove eq. (59) as follows.
where (i) uses the inequality that for any and then applies Lyapunov inequality, and (ii) uses eq. (57) and then uses for any . ∎
Apply SPIDER algorithm (Algorithm 2) to with batchsize when and otherwise, and stepsize stepsize (when ) or (when ) ( is the target accuracy). Then the decrease of the function has the following bound.
We consider two cases: and .
(Case I) When , eq. (7) holds for . Hence,
where (i) uses and , (ii) uses Cauchy-Schwartz inequality, and , (iii) uses .
(Case II) When , we have and eq. (8) holds for . Hence,
where (i) uses , (ii) uses Cauchy-Schwartz inequality, and . ∎
Now we will prove Theorem 4. First, it can be easily verified that the choice of stepsize and batchsize satisfies the requirements of Lemmas H.2 & H.3. Therefore, eq. (61) in Lemma H.3 holds. Taking expectation of eq. (61) and telescoping over where , we obtain that
where (i) uses eq. (59) and (ii) uses the following condition satisfied by the hyperparamter choices .
It can be easily verified that the following hyperparameter choices satisfy the condition that and that since .
Under the above hyperparameter choices, the sample complexity is