On the Local Minima of the Empirical Risk

Chi Jin, Lydia T. Liu, Rong Ge, Michael I. Jordan

Introduction

The optimization of nonconvex loss functions has been key to the success of modern machine learning. While classical research in optimization focused on convex functions having a unique critical point that is both locally and globally minimal, a nonconvex function can have many local maxima, local minima and saddle points, all of which pose significant challenges for optimization. A recent line of research has yielded significant progress on one aspect of this problem—it has been established that favorable rates of convergence can be obtained even in the presence of saddle points, using simple variants of stochastic gradient descent (e.g., Ge et al., 2015; Carmon et al., 2016; Agarwal et al., 2017; Jin et al., 2017a). These research results have introduced new analysis tools for nonconvex optimization, and it is of significant interest to begin to use these tools to attack the problems associated with undesirable local minima.

where the error ν\nu typically decreases with the number of samples nn. See Figure 1(a) for a depiction of this result, and Figure 1(b) for an illustration of the effect of sampling on the optimization landscape. We wish to exploit this nearness of FF and ff to design and analyze optimization procedures that find approximate local minima (see Definition 1) of the smooth function FF, while avoiding the local minima that exist only in the sampled function ff.

Although the relationship between population risk and empirical risk is our major motivation, we note that other applications of our framework include two-stage robust optimization and private learning (see Section 5.2). In these settings, the error ν\nu can be viewed as the amount of adversarial perturbation or noise due to sources other than data sampling. As in the sampling setting, we hope to show that simple algorithms such as stochastic gradient descent are able to escape the local minima that arise as a function of ν\nu.

Much of the previous work on this problem studies relatively small values of ν\nu, leading to “shallow” local minima, and applies relatively large amounts of noise, through algorithms such as simulated annealing (Belloni et al., 2015) and stochastic gradient Langevin dynamics (SGLD) (Zhang et al., 2017). While such “large-noise algorithms” may be justified if the goal is to approach a stationary distribution, it is not clear that such large levels of noise is necessary in the optimization setting in order to escape shallow local minima. The best existing result for the setting of nonconvex FF requires the error ν\nu to be smaller than O(ϵ2/d8)O(\epsilon^{2}/d^{8}), where ϵ\epsilon is the precision of the optimization guarantee (see Definition 1) and dd is the problem dimension (Zhang et al., 2017) (see Figure 2). A fundamental question is whether algorithms exist that can tolerate a larger value of ν\nu, which would imply that they can escape “deeper” local minima. In the context of empirical risk minimization, such a result would allow fewer samples to be taken while still providing a strong guarantee on avoiding local minima.

We thus focus on the two central questions: (1) Can a simple, optimization-based algorithm avoid shallow local minima despite the lack of “large noise”? (2) Can we tolerate larger error ν\nu in the optimization setting, thus escaping “deeper” local minima? What is the largest error that the best algorithm can tolerate?

In this paper, we answer both questions in the affirmative, establishing optimal dependencies between the error ν\nu and the precision of a solution ϵ\epsilon. We propose a simple algorithm based on SGD (Algorithm 1) that is guaranteed to find an approximate local minimum of FF efficiently if ν≤O(ϵ1.5/d)\nu\leq O(\epsilon^{1.5}/d), thus escaping all saddle points of FF and all additional local minima introduced by ff. Moreover, we provide a matching lower bound (up to logarithmic factors) for all algorithms making a polynomial number of queries of ff. The lower bound shows that our algorithm achieves the optimal tradeoff between ν\nu and ϵ\epsilon, as well as the optimal dependence on dimension dd. We also consider the information-theoretic limit for identifying an approximate local minimum of FF regardless of the number of queries. We give a sharp information-theoretic threshold: ν=Θ(ϵ1.5)\nu=\Theta(\epsilon^{1.5}) (see Figure 2).

As a concrete example of the application to minimizing population risk, we show that our results can be directly used to give sample complexities for learning a ReLU unit, whose empirical risk is nonsmooth while the population risk is smooth almost everywhere.

A number of other papers have examined the problem of optimizing a target function FF given only function evaluations of a function ff that is pointwise close to FF. Belloni et al. (2015) proposed an algorithm based on simulated annealing. The work of Risteski and Li (2016) and Singer and Vondrak (2015) discussed lower bounds, though only for the setting in which the target function FF is convex. For nonconvex target functions FF, Zhang et al. (2017) studied the problem of finding approximate local minima of FF, and proposed an algorithm based on Stochastic Gradient Langevin Dynamics (SGLD) (Welling and Teh, 2011), with maximum tolerance for function error ν\nu scaling as O(ϵ2/d8)O(\epsilon^{2}/d^{8})The difference between the scaling for ν\nu asserted here and the ν=O(ϵ2)\nu=O(\epsilon^{2}) claimed in (Zhang et al., 2017) is due to difference in assumptions. In our paper we assume that the Hessian is Lipschitz with respect to the standard spectral norm; Zhang et al. (2017) make such an assumption with respect to nuclear norm.. Other than difference in algorithm style and ν\nu tolerance as shown in Figure 2, we also note that we do not require regularity assumptions on top of smoothness, which are inherently required by the MCMC algorithm proposed in Zhang et al. (2017). Finally, we note that in parallel, Kleinberg et al. (2018) solved a similar problem using SGD under the assumption that FF is one-point convex.

Previous work has also studied the relation between the landscape of empirical risks and the landscape of population risks for nonconvex functions. Mei et al. (2016) examined a special case where the individual loss functions LL are also smooth, which under some assumptions implies uniform convergence of the gradient and Hessian of the empirical risk to their population versions. Loh and Wainwright (2013) showed for a restricted class of nonconvex losses that even though many local minima of the empirical risk exist, they are all close to the global minimum of population risk.

Our work builds on recent work in nonconvex optimization, in particular, results on escaping saddle points and finding approximate local minima. Beyond the classical result by Nesterov (2004) for finding first-order stationary points by gradient descent, recent work has given guarantees for escaping saddle points by gradient descent (Jin et al., 2017a) and stochastic gradient descent (Ge et al., 2015). Agarwal et al. (2017) and Carmon et al. (2016) established faster rates using algorithms that make use of Nesterov’s accelerated gradient descent in a nested-loop procedure (Nesterov, 1983), and Jin et al. (2017b) have established such rates even without the nested loop. There have also been empirical studies on various types of local minima (e.g. Keskar et al., 2016; Dinh et al., 2017).

Finally, our work is also related to the literature on zero-th order optimization or more generally, bandit convex optimization. Our algorithm uses function evaluations to construct a gradient estimate and perform SGD, which is similar to standard methods in this community (e.g., Flaxman et al., 2005; Agarwal et al., 2010; Duchi et al., 2015). Compared to first-order optimization, however, the convergence of zero-th order methods is typically much slower, depending polynomially on the underlying dimension even in the convex setting (Shamir, 2013). Other derivative-free optimization methods include simulated annealing (Kirkpatrick et al., 1983) and evolutionary algorithms (Rechenberg and Eigen, 1973), whose convergence guarantees are less clear.

Preliminaries

Our goal is to find a point that has zero gradient and positive semi-definite Hessian, thus escaping saddle points. We formalize this idea as follows.

x\mathbf{x} is called a second-order stationary point (SOSP) or approximate local minimum of a function FF if

We note that there is a slight difference between SOSP and local minima—an SOSP as defined here does not preclude higher-order saddle points, which themselves can be NP-hard to escape from (Anandkumar and Ge, 2016).

Since an SOSP is characterized by its gradient and Hessian, and since convergence of algorithms to an SOSP will depend on these derivatives in a neighborhood of an SOSP, it is necessary to impose smoothness conditions on the gradient and Hessian. A minimal set of conditions that have become standard in the literature are the following.

