arxiv: v2 [math.oc] 1 Nov 2017

Similar documents
Adaptive Negative Curvature Descent with Applications in Non-convex Optimization

Third-order Smoothness Helps: Even Faster Stochastic Optimization Algorithms for Finding Local Minima

Convergence of Cubic Regularization for Nonconvex Optimization under KŁ Property

arxiv: v1 [math.oc] 9 Oct 2018

Worst-Case Complexity Guarantees and Nonconvex Smooth Optimization

arxiv: v4 [math.oc] 5 Jan 2016

arxiv: v1 [math.oc] 1 Jul 2016

First Efficient Convergence for Streaming k-pca: a Global, Gap-Free, and Near-Optimal Rate

Stochastic Cubic Regularization for Fast Nonconvex Optimization

arxiv: v3 [math.oc] 1 Mar 2018

Stochastic Variance Reduction for Nonconvex Optimization. Barnabás Póczos

Tutorial: PART 2. Optimization for Machine Learning. Elad Hazan Princeton University. + help from Sanjeev Arora & Yoram Singer

How to Escape Saddle Points Efficiently? Praneeth Netrapalli Microsoft Research India

arxiv: v4 [math.oc] 24 Apr 2017

References. --- a tentative list of papers to be mentioned in the ICML 2017 tutorial. Recent Advances in Stochastic Convex and Non-Convex Optimization

Sub-Sampled Newton Methods for Machine Learning. Jorge Nocedal

Mini-Course 1: SGD Escapes Saddle Points

Provable Non-Convex Min-Max Optimization

Non-Convex Optimization in Machine Learning. Jan Mrkos AIC

Complexity analysis of second-order algorithms based on line search for smooth nonconvex optimization

Oracle Complexity of Second-Order Methods for Smooth Convex Optimization

Contents. 1 Introduction. 1.1 History of Optimization ALG-ML SEMINAR LISSA: LINEAR TIME SECOND-ORDER STOCHASTIC ALGORITHM FEBRUARY 23, 2016

arxiv: v1 [cs.lg] 17 Nov 2017

Non-convex optimization. Issam Laradji

Optimisation non convexe avec garanties de complexité via Newton+gradient conjugué

Improved Optimization of Finite Sums with Minibatch Stochastic Variance Reduced Proximal Iterations

Stochastic Optimization Methods for Machine Learning. Jorge Nocedal

Course Notes for EE227C (Spring 2018): Convex Optimization and Approximation

Approximate Second Order Algorithms. Seo Taek Kong, Nithin Tangellamudi, Zhikai Guo

Nonlinear Optimization Methods for Machine Learning

arxiv: v4 [math.oc] 11 Jun 2018

Optimization for Machine Learning (Lecture 3-B - Nonconvex)

Characterization of Gradient Dominance and Regularity Conditions for Neural Networks

SGD CONVERGES TO GLOBAL MINIMUM IN DEEP LEARNING VIA STAR-CONVEX PATH

arxiv: v1 [math.oc] 10 Oct 2018

Second-Order Methods for Stochastic Optimization

SADAGRAD: Strongly Adaptive Stochastic Gradient Methods

Asynchronous Mini-Batch Gradient Descent with Variance Reduction for Non-Convex Optimization

SVRG++ with Non-uniform Sampling

Non-Convex Optimization. CS6787 Lecture 7 Fall 2017

On Acceleration with Noise-Corrupted Gradients. + m k 1 (x). By the definition of Bregman divergence:

arxiv: v1 [cs.lg] 6 Sep 2018

Online Generalized Eigenvalue Decomposition: Primal Dual Geometry and Inverse-Free Stochastic Optimization

On the fast convergence of random perturbations of the gradient flow.

Sub-Sampled Newton Methods

Higher-Order Methods

Finite-sum Composition Optimization via Variance Reduced Gradient Descent

STA141C: Big Data & High Performance Statistical Computing

