Stochastic Recursive Variance-Reduced Cubic Regularization Methods
Dongruo Zhou, Quanquan Gu
Introduction
Many machine learning problems can be formulated as empirical risk minimization, which is in the form of finite-sum optimization as follows:
where are predefined precision parameters. The most classic algorithm to find the approximate local minimum is cubic-regularized (CR) Newton method, which was originally proposed in the seminal paper by Nesterov and Polyak (2006). Generally speaking, in the -th iteration, cubic regularization method solves a subproblem, which minimizes a cubic-regularized second-order Taylor expansion at the current iterate . The update rule can be written as follows:
where is a penalty parameter. Nesterov and Polyak (2006) proved that to find an -approximate local minimum of a nonconvex function , cubic regularization requires at most iterations. However, when applying cubic regularization to nonconvex finite-sum optimization in (1.1), a major bottleneck of cubic regularization is that it needs to compute individual gradients and Hessian matrices at each iteration, which leads to a total gradient complexity (i.e., number of queries to the stochastic gradient oracle for some and ) and Hessian complexity (i.e., number of queries to the stochastic Hessian oracle for some and ). Such computational overhead will be extremely expensive when is large as is in many large-scale machine learning applications.
To overcome the aforementioned computational burden of cubic regularization, Kohler and Lucchi (2017); Xu et al. (2017) used subsampled gradient and subsampled Hessian, which achieve gradient complexity and Hessian complexity. Zhou et al. (2018d) proposed a stochastic variance reduced cubic regularization method (SVRC), which uses novel semi-stochastic gradient and semi-stochastic Hessian estimators inspired by variance reduction for first-order finite-sum optimization (Johnson and Zhang, 2013; Reddi et al., 2016; Allen-Zhu and Hazan, 2016), which attains Second-order Oracle (SO) complexitySecond-order Oracle (SO) returns triple for some and , hence the SO complexity can be seen as the maximum of gradient and Hessian complexities.. Zhou et al. (2018b); Wang et al. (2018b); Zhang et al. (2018a) used a simpler semi-stochastic gradient compared with (Zhou et al., 2018d), and semi-stochastic Hessian, which achieves a better Hessian complexity, i.e., . However, it is unclear whether the gradient and Hessian complexities of the aforementioned SVRC algorithms can be further improved. Furthermore, all these algorithms need to use the semi-stochastic Hessian estimator, which is not compatible with Hessian-vector product-based cubic subproblem solvers (Agarwal et al., 2017; Carmon and Duchi, 2016, 2018). Therefore, the cubic subproblem (1.4) in each iteration of existing SVRC algorithms has to be solved by computing the inverse of the Hessian matrix, whose computational complexity is at least is the matrix multiplication constant, where (Golub and Van Loan, 1996). . This makes existing SVRC algorithms not very practical for high-dimensional problems.
In this paper, we first show that the gradient and Hessian complexities of SVRC-type algorithms can be further improved. The core idea is to use novel recursively updated semi-stochastic gradient and Hessian estimators, which are inspired by the stochastic path-integrated differential estimator (SPIDER) (Fang et al., 2018) and the StochAstic Recursive grAdient algoritHm (SARAH) (Nguyen et al., 2017) for first-order optimization. We show that such kind of estimators can be extended to second-order optimization to reduce the Hessian complexity. Nevertheless, our analysis is very different from that in Fang et al. (2018); Nguyen et al. (2017), because we study a fundamentally different optimization problem (i.e., finding local minima against finding first-order stationary points) and a completely different optimization algorithm (i.e., cubic regularization versus gradient method). In addition, in order to reduce the runtime complexity of existing SVRC algorithms, we further propose a Hessian-free SVRC method that can not only use the novel semi-stochastic gradient estimator, but also leverage the Hessian-vector product-based fast cubic subproblem solvers. Experiments on benchmark nonconvex finite-sum optimization problems illustrate the superiority of our newly proposed SVRC algorithms over the state-of-the-art (Due to space limit, we include the experiments in Appendix 6).
In detail, our contributions are summarized as follows:
We propose a new SVRC algorithm, namely SRVRC, which can find an -approximate local minimum with gradient complexity and Hessian complexity. Compared with previous work in cubic regularization, the gradient and Hessian complexity of SRVRC is strictly better than the algorithms in Zhou et al. (2018b); Wang et al. (2018b); Zhang et al. (2018a), and better than that in Zhou et al. (2018d); Shen et al. (2019) in a wide regime.
We further propose a new algorithm , which requires stochastic gradient and Hessian-vector product computations to find an -approximate local minimum. is strictly better than the algorithms in (Agarwal et al., 2017; Carmon and Duchi, 2016; Tripuraneni et al., 2018) when . The runtime complexity of is also better than that of SRVRC when the problem dimension is large.
In an independent and concurrent work (Shen et al., 2019), two stochastic trust region methods namely STR1 and STR2 were proposed, which are based on the same idea of variance reduction using SPIDER, and are related to our first algorithm SRVRC. Our SRVRC is better than STR1 because it enjoys the same Hessian complexity but a better gradient complexity than STR1. Compared with STR2, our SRVRC has a consistently lower Hessian complexity and lower gradient complexity in a wide regime (i.e., ). Since Hessian complexity is the dominating term in cubic regularization method (Zhou et al., 2018b; Wang et al., 2018b), our SRVRC is arguably better than STR2, as verified by our experiments.
For the ease of comparison, we summarize the comparison of methods which need to compute the Hessian explicitly in Table 1, the Hessian-free or Hessian-vector product based methods in Table 2.
Additional Related Work
In this section, we review additional related work that is not discussed in the introduction section.
Cubic Regularization and Trust-Region Methods Since cubic regularization was first proposed by Nesterov and Polyak (2006), there has been a line of followup research. It was extended to adaptive regularized cubic methods (ARC) by Cartis et al. (2011a, b), which enjoy the same iteration complexity as standard cubic regularization while having better empirical performance. The first attempt to make cubic regularization a Hessian-free method was done by Carmon and Duchi (2016), which solves the cubic sub-problem by gradient descent, requiring in total stochastic gradient and Hessian-vector product computations. Agarwal et al. (2017) solved cubic sub-problem by fast matrix inversion based on accelerated gradient descent, which requires stochastic gradient and Hessian-vector product computations. In the pure stochastic optimization setting, Tripuraneni et al. (2018) proposed stochastic cubic regularization method, which uses subsampled gradient and Hessian-vector product-based cubic subproblem solver, and requires stochastic gradient and Hessian-vector product computations. A closely related second-order method to cubic regularization methods are trust-region methods (Conn et al., 2000; Cartis et al., 2009, 2012, 2013). Recent studies (Blanchet et al., 2016; Curtis et al., 2017; Martínez and Raydan, 2017) proved that the trust-region method can achieve the same iteration complexity as the cubic regularization method. Xu et al. (2017) also extended trust-region method to subsampled trust-region method for nonconvex finite-sum optimization.
Local Minima Finding Besides cubic regularization and trust-region type methods, there is another line of research for finding approximate local minima, which is based on first-order optimization. Ge et al. (2015); Jin et al. (2017a) proved that (stochastic) gradient methods with additive noise are able to escape from nondegenerate saddle points and find approximate local minima. Carmon et al. (2018); Royer and Wright (2017); Allen-Zhu (2017); Xu et al. (2018); Allen-Zhu and Li (2018); Jin et al. (2017b); Yu et al. (2017, 2018); Zhou et al. (2018a); Fang et al. (2018) showed that by alternating first-order optimization and Hessian-vector product based negative curvature descent, one can find approximate local minima even more efficiently. Very recently, Fang et al. (2019); Jin et al. (2019) showed that stochastic gradient descent itself can escape from saddle points.
Variance Reduction Variance reduction techniques play an important role in our proposed algorithms. Variance reduction techniques were first proposed for convex finite-sum optimization, which use semi-stochastic gradient to reduce the variance of the stochastic gradient and improve the gradient complexity. Representative algorithms include Stochastic Average Gradient (SAG) (Roux et al., 2012), Stochastic Variance Reduced Gradient (SVRG) (Johnson and Zhang, 2013; Xiao and Zhang, 2014), SAGA (Defazio et al., 2014) and SARAH (Nguyen et al., 2017), to mention a few. For nonconvex finite-sum optimization problems, Garber and Hazan (2015); Shalev-Shwartz (2016) studied the case where each individual function is nonconvex, but their sum is still (strongly) convex. Reddi et al. (2016); Allen-Zhu and Hazan (2016) extended SVRG to noncovnex finite-sum optimization, which is able to converge to first-order stationary point with better gradient complexity than vanilla gradient descent. Fang et al. (2018); Zhou et al. (2018c); Wang et al. (2018a); Nguyen et al. (2019) further improved the gradient complexity for nonconvex finite-sum optimization to be (near) optimal.
Notation and Preliminaries
We begin with a few assumptions that are needed for later theoretical analyses of our algorithms.
The following assumption says that the gap between the function value at the initial point and the minimal function value is bounded.
We also need the following -gradient Lipschitz and -Hessian Lipschitz assumption.
Note that -gradient Lipschitz is not required in the original cubic regularization algorithm (Nesterov and Polyak, 2006) and the SVRC algorithm (Zhou et al., 2018d). However, for most other SVRC algorithms (Zhou et al., 2018b; Wang et al., 2018b; Zhang et al., 2018a), they need the -gradient Lipschitz assumption.
In addition, we need the difference between the stochastic gradient and the full gradient to be bounded.
It is worth noting that Assumption 3.3 is weaker than the assumption that each is Lipschitz continuous, which has been made in Kohler and Lucchi (2017); Zhou et al. (2018b); Wang et al. (2018b); Zhang et al. (2018a). We would also like to point out that we can make additional assumptions on the variances of the stochastic gradient and Hessian, such as the ones made in Tripuraneni et al. (2018). Nevertheless, making these additional assumptions does not improve the dependency of the gradient and Hessian complexities or the stochastic gradient and Hessian-vector product computations on and . Therefore we chose not making these additional assumptions on the variances.
The Proposed SRVRC Algorithm
In this section, we present SRVRC, a novel algorithm which utilizes new semi-stochastic gradient and Hessian estimators compared with previous SVRC algorithms. We also provide a convergence analysis of the proposed algorithm.
In order to reduce the computational complexity for calculating full gradient and full Hessian in (1.3), several ideas such as subsampled/stochastic gradient and Hessian (Kohler and Lucchi, 2017; Xu et al., 2017; Tripuraneni et al., 2018) and variance-reduced semi-stochastic gradient and Hessian (Zhou et al., 2018d; Wang et al., 2018b; Zhang et al., 2018a) have been used in previous work. SRVRC follows this line of work. The key idea is to use a new construction of semi-stochastic gradient and Hessian estimators, which are recursively updated in each iteration, and reset periodically after certain number of iterations (i.e., an epoch). This is inspired by the first-order variance reduction algorithms SPIDER (Fang et al., 2018) and SARAH (Nguyen et al., 2017). SRVRC constructs semi-stochastic gradient and Hessian as in (3.1) and (3.2) respectively. To be more specific, in the -th iteration when or , where are the epoch lengths of gradient and Hessian, SRVRC will set the semi-stochastic gradient and Hessian to be a subsampled gradient and Hessian at point , respectively. In the -th iteration when or , SRVRC constructs semi-stochastic gradient and Hessian and based on previous estimators and recursively. With semi-stochastic gradient , semi-stochastic Hessian and -th Cubic penalty parameter , SRVRC constructs the -th Cubic subproblem and solves for the solution to as -th update direction as (3.3). If is less than a given threshold which we set it as , SRVRC returns as its output. Otherwise, SRVRC updates and continues the loop.
The main difference between SRVRC and previous stochastic cubic regularization algorithms (Kohler and Lucchi, 2017; Xu et al., 2017; Zhou et al., 2018d, b; Wang et al., 2018b; Zhang et al., 2018a) is that SRVRC adapts new semi-stochastic gradient and semi-stochastic Hessian estimators, which are defined recursively and have smaller asymptotic variance. The use of such semi-stochastic gradient has been proved to help reduce the gradient complexity in first-order nonconvex finite-sum optimization for finding stationary points (Fang et al., 2018; Wang et al., 2018a; Nguyen et al., 2019). Our work takes one step further to apply it to Hessian, and we will later show that it helps reduce the gradient and Hessian complexities in second-order nonconvex finite-sum optimization for finding local minima.
2 Convergence Analysis
In this subsection, we present our theoretical results about SRVRC. While the idea of using variance reduction technique for cubic regularization is hardly new, the new semi-stochastic gradient and Hessian estimators in (3.1) and (3.2) bring new technical challenges in the convergence analysis.
To describe whether a point is a local minimum, we follow the original cubic regularization work (Nesterov and Polyak, 2006) to use the following criterion :
For any , define as \mu(\mathbf{x})=\max\{\|\nabla F(\mathbf{x})\|_{2}^{3/2},-\lambda_{\min}^{3}\big{(}\nabla^{2}F(\mathbf{x})\big{)}/{\rho^{3/2}}\}.
It is easy to note that if and only if is an -approximate local minimum. Thus, in order to find an -approximate local minimum, it suffices to find a point which satisfies .
The following theorem provides the convergence guarantee of SRVRC for finding an -approximate local minimum.
Under Assumptions 3.1, 3.2 and 3.3, set the cubic penalty parameter for any and the total iteration number . For such that or , set the gradient sample size and Hessian sample size as
For such that or , set the gradient sample size and Hessian sample size as
Then with probability at least , SRVRC outputs satisfying , i.e., an -approximate local minimum.
Next corollary spells out the exact gradient complexity and Hessian complexity of SRVRC to find an -approximate local minimum.
Under the same conditions as Theorem 4.2, if we set as and , and set as their lower bounds in (4.1)- (4.4), then with probability at least , SRVRC will output an -approximate local minimum within
For SRVRC, if we assume to be constants, then its gradient complexity is , and its Hessian complexity is . Regarding Hessian complexity, suppose that , then the Hessian complexity of SRVRC can be simplified as . Compared with existing SVRC algorithms (Zhou et al., 2018b; Zhang et al., 2018a; Wang et al., 2018b), SRVRC outperforms the best-known Hessian sample complexity by a factor of . In terms of gradient complexity, SRVRC outperforms STR2 (Shen et al., 2019) by a factor of when .
Note that both Theorem 4.2 and Corollary 4.3 still hold when Assumption 3.3 does not hold. In that case, and SRVRC’s Hessian complexity remains the same, while its gradient complexity can be potentially worse, i.e., , which degenerates to that of STR1 (Shen et al., 2019).
Hessian-Free SRVRC
While SRVRC adapts novel semi-stochastic gradient and Hessian estimators to reduce both the gradient and Hessian complexities, it has three limitations for high-dimensional problems with : (1) it needs to compute and store the Hessian matrix, which needs computational time and storage space; (2) it needs to solve cubic subproblem exactly, which requires computational time because it needs to compute the inverse of a Hessian matrix (Nesterov and Polyak, 2006); and (3) it cannot leverage the Hessian-vector product-based cubic subproblem solvers (Agarwal et al., 2017; Carmon and Duchi, 2016, 2018) because of the use of the semi-stochastic Hessian estimator. It is interesting to ask whether we can modify SRVRC to overcome these shortcomings.
Note that although the subproblem depends on , never explicitly computes this matrix. Instead, it only provides the subproblem solver access to through stochastic Hessian-vector product function . The subproblem solver performs gradient-based optimization to solve the subproblem as depends on only via . In detail, following Tripuraneni et al. (2018), uses Cubic-Subsolver (See Algorithms 3 and 4 in Appendix G) and Cubic-Finalsolver from (Carmon and Duchi, 2016), to find an approximate solution to the cubic subproblem in (3.3). Both Cubic-Subsolver and Cubic-Finalsolver only need to access gradient and Hessian-vector product function along with other problem-dependent parameters. With the output from Cubic-Subsolver, decides either to update as or to exit the loop. For the later case, will call Cubic-Finalsolver to output , and takes as its final output.
The main differences between SRVRC and are two-fold. First, only needs to compute stochastic gradient and Hessian-vector product. Since both of these two computations only take time in many applications in machine learning, is suitable for high-dimensional problems. In the sequel, following Agarwal et al. (2017); Carmon et al. (2018); Tripuraneni et al. (2018), we do not distinguish stochastic gradient and Hessian-vector product computations and consider them to have the same runtime complexity. Second, instead of solving cubic subproblem exactly, adopts approximate subproblem solver Cubic-Subsolver and Cubic-Finalsolver, both of which only need to access gradient and Hessian-vector product function, and again only take time. Thus, is computational more efficient than SRVRC when .
2 Convergence Analysis
We now provide the convergence guarantee of , which ensures that will output an -approximate local minimum.
Under Assumptions 3.1, 3.2, 3.3, suppose . Set the cubic penalty parameter for any and the total iteration number . Set the Hessian-vector product sample size as
For such that , set the gradient sample size as
For such that , set the gradient sample size as
Then with probability at least , outputs satisfying , i.e., an -approximate local minimum.
The following corollary calculates the total amount of stochastic gradient and Hessian-vector product computations of to find an -approximate local minimum.
Under the same conditions as Theorem 5.1, if set and set as their lower bounds in (5.1)-(5.3), then with probability at least , will output an -approximate local minimum within
stochastic gradient and Hessian-vector product computations.
For , if we assume are constants, then (5.4) is . For stochastic algorithms, the regime is of most interest. In this regime, (5.4) becomes . Compared with other local minimum finding algorithms based on stochastic gradient and Hessian-vector product, outperforms the results achieved by Tripuraneni et al. (2018) and Allen-Zhu (2018) by a factor of . also matches the best-known result achieved by a recent first-order algorithm proposed in (Fang et al., 2018). Note that the algorithm proposed by Fang et al. (2018) needs to alternate the first-order finite-sum optimization algorithm SPIDER and negative curvature descent. In sharp contrast, is a pure cubic regularization type algorithm and does not need to calculate the negative curvature direction.
It is worth noting that both Theorem 5.1 and Corollary 5.2 still hold when Assumption 3.3 does not hold, and ’s runtime complexity remains the same. The only difference is: without Assumption 3.3, we need to use full gradient (i.e., ) instead of subsampled gradient at each iteration .
3 Discussions on runtime complexity
We would like to further compare the runtime complexity between SRVRC and . In specific, SRVRC needs time to construct semi-stochastic gradient and time to construct semi-stochastic Hessian. SRVRC also needs time to solve cubic subproblem for each iteration. Thus, with the fact that the total number of iterations is by Corollary 4.3, SRVRC needs
runtime to find an -approximate local minimum if we regard as constants. As we mentioned before, for many machine learning problems, both stochastic gradient and Hessian-vector product computations only need time, therefore the runtime of is . We conclude that outperforms SRVRC when is large, which is in accordance with the fact that Hessian-free methods are superior for high dimension machine learning tasks. On the other hand, a careful calculation can show that the runtime of SRVRC can be less than that of when is moderately small. This is also reflected in our experiments in Section 6.
Experiments
In this section, we present numerical experiments on different nonconvex empirical risk minimization (ERM) problems and on different datasets to validate the advantage of our proposed SRVRC and algorithms for finding approximate local minima.
Baselines: We compare our algorithms with the following algorithms: SPIDER+ (Fang et al., 2018), which is the local minimum finding version of SPIDER, stochastic trust region (STR1, STR2) (Shen et al., 2019), subsampled cubic regularization (SCR) (Kohler and Lucchi, 2017), stochastic cubic regularization (STC) (Tripuraneni et al., 2018), stochastic variance-reduced cubic regularization (SVRC) (Zhou et al., 2018d), sample efficient SVRC (Lite-SVRC) (Zhou et al., 2018b; Wang et al., 2018b; Zhang et al., 2018a).
Parameter Settings and Subproblem Solver For each algorithm, we set the cubic penalty parameter adaptively based on how well the model approximates the real objective as suggested in (Cartis et al., 2011a, b; Kohler and Lucchi, 2017). For SRVRC, we set for the simplicity and set gradient and Hessian batch sizes and as follows:
For , we set gradient batch sizes the same as SRVRC and Hessian batch sizes . We tune over the grid , over the grid , and over the grid for the best performance. For SCR, SVRC, Lite-SVRC, and SRVRC, we solve the cubic subproblem using the cubic subproblem solver discussed in (Nesterov and Polyak, 2006). For STR1 and STR2, we solve the trust-region subproblem using the exact trust-region subproblem solver discussed in (Conn et al., 2000). For STC and , we use Cubic-Subsolver (Algorithm 3 in Appendix G) to approximately solve the cubic subproblem. All algorithms are carefully tuned for a fair comparison.
where is the softmax function and .
We plot the logarithmic function value gap with respect to CPU time in Figure 1. From Figure 1(a) to 1(f), we can see that for the low dimension optimization task on a9a, covtype and ijcnn1, our SRVRC outperforms all the other algorithms with respect to CPU time. We can also observe that the stochastic trust region method STR1 is better than STR2, which is well-aligned with our discussion before. The SPIDER+ does not perform as well as other second-order methods, even though its stochastic gradient and Hessian complexity is comparable to second-order methods in theory. Meanwhile, we also notice that always outperforms STC, which suggests that the variance reduction technique is useful. For high dimension optimization task mnist, cifar10 and SVHN, only SPIDER+, STC and are able to make notable progress and outperforms the other two. This is again consistent with our theory and discussions in Section 5. Overall, our experiments clearly validate the advantage of SRVRC and , and corroborate the theory of both algorithms.
Conclusions and Future Work
In this work we present two faster SVRC algorithms namely SRVRC and to find approximate local minima for nonconvex finite-sum optimization problems. SRVRC outperforms existing SVRC algorithms in terms of gradient and Hessian complexities, while further outperforms the best-known runtime complexity for existing CR based algorithms. Whether our algorithms have achieved the optimal complexity under the current assumptions is still an open problem, and we leave it as a future work.
Appendix A Proofs in Section 4
To prove Theorem 4.2, we need the following lemma adapted from Zhou et al. (2018d), which characterizes that can be bounded by and the norm of difference between semi-stochastic gradient and Hessian.
Next lemma gives bounds on the inner products and \langle\big{(}\nabla^{2}F(\mathbf{x}_{t})-\mathbf{U}_{t}\big{)}\mathbf{h},\mathbf{h}\rangle.
We also need the following two lemmas, which show that semi-stochastic gradient and Hessian and estimators are good approximations to true gradient and Hessian.
Suppose that satisfies (4.1) and (4.3), then conditioned on , with probability at least , we have that for all ,
Suppose that satisfies (4.2) and (4.4), then conditioned on , with probability at least , we have that for all ,
Given all the above lemmas, we are ready to prove Theorem 4.2.
Suppose that SRVRC terminates at iteration , then for all . We have
where the second inequality holds due to the fact that , and Lemma A.2. By Lemmas A.3 and A.4, with probability at least , for all , we have that
for all . Substituting (A.4) into (A.3), we have
Telescoping (A.5) from , we have
Recall that we have from the condition of Theorem 4.2, then by (A.6), we have . Thus, we have . Denote , then we have
where the first inequality holds due to Lemma A.1 with and . This completes our proof. ∎
A.2 Proof of Corollary 4.3
Suppose that SRVRC terminates at iteration. Telescoping (A.5) from to , we have
where the last inequality holds since is set to be as the conditions of Corollary 4.3 suggests. (A.7) implies that . Thus, we have
where the first inequality holds due to Hölder’s inequality inequality, and the second inequality is due to . We first consider the total gradient sample complexity , which can be bounded as
where , the second inequality holds due to (A.8), and the last equality holds due to the choice of . We then consider the total Hessian sample complexity , which can be bounded as
where , the second inequality holds due to (A.8), and the last equality holds due to the choice of . ∎
Appendix B Proofs in Section 5
In this section, we denote for simplicity.
We need the following two lemmas, which bound the variance of semi-stochastic gradient and Hessian estimators.
Suppose that satisfies (5.2) and (5.3), then conditioned on , with probability at least , we have that for all ,
The proof is very similar to that of Lemma A.3, hence we omit it. ∎
Suppose that satisfies (5.1), then conditioned on , with probability at least , we have that
The proof is very similar to that of Lemma A.4, hence we omit it. ∎
We have the following lemma to guarantee that by Algorithm 3 Cubic-Subsolver, the output satisfies that sufficient decrease of function value will be made and the total number of iterations is bounded by .
For any , suppose that or . We set . Then for , with probability at least , will return satisfying . within
iterations, where is a constant.
We have the following lemma which provides the guarantee for the dynamic of gradient steps in Cubic-Finalsolver.
Then for Cubic-Finalsolver, suppose that , then each iterate in Cubic-Finalsolver satisfies that , and is -smooth.
With these lemmas, we begin our proof of Theorem 5.1.
Suppose that terminates at iteration . Then . We first claim that . Otherwise, suppose , then we have that for all ,
where the second inequality holds due to and Lemma A.2. By Lemma B.3 and union bound, we know that with probability at least , we have
where we use the fact that . By Lemmas B.1 and B.2, we know that with probability at least , for all , we have
Substituting (B.2) and (B.3) into (B.1), we have
Telescoping (B.4) from to , we have
where the last inequality holds since we assume from the condition of Theorem 5.1. (B.5) leads to a contradiction, thus we have . Therefore, by union bound, with probability at least , Cubic-Finalsolver is executed by at iteration. We have that and by Lemma B.3.
The only thing left is to check that we indeed find a second-order stationary point, , by Cubic-Finalsolver. We first need to check that the choice of satisfies that by Lemma B.4, where
We can check that with the assumption that , if , then holds.
For simplicity, we denote . Then we have
where the first inequality holds due to Lemma A.1, the second inequality holds due to the fact that from Lemma B.4, the last inequality holds due to the facts that from Cubic-Finalsolver and by Lemma B.3. ∎
B.2 Proof of Corollary 5.2
We have the following lemma to bound the total number of iterations of Algorithm 4 Cubic-Finalsolver.
If , then Cubic-Finalsolver will terminate within iterations, where is a constant.
where the first inequality holds due to Hölder’s inequality, the second inequality holds due to the facts that and by (B.5). We first consider the total stochastic gradient computations, , which can be bounded as
where , the second inequality holds due to (B.6), the last equality holds due to the fact . We now consider the total amount of Hessian-vector product computations , which includes from Cubic-Subsolver and from Cubic-Finalsolver. By Lemma B.3, we know that at -th iteration of , Cubic-Subsolver has iterations, which needs Hessian-vector product computations each time. Thus, we have
where , the first inequality holds due to the fact that , the second inequality holds due to the fact that , the last inequality holds due to the fact that . For , we have
where the first inequality holds due to the fact that , the second inequality holds due to the fact that by Lemma B.5. Since at each iteration we need Hessian-vector computations.
Combining (B.7), (B.8) and (B.9), we know that the total stochastic gradient and Hessian-vector product computations are bounded as
Appendix C Proofs of Technical Lemmas in Appendix A
We have the following lemmas from Zhou et al. (2018d)
(Zhou et al., 2018d) If , then we have
(Zhou et al., 2018d) If , then we have
where the second inequality holds due to the fact that for any , we have . By Lemma C.2, we have
where the second inequality holds due to the fact that for any , we have . Thus we have
where the inequality holds due to (C.1), (C.2) and the fact that . ∎
C.2 Proof of Lemma A.2
where the first inequality holds due to Cauchy–Schwarz inequality, the second inequality holds due to Young’s inequality. We also have
where the first inequality holds due to Cauchy–Schwarz inequality, the second inequality holds due to Young’s inequality. ∎
C.3 Proof of Lemma A.3
Conditioned on , with probability at least , we have
First, we have , where
where the second inequality holds due to (4.1). For , with probability at least , we have
where the second inequality holds due to (4.3). Conditioned on , by union bound, with probability at least (C.5) or (C.6) holds for all . Then for given , by vector Azuma-Hoeffding inequality in Lemma F.1, conditioned on, with probability at least we have
Finally, by union bound, we have that with probability at least , for all , we have (C.7) holds. ∎
C.4 Proof of Lemma A.4
Conditioned on , with probability at least , we have the following concentration inequality
First, we have , where
where the second inequality holds due to (4.1). For , with probability at least , we have
where the second inequality holds due to (4.3). Conditioned on , by union bound, with probability at least (C.10) or (C.11) holds for all . Then for given , by Matrix Azuma inequality Lemma F.2, conditioned on, with probability at least we have
Finally, by union bound, we have that with probability at least , for all , we have (C.12) holds.
Appendix D Proofs of Technical Lemmas in Appendix B
We have the following lemma which guarantees the effectiveness of Cubic-Subsolver in Algorithm 3.
then satisfies that .
We simply set , , , , , and . We have , then we set . With the choice of where and the assumption that , we can check that . We also have that and (D.1) holds. Thus, by Lemma D.1, we have
By the choice of in Cubic-Subsolver, we have
D.2 Proof of Lemma B.5
We have the following lemma which provides the guarantee for the function value in Cubic-Finalsolver.
In Cubic-Finalsolver we are focusing on minimizing . We have that and by Lemma B.3. We can check that satisfies that , where is defined in Lemma B.4, when . From Lemma B.4 we also know that is -smooth, which satisfies that . Thus, by standard gradient descent analysis, to get a point where , Cubic-Finalsolver needs to run
iterations, where we denote by the starting point of Cubic-Finalsolver. By directly computing, we have . By Lemma D.2, we have
Thus, (D.2) can be further bounded as . ∎
Appendix E Proofs of Additional Lemmas in Appendix C
We only need to consider the case where . For each , let
where the second inequality holds due to the -smoothness of and . Thus by vector Azuma-Hoeffding inequality in Lemma F.1, we have that with probability at least ,
E.2 Proof of Lemma C.4
We only need to consider the case where . For each , let
where the second inequality holds due to -Hessian Lipschitz continuous of and . Then by Matrix Azuma inequality Lemma F.2, we have that with probability at least ,
Appendix F Auxiliary Lemmas
We have the following vector Azuma-Hoeffding inequality:
We have the following Matrix Azuma inequality :
(Tropp, 2012) Consider a finite adapted sequence of self-adjoint matrices in dimension , and a fixed sequence of self-adjoint matrices that satisfy
Then we have that with probability at least ,
Appendix G Additional Algorithms and Functions
Due to space limit, we include the approximate solvers (Carmon and Duchi, 2016) for the cubic subproblem in this section for the purpose of self-containedness.