A function FF is ρ\rho-Hessian Lipschitz if  ∀x,y  ∥∇2F(x)−∇2F(y)∥≤ρ∥x−y∥.~{}\forall\mathbf{x},\mathbf{y}~{}~{}\|{\nabla^{2}F(\mathbf{x})-\nabla^{2}F(\mathbf{y})}\|\leq\rho\|{\mathbf{x}-\mathbf{y}}\|.

Another common assumption is that the function is bounded.

A function FF is BB-bounded if for any x\mathbf{x} that ∣F(x)∣≤B|F(\mathbf{x})|\leq B.

For any finite-time algorithm, we cannot hope to find an exact SOSP. Instead, we can define ϵ\epsilon-approximate SOSP that satisfy relaxations of the first- and second-order optimality conditions. Letting ϵ\epsilon vary allows us to obtain rates of convergence.

x\mathbf{x} is an ϵ\epsilon-second-order stationary point (ϵ\epsilon-SOSP) of a ρ\rho-Hessian Lipschitz function FF if

Given these definitions, we can ask whether it is possible to find an ϵ\epsilon-SOSP in polynomial time under the Lipchitz properties. Various authors have answered this question in the affirmative.

Main Results

In the setting we consider, there is an unknown function FF (the population risk) that has regularity properties (bounded, gradient and Hessian Lipschitz). However, we only have access to a function ff (the empirical risk) that may not even be everywhere differentiable. The only information we use is that ff is pointwise close to FF. More precisely, we assume

f,Ff,F are ν\nu-pointwise close; i.e., ∥F−f∥∞≤ν\|F-f\|_{\infty}\leq\nu.

As we explained in Section 2, our goal is to find second-order stationary points of FF given only function value access to ff. More precisely:

Given a function pair (F,fF,f) that satisfies Assumption A1, find an ϵ\epsilon-second-order stationary point of FF with only access to values of ff.

The only way our algorithms are allowed to interact with ff is to query a point x\mathbf{x}, and obtain a function value f(x)f(\mathbf{x}). This is usually called a zero-th order oracle in the optimization literature. In this paper we give tight upper and lower bounds for the dependencies between ν\nu, ϵ\epsilon and dd, both for algorithms with polynomially many queries and in the information-theoretic limit.

There are three main difficulties in applying stochastic gradient descent to Problem 1: (1) in order to converge to a second-order stationary point of FF, the algorithm must avoid being stuck in saddle points; (2) the algorithm does not have access to the gradient of ff; (3) there is a gap between the observed ff and the target FF, which might introduce non-smoothness or additional local minima. The first difficulty was addressed in Jin et al. (2017a) by perturbing the iterates in a small ball; this pushes the iterates away from any potential saddle points. For the latter two difficulties, we apply Gaussian smoothing to ff and use z[f(x+z)−f(x)]/σ2\mathbf{z}[f(\mathbf{x}+\mathbf{z})-f(\mathbf{x})]/\sigma^{2} (z∼N(0,σ2I)\mathbf{z}\sim\mathcal{N}(0,\sigma^{2}\mathbf{I})) as a stochastic gradient estimate. This estimate, which only requires function values of ff, is well known in the zero-th order optimization literature (e.g. Duchi et al., 2015). For more details, see Section 4.1.

In short, our algorithm (Algorithm 1) is a variant of SGD, which uses z[f(x+z)−f(x)]/σ2\mathbf{z}[f(\mathbf{x}+\mathbf{z})-f(\mathbf{x})]/\sigma^{2} as the gradient estimate (computed over mini-batches), and adds isotropic perturbations. Using this algorithm, we can achieve the following trade-off between ν\nu and ϵ\epsilon.

Theorem 7 shows that assuming a small enough function error ν\nu, ZPSGD will solve Problem 1 within a number of queries that is polynomial in all the problem-dependent parameters. The tolerance on function error ν\nu varies inversely with the number of dimensions, dd. This rate is in fact optimal for all polynomial queries algorithms. In the following result, we show that the ϵ,ρ,\epsilon,\rho, and dd dependencies in function difference ν\nu are tight up to a logarithmic factors in dd.

2 Information-theoretic guarantees

If we allow an unlimited number of queries, we can show that the upper and lower bounds on the function error tolerance ν\nu no longer depends on the problem dimension dd. That is, Problem 1 exhibits a statistical-computational gap—polynomial-queries algorithms are unable to achieve the information-theoretic limit. We first state that an algorithm (with exponential queries) is able to find an ϵ\epsilon-SOSP of FF despite a much larger value of error ν\nu. The basic algorithmic idea is that an ϵ\epsilon-SOSP must exist within some compact space, such that once we have a subroutine that approximately computes the gradient and Hessian of FF at an arbitrary point, we can perform a grid search over this compact space (see Section D for more details):

We also show a corresponding information-theoretic lower bound that prevents any algorithm from even identifying a second-order stationary point of FF. This completes the characterization of function error tolerance ν\nu in terms of required accuracy ϵ\epsilon.

3 Extension: Gradients pointwise close

Overview of Analysis

In this section we present the key ideas underlying our theoretical results. We will focus on the results for algorithms that make a polynomial number of queries (Theorems 7 and 8).

First, we introduce Gaussian smoothing, which perturbs the current point x\mathbf{x} using a multivariate Gaussian and then takes an expectation over the function value.

In ZPSGD, we use the stochastic gradients suggested by Lemma 12. Perturbed Gradient Descent (PGD) (Jin et al., 2017a) was shown to converge to a second-order stationary point. Here we use a simple modification of PGD that relies on batch stochastic gradient. In order for PSGD to converge, we require that the stochastic gradients are well-behaved; that is, they are unbiased and have good concentration properties, as asserted in the following lemma. It is straightforward to verify given that we sample z\mathbf{z} from a zero-mean Gaussian (proof in Appendix A.2).

As it turns out, these assumptions suffice to guarantee that perturbed SGD (PSGD), a simple adaptation of PGD in Jin et al. (2017a) with stochastic gradient and large mini-batch size, converges to the second-order stationary point of the objective function.

2 Polynomial queries lower bound

The proof of Theorem 8 depends on the construction of a ‘hard’ function pair. The argument crucially depends on the concentration of measure in high dimensions. We provide a proof sketch in Appendix B and the full proof in Appendix C.

Applications

In this section, we present several applications of our algorithm. We first show a simple example of learning one rectified linear unit (ReLU), where the empirical risk is nonconvex and nonsmooth. We also briefly survey other potential applications for our model as stated in Problem 1.

Due to nonsmoothness at 0\bm{0} even for population risk, we focus on a compact region B={w∣w⊤w⋆≥1d}∩{w∣∥w∥≤2}\mathfrak{B}=\{\mathbf{w}|\mathbf{w}^{\top}\mathbf{w}^{\star}\geq\frac{1}{\sqrt{d}}\}\cap\{\mathbf{w}|\|{\mathbf{w}}\|\leq 2\} which excludes 0\bm{0}. This region is large enough so that a random initialization has at least constant probability of being inside it. We also show the following properties that allow us to apply Algorithm 1 directly:

These properties show that the population loss has a well-behaved landscape, while the empirical risk is pointwise close. This is exactly what we need for Algorithm 1. Using Theorem 7 we immediately get the following sample complexity, which guarantees an approximate population risk minimizer. We defer all proofs to Appendix G.

2 Other applications

Data privacy is a significant concern in machine learning as it creates a trade-off between privacy preservation and successful learning. Previous work on differentially private machine learning (e.g. Chaudhuri et al., 2011) have studied objective perturbation, that is, adding noise to the original (convex) objective and optimizing this perturbed objective, as a way to simultaneously guarantee differential privacy and learning generalization: f=F+p(ε)f=F+p(\varepsilon). Our results may be used to extend such guarantees to nonconvex objectives, characterizing when it is possible to optimize FF even if the data owner does not want to reveal the true value of F(x)F(\mathbf{x}) and instead only reveals f(x)f(\mathbf{x}) after adding a perturbation p(ε)p(\varepsilon), which depends on the privacy guarantee ε\varepsilon.