A random perturbation approach to some stochastic approximation algorithms in optimization.

Linear Convergence under the Polyak-Łojasiewicz Inequality

Day 3 Lecture 3. Optimizing deep networks

Stochastic Gradient Descent with Only One Projection

Linear Convergence under the Polyak-Łojasiewicz Inequality

Stochastic and online algorithms

arxiv: v1 [math.oc] 16 Oct 2018

Stochastic Optimization

arxiv: v1 [math.oc] 12 Oct 2018

Composite nonlinear models at scale

Comparison of Modern Stochastic Optimization Algorithms

IFT Lecture 6 Nesterov s Accelerated Gradient, Stochastic Gradient Descent

IPAM Summer School Optimization methods for machine learning. Jorge Nocedal

On the Local Minima of the Empirical Risk

A Subsampling Line-Search Method with Second-Order Results

A Unified Analysis of Stochastic Momentum Methods for Deep Learning

ECS289: Scalable Machine Learning

arxiv: v1 [math.oc] 7 Dec 2018

Recent Advances in Non-Convex Optimization and its Implications to Learning

ECE G: Special Topics in Signal Processing: Sparsity, Structure, and Inference

Neural Network Training

Large-scale Stochastic Optimization

COR-OPT Seminar Reading List Sp 18

arxiv: v1 [math.oc] 7 Jun 2018

Convex Until Proven Guilty : Dimension-Free Acceleration of Gradient Descent on Non-Convex Functions

arxiv: v3 [math.oc] 23 Jan 2018

Stochastic and Adversarial Online Learning without Hyperparameters

Optimizing Nonconvex Finite Sums by a Proximal Primal-Dual Method

Overparametrization for Landscape Design in Non-convex Optimization

Stochastic Compositional Gradient Descent: Algorithms for Minimizing Nonlinear Functions of Expected Values

This manuscript is for review purposes only.

Tutorial on: Optimization I. (from a deep learning perspective) Jimmy Ba

Stochastic Gradient Descent with Variance Reduction

How to Characterize the Worst-Case Performance of Algorithms for Nonconvex Optimization

A Stochastic PCA Algorithm with an Exponential Convergence Rate. Ohad Shamir

Incremental Reshaped Wirtinger Flow and Its Connection to Kaczmarz Method

ECS171: Machine Learning

Proximal Minimization by Incremental Surrogate Optimization (MISO)

A Conservation Law Method in Optimization

SVRG Escapes Saddle Points

min f(x). (2.1) Objectives consisting of a smooth convex term plus a nonconvex regularization term;

Mini-batch Stochastic Approximation Methods for Nonconvex Stochastic Composite Optimization

Gradient Descent. Dr. Xiaowei Huang

An Evolving Gradient Resampling Method for Machine Learning. Jorge Nocedal

Stochastic Optimization Algorithms Beyond SG

Optimization Tutorial 1. Basic Gradient Descent

Variance-Reduced and Projection-Free Stochastic Optimization

Approximate Newton Methods and Their Local Convergence

Line Search Methods for Unconstrained Optimisation

Fast Stochastic Optimization Algorithms for ML

arxiv: v3 [cs.lg] 15 Sep 2018

Stable Adaptive Momentum for Rapid Online Learning in Nonlinear Systems

Transcription:

