Every guarantee in this module so far leaned on convexity, and every interesting model you will train violates it. This closing lesson maps the territory honestly: what the critical points of a non-convex surface look like, which of them actually bite in high dimensions (the answer is not the one 2-D intuition suggests), and what a decade of loss-landscape research established about why the convex-case toolkit — SGD, momentum, Adam — trains hundred-billion-parameter networks anyway.
The taxonomy of flat places
A critical point is any with — everywhere gradient descent can converge to, since it only ever sees the gradient. The Hessian’s eigenvalues classify it:
| All | Point | Along eigendirections |
|---|---|---|
| local minimum | curves up in every direction | |
| local maximum | curves down in every direction | |
| mixed signs | saddle point | up in some, down in others |
| some | degenerate / plateau | flat to second order — valleys, ridges, shelves |
Two of these dominate discussion; only one deserves it, as the next section argues.
Why high dimensions demote local minima and promote saddles
The classic fear — “we’ll get stuck in a bad local minimum” — is a low-dimensional intuition. A counting argument dissolves it. At a random critical point of a generic high-dimensional function, model each Hessian eigenvalue’s sign as an independent coin flip: the probability that all of them come up positive — a local minimum — is . In dimensions, a critical point with no downhill direction is exponentially rare — a lottery no one wins — except in one systematic place: where the loss is already low, because near the bottom of the landscape there is little room left to curve downward. Random-matrix analyses and empirical Hessian studies of neural networks (Dauphin et al., Choromanska et al.) sharpened this into the modern picture:
High-dimensional loss surfaces are overwhelmingly populated by saddle points, and the local minima that do exist concentrate at loss values close to the global one. The practical enemy is not a deep trapping basin — it is the vast, nearly-flat neighbourhoods around saddles, where the gradient is small in every direction and progress crawls.
This inverts the naive worry. The two-wells surface from the gradient-descent lesson — genuinely distinct basins with different loss — is what low-dimensional non-convexity looks like. Overparameterized networks look more like an enormous connected family of good solutions (mode-connectivity experiments find low-loss paths between independently trained minima) punctured by saddles you must pass, not escape.
Saddle dynamics: why plain GD stalls and noise saves it
Near a saddle, take the diagonal model . Gradient descent gives, per coordinate,
The stable direction contracts; the escape direction grows geometrically — but only in proportion to how far along it you already are. Arrive with (and a symmetric initialization can arrange exactly that) and the exponential amplifier has nothing to amplify: GD spends an arbitrarily long time creeping along the stable manifold, gradient norm shrinking, loss curve flat, everything looking converged. The escapes are equally mechanical:
- Noise (SGD’s free gift): a random kick puts mass on the unstable direction, and the amplifier does the rest. Perturbed GD escapes strict saddles in polynomial time (Jin et al.) — one of the few clean theorems in this area.
- Momentum: velocity accumulated before the saddle carries the iterate across the flat region rather than parking in it.
- Strict saddles ( strictly) are provably not where GD converges from random init (Lee et al.) — the stable manifold has measure zero. The cost is time, not final destination; the flat crawl is the price actually paid.
The default start sits a hair off the stable axis of (the red dot is the saddle). Watch the loss sparkline: GD’s long flat shelf before the eventual dive is the saddle stall — the signature to recognize on real training curves. Drag the start exactly onto the axis and the stall stretches toward forever; nudge it off, or hand the same start to momentum, and the escape direction ignites. This figure, not the two-wells one, is the honest cartoon of deep-learning trouble.
Ravines, plateaus, and where they come from in real networks
The remaining pathologies are the degenerate row of the taxonomy table, and they are manufactured systematically by architecture:
- Ill-conditioning at scale. Real Hessian spectra show a bulk of near-zero eigenvalues plus a few large outliers — a ravine in millions of dimensions. This is why the adaptive-methods lesson’s per-coordinate scaling is near-mandatory for transformers, and why normalization layers (which condition the surface) were adopted as trainability tools before anyone argued about their regularization effects.
- Saturation plateaus. Squashing activations (sigmoid, tanh) have exponentially small derivatives in their tails; chains of them multiply into vanishing gradients — a plateau not near a critical point but across swaths of parameter space. ReLU-family activations and careful initialization scales (Glorot/He — a later module derives them) exist precisely to keep early training out of these dead zones.
- Symmetry manifolds. Permuting hidden units, or scaling one layer up while scaling the next down (with homogeneous activations), leaves the function unchanged — entire flat directions of the loss along which the gradient is exactly zero and along which nothing needs to move. Much of a network’s “non-convexity” is this benign redundancy rather than genuine multi-modality.
Flat vs sharp minima. Within the good-solutions family, basins differ in width, and small-batch noise biases SGD toward wide ones (the noise ball cannot sit in a basin narrower than itself — the SGD lesson’s cloud, reinterpreted as a selection principle). Wide minima correlate with better generalization often enough that an optimizer (SAM) explicitly seeks them — but the correlation has real caveats: sharpness is not reparameterization-invariant (Dinh et al. construct sharp minima with identical generalization), so treat “flat = generalizes” as a useful heuristic with known counterexamples, not a law.
The practitioner’s diagnostic table
The point of landscape theory is reading training curves without superstition:
| Symptom | Likely geometry | First moves |
|---|---|---|
| Loss flat from step 0, gradient tiny | saturation plateau / bad init scale | fix initialization, switch activation, add warmup |
| Fast progress, long flat shelf, then sudden drop | saddle stall | wait; add momentum; slightly raise noise (smaller batch) |
| Loss plateaus late and noise-limited | SGD noise ball, not a landscape feature | decay (the SGD lesson) — do not misdiagnose as a “local minimum” |
| Divergence when scaling up batch/model | stability ceiling / conditioning | lower , warmup, normalization; recall |
| Two seeds → similar loss, different weights | symmetry / connected minima family | expected; compare in function space (predictions), not weight space |
The through-line of the whole module, one last time: the learning rate fights curvature (, the gradient-descent lesson), noise fights the ball radius (the SGD lesson), memory and per-coordinate scaling fight the geometry (the momentum lesson), and high dimensionality — surprisingly — fights on your side (this lesson). With that map, the next modules’ architectures and initialization schemes stop being recipes and start being countermeasures aimed at specific, nameable geometry.
Exercises
Closing the module
- For , derive both per-coordinate factors under GD and give the exact iteration count for the escape coordinate to grow from to at . Verify the order of magnitude against the widget’s readout.
Solution
Worked solutions are part of Premium — unlock all of them for £5/month →
- 4 more exercises — each with a worked solution — are part of Premium. Unlock everything for £5/month →
References
- Y. Dauphin et al., “Identifying and attacking the saddle point problem in high-dimensional non-convex optimization”, NeurIPS 2014.
- A. Choromanska et al., “The Loss Surfaces of Multilayer Networks”, AISTATS 2015 — the spin-glass analysis behind “low-loss local minima”.
- J. D. Lee et al., “Gradient Descent Only Converges to Minimizers”, COLT 2016; C. Jin et al., “How to Escape Saddle Points Efficiently”, ICML 2017.
- T. Garipov et al., “Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs”, NeurIPS 2018 — the low-loss paths between minima.
- H. Li et al., “Visualizing the Loss Landscape of Neural Nets”, NeurIPS 2018 — where the famous skip-connection landscape pictures come from.
- N. S. Keskar et al., ICLR 2017 and L. Dinh et al., “Sharp Minima Can Generalize For Deep Nets”, ICML 2017 — the flat-minima claim and its sharpest caveat, respectively.
- P. Foret et al., “Sharpness-Aware Minimization”, ICLR 2021 — SAM.