Motivated by the problem of adversarial examples in machine learning, there has been a lot of recent interest (e.g. Steinhardt et al., 2017; Sinha et al., 2018) in a form of robust optimization that involves a minimax problem formulation: min⁡xmax⁡uG(x,u).\min_{\mathbf{x}}\max_{\mathbf{u}}G(\mathbf{x},\mathbf{u}). The function F(x)=max⁡uG(x,u)F(\mathbf{x})=\max_{\mathbf{u}}G(\mathbf{x},\mathbf{u}) tends to be nonconvex in such problems, since GG can be very complicated. It can be intractable or costly to compute the solution to the inner maximization exactly, but it is often possible to get a good enough approximation ff, such that sup⁡x∣F(x)−f(x)∣=ν\sup_{\mathbf{x}}|F(\mathbf{x})-f(\mathbf{x})|=\nu. It is then possible to solve min⁡xf(x)\min_{\mathbf{x}}f(\mathbf{x}) by ZPSGD, with guarantees for the original optimization problem.

Acknowledgments

We thank Aditya Guntuboyina, Yuanzhi Li, Yi-An Ma, Jacob Steinhardt, and Yang Yuan for valuable discussions.

References

Appendix A Efficient algorithm for optimizing the population risk

As we described in Section 4, in order to find a second-order stationary point of the population loss FF, we apply perturbed stochastic gradient on a smoothed version of the empirical loss ff. Recall that the smoothed function is defined as

In this section we will also consider a smoothed version of the population loss FF, as follows:

This function is of course not accessible by the algorithm and we only use it in the proof of convergence rates.

In the proof, we frequently require the following lemma (see e.g. Zhang et al. (2017)) that gives alternative expressions for the gradient and Hessian of a smoothed function.

Using the density function of a multivariate Gaussian, we may compute the gradient of the smoothed function as follows:

and similarly, we may compute the Hessian of the smoothed function:

For a twice-differentiable function, its gradient Lipshitz constant is also the upper bound on the spectral norm of its Hessian.

The last inequality follows from Lemma 26. ∎

A.1.2 Hessian Lipschitz

The last inequality follows from Lemma 27 and 28. ∎

A.1.3 Gradient Difference

Then the result follows from Lemma 30 and 31 ∎

A.1.4 Hessian Difference

A.2 Properties of the stochastic gradient

We prove the properties of the stochastic gradient, g(x;z)\mathbf{g}(\mathbf{x};\mathbf{z}), as stated in Lemma 24, restated as follows. Intuitively this lemma shows that the stochastic gradient is well-behaved and can be used in the standard algorithms.

Note that ⟨u∥u∥,zσ⟩∼N(0,1)\langle\frac{\mathbf{u}}{\|{\mathbf{u}}\|},\frac{\mathbf{z}}{\sigma}\rangle\sim\mathcal{N}(0,1). Thus, for X∼N(0,B∥u∥σ)X\sim\mathcal{N}(0,\frac{B\|{u}\|}{\sigma}),

This shows that g\mathbf{g} is sub-Gaussian with parameter Bσ\frac{B}{\sigma}.

implies x∗\mathbf{x}^{*} is an O(ϵ)O(\epsilon)-SOSP of FF.

By applying Lemma 13 and Weyl’s inequality, we have that the following inequalities hold up to a constant factor:

We know Eq.(2), (3)   ⟹  σ≤ρϵρd=ϵρd\implies\sigma\leq\frac{\sqrt{\rho\epsilon}}{\rho\sqrt{d}}=\sqrt{\frac{\epsilon}{\rho d}} and σ≤ϵρd\sigma\leq\sqrt{\frac{\epsilon}{\rho d}}.

Also Eq. (2), (3)   ⟹  ν≤σϵ≤ϵ3ρd\implies\nu\leq\sigma\epsilon\leq\sqrt{\frac{\epsilon^{3}}{\rho d}} and ν≤ρϵσ2≤ρϵϵρd=ϵ3ρd2\nu\leq\sqrt{\rho\epsilon}\sigma^{2}\leq\sqrt{\rho\epsilon}\frac{\epsilon}{\rho d}=\sqrt{\frac{\epsilon^{3}}{\rho d^{2}}}.

Finally Eq.(4)   ⟹  ν≤ρdσ3≤ϵ1.5ρ0.5d\implies\nu\leq\rho\sqrt{d}\sigma^{3}\leq\frac{\epsilon^{1.5}}{\rho^{0.5}d}.

Thus the following choice of σ\sigma and ν\nu ensures that x∗\mathbf{x}^{*} is an O(ϵ)O(\epsilon)-SOSP of FF:

where c1,c2c_{1},c_{2} are universal constants. ∎

A.4 Technical Lemmas

In this section, we collect and prove the technical lemmas used in the proofs of the above.

By the Hessian-Lipschitz property of FF:

For brevity, denote h=1(2πσ2)d2h=\frac{1}{(2\pi\sigma^{2})^{\frac{d}{2}}}.

where ω(Δ):=(z+Δ)(z+Δ)⊤−σ2Iσ4e−∥z+Δ∥22σ2\omega(\Delta):=\frac{(\mathbf{z}+\Delta)(\mathbf{z}+\Delta)^{\top}-\sigma^{2}\mathbf{I}}{\sigma^{4}}e^{-\frac{\|{\mathbf{z}+\Delta}\|^{2}}{2\sigma^{2}}} and Δ=y−x2\Delta=\frac{\mathbf{y}-\mathbf{x}}{2}. Equality (5) follows from a change of variables. Now, denote g(z):=(f−F)(z+x+y2)g(\mathbf{z}):=(f-F)(\mathbf{z}+\frac{\mathbf{x}+\mathbf{y}}{2}).

Using ω(Δ)=(z+Δ)(z+Δ)⊤−σ2Iσ4e−∥Δ∥2+2⟨Δ,z⟩2σ2e−∥z∥22σ2\omega(\Delta)=\frac{(\mathbf{z}+\Delta)(\mathbf{z}+\Delta)^{\top}-\sigma^{2}\mathbf{I}}{\sigma^{4}}e^{-\frac{\|{\Delta}\|^{2}+2\langle\Delta,\mathbf{z}\rangle}{2\sigma^{2}}}e^{-\frac{\|{\mathbf{z}}\|^{2}}{2\sigma^{2}}}, we have the following

By a Taylor expansion up to only the first order terms in Δ\Delta,

The last inequality follows from Lemma 29. ∎

where the last step is correct due to the second inequality we proved. The proof of the fourth inequality directly follows from the third inequality. ∎

The last inequality follows from Lemma 32. ∎

Inequality (6) follows by applying a generalization of mean-value theorem to vector-valued functions. ∎

Appendix B Overview for polynomial queries lower bound

The first property is due to the concentration of measure in high dimensions. The latter two properties are intuitively shown in Figure 5. These properties suggest a natural construction for ff:

To see why this construction gives a hard instance of Problem 1, recall that the direction v\mathbf{v} is uniformly random. Since the direction v\mathbf{v} is unknown to the algorithm at initialization, the algorithm’s first query is independent of v\mathbf{v} and thus is likely to be in region SvS_{\mathbf{v}}, due to property 1. The queries inside SvS_{\mathbf{v}} give no information about v\mathbf{v}, so any polynomial-time algorithm is likely to continue to make queries in SvS_{\mathbf{v}} and eventually fail to find v\mathbf{v}. On the other hand, by property 2 above, finding an ϵ\epsilon-SOSP of FF requires approximately identifying the direction of v\mathbf{v}, so any polynomial-time algorithm will fail with high probability.

We deal with first problem by constructing a function Fˉ(y)\bar{F}(\mathbf{y}) on d^{d}, ignoring the boundary condition, and then composing it with a smooth periodic function. For the second problem, we carefully construct a smooth function hh, as shown in Figure 5, to have zero function value, gradient and Hessian at the boundary of the ball and outside the ball, so that no algorithm can make use of the padding region to identify an SOSP of FF. Details are deferred to section C in the appendix.