Stochastic Non-convex Optimization with Strong High Probability Second-order Convergence arxiv:1710.09447v [math.oc] 1 Nov 017 Mingrui Liu, Tianbao Yang Department of Computer Science The University of Iowa, Iowa City, IA 54 mingrui-liu, tianbao-yang@uiowa.edu Abstract In this paper, we study stochastic non-convex optimization with non-convex random functions. Recent studies on non-convex optimization revolve around establishing second-order convergence, i.e., converging to a nearly second-order optimal stationary points. However, existing results on stochastic non-convex optimization are limited, especially with a high probability second-order convergence. We propose a novel updating step named NCG-S by leveraging a stochastic gradient and a noisy negative curvature of a stochastic Hessian, where the stochastic gradient and Hessian are based on a proper mini-batch of random functions. Building on this step, we develop two algorithms and establish their high probability second-order convergence. To the best of our knowledge, the proposed stochastic algorithms are the first with a second-order convergence in high probability and a time complexity that is almost linear in the problem s dimensionality. 1 Introduction In this paper, we consider the following stochastic optimization problem: min fx = E ξ [fx;ξ], 1 x R d where fx; ξ is a random function but not necessarily convex. The above formulation plays an important role for solving many machine learning problems, e.g., deep learning [1]. A prevalent algorithm for solving the problem is stochastic gradient descent SGD [10]. However, SGD can only guarantee convergence to a first-order stationary point i.e., fx ǫ 1, where denotes the Euclidean norm for non-convex optimization, which could be a saddle point. A potential solution to address this issue is to find a nearly second-order stationary point x such that fx ǫ 1 1, and λ min fx ǫ 1, whereλ min denotes the smallest eigenvalue. When the objective function is non-degenerate e.g., strict saddle [9] or whose Hessian at all saddle points has a negative eigenvalue, an approximate second-order stationary point is close to a local minimum. Although there emerged a number of algorithms for finding a nearly second-order stationary point for non-convex optimization with a deterministic function [13, 7, 5, 6, 1, 4, 16], results for stochastic non-convex optimization are still limited. There are three closely related works [9, 18, ]. A summary of algorithms in these works and their convergence results is presented in Table 1. It is notable that Natasha, which involves switch between several sub-routines including SGD, a degenerate version of Natasha1.5 for finding a first-order stationary point, and an online power method i.e., the Oja s algorithm [14] for computing the negative curvature i.e., the eigen-vector corresponding to the minium eigen-value of the Hessian matrix, is more complex than noisy SGD and SGLD. In this paper, we propose new stochastic optimization algorithms for solving 1. Similar to several existing algorithms, we also use the negative curvature to escape from saddle points. The key differ- 31st Conference on Neural Information Processing Systems NIPS 017, Long Beach, CA, USA.

