Source-linked AI summary

On Nonconvex Optimization for Machine Learning: Gradients, Stochasticity, and Saddle Points

Chi Jin, Praneeth Netrapalli, Rong Ge, Sham M. Kakade, Michael I. Jordan

arXiv:1902.04811v2cs.LGmath.OCstat.ML

TL;DR

The paper addresses the dimension dependence of gradient methods’ convergence when saddle points must be avoided in nonconvex machine learning. It analyzes perturbed GD and SGD and finds that, in the non-stochastic and Lipschitz stochastic settings, second-order stationarity costs essentially the same time as first-order stationarity; the general stochastic setting has linear dimension overhead.

  • Problem

    Nonconvex machine-learning analyses need to characterize saddle-point avoidance as a function of accuracy and dimension, which can reach millions in modern problems.

    Source: §1 · pp. 1–2
  • Method

    The paper analyzes suitably perturbed versions of gradient descent and stochastic gradient descent to find second-order stationary points.

    Source: §1 · p. 3, §5 · p. 12
  • Results

    PGD takes ˜O(ǫ^-2) iterations and Lipschitz PSGD ˜O(ǫ^-4), with polylogarithmic dimension overhead; general stochastic PSGD has linear dimension overhead.

    Source: §1 · p. 3, §6 · p. 16
  • Takeaways & Limitations

    In the non-stochastic and Lipschitz stochastic settings, second-order stationarity is reached in essentially the time classical GD and SGD take to reach first-order stationarity.

    Source: §6 · p. 16

    The analysis assumes a Lipschitz Hessian, and whether the resulting GD variants are close to optimal remains open.

    Source: §6 · p. 16

Abstract

from arXiv · show

Gradient descent (GD) and stochastic gradient descent (SGD) are the workhorses of large-scale machine learning. While classical theory focused on analyzing the performance of these methods in convex optimization problems, the most notable successes in machine learning have involved nonconvex optimization, and a gap has arisen between theory and practice. Indeed, traditional analyses of GD and SGD show that both algorithms converge to stationary points efficiently. But these analyses do not take into account the possibility of converging to saddle points. More recent theory has shown that GD and SGD can avoid saddle points, but the dependence on dimension in these analyses is polynomial. For modern machine learning, where the dimension can be in the millions, such dependence would be catastrophic. We analyze perturbed versions of GD and SGD and show that they are truly efficient---their dimension dependence is only polylogarithmic. Indeed, these algorithms converge to second-order stationary points in essentially the same time as they take to converge to classical first-order stationary points.

1 Introduction

The introduction frames saddle-point avoidance in nonconvex machine learning as a dimension-sensitive gap between theory and practice. It presents perturbed GD and SGD results, reviews related guarantees and trade-offs, and outlines the paper.

1 Introduction

  • Nonconvex machine-learning successes contrast with convex-focused theory, while ubiquitous saddle points may bottleneck gradient methods in millions of dimensions.The introduction emphasizes that iteration complexity must account for dimension and apply at all scales.Source: §1 · pp. 1–2
  • The paper aims to unify stochastic and non-stochastic analyses, bound iteration complexity by accuracy and dimension, and expose the source of dimension dependence..Source: §1 · p. 2
  • PGD finds ǫ-second-order stationary points in ˜O(ǫ^-2) iterations; Lipschitz PSGD in ˜O(ǫ^-4), while non-Lipschitz PSGD requires ˜O(dǫ^-4).The first two rates incur only polylogarithmic overhead in dimension relative to their first-order counterparts; the non-Lipschitz setting has linear dimension overhead.Source: §1 · p. 3

1.1 Related work

  • Hessian-based methods require matrices scaling quadratically with dimension, while Hessian-vector methods use nested loops and had not entered practical implementations [Carmon et al., 2016, Agarwal et al., 2017].Source: §1.1 · pp. 3–4
  • Earlier perturbed-GD results gave poly(d) bounds, while Jin et al. [2017a] reported ˜O(ǫ−2) gradient queries with logarithmic dimension overhead.Source: §1.1 · p. 4
  • An earlier stochastic-SGD variant could require ˜O(d^4ǫ^-5) iterations when the variance along saddle-escape directions scales as γ = 1/d [Daneshmand et al., 2018].Source: §1.1 · p. 5

