Foundations to Frontier
Tests
A. Mathematical Foundations › A6 Optimization › Optimization for ML

Non-Convex Optimization: Saddle Points and How to Escape Them

Neural network losses are non-convex, yet gradient methods train them reliably. Part of the explanation: in high dimensions the main obstacles are saddle points, not bad local minima, and saddles with a direction of negative curvature (strict saddles) are escapable. You will analyse gradient descent near a saddle, see why random initialization avoids saddles almost surely but can still waste time on plateaus, use perturbations and SGD noise to escape fast, and watch matrix factorization cross a sequence of saddles to a global minimum.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Mountain passes

A mountain pass is the lowest point between two peaks, but the highest point between two valleys. Stand there and the ground is flat in every direction. Gradient descent would stop and think it had arrived. That’s a saddle point: a minimum along one direction and a maximum along another.

A tiny nudge sideways sends you rolling down into a valley. Even so, if you start almost exactly on the ridge line, you’ll dawdle near the pass for a long time before you notice the slope.

Stuck at a saddle: how long, and how to escape
saddlef(saddle) = 0loss vs iteration: the plateau is time spent at the saddle
escaped after 139 steps · theory log(0.5/ε)/log(1+η) ≈ 138
The saddle attracts along x (positive curvature) and repels along y (negative curvature). Starting a distance ε off the y = 0 line, GD's y-component grows by (1 + η) per step, so leaving takes about log(1/ε)/log(1 + η) steps: a long plateau in the loss. Exactly on the line, plain GD converges to the saddle and stops. That set of starting points has measure zero, so random initialization avoids it almost surely. Small random perturbations (perturbed GD) or SGD noise guarantee escape in a short time.
Why engineers care

Training plateaus in neural networks, slow starts in matrix factorization, and stalls in non-convex trajectory optimization are often saddle points, not bad minima. Knowing this tells you what fixes help: noise, perturbations, better initialization, momentum or second-order directions. It also tells you that waiting longer may be enough.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A saddle point is…
  2. 2. At a saddle, the gradient is…
  3. 3. A small random nudge at a saddle usually…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Critical points by curvature

At ∇f=0\nabla f = 0, look at the Hessian’s eigenvalues (A6.1-2):

  • all positive: local minimum;
  • mixed signs: saddle;
  • some zero: degenerate.

The Morse index is the number of negative eigenvalues. A saddle is strict if λmin⁡(∇2f)<0\lambda_{\min}(\nabla^2f) < 0: it has a direction of strictly negative curvature.

Example

f(x,y)=12x2−12y2+14y4f(x, y) = \frac12x^2 - \frac12y^2 + \frac14y^4
  • The Hessian at the origin is diag⁡(1,−1)\operatorname{diag}(1, -1): a strict saddle with f=0f = 0.
  • Minima at (0,±1)(0, \pm1) with f=−14f = -\frac14.
  • Near the origin GD gives xk+1=(1−η)xkx_{k+1} = (1 - \eta)x_k (shrinks) and yk+1≈(1+η)yky_{k+1}\approx(1 + \eta)y_k (grows).

High dimensions

For random high-dimensional functions, critical points with many negative eigenvalues are overwhelmingly common at high loss, and minima appear mostly at low loss. The typical obstacle is a saddle, not a bad minimum (Dauphin et al., 2014).

📝 Quick check (Level 1)
0/3 answered
  1. 1. A Hessian with eigenvalues (2, −0.5) indicates a…
  2. 2. The Morse index counts…
  3. 3. Near the example saddle, GD's y-component grows by…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.

Does GD get stuck?

  • Almost never converges to a strict saddle: the set of initializations from which GD (with η<1/L\eta < 1/L) converges to a strict saddle has measure zero. That set is the saddle’s stable manifold (Lee et al., 2016, via the stable-manifold theorem).
  • But it can take a long time: starting a distance ε\varepsilon from the stable manifold, escaping takes about log⁡(r/ε)/log⁡(1+η∣λmin⁡∣)\log(r/\varepsilon)/\log(1 + \eta|\lambda_{\min}|) steps. With many saddles in sequence, plain GD can need exponential time in the worst case (Du et al., 2017).

Escaping fast

  • Perturbed GD (Jin et al., 2017): when ∥∇f∥\|\nabla f\| is small, add a random perturbation from a small ball. It finds an ε-second-order stationary point (∥∇f∥≤ε\|\nabla f\|\le\varepsilon, λmin⁡≥−ρε\lambda_{\min}\ge-\sqrt{\rho\varepsilon}) in O~(1/ε2)\tilde O(1/\varepsilon^2) iterations, almost the same as finding a first-order point.
  • SGD noise does the same for free (Ge et al., 2015).
  • Momentum accelerates escape along negative-curvature directions (Jin, Netrapalli and Jordan, 2018).
  • Negative-curvature steps: use Hessian-vector products to find λmin⁡\lambda_{\min}’s eigenvector (Lanczos) and step along it.

Benign landscapes

Many problems have no spurious local minima: every local minimum is global and every saddle is strict. Examples: matrix factorization and completion, phase retrieval, deep linear networks, PCA (Ge, Lee and Ma, 2016; Kawaguchi, 2016). For these, saddle-escaping methods provably find global optima.

🐍 Exercise 1: stuck, slow, or escaping
Run GD from exactly on a saddle's stable manifold, from tiny offsets (checking escape time against log(r/ε₀)/log(1 + η)), and with perturbed GD.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Initializations from which GD converges to a strict saddle form a set of…
  2. 2. Escape time from offset ε scales as…
  3. 3. Perturbed GD reaches an ε-second-order stationary point in…