Table 1: Comparison with existing stochastic algorithms for achieving an ǫ 1,ǫ -second-order stationary solution to 1, where p is a number at least 4, IFO incremental first-order oracle and ISO incremental second-order oracle are terminologies borrowed from [15], representing fx; ξ and fx;ξv respectively, T h denotes the runtime of ISO and T g denotes the runtime of IFO. The proposed algorithms SNCG have two variants with different time complexities, where the result marked with has a practical improvement detailed later. algo. oracle second-order guarantee in time complexity expectation or high probability Noisy SGD [9] IFO ǫ,ǫ 1/4, high probability Õ T gd p ǫ 4 SGLD [18] IFO ǫ,ǫ 1/, high probability Õ T gd p ǫ 4 Natasha [] IFO + ISO ǫ,ǫ 1/, expectation Õ T gǫ 3.5 +T h ǫ.5 SNCG IFO + ISO ǫ,ǫ 1/, high probability Õ T gǫ 4 +T h ǫ 3 Õ T gǫ 4 +T h ǫ.5 ence is that we compute a noisy negative curvature based on a proper mini-batch of sampled random functions. A novel updating step is proposed that follows a stochastic gradient or the noisy negative curvature depending on which decreases the objective value most. Building on this step, we present two algorithms that have different time complexities. A summary of our results and comparison with previous similar results are presented in Table 1. To the best of our knowledge, the proposed algorithms are the first for stochastic non-convex optimization with a second-order convergence in high probability and a time complexity that is almost linear in the problem s dimensionality. It is also notable that our result is much stronger than the mini-batch SGD analyzed in [11] for stochastic non-convex optimization in that i we use the same number of IFO as in [11] but achieve the second-order convergence using a marginal number of ISO; ii our high probability convergence is for a solution from a single run of the proposed algorithms instead of from multiple runs and using a boosting technique as in [11]. Before moving to the next section, we would like to remark that stochastic algorithms with secondorder convergence result are recently proposed for solving a finite-sum problem [15], which alternates between a first-order sub-routine e.g., stochastic variance reduced gradient and a secondorder sub-routine e.g., Hessian descent. Since full gradients are computed occasionally, they are not applicable to the general stochastic non-convex optimization problem 1 and hence are excluded from comparison. Nevertheless, our idea of the proposed NCG-S step that lets negative curvature descent competes with the gradient descent can be borrowed to reduce the number of stochastic Hessian-vector products in their Hessian descent. We will elaborate this point later. Preliminaries and Building Blocks Our goal is to find an ǫ 1,ǫ -second order stationary point x such that fx ǫ 1, and λ min fx ǫ. To this end, we make the following assumptions regarding 1. Assumption 1. i Every random function fx; ξ is twice differentiable, and it has Lipschitz continuous gradient, i.e., there existsl 1 > 0 such that fx;ξ fy;ξ L 1 x y, iifx has Lipschitz continuous Hessian, i.e., there existsl > 0 such that fx fy L x y, iii given an initial pointx 0, there exists < such thatfx 0 fx, where x denotes the global minimum of fx; iv there exists G > 0 such that E[exp fx; ξ fx /G] exp1 holds. Remark: The first three assumptions are standard assumptions for non-convex optimization in order to establish second-order convergence. The last assumption is standard for stochastic optimization necessary for high probability analysis. The proposed algorithms require noisy first-order information at each iteration and maybe noisy second-order information. We first discuss approaches to compute these information, which will lead us to the updating step NCG-S. To compute noisy first-order information, we use incremental first-order oracle IFO that takes x as input and returns fx;ξ. In particular, at a point x we sample a set of random variables S 1 = {ξ 1,ξ,...,} and compute a stochastic gradient gx = 1 S 1 ξ i S 1 fx;ξ i such that gx fx ǫ 4 min 1 ǫ 1,ǫ /4L holds with high probability. This can be guaranteed by the following lemma.