1.2 Organization

  • The paper reviews preliminaries, examples, algorithms and main results, then proofs for perturbed GD and SGD, before concluding.Source: §1.2 · p. 5

2 Background

This background establishes the notation and smoothness assumptions, then contrasts classical first-order guarantees with the second-order goal in deterministic and stochastic optimization.

2.1 Notation

  • The paper uses bold uppercase letters for matrices, bold lowercase letters for vectors, ℓ2 norms for vectors, and ˜O notation to hide polylogarithmic parameter factors.O, Θ, and Ω hide only absolute constants; the corresponding tilde notation also hides factors polylogarithmic in problem parameters.Source: §2.1 · pp. 5–6

2.2 Nonconvex optimization and gradient descent

  • Assuming Lipschitz gradients and Hessians, classical gradient descent targets first-order stationarity, but stationary points can be saddles; the paper instead targets approximate second-order stationarity.The paper focuses on strict saddles, and notes that for many popular models approximate second-order stationary points are approximate global minima.Source: §2.2 · pp. 6–7

2.3 Stochastic approximation

  • In stochastic approximation, queries return unbiased random gradients rather than exact gradients, and standard assumptions bound their variance or strengthen control of their tails.Prior work gives dimension-independent iteration bounds for SGD to visit first-order stationary points under stated smoothness and stochastic-gradient assumptions.Source: §2.3 · pp. 7–8

3 On the Sufficiency of Second-Order Stationarity

The section connects second-order stationarity to global optimality for a class of nonconvex problems and illustrates the geometry with a leading-eigenvector objective.

3 On the Sufficiency of Second-Order Stationarity

  • When all local minima are global and all saddle points are strict, every second-order stationary point is a global minimum.The paper identifies these geometric properties in a range of machine-learning and signal-processing problems and argues that efficient second-order convergence then yields global convergence from arbitrary initialization.Source: §3 · p. 8
  • For the leading-eigenvector objective, stationary points are zero or signed eigenvector directions, and non-leading directions have strict negative curvature along the top eigenvector.The example assumes a positive semidefinite matrix with a gap between its top two eigenvalues.Source: §3 · p. 9
  • For the matrix-factorization objective, if M is positive semidefinite and λ1 > λ2 ≥ 0, all second-order stationary points are global optima.Under technical conditions, the section notes that for polynomially small ε, all ε-second-order stationary points are close to global optima.Source: §3 · p. 9

4 Main Results

The section presents perturbed gradient descent for exact gradients and perturbed SGD, including a mini-batch version, to find second-order stationary points. The guarantees compare their iteration costs with first-order methods and distinguish stochastic settings by their assumptions.

4.1 Non-stochastic setting

  • PGD adds a small isotropic Gaussian perturbation at each gradient-descent step; the paper notes Gaussian noise is not required if suitable concentration and directional variance conditions hold.Algorithm 1 differs from Jin et al. [2017a], which perturbs only when certain conditions hold.Source: §4.1 · pp. 9–10
  • PGD finds second-order stationary points in almost the same time as GD finds first-order stationary points, up to only logarithmic factors; choosing r = ˜Θ(ǫ) gives polylogarithmic dependence on dimension in the iteration count for an ǫ-second-order point.Source: §4.1 · p. 10

4.2 Stochastic setting

  • The stochastic analysis assumes unbiased stochastic gradients, and optional Assumption C imposes Lipschitz stochastic gradients to obtain the dimension-independent rate.The paper treats the case without Assumption C as well, with a linear-in-dimension iteration cost.Source: §4.2 · pp. 10–11
  • With Assumption C, PSGD finds second-order stationary points in ˜O(ǫ−4) iterations, matching the first-order SGD rate up to logarithmic factors.This case applies when σ2/ǫ2 ≥ ˜ℓ2/(ℓ√(ρǫ)).Source: §4.2 · p. 11
  • Without Assumption C, PSGD requires ˜O(dǫ−4) iterations, an additional cost linear in dimension compared with the first-order SGD result.Here N = 1 + σ2d/ǫ2.Source: §4.2 · p. 11
  • Mini-batch PSGD reduces iteration count linearly without increasing stochastic-gradient queries when the batch size satisfies m ≤ N.The guarantee is stated in Theorem 17, with N defined in Eq. (4).Source: §4.2 · p. 12

5 Proofs