Appendix C Constructing Hard Functions

In this section, we prove Theorem 8, the lower bound for algorithms making a polynomial number of queries. We start by describing the hard function construction that is key to the lower bound.

We will first present a “scale-free” version of the hard function, where we assume ρ=1\rho=1 and ϵ=1\epsilon=1. In section C.2, we will show how to scale this hard function to prove Theorem 8.

where h(y)=h1(v⊤y)⋅h2(∥y∥2−(v⊤y)2)h(\mathbf{y})=h_{1}(\mathbf{v}^{\top}\mathbf{y})\cdot h_{2}(\sqrt{\|{\mathbf{y}}\|^{2}-(\mathbf{v}^{\top}\mathbf{y})^{2}}), and

and the vector v\mathbf{v} is uniformly distributed on the dd-dimensional unit sphere.

We will state the properties of the hard instance by breaking the space into different regions:

“hypercube” H=[−π2,π2]dH=[-\frac{\pi}{2},\frac{\pi}{2}]^{d} be the dd-dimensional hypercube with side length π\pi.

“band” Sv={x∈S:⟨sin⁡x,v⟩≤log⁡dd}S_{\mathbf{v}}=\{\mathbf{x}\in S:\langle\sin\mathbf{x},\mathbf{v}\rangle\leq\frac{\log d}{\sqrt{d}}\}

We also call the union of S2S_{2} and SvS_{\mathbf{v}} the “non-informative” region.

Our construction happens within the ball. However it is hard to fill the space using balls, so we pad the ball into a hypercube. Our construction will guarantee that any queries to the non-informative region do not reveal any information about v\mathbf{v}. Intuitively the non-informative region is very large so that it is hard for the algorithm to find any point outside of the non-informative region (and learn any information about v\mathbf{v}).

Let F,f,vF,f,\mathbf{v} be as defined in equations (7), (8). Then F,fF,f satisfies:

ff in the non-informative region S2∪SvS_{2}\cup S_{\mathbf{v}} is independent of v\mathbf{v}.

FF has no SOSP in the non-informative region S2∪SvS_{2}\cup S_{\mathbf{v}}.

FF is O(d)O(d)-bounded, O(1)O(1)-Hessian Lipschitz, and O(1)O(1)-gradient Lipschitz.

These properties will be proved based on the properties of h(y)h(\mathbf{y}), which we defined in (7) to be the product of two functions.

Property 1. On SvS_{\mathbf{v}}, f(x)=F(x)=∥sin⁡x∥2f(\mathbf{x})=F(\mathbf{x})=\|{\sin\mathbf{x}}\|^{2}, which is independent of v\mathbf{v}. On S2S_{2}, we argue that h(sin⁡x)=0h(\sin\mathbf{x})=0 and therefore f(x)=∥sin⁡x∥2 ∀x∈S2f(\mathbf{x})=\|{\sin\mathbf{x}}\|^{2}~{}\forall\mathbf{x}\in S_{2}. Note that on S2S_{2}, ∥x∥>3/μ\|{\mathbf{x}}\|>3/\mu and (sin⁡x)2>(2xπ)2 ∀∣x∣<π2(\sin x)^{2}>(\frac{2x}{\pi})^{2}~{}\forall|x|<\frac{\pi}{2}, so

Therefore, h(sin⁡x)=h1(v⊤sin⁡x)⋅h2(∥sin⁡x∥2−(v⊤sin⁡x)2)=0h(\sin\mathbf{x})=h_{1}(\mathbf{v}^{\top}\sin\mathbf{x})\cdot h_{2}(\sqrt{\|{\sin\mathbf{x}}\|^{2}-(\mathbf{v}^{\top}\sin\mathbf{x})^{2}})=0.

For x∈Sv\mathbf{x}\in S_{\mathbf{v}}, we have v⊤sin⁡x∈[−log⁡dd,log⁡dd]\mathbf{v}^{\top}\sin\mathbf{x}\in[-\frac{\log d}{\sqrt{d}},\frac{\log d}{\sqrt{d}}]. By symmetry, we may just consider the case where v⊤sin⁡x>0\mathbf{v}^{\top}\sin\mathbf{x}>0.

Here C>0C>0 is a large enough universal constant.

Property 3. (Part I.) We show that there are no SOSP in S2S_{2}. For x:∥x∥>3/μ\mathbf{x}:\|{\mathbf{x}}\|>3/\mu, we argue that either the gradient is large, due to contribution from ∥sin⁡x∥2\|{\sin\mathbf{x}}\|^{2}, or the Hessian has large negative eigenvalue (points close to the boundary of HH). Denote G(x)=∥sin⁡x∥2G(\mathbf{x})=\|{\sin\mathbf{x}}\|^{2}. We may compute the gradient of GG as follows:

where ξ≈0.95\xi\approx 0.95 is the positive root of the equation sin⁡2x=x\sin 2x=x. On S2S_{2}, ∇F(x)=∇G(x)\nabla F(\mathbf{x})=\nabla G(\mathbf{x}), so ∥∇F(x)∥>3μ=1×10−2\|{\nabla F(\mathbf{x})}\|>\frac{3}{\mu}=1\times 10^{-2} for x∈S2∩[−ξ,ξ]d\mathbf{x}\in S_{2}\cap[-\xi,\xi]^{d}. We may also compute the Hessian of GG:

Since (π4−ξ)<−0.15(\frac{\pi}{4}-\xi)<-0.15, λmin⁡(∇2F(x))<−0.3\lambda_{\min}(\nabla^{2}F(\mathbf{x}))<-0.3.

(Part II.) We argue that FF has no SOSP in SvS_{\mathbf{v}}. For y=sin⁡(x)\mathbf{y}=\sin(\mathbf{x}), we consider two cases: (i) z=∥y∥2−(v⊤y)2z=\sqrt{\|{\mathbf{y}}\|^{2}-(\mathbf{v}^{\top}\mathbf{y})^{2}} large and (ii) zz small.

Write g(x)=h(sin⁡x)g(\mathbf{x})=h(\sin\mathbf{x}), and denote ∇h(x)∣sin⁡x,∇2h(x)∣sin⁡x\left.\nabla h(\mathbf{x})\right|_{\sin\mathbf{x}},\left.\nabla^{2}h(\mathbf{x})\right|_{\sin\mathbf{x}} with ∇h(y),∇2h(y)\nabla h(\mathbf{y}),\nabla^{2}h(\mathbf{y}). Let u∘v\mathbf{u}\circ\mathbf{v} denote the Schur product of u\mathbf{u} and v\mathbf{v}. We may compute the gradient and Hessian of gg:

Now we change the coordinate system such that v=(1,0,⋯ ,0)\mathbf{v}=(1,0,\cdots,0). ∥∇h(y)∥\|{\nabla h(\mathbf{y})}\| and λmin⁡(∇2h(y))\lambda_{\min}(\nabla^{2}h(\mathbf{y})) are invariant to such a transform. Under this coordinate system, h(y)=h1(y1)⋅h2(∥y∥2−(y1)2)h(\mathbf{y})=h_{1}(y_{1})\cdot h_{2}(\sqrt{\|{\mathbf{y}}\|^{2}-(y_{1})^{2}})

(i): z≥12μz\geq\frac{1}{2\mu}. We show that ∥∇F∥\|{\nabla F}\| is large.

Let P−1(u)\mathcal{P}_{-1}(\mathbf{u}) denote the projection of u\mathbf{u} onto the orthogonal component of the first standard basis vector.

Since ∀ i≠1,∂∂yih(y)=h1(y1)h2′(z)yiz\forall~{}i\neq 1,\frac{\partial}{\partial y_{i}}h(\mathbf{y})=h_{1}(y_{1})h_{2}^{\prime}(z)\frac{y_{i}}{z}, we have

(ii): z<12μz<\frac{1}{2\mu}. We show that ∇2F(x)\nabla^{2}F(\mathbf{x}) has large negative eigenvalue. First we compute the second derivative of hh in the direction of the first coordinate:

Now we use this to upper bound the smallest eigenvalue of ∇2F(x)\nabla^{2}F(\mathbf{x}).

Property 4. O(1)O(1)-bounded: Lemma 34 shows that ∣h(y)∣≤1|h(\mathbf{y})|\leq 1. ∥sin⁡x∥2≤d\|{\sin\mathbf{x}}\|^{2}\leq d. Therefore ∣F∣≤1+d|F|\leq 1+d.

O(1)O(1)-gradient Lipschitz: ∥∇2F(x)∥≤∥∇2G(x)∥+∥∇2g(x)∥\|{\nabla^{2}F(\mathbf{x})}\|\leq\|{\nabla^{2}G(\mathbf{x})}\|+\|{\nabla^{2}g(\mathbf{x})}\|. We know ∥∇2G(x)∥≤2\|{\nabla^{2}G(\mathbf{x})}\|\leq 2.

O(1)O(1)-Hessian Lipschitz: First bound the Hessian Lipschitz constant of G(x)G(\mathbf{x}).

Now we bound the Hessian Lipschitz constant of g(x)g(\mathbf{x}). Denote A(x)=diag(cos⁡x)\mathbf{A}(\mathbf{x})=diag(\cos\mathbf{x}) and B(x)=diag(sin⁡x)\mathbf{B}(\mathbf{x})=diag(\sin\mathbf{x}).

Therefore F(x)F(\mathbf{x}) is (2.8×1010)(2.8\times 10^{10})-Hessian Lipschitz.

Now we need to prove smoothness properties of h(y)h(\mathbf{y}) that are used in the previous proof. In the following lemma, we prove that h(y)h(\mathbf{y}) as defined in equation (7) is bounded, Lipschitz, gradient-Lipschitz, and Hessian-Lipschitz.

h(y)h(\mathbf{y}) as given in Definition 7 is O(1)-bounded, O(1)-Lipschitz, O(1)-gradient Lipschitz, and O(1)-Hessian Lipschitz.

WLOG assume v=(1,0,⋯ ,0)⊤\mathbf{v}=(1,0,\cdots,0)^{\top}. Denote u=y1,w=(y2,⋯ ,yd)⊤u=y_{1},\mathbf{w}=(y_{2},\cdots,y_{d})^{\top}. Let ⊗\otimes denote tensor product.

Note that ∣h1′∣≤3μ,∣h2′∣≤2μ,∣h1′′∣≤32μ2,∣h2′′∣≤12μ2,∣h1′′′∣≤300μ3,∣h2′′′∣≤48μ3|h_{1}^{\prime}|\leq 3\mu,|h_{2}^{\prime}|\leq 2\mu,|h_{1}^{\prime\prime}|\leq 32\mu^{2},|h_{2}^{\prime\prime}|\leq 12\mu^{2},|h_{1}^{\prime\prime\prime}|\leq 300\mu^{3},|h_{2}^{\prime\prime\prime}|\leq 48\mu^{3}. Assume μ>2\mu>2.

O(1)-bounded: ∣h∣≤∣h1∣⋅∣h2∣≤1|h|\leq|h_{1}|\cdot|h_{2}|\leq 1.

O(1)-Lipschitz: ∥∇h(y)∥=h2(∥w∥)h1′(u)+h1(u)h2′(∥w∥)≤3μ≤O(1)\|{\nabla h(\mathbf{y})}\|=\sqrt{h_{2}(\|{\mathbf{w}}\|)h_{1}^{\prime}(u)+h_{1}(u)h_{2}^{\prime}(\|{\mathbf{w}}\|)}\leq 3\mu\leq O(1).

∥∇h1(u)∥≤3μ\|{\nabla h_{1}(u)}\|\leq 3\mu. Notice that the following are also O(1):

Therefore, ∥∇2h(y)∥≤24μ2+32μ2+2⋅2μ⋅3μ≤68μ2\|{\nabla^{2}h(\mathbf{y})}\|\leq 24\mu^{2}+32\mu^{2}+2\cdot 2\mu\cdot 3\mu\leq 68\mu^{2}.

O(1)-Hessian Lipschitz: We first argue that ∇2h2(w)\nabla^{2}h_{2}(\mathbf{w}) is Lipschitz. For ∥w∥≥1/μ\|{\mathbf{w}}\|\geq 1/\mu, ∇2h2(w)=0\nabla^{2}h_{2}(\mathbf{w})=0. So we consider ∥w∥<μ\|{\mathbf{w}}\|<\mu. We obtain the following by direct computation.

We may easily check that indeed lim⁡∥w∥→1∥∇2h2(w)∥=0\lim_{\|{\mathbf{w}}\|\to 1}\|{\nabla^{2}h_{2}(\mathbf{w})}\|=0.

Therefore ∇2h2(w)\nabla^{2}h_{2}(\mathbf{w}) is 144μ3144\mu^{3}-Lipschitz.

By triangle inequality, using the above, we obtain

This proves that h(y)h(\mathbf{y}) is 1000μ31000\mu^{3}-Hessian Lipschitz.

C.2 Scaling the Hard Instance

Now we show how to scale the function we described in order to achieve the final lower bound with correct dependencies on ϵ\epsilon and ρ\rho.

where r=ϵ/ρr=\sqrt{\epsilon/\rho} and F,fF,f are defined as in Equation 7. Define the ‘scaled’ regions:

This is implied by Lemma 33. To see this, notice

We have simply scaled each coordinate axis by rr.

C.3 Proof of the Theorem

We are now ready to state the two main lemmas used to prove Theorem 8.

Denote unit vector y^=sin⁡xr/∥sin⁡xr∥\hat{\mathbf{y}}=\sin\frac{\mathbf{x}}{r}/\|{\sin\frac{\mathbf{x}}{r}}\|. This gives:

In last inequality, we used Lemma 36, which finishes the proof. ∎

Now we have all the ingredients to prove Theorem 8, restated below more formally.

Note that because ∥xt∥≤r/100\|{\mathbf{x}_{t}}\|\leq r/100, ∥sin⁡1rxt∥≤∥xt∥/r≤1/100\|{\sin\frac{1}{r}\mathbf{x}_{t}}\|\leq\|{\mathbf{x}_{t}}\|/r\leq 1/100.

For completeness, we now state the classical result showing that most of the surface area of a sphere lies close to the equator; it was used in the proof of Lemma 36.

Appendix D Information-theoretic Limits

In this section, we prove upper and lower bounds for algorithms that may run in exponential time. This establishes the information-theoretic limit for problem 1. Compared to the previous (polynomial time) setting, now the dependency on dimension dd is removed.

We first restate our upper bound, first stated in Theorem 9, below.

The algorithm is based on a procedure to estimate the gradient and Hessian at point xx. This procedure will be applied to a exponential-sized covering of a compact space to find an SOSP.

where rr is scalar in the order of O(ϵ/ρ)O(\sqrt{\epsilon/\rho}).

We will first show that any solution of this problem will give good estimates of the gradient and Hessian of FF.

Any solution (g,H)(\mathbf{g},\mathcal{H})to the above feasibility problem, Eq.(10), gives

When we have ∥f−F∥∞≤ν\|{f-F}\|_{\infty}\leq\nu, above feasibility problem is equivalent to solve following:

Due to the Hessian-Lipschitz property, we have ∣F(y)−F(x)−∇F(x)⊤(y−x)−(y−x)⊤∇2F(x)(y−x)∣≤16ρr3|F(\mathbf{y})-F(\mathbf{x})-\nabla F(\mathbf{x})^{\top}(\mathbf{y}-\mathbf{x})-(\mathbf{y}-\mathbf{x})^{\top}\nabla^{2}F(\mathbf{x})(\mathbf{y}-\mathbf{x})|\leq\frac{1}{6}\rho r^{3}, this means above feasibility problem is also equivalent to:

Given ν≤1cϵ3ρ\nu\leq\frac{1}{c}\sqrt{\frac{\epsilon^{3}}{\rho}} for large enough constant cc, and picking r=c′ϵρr=c^{\prime}\sqrt{\frac{\epsilon}{\rho}} with proper constant c′c^{\prime}, we prove the lemma. ∎

We then argue that (10) always has a solution.

(∇F(x),∇2F(x))(\nabla F(\mathbf{x}),\nabla^{2}F(\mathbf{x})) is clearly one solution to the feasibility problem Eq.(10). Then, this lemma is true due to Hessian Lipschitz and gradient Lipschitz properties of FF. ∎

Now, since the algorithm can do an exhaustive search over a compact space, we just need to prove that there is an ϵ\epsilon-SOSP within a bounded distance.

Combining all these lemmas we are now ready to prove the main theorem of this section:

We show that Algorithm 2 is guaranteed to succeed within a number of function value queries of ff that is exponential in all problem parameters. First, by Lemma 43, we know that at least one of {xt}t=1N\{\mathbf{x}_{t}\}_{t=1}^{N} must be an O(ϵ)O(\epsilon)-SOSP of FF. It suffices to show that for any x\mathbf{x} that is an O(ϵ)O(\epsilon)-SOSP, Algorithm 2’s subroutine will successfully return x\mathbf{x}, that is, it must find a solution g,H\mathbf{g},\mathcal{H}, to the feasibility problem 10 that satisfies ∥g∥≤O(ϵ) and λmin⁡(H)≥−O(ρϵ)\|{\mathbf{g}}\|\leq O(\epsilon)\text{ and }\lambda_{\min}(\mathcal{H})\geq-O(\sqrt{\rho\epsilon}).

Next, notice that because all the covers in Algorithm 2 have size at most O((d/ϵ)d2)O((d/\epsilon)^{d^{2}}) must terminate in O(ed2log⁡dϵ)O(e^{d^{2}\log\frac{d}{\epsilon}}) steps. ∎

In the following two lemmas, we provide simple methods for constructing an ϵ\epsilon-cover for a ball (as well as a sphere), and for matrices with bounded spectral norm.

For any point y\mathbf{y} in the ball, we can find x∈C\mathbf{x}\in C such that ∣yi−xi∣≤ϵ/d|\mathbf{y}_{i}-\mathbf{x}_{i}|\leq\epsilon/\sqrt{d} for each i∈[d]i\in[d]. By the Pythagorean theorem, this implies ∥y−x∥≤ϵ\|{\mathbf{y}-\mathbf{x}}\|\leq\epsilon. ∎

For any matrix MM in M\mathcal{M}, we can find N∈CN\in C such that ∣Ni,k−Mi,k∣≤ϵ/d|N_{i,k}-M_{i,k}|\leq\epsilon/d for each i,k∈[d]i,k\in[d]. Since the Frobenius norm dominates the spectral norm, we have ∥N−M∥≤∥N−M∥F≤ϵ\|{N-M}\|\leq\|{N-M}\|_{F}\leq\epsilon. ∎

D.2 Information-theoretic Lower bound

Appendix E Extension: Gradients pointwise close

Given function pair (F,fF,f) that satisfies Assumption A1, find an ϵ\epsilon-second-order stationary point of FF with only access to function values of g=∇f\mathbf{g}=\nabla f.

Appendix F Proof of Extension: Gradients pointwise close

Recall the definition of the gradient smoothing of a function given in Definition 11. In this section we will consider a smoothed version of the (possibly erroneous) gradient oracle, defined as follows.

We proceed by exchanging the order of differentiation. The last equality follows from applying lemma 19 to the function ∂∂xjf(x+z)\frac{\partial}{\partial x_{j}}f(\mathbf{x}+\mathbf{z})

We will prove the 4 claims of the lemma one by one, in the following 4 sub-subsections.

The last inequality follows from Lemma 55. ∎

F.1.2 Hessian Lipschitz

The last inequality follows from Lemmas 27 and 56. ∎

F.1.3 Gradient Difference

The inequality at (13) follows from Lemma 31. ∎

F.1.4 Hessian Difference

The last inequality follows from Lemma 23 and 49. ∎

F.2 Properties of the stochastic gradient

For the second claim, since function ff is L-Lipschitz, we know ∥g(x,z)∥=∥∇f(x+z)∥≤L\|{\mathbf{g}(\mathbf{x},\mathbf{z})}\|=\|{\nabla f(\mathbf{x}+\mathbf{z})}\|\leq L. This implies that g(x;z)\mathbf{g}(\mathbf{x};\mathbf{z}) is sub-Gaussian with parameter LL. ∎

F.3 Proof of Theorem 47

implies x∗\mathbf{x}^{*} is an O(ϵ)O(\epsilon)-SOSP of FF.

By Lemma 48 and Weyl’s inequality, we have that the following inequalities hold up to a constant factor:

We know Eq.(14), (15)   ⟹  σ≤ρϵρd=ϵρd\implies\sigma\leq\frac{\sqrt{\rho\epsilon}}{\rho\sqrt{d}}=\sqrt{\frac{\epsilon}{\rho d}} and σ≤ϵρd\sigma\leq\sqrt{\frac{\epsilon}{\rho d}}.

Thus the following choices ensures x∗\mathbf{x}^{*} is an O(ϵ)O(\epsilon)-SOSP of FF:

F.4 Technical lemmas

In this section, we collect and prove the technical lemmas used in section F.

For brevity, denote h=1(2πσ2)d2h=\frac{1}{(2\pi\sigma^{2})^{\frac{d}{2}}}. We have:

where Δ=y−x2\Delta=\frac{\mathbf{y}-\mathbf{x}}{2}. The last equality follows from a change of variables. Now denote g(z):=(∇f−∇F)(z+x+y2)\mathbf{g}(\mathbf{z}):=(\nabla f-\nabla F)(\mathbf{z}+\frac{\mathbf{x}+\mathbf{y}}{2}). By a Taylor expansion up to only the first order terms in Δ\Delta, we have

The last inequality follows from Lemma 55.

Appendix G Proof of Learning ReLU Unit

In this section we analyze the population loss of the simple example of a single ReLU unit.

Recall our assumption that ∥w⋆∥=1\|{\mathbf{w}^{\star}}\|=1 and that the data distribution is x∼N(0,I)\mathbf{x}\sim\mathcal{N}(0,\mathbf{I}); thus,

We use the squared loss as the loss function, hence writing the empirical loss as:

The main tool we use is a closed-form formula for the kernel function defined by ReLU gates.

(Cho and Saul, 2009) For fixed u,v\mathbf{u},\mathbf{v}, if x∼N(0,I)\mathbf{x}\sim\mathcal{N}(0,\mathbf{I}), then

where θ\theta is the angel between u\mathbf{u} and v\mathbf{v} satisfying cos⁡θ=u⊤v/(∥u∥∥v∥)\cos\theta=\mathbf{u}^{\top}\mathbf{v}/(\|{\mathbf{u}}\|\|{\mathbf{v}}\|).

Then, the population loss has the following analytical form:

and so does the gradient (w^\hat{\mathbf{w}} is the unit vector along w\mathbf{w} direction):

We first prove the properties of the population loss, which were stated in Lemma 16 and we also restate the lemma below. Let B={w∣w⊤w⋆≥1d}∩{w∣∥w∥≤2}\mathfrak{B}=\{\mathbf{w}|\mathbf{w}^{\top}\mathbf{w}^{\star}\geq\frac{1}{\sqrt{d}}\}\cap\{\mathbf{w}|\|{\mathbf{w}}\|\leq 2\}.

The population and empirical risk R,R^nR,\hat{R}_{n} of learning a ReLU unit problem satisfies:

If w0∈B\mathbf{w}_{0}\in\mathfrak{B}, then runing ZPSGD (Algorithm 1) gives wt∈B\mathbf{w}_{t}\in\mathfrak{B} for all tt with high probability.

Inside B\mathfrak{B}, RR is O(1)O(1)-bounded, O(d)O(\sqrt{d})-gradient Lipschitz, and O(d)O(d)-Hessian Lipschitz.

Inside B\mathfrak{B}, RR is nonconvex function, w⋆\mathbf{w}^{\star} is the only SOSP of R(w)R(\mathbf{w}).

To prove these four claims, we require following lemmas.

The first important property we use is that the gradient of population loss ll has the one-point convex property inside B\mathfrak{B}, stated as follows:

Note that inside B\mathfrak{B}, we have the angle θ∈[0,π/2)\theta\in[0,\pi/2). Also, let Wθ={w∣∠(w,w⋆)=θ}\mathfrak{W}_{\theta}=\{\mathbf{w}|\angle(\mathbf{w},\mathbf{w}^{\star})=\theta\}, then for θ∈[0,π/2)\theta\in[0,\pi/2):

On the other hand, note that θ≤2sin⁡θ\theta\leq 2\sin\theta holds true for θ∈[0,π/2)\theta\in[0,\pi/2); thus we have:

where the second last inequality used the fact that sin⁡θ≤∥w−w⋆∥\sin\theta\leq\|{\mathbf{w}-\mathbf{w}^{\star}}\| for all w∈B\mathbf{w}\in\mathfrak{B}. ∎

One-point convexity guarantees that ZPSGD stays in the region B\mathfrak{B} with high probability.

ZPSGD (Algorithm 1) with proper hyperparameters will stay in B\mathfrak{B} with high probability.

The algorithm always moves towards x⋆\mathbf{x}^{\star} in the region B−{∥w−w⋆∥≤1/10}\mathfrak{B}-\{\|{\mathbf{w}-\mathbf{w}^{\star}}\|\leq 1/10\}.

The algorithm will not jump from {∥w∥≤1/10}\{\|{\mathbf{w}}\|\leq 1/10\} to Bc\mathfrak{B}^{c} in one step.

Let w(t)=15(w⋆+te)\mathbf{w}(t)=\frac{1}{5}(\mathbf{w}^{\star}+t\mathbf{e}) where e\mathbf{e} is any direction so that e⊤w⋆=0\mathbf{e}^{\top}\mathbf{w}^{\star}=0

which is nonconvex in domain t∈t\in. Therefore f(w(t))f(\mathbf{w}(t)) is nonconvex along this line segment inside B\mathfrak{B}.

Note that in above setup, tan⁡θ=t\tan\theta=t, so the population loss can be calculated as:

It’s easy to show w(t)∈B\mathbf{w}(t)\in\mathfrak{B} for all t∈t\in and if g(t)=R(w(t))g(t)=R(\mathbf{w}(t)), then g′′(0.6)<0g^{\prime\prime}(0.6)<0 and thus the function is nonconvex. ∎

Next, we show that the empirical risk and the population risk are close by a covering argument.

For sample size n≥dn\geq d, with high probability, we have:

Let {wj}j=1J\{\mathbf{w}^{j}\}_{j=1}^{J} be a ϵ\epsilon-covering of B\mathfrak{B}. By triangular inequality:

where wj\mathbf{w}^{j} is the closest point in the cover to w\mathbf{w}. Clearly, the ϵ\epsilon-net of B\mathfrak{B} requires fewer points than the ϵ\epsilon-net of {w∣∥w∥≤2}\{\mathbf{w}|\|{\mathbf{w}}\|\leq 2\}. By the standard covering number argument, we have log⁡Nϵ=O(dlog⁡1ϵ)\log N_{\epsilon}=O(d\log\frac{1}{\epsilon}). We proceed to bound each term individually.

Term T2T_{2}: For a fixed jj, we know R^n(wj)=1n∑i=1n(yi−ReLU(xi⊤wj))2\hat{R}_{n}(\mathbf{w}^{j})=\frac{1}{n}\sum_{i=1}^{n}(y_{i}-\text{ReLU}(\mathbf{x}_{i}^{\top}\mathbf{w}^{j}))^{2}, where yi−ReLU(xi⊤wj)y_{i}-\text{ReLU}(\mathbf{x}_{i}^{\top}\mathbf{w}^{j}) is sub-Gaussian with parameter O(1)O(1), thus (yi−ReLU(xi⊤wj))2(y_{i}-\text{ReLU}(\mathbf{x}_{i}^{\top}\mathbf{w}^{j}))^{2} is sub-Exponential with parameter O(1)O(1). We have the concentration inequality:

That is, with n≥dn\geq d, and probability 1−δ1-\delta, we have:

Term T3T_{3}: Since the population loss is O(1)O(1)-Lipschitz in B\mathfrak{B}, we have:

Term T1T_{1}: Note that for a fixed pair (xi,yi)(\mathbf{x}_{i},\mathbf{y}_{i}), the function gi(w)=(yi−ReLU(xi⊤w))2g_{i}(\mathbf{w})=(y_{i}-\text{ReLU}(\mathbf{x}_{i}^{\top}\mathbf{w}))^{2} is O(∥ζi∥∥xi∥+∥xi∥2)O(\|{\zeta_{i}}\|\|{\mathbf{x}_{i}}\|+\|{\mathbf{x}_{i}}\|^{2})-Lipschitz. Therefore,

With high probability, 1n∑i[∥ζi∥∥xi∥+∥xi∥2]\frac{1}{n}\sum_{i}\left[\|{\zeta_{i}}\|\|{\mathbf{x}_{i}}\|+\|{\mathbf{x}_{i}}\|^{2}\right] concentrates around its mean, O(d)O(d).

By picking ϵ\epsilon (for the ϵ\epsilon-covering) small enough, we finish the proof. ∎

Finally we prove the smoothness of population risk in B\mathfrak{B}, we have 1/d≤∥w∥≤21/\sqrt{d}\leq\|{\mathbf{w}}\|\leq 2.

For population loss R(w)=14∥w∥2+54−12π∥w∥[sin⁡θ+(π−θ)cos⁡θ]R(\mathbf{w})=\frac{1}{4}\|{\mathbf{w}}\|^{2}+\frac{5}{4}-\frac{1}{2\pi}\|{\mathbf{w}}\|[\sin\theta+(\pi-\theta)\cos\theta], its gradient and Hessian are equal to:

where w^\hat{\mathbf{w}} is the unit vector along the w\mathbf{w} direction, and u^\hat{\mathbf{u}} is the unit vector along the w⋆−w^cos⁡θ\mathbf{w}^{\star}-\hat{\mathbf{w}}\cos\theta direction.

Note ∥w⋆∥=1\|{\mathbf{w}^{\star}}\|=1. Let z(w,w⋆)=w⊤w⋆∥w∥z(\mathbf{w},\mathbf{w}^{\star})=\frac{\mathbf{w}^{\top}\mathbf{w}^{\star}}{\|{\mathbf{w}}\|}, we have:

Since cos⁡θ=z(w,w⋆)\cos\theta=z(\mathbf{w},\mathbf{w}^{\star}), we obtain:

Therefore, the Hessian (when θ≠0\theta\neq 0):

where u^\hat{\mathbf{u}} is the unit vector along w⋆−w^cos⁡θ\mathbf{w}^{\star}-\hat{\mathbf{w}}\cos\theta direction.

And for θ=0\theta=0, Hessian ∇2R(w)=12I\nabla^{2}R(\mathbf{w})=\frac{1}{2}\mathbf{I}. We prove this by taking the limit. For v^=w⋆\hat{\mathbf{v}}=\mathbf{w}^{\star}

For any v^⊥w⋆\hat{\mathbf{v}}\perp\mathbf{w}^{\star}, the angle θ\theta between w+ϵv^\mathbf{w}+\epsilon\hat{v} and w⋆\mathbf{w}^{\star} is Θ(ϵ∥w∥)\Theta(\frac{\epsilon}{\|{\mathbf{w}}\|}) up to first order in ϵ\epsilon, we have:

The population loss function RR is O(1)O(1)-bounded, O(1)O(1)-Lipschitz, O(d)O(\sqrt{d})-gradient Lipschitz, and O(d)O(d)-Hessian Lipschitz.

The bounded, Lipschitz, and gradient Lipschitz are all very straightforward given the formula of gradient and Hessian. We will focus on proving Hessian Lipschitz. Equivalently, we show upper bounds on following quantity:

Note that the change in θ\theta is at most O(ϵ∥w∥)O(\frac{\epsilon}{\|{\mathbf{w}}\|}), we have:

For four claims in Lemma 16, claim 1 follows from Lemma 60; claim 2 follows from Lemma 64; claim 3 follows from Lemma 62; claim 4 follows from Lemma 61 and Lemma 59. ∎

G.2 Proof of Theorem 17

Appendix H Proof of Stochastic gradient descent

Here for completeness we give the result for perturbed stochastic gradient descent, which is a adaptation of results in Jin et al. (2017a) and will be formally presented in Jin et al. (2018).

function ff satisfies following property:

for any λ>0,δ>0\lambda>0,\delta>0, if minibatch size m≥2λ2σ2ϵ2log⁡dδm\geq\frac{2\lambda^{2}\sigma^{2}}{\epsilon^{2}}\log\frac{d}{\delta}, then for a fixed x\mathbf{x}, with probability 1−δ1-\delta, we have:

This lemma means, when mini-batch size is large enough, we can make noise in the stochastic gradient descent polynomially small.

Consider the setting of Theorem 65, if ∥∇f(xt)∥≥ϵ\|{\nabla f(\mathbf{x}_{t})}\|\geq\epsilon, then by running Algorithm 1, with probability 1−δ1-\delta, we have f(xt+1)−f(xt)≤−ηϵ2/4f(\mathbf{x}_{t+1})-f(\mathbf{x}_{t})\leq-\eta\epsilon^{2}/4.

By gradient Lipschitz, and the fact ∥ξt∥≤ϵ/20\|{\xi_{t}}\|\leq\epsilon/20 and with minibatch size mm large enough, with high probability we have ∥∇f(xt)−gt∥≤ϵ/20\|{\nabla f(\mathbf{x}_{t})-\mathbf{g}_{t}}\|\leq\epsilon/20. Let ζt=gt−∇f(xt)+ξt\zeta_{t}=\mathbf{g}_{t}-\nabla f(\mathbf{x}_{t})+\xi_{t}, by triangle inequality, we have ∥ζt∥≤ϵ/10\|{\zeta_{t}}\|\leq\epsilon/10 and update equation xt+1=xt−η(∇f(xt)+ζt)\mathbf{x}_{t+1}=\mathbf{x}_{t}-\eta(\nabla f(\mathbf{x}_{t})+\zeta_{t}):

Consider the setting of Theorem 65, if ∥∇f(xt)∥≤ϵ\|{\nabla f(\mathbf{x}_{t})}\|\leq\epsilon and λmin⁡(∇2f(xt))≤−ρϵ\lambda_{\min}(\nabla^{2}f(\mathbf{x}_{t}))\leq-\sqrt{\rho\epsilon}, then by running Algorithm 1, with probability 1−δ1-\delta, we have f(xt+T)−f(xt)≤−Ff(\mathbf{x}_{t+\mathscr{T}})-f(\mathbf{x}_{t})\leq-\mathscr{F}.

Combining lemma 67 and 68, we know with probability 1−ΔfFδ1-\frac{\Delta_{f}}{\mathscr{F}}\delta, algorithm will find ϵ\epsilon-second order stationary point in following iterations:

where ζt=gt−∇f(xt)+ξt\zeta_{t}=\mathbf{g}_{t}-\nabla f(\mathbf{x}_{t})+\xi_{t}.

(Improve or Localize) Suppose {xt}t=0T\{\mathbf{x}_{t}\}_{t=0}^{T} is a SGD sequence, then for all t≤Tt\leq T:

where ζt=gt−∇f(xt)+ξt\zeta_{t}=\mathbf{g}_{t}-\nabla f(\mathbf{x}_{t})+\xi_{t}

For any t≤T−1t\leq T-1, by Lemma 69, we have:

Finally, by Cauchy-Schwarz, we have for all t≤Tt\leq T:

To study escaping saddle points, we need a notion of coupling. Recall the PSGD update has two source of randomness: gt−∇f(xt)\mathbf{g}_{t}-\nabla f(\mathbf{x}_{t}) which is the stochasticity inside the gradient oracle and ξt\xi_{t} which is the perturbation we deliberately added into the algorithm to help escape saddle points. Let SGDξ(t)(⋅)\text{SGD}_{\xi}^{(t)}(\cdot) denote the update via SGD tt times with perturbation ξ={ξ2,⋯ }\xi=\{\xi_{2},\cdots\} fixed. Define Stuck region:

Intuitively, the later perturbations of coupling sequence are the same, while the very first perturbation is used to escape saddle points.

Since xT\mathbf{x}_{\mathscr{T}} and x0′\mathbf{x}^{\prime}_{0} are independent, we have

In the remaining proof, we will proceed proving Eq.(22) by showing two steps:

min⁡{f(xT)−f(x0),f(xT′)−f(x0′)}≤−2F\min\{f(\mathbf{x}_{\mathscr{T}})-f(\mathbf{x}_{0}),f(\mathbf{x}^{\prime}_{\mathscr{T}})-f(\mathbf{x}^{\prime}_{0})\}\leq-2\mathscr{F} with probability 1−δ1-\delta

The final result immediately follow from triangle inequality.

Part 2. Assume the contradiction min⁡{f(xT)−f(x0),f(xT′)−f(x0′)}≥−2F\min\{f(\mathbf{x}_{\mathscr{T}})-f(\mathbf{x}_{0}),f(\mathbf{x}^{\prime}_{\mathscr{T}})-f(\mathbf{x}^{\prime}_{0})\}\geq-2\mathscr{F}, by Lemma 70 (note ∥ζt∥≤∥gt−∇f(xt)∥+∥ξt∥≤2r\|{\zeta_{t}}\|\leq\|{\mathbf{g}_{t}-\nabla f(\mathbf{x}_{t})}\|+\|{\xi_{t}}\|\leq 2r with high probability when mm is large enough), with 1−δ/21-\delta/2 probability, this implies localization:

That is, the first term is always the dominating term. It is easy to check for base case t=0t=0; we have 0≤∥w0∥/20\leq\|{\mathbf{w}_{0}}\|/2. Suppose for all t′≤tt^{\prime}\leq t the induction holds, this gives:

where the third last inequality use the fact w0\mathbf{w}_{0} is along minimum eigenvector direction of H\mathcal{H}, the last inequality uses the fact ηρST=c−1≤1/4\eta\rho\mathscr{S}T=c^{-1}\leq 1/4 for cc large enough.

On the other hand, with 1−δ/21-\delta/2 probability, we also have:

where the last inequality requires max⁡τ∥hτ∥≤γ∥w0∥\max_{\tau}\|{\bm{h}_{\tau}}\|\leq\gamma\|{\mathbf{w}_{0}}\| which can be achieved by making minibatch size mm large enough. Now, by triangular inequality, we finishes the induction.

Let r0=δr2πdr_{0}=\delta r\sqrt{\frac{2\pi}{d}} and applying Lemma 71, we know Xstuckξ(xt)\mathcal{X}^{\xi}_{\text{stuck}}(\mathbf{x}_{t}) has at most width ηr0\eta r_{0} in the minimum eigenvector direction of ∇2f(xt)\nabla^{2}f(\mathbf{x}_{t}) and thus,

Therefore the probabilty of escaping saddle point is (1−δ)(1−δ)≥1−2δ(1-\delta)(1-\sqrt{\delta})\geq 1-2\sqrt{\delta}. Reparametrizing δ′=2δ\delta^{\prime}=2\sqrt{\delta} only affects constant factors in χ\chi, hence we finish the proof. ∎