Algorithm 1: The stochastic NCG step: x +,v Hxv = NCG-Sx,ε,δ,ǫ 1,ǫ 1 Input: x, ε,δ, ǫ 1,ǫ ; let gx andhx be a stochastic gradient and Hessian according to Lemma 1 and ; 3 Find a unit vectorv such thatλ min Hx v Hxv ε according to Lemma 3; 4 if ǫ L v Hxv 11ǫ3 48L > gx 4L 1 ǫ 1 then 5 Computex + = x ǫ L signv gxv; 6 else 7 Computex + = x 1 L 1 gx; 8 returnx +,v Hxv Lemma 1. Suppose Assumption 1 iv holds. Let gx = 1 S 1 ξ i S 1 fx;ξ i. For any ǫ 4,δ 0,1,x R d, when S 1 4G 1+3log 1/δ, we havepr gx fx ǫ ǫ 4 1 δ. 4 The lemma can be proved by using large deviation theorem of vector-valued martingales e.g., see [11][Lemma 4]. To compute noisy second-order information, we calculate a noisy negative curvature of a stochastic Hessian that is sufficiently close to the true Hessian. In particular, at a point x we sample a set of random variables S = {ξ 1,ξ,...,} and compute a noisy negative curvature v of the stochastic Hessian Hx = 1 S ξ i fx;ξ S i, where S is sufficiently large such that Hx fx ǫ 3 ǫ /4 holds with high probability, where denotes the spectral norm of a matrix. This can be guaranteed according to the following lemma. Lemma. Suppose Assumption 1 i holds. LetHx = 1 S ξ i S fx;ξ i. For anyǫ 3,δ 0,1,x R d, when S 16L 1 ǫ 3 log d δ, we havepr Hx fx ǫ 3 1 δ. The above lemma can be proved by using matrix concentration inequalities. Please see [17][Lemma 4] for a proof. To compute a noisy negative curvature of Hx, we can leverage approximate PCA algorithms [3, 8] using the incremental second-order oracle ISO that can compute fx;ξv. Lemma 3. Let H = 1 m m i=1 H i where H i L 1. There exists a randomized algorithmasuch that with probability at least 1 δ, A produces a unit vector v satisfying λ min H v Hv ε with a time complexity of ÕT1 h max{m,m3/4 L 1 /ε}, where T h denotes the time of computing H i v andõ suppresses a logarithmic term ind,1/δ,1/ε. NCG-S: the updating step. With the approaches for computing noisy first-order and second-order information, we present a novel updating step called NCG-S in Algorithm 1, which uses a competing idea that takes a step along the noisy negative gradient direction or the noisy negative curvature direction depending on which decreases the objective value more. One striking feature of NCG-S is that the noise level in computing a noisy negative curvature of Hx is set to a free parameter ε instead of the target accuracy level ǫ as in many previous works [1, 4, 17], which allows us to design an algorithm with a much reduced number of ISO calls in practice. The following lemma justifies the fact of sufficient decrease in terms of the objective value of each NCG-S step. Lemma 4. Suppose Assumption 1 holds. Conditioned on the event A = { Hx j fx j ǫ 3 } { gx j fx j ǫ 4 } where ǫ 3 ǫ /4 and ǫ 4 min 1 ǫ 1,ǫ /4L, the update x j+1 = NCG-Sx j,ε,δ,ǫ satisfies fx j fx j+1 1 max 4L 1 gx j ǫ 1, ǫ v j Hxjvj 11ǫ3 L. 48L 3 The Proposed Algorithms: SNCG In this section, we present two variants of the proposed algorithms based on the NCG-S step shown in Algorithm and Algorithm 3. The differences of these two variants are i SNCG-1 uses NCG-S at every iteration to update the solution, while SNCG- only uses NCG-S when the approximate gradient s norm is small; ii the noise level ε for computing the noisy negative curvature as in 3

Algorithm : SNCG-1: x 0,ǫ 1,α,δ 1 Input: x 0,ǫ 1,α, δ Set x 1 = x 0,ǫ = ǫ α 1,δ = δ/1+max 48L ǫ 3, 8L1 ǫ 1 3 forj = 1,,..., do 4 x j+1,v j Hx jv j = NCG-Sx j,maxǫ, gx j α /,δ,ǫ 1,ǫ 5 if v j Hx jv j > ǫ / and gx j ǫ 1 then 6 returnx j Algorithm 3: SNCG-: x 0,ǫ 1,δ 1 Input: x 0,ǫ 1,δ Set x 1 = x 0,δ = δ/1+max 48L ǫ 3, 8L1 ǫ 1 3 forj = 1,,..., do 4 Computegx j according to Lemma 1 5 if gx j ǫ 1 then 6 computex j+1 = x j 1 L 1 gx j // SG step 7 else 8 computex j+1,v j Hx jv j = NCG-Sx j,ǫ /,δ,ǫ 1,ǫ 9 ifv j Hx jv j > ǫ / then 10 returnx j Lemma 3 in SNCG-1 is set to maxǫ, gx j α / adaptive to the magnitude of the stochastic gradient, where α 0,1] is a parameter that characterizes ǫ = ǫ α 1. In contrast, the noise level ε in SNCG- is simply set to ǫ /. These differences lead to different time complexities of the two algorithms. Theorem 1. Suppose Assumption 1 holds, ǫ 3 ǫ /4 and ǫ 4 min 1 ǫ 1,ǫ /4L. 48L With probability 1 δ, SNCG-1 terminates with at most [1 + max, 8L1 ] ǫ 3 ǫ 1 NCG-S steps, and furthermore, each NCG-S step requires time in the order of Õ T h S +T h S 3/4 L1 maxǫ, gx j + S α 1/ 1 T g ; SNCG- terminates with at most ǫ 1 SG steps and at most 1 + 48L3 NSG-S steps, each NCG-S step requires time in the order ǫ 3 of Õ T h S +T h S 3/4 L 1 + S ǫ 1/ 1 T g. Upon termination, with probability 1 3δ, both algorithms return a solutionx j such that fx j ǫ 1 andλ min fx j ǫ. Remark: To analyze the time complexity, we can plug in the order of S 1 and S as in Lemma 1 and Lemma. It is not difficult to show that when ǫ = ǫ 1, the worst-case time complexities of these two algorithms are given in Table 1, where the result marked by corresponds to SNCG- 1. However, this worse-case result is computed by simply bounding T h / maxǫ, gx α by T h / ǫ. In practice, before reaching a saddle point i.e., gx j ǫ 1, the number of ISO calls for each NCG-S step in SNCG-1 can be less than that of each NCG-S step in SNCG-. In addition, the NCG-S step in SNCG-1 can be faster than the SG step in SNCG- before reaching a saddle point. More importantly, the idea of competing between gradient descent and negative curvature descent and the adaptive noise parameter ε for computing the noisy negative curvature can be also useful in other algorithms. For example, in [15] the Hessian descent also known as negative curvature descent can take the competing idea and uses adaptive noise level for computing a noisy negative curvature. 4 Conclusion In this paper, we have proposed new algorithms for stochastic non-convex optimization with strong high probability second-order convergence guarantee. To the best of our knowledge, the proposed 4