The proofs bound function-value decrease when gradients are large and establish escape from strict saddles after perturbation. A localization argument and a coupling argument explain why the region that remains stuck is thin, supporting the variant algorithm’s second-order-stationarity guarantee.

Proof strategy

  • The variant algorithm simplifies the proof by restricting when perturbation noise is added, while the full proofs handle the interaction between stochasticity and saddle-point geometry.The variant is more complex than PGD, but its proof is streamlined to expose the core concepts.Source: §5 · p. 12

Variant PGD guarantee

  • Theorem 18 guarantees that at least half of the variant-PGD iterates are ǫ-second-order stationary points, with probability at least 1 − δ.The proof uses parameter choices for η, r, T, F, and S.Source: §5 · pp. 12, 16

Proof strategy

  • The variant-PGD proof uses contradiction: any iterate that is not second-order stationary has either a large gradient or a strictly negative Hessian, and must yield controlled function decrease.The total possible decrease is bounded by f(x0) − f⋆.Source: §5 · p. 13

Escaping saddle points

  • At a point with a small gradient and sufficiently negative minimum Hessian eigenvalue, perturbation followed by gradient descent yields a significant function-value decrease within T iterations.This is the escape-saddle argument underlying Lemma 20.Source: §5 · p. 13

Improve or Localize

  • The Improve or Localize lemma bounds how far iterates can move when function value does not decrease much; coupling sequences then makes the stuck region thin along an escaping direction.The width along e1 is at most ηω.Source: §5 · pp. 13–15

6 Conclusions

Perturbed GD and SGD find second-order stationary points in essentially the time classical versions need for first-order stationarity, with logarithmic dimension overhead except in the general stochastic setting. The conclusions distinguish this guarantee from random-initialization and Langevin approaches, while leaving optimal rates and higher-order stationarity as open directions.

Conclusions

  • Logarithmic dimension overhead suffices for perturbed GD and SGD to find second-order stationary points, except that general stochastic gradients incur a linear dimension factor.In both settings, the methods take essentially the same time as classical GD and SGD need to find first-order stationary points.Source: §6 · p. 16
  • Combined with prior results that second-order stationary points are global optima for broad problem classes, these guarantees support efficient simple local search for those problems.The passage identifies machine learning and signal processing among the relevant areas.Source: §6 · p. 16

Optimal rates for finding second-order stationary points

  • Whether the GD variants are close to optimal for finding second-order stationary points remains unresolved under the paper’s Lipschitz-Hessian assumption.The cited lower bounds do not establish optimality for these variants.Source: §6 · p. 16

Escaping high-order saddle points

  • The paper guarantees only second-order stationarity; efficient third-order stationarity with simple GD variants remains open, and finding nth-order points is NP-hard for all n ≥4.The passage also notes a polynomial-time third-order algorithm, without establishing that simple GD variants can do the same.Source: §6 · p. 17

Connection to gradient Langevin dynamics

  • The small noise used here supports efficient local search for second-order stationary points, but low-temperature LMC may require Ω(e^d) steps for worst-case mixing.LMC targets a stationary distribution, whereas the optimization algorithm targets a stationary point.Source: §6 · p. 17

On the necessity of adding perturbations

  • Random initialization alone can leave GD exponentially slow to escape saddle points, despite its asymptotic saddle-avoidance guarantee.The cited work reports this slowdown for natural initialization schemes and non-pathological functions.Source: §6 · pp. 17–18

A Tables of Related Work

The section compares the paper’s results with related work in both non-stochastic and stochastic settings, noting that its algorithms are simple variants of standard GD and SGD.

A Tables of Related Work

  • Tables 2 and 3 compare the results with related work in non-stochastic and stochastic settings.The passage characterizes the paper’s algorithms as simple variants of standard GD and SGD, the simplest among those listed.Source: A Tables of Related Work · p. 22

B Proofs for Stochastic Setting

The section proves the main stochastic-setting results, Theorems 16 and 17, and obtains Theorem 13 as a special case of Theorem 16 when σ = 0.

B Proofs for Stochastic Setting

B.1 Notation

The notation section rewrites the stochastic update using the combined stochastic-gradient and injected noise, defines its filtration, and specifies parameter conventions.

B.1 Notation

  • The stochastic update combines stochastic-gradient noise ζ_t and injected perturbation ξ_t into ˜ζ_t, with variance parameter ˜σ² = σ² + r².The resulting update is written as a gradient step using ∇f(x_t) + ˜ζ_t.Source: §B.1 · p. 23
  • F_t denotes the filtration generated by the stochastic-gradient and injected perturbations through time step t.Source: §B.1 · p. 23
  • N and the log factor ι are defined for the parameter choices; μ is a sufficiently large absolute constant, while c is absolute and may vary between lines.Source: §B.1 · p. 23

B.2 Descent lemma

The descent lemma separates progress from gradients from possible increases due to stochastic gradients and perturbations. Together with an improve-or-localize result, it bounds how far perturbed SGD can move when function values do not decrease.

B.2 Descent lemma

  • The function-value change decomposes into gradient-driven decrease and possible increases from stochastic gradients and perturbations.This decomposition is the basis for analyzing progress under randomness.Source: §B.2 · p. 23
  • Under Assumptions A and B and step size η ≤ 1/ℓ, the descent lemma bounds perturbed SGD's function-value change with probability at least 1 − 4e^−ι.The bound applies at any fixed t and t0.Source: §B.2 · p. 23
  • With high probability, over a short interval perturbed SGD either decreases the function value significantly or stays within a small local region.This is the improve-or-localize phenomenon.Source: §B.2 · p. 24
  • The localization bound relates iterate displacement to function-value decrease and a term for gradient and perturbation noise.It holds simultaneously for each τ ≤ t with probability at least 1 − 8dt · e^−ι.Source: §B.2 · p. 24

B.3 Escaping saddle points

The section establishes that perturbed SGD can make progress near strict saddle points, complementing the descent result for large gradients. Its proof couples two runs to show that failure to decrease localizes both trajectories, while their difference can grow along a negative-curvature direction.

B.3 Escaping saddle points

  • Starting near a strict saddle, perturbed SGD can decrease the function value rapidly, complementing descent from large gradients.The escaping-saddle lemma formalizes this result under the section's stated assumptions and parameter choices.Source: §B.3 · p. 25
  • The coupled runs share randomness outside the minimum-eigenvalue direction and use opposite perturbations along that direction.This coupling makes their difference informative about escape along negative curvature.Source: §B.3 · p. 25
  • If neither coupled run decreases sufficiently, both trajectories remain localized near their common starting point within T iterations.The argument uses the localization lemma to rule out both runs remaining stuck near the saddle.Source: §B.3 · p. 25
  • The coupling analysis aims to make the negative-curvature contribution dominate while keeping the Hessian-variation and stochastic-gradient contributions small.The proof tracks these terms in the dynamics of the difference between the two runs.Source: §B.3 · p. 26

B.4 Proof of Theorem 16

The theorem proof combines descent from large gradients with escape from saddle points. It concludes that at least half of the iterates are ε-second-order stationary points.

B.4 Proof of Theorem 16

  • The proof combines the function-value decrease guarantees for large gradients and strictly negative curvature to establish the main theorem.These guarantees come from the descent lemma and escaping-saddle lemma, respectively.Source: §B.4 · p. 28
  • At least T/2 iterates are ε-second-order stationary points.The proof separately bounds the number of iterates with large gradients and those close to saddle points.Source: §B.4 · p. 28

B.5 Proof of Theorem 17

Mini-batch perturbed SGD follows the proof for perturbed SGD, with batch size reducing variance terms. The concentration-inequality section develops tools for norm-subGaussian random vectors and related martingale differences.

B.5 Proof of Theorem 17

  • Mini-batch perturbed SGD uses essentially the same proof, with batch size m reducing two variance terms by a factor of m up to a logarithmic factor.The reduced terms are σ² and the term proportional to the squared displacement in Eq. (10).Source: §B.5 · p. 30

C Concentration Inequalities

  • The concentration section defines norm-subGaussian vectors as a framework that includes bounded and subGaussian random vectors as special cases.The section uses this framework for concentration results needed in the paper.Source: C Concentration Inequalities · p. 30
  • For zero-mean norm-subGaussian vectors, squared norms are subExponential and components along fixed directions are subGaussian.These properties support concentration bounds for norms and projections.Source: C Concentration Inequalities · p. 30
  • The section provides a Hoeffding-type inequality for norm-subGaussian vectors that is tight up to a log(d) factor.It also presents concentration results for sums of squared norms and inner products.Source: C Concentration Inequalities · pp. 30–31
Loading 1902.04811v2…