Level 3: Advanced

★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.

GD near a strict saddle

Linearize at the saddle: ∇f(x)≈H(x−x⋆)\nabla f(x)\approx H(x - x^\star). Then ek+1=(I−ηH)eke_{k+1} = (I - \eta H)e_k. In the eigenbasis, components with λi>0\lambda_i > 0 shrink by 1−ηλi1 - \eta\lambda_i, and components with λi<0\lambda_i < 0 grow by 1+η∣λi∣1 + \eta|\lambda_i|. Starting with a component ε\varepsilon along the most negative direction, it reaches size rr after k=log⁡(r/ε)/log⁡(1+η∣λmin⁡∣)k = \log(r/\varepsilon)/\log(1 + \eta|\lambda_{\min}|) steps. If that component is exactly zero (the stable manifold, to first order), it stays zero. ∎

Why the stable manifold has measure zero (sketch)

The GD map g(x)=x−η∇f(x)g(x) = x - \eta\nabla f(x) is a diffeomorphism for η<1/L\eta < 1/L. Near a strict saddle, the points converging to it lie on a smooth manifold of dimension n−(index)<nn - (\text{index}) < n. Pulling it back through countably many applications of g−1g^{-1} preserves measure zero. ∎ (Lee et al., 2016; Panageas and Piliouras, 2017.)

Saddles of matrix factorization

For f(U,V)=12∥UV⊤−M∥F2f(U, V) = \frac12\|UV^\top - M\|_F^2, ∇Uf=(UV⊤−M)V\nabla_Uf = (UV^\top - M)V and ∇Vf=(UV⊤−M)⊤U\nabla_Vf = (UV^\top - M)^\top U. At U=V=0U = V = 0 both vanish, so the origin is a critical point. Its Hessian has negative curvature along the top singular vectors of MM, so it’s a strict saddle. Small random initialization escapes along them one by one: saddle-to-saddle dynamics with a plateau per singular value (Saxe, McClelland and Ganguli, 2014).

Exercise 3.1: Escape time with η = 0.1, ε₀ = 10⁻⁴, r = 0.5

ln⁡(5000)/ln⁡(1.1)≈8.517/0.0953≈89.4\ln(5000)/\ln(1.1)\approx8.517/0.0953\approx89.4 steps. With ε0=10−12\varepsilon_0 = 10^{-12}: ≈283\approx283.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Near a strict saddle, components along negative-curvature directions…
  2. 2. The stable-manifold argument needs the GD map to be…
  3. 3. In matrix factorization, U = V = 0 is…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Plateaus in matrix factorization

Factor a rank-3 matrix (think of compressing correlated telemetry channels) as UV⊤UV^\top by GD.

  • From exactly zero, GD never moves.
  • From initialization scale 10−610^{-6}, the loss sits on a plateau for about 330 steps, then drops.
  • From 10−1210^{-12}, the plateau doubles to about 670 steps, which is the log⁡(1/scale)\log(1/\text{scale}) law.

Both runs then reach the global optimum to machine precision: the landscape has no bad local minima, only saddles. The same plateau-then-drop curves appear when training deep networks from small initializations.

🐍 Exercise 2 (research): saddle-to-saddle dynamics
Run GD on low-rank matrix factorization from zero, small and tiny initializations. Measure plateau lengths and confirm convergence to the global minimum.

Non-convex optimization in AI, robotics and aerospace

  • Deep learning: loss-landscape studies (Goodfellow, Vinyals and Saxe, 2015; Li et al., 2018) and saddle-escape theory explain why SGD trains large networks.
  • Low-rank estimation: matrix completion for sensor networks and structure-from-motion has benign landscapes (Ge, Lee and Ma, 2016).
  • Robot motion planning: trajectory optimizers (CHOMP, TrajOpt) stall in saddles and local minima. Random restarts and perturbations are standard.
  • SLAM: certifiably correct methods (SE-Sync) avoid spurious minima via convex relaxation, then verify global optimality (Rosen et al., 2019).

References

  1. Y. Dauphin et al. (2014). “Identifying and attacking the saddle point problem in high-dimensional non-convex optimization.” NeurIPS.
  2. J. Lee, M. Simchowitz, M. Jordan, B. Recht (2016). “Gradient descent only converges to minimizers.” COLT.
  3. C. Jin, R. Ge, P. Netrapalli, S. Kakade, M. Jordan (2017). “How to escape saddle points efficiently.” ICML.
  4. R. Ge, F. Huang, C. Jin, Y. Yuan (2015). “Escaping from saddle points: online stochastic gradient for tensor decomposition.” COLT.
  5. S. Du et al. (2017). “Gradient descent can take exponential time to escape saddle points.” NeurIPS.
  6. R. Ge, J. Lee, T. Ma (2016). “Matrix completion has no spurious local minimum.” NeurIPS.
  7. K. Kawaguchi (2016). “Deep learning without poor local minima.” NeurIPS.
  8. A. Saxe, J. McClelland, S. Ganguli (2014). “Exact solutions to the nonlinear dynamics of learning in deep linear neural networks.” ICLR.
  9. C. Jin, P. Netrapalli, M. Jordan (2018). “Accelerated gradient descent escapes saddle points faster than gradient descent.” COLT.
  10. H. Li, Z. Xu, G. Taylor, C. Studer, T. Goldstein (2018). “Visualizing the loss landscape of neural nets.” NeurIPS.