stochastic algorithms are the first with a second-order convergence in high probability and a time complexity that is almost linear in the problem s dimensionality. References [1] N. Agarwal, Z. Allen Zhu, B. Bullins, E. Hazan, and T. Ma. Finding approximate local minima faster than gradient descent. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing STOC, pages 1195 1199, 017. [] Z. Allen-Zhu. Natasha : Faster non-convex optimization than sgd. CoRR, /abs/1708.08694, 017. [3] Z. Allen Zhu and Y. Li. Even faster SVD decomposition yet without agonizing pain. In Advances in Neural Information Processing Systems 9 NIPS, pages 974 98, 016. [4] Y. Carmon, J. C. Duchi, O. Hinder, and A. Sidford. Accelerated methods for non-convex optimization. CoRR, abs/1611.00756, 016. [5] C. Cartis, N. I. M. Gould, and P. L. Toint. Adaptive cubic regularisation methods for unconstrained optimization. part i: motivation, convergence and numerical results. Mathematical Programming, 17:45 95, Apr 011. [6] C. Cartis, N. I. M. Gould, and P. L. Toint. Adaptive cubic regularisation methods for unconstrained optimization. part ii: worst-case function- and derivative-evaluation complexity. Mathematical Programming, 130:95 319, Dec 011. [7] A. Conn, N. Gould, and P. Toint. Trust Region Methods. MPS-SIAM Series on Optimization. Society for Industrial and Applied Mathematics, 000. [8] D. Garber, E. Hazan, C. Jin, S. M. Kakade, C. Musco, P. Netrapalli, and A. Sidford. Faster eigenvector computation via shift-and-invert preconditioning. In Proceedings of the 33nd International Conference on Machine Learning ICML, pages 66 634, 016. [9] R. Ge, F. Huang, C. Jin, and Y. Yuan. Escaping from saddle points online stochastic gradient for tensor decomposition. In P. Grünwald, E. Hazan, and S. Kale, editors, Proceedings of The 8th Conference on Learning Theory COLT, volume 40, pages 797 84. PMLR, 03 06 Jul 015. [10] S. Ghadimi and G. Lan. Stochastic first-and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 34:341 368, 013. [11] S. Ghadimi, G. Lan, and H. Zhang. Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization. Math. Program., 1551-:67 305, Jan. 016. [1] I. Goodfellow, Y. Bengio, and A. Courville. Deep learning. MIT press, 016. [13] Y. Nesterov and B. T. Polyak. Cubic regularization of newton method and its global performance. Mathematical Programming, 1081:177 05, 006. [14] E. Oja. Simplified neuron model as a principal component analyzer. Journal of mathematical biology, 153:67 73, 198. [15] S. J. Reddi, M. Zaheer, S. Sra, B. Poczos, F. Bach, R. Salakhutdinov, and A. J. Smola. A generic approach for escaping saddle points. arxiv preprint arxiv:1709.01434, 017. [16] C. W. Royer and S. J. Wright. Complexity analysis of second-order line-search algorithms for smooth nonconvex optimization. arxiv preprint arxiv:1706.03131, 017. [17] P. Xu, F. Roosta-Khorasani, and M. W. Mahoney. Newton-type methods for non-convex optimization under inexact hessian information. CoRR, abs/1708.07164, 017. [18] Y. Zhang, P. Liang, and M. Charikar. A hitting time analysis of stochastic gradient langevin dynamics. In Proceedings of the 30th Conference on Learning Theory COLT, pages 1980 0, 017. 5

A Proof of Lemma 3 We first introduce a proposition, which is the Theorem.5 in [1]. Proposition 1. Let M R d d be a symmetric matrix with eigenvalues 1 λ 1... λ d 0. Then with probability at least 1 p, the Algorithm AppxPCA produces a unit vector v such that v Mv 1 δ + 1 ǫλ max M. The total running time isõ Th 1 m3/4 max{m, ǫ }log 1 ǫ δ +. Proof of Lemma 3. Define M = I H L 1, then M satisfies the condition in the Proposition 1. Then we know that with probability at least1 p, the Algorithm AppxPCA produces a vectorv satisfying v I H v 1 δ + 1 ǫ 1 λ minh, L 1 L 1 which implies that L 1 v Hv 1 δ + ǫ+δ + ǫl 1 λ min H 1 δ + ǫl 1 λ min H. By simple algebra, we have λ min H v Hv δ + +ǫl 1 λ min H v Hv L 1 δ + +ǫ. By settingǫ = δ + = ε 4L 1, we can finish the proof. B Proof of Lemma 4 Proof. Define η j = ǫ L signv j gx j. Next, we analyze the objective decrease for j-th NCG-S step conditioned on the event A = { Hx j fx j ǫ 3 gx j fx j ǫ 4 } and let PrA = 1 δ. By L -Lipschitz continuity of Hessian, we know that fx 1 j+1 fx j η j fx j v j + η j v j fx j Hx j v j + η j v j Hx j v j + L 6 η j 3. wherex 1 j+1 is an update ofx j followingv j in NCG-S. Note thatǫ 4 ǫ /4L, and then we have η j fx j v j = η j gx j v j +η j gx j fx j v j η j ǫ 4 ǫ3 4L vj fx j Hx j v j ǫ 3 ǫ /4 3 Then it follows that fx 1 j+1 fx j ǫ3 4L + ǫ3 48L + ǫ v j Hx jv j L + ǫ3 ǫ vj 6L = Hx jv j L 11ǫ3 48L. }{{} 1 4 Similarly, let x j+1 denote an update ofx j followinggx j in NCG-S, we have fx j+1 fx j x j+1 x j fx j + L 1 x j+1 x j = 1 L 1 gx j fx j + gx j L 1 = 1 gx j gx j + 1 gx j gx j fx j + gx j L 1 L 1 L 1 1 gx j + 1 gx j + 1 gx j fx j L 1 4L 1 L 1 = 1 gx j + 1 ǫ 4 1 gx j + ǫ 1 4L 1 L 1 4L 1 8L }{{ 1 } 6

where we use ǫ 4 1 ǫ 1. According to the update of NCG-S, if 1 >, we havex j+1 = x 1 j+1 and then fx j fx j+1 1 = max 1,. If 1, we have x j+1 = x j+1 and then fx j fx j+1 = max 1,. Therefore, with probability1 δ we have, fx j fx j+1 max 1 gx j ǫ 1, ǫ v j Hx jv j 4L 1 L 11ǫ3 48L C Proof of Theorem 1 Proof. We first prove the result of SNCG-1. For the j-th NCG-S step, define the event A = { Hx j fx j ǫ 3 } { gx j fx j ǫ 4 } and let PrA = 1 δ we can chooseǫ 3 andǫ 4 to make it hold. Since the Algorithm SCNG-1 calls NCG-S as a subroutine, then by Lemma 4, we know that with probability at least 1 δ, fx j fx j+1 max 1 gx j ǫ 1, ǫ v j Hx jv j 4L 1 L 11ǫ3 48L. Ifvj Hx jv j ǫ /, we have 1 ǫ3 and 48L If gx j > ǫ 1, we have ǫ 1 and fx j fx j+1 ǫ3 48L fx j fx j+1 ǫ 1 Therefore, before the algorithm terminates, i.e., for all iterations j j 1, we have either vj Hx jv j ǫ / or gx j > ǫ 1. In either case, the following holds with probability1 δ ǫ fx j fx j+1 min 1, ǫ 3 48L from which we can derive the upper bound ofj, which isj [1+max, 48L ǫ 3, 8L1 ]. ǫ 1 Next, we show that upon termination, we achieve an ǫ 1,ǫ -second order stationary point with high probability. In particular, with probability1 δ we have fx j fx j gx j + gx j ǫ 4 +ǫ 1 ǫ 1. and with probability1 δ λ min Hx j v j Hx j v j maxǫ, gx j α / ǫ In addition, with probability1 δ, we have λ min fx j λ min Hx j ǫ 3 ǫ As a result, by using union bound, we have with probability1 3j δ = 1 3δ, we have fx j ǫ 1, λ min fx j ǫ Finally, the time complexity of each iteration follows Lemma 3. The proof of the result of SNCG- is similar. For simplicity, we use the same notation unless specified. According to the Algorithm SNCG-, we know that when gx j ǫ 1, the SG step guarantees that fx j+1 fx j 1 4L 1 gx j + ǫ 1 ǫ 1 7

Whenvj Hxv j ǫ /, then the NCG-S step guarantees that ǫ fx j+1 fx j max 1 48L, gx j ǫ 1 4L 1 ǫ3 48L According to the update rule, it is easy to see that conditioned on the eventa, the SG step always decrease the objective value with high probability and the NCG-S step decreases the objective value at all steps except for the very last iteration with high probability. Denotej by the number of iterations in the Algorithm SNCG-. By the sufficient decrease argument, we know that with probability at least 1 j δ, the algorithm terminates, where 48L j 1+max ǫ 3, ǫ 1 By the relationship betweenδ andδ, we know that the algorithm terminates with probability at least 1 δ. Note thatfx 0 fx, and hence with probability1 j δ, we have at most 8L1 ǫ 1 stochastic gradient evaluations and at most1+ 48L3 stochastic Hessian-vector product ǫ 3 evaluations before termination. Next, we show that upon termination, we achieve an ǫ 1,ǫ -second order stationary point with high probability. In particular, with probability1 δ we have. fx j fx j gx j + gx j ǫ 4 +ǫ 1 ǫ 1. and with probability1 δ λ min Hx j v j Hx j v j ǫ / ǫ In addition, with probability1 δ, we have λ min fx j λ min Hx j ǫ 3 ǫ As a result, by using union bound, we have with probability1 3j δ = 1 3δ, we have fx j ǫ 1, λ min fx j ǫ Finally, the time complexity of each iteration follows Lemma 3. 8