Back to Discover
Curiosity

Escaping Saddle Points: Noise in Optimization

The mechanism by which random noise added to gradients or parameters systematically breaks the symmetry of a saddle point and drives the iterate toward a descending direction.

Before you enter

A complete interactive classroom, not just a preview.

Start when you are ready to enter this Stage's 9 scenes and explore, respond, and learn as you go.

9
Scenes
18 min
Estimated
Content language: en-US
Start this Stage
Sign-in may be required to play
What happens inside
  1. 01The Stuck Optimizer Problemslide
    Question

    Introduce the driving question by visualizing a loss surface with a saddle point at the origin. Gradient is zero in every direction, so plain gradient descent freezes there even though lower-loss regions are nearby.

    • At a saddle, the gradient is zero in all directions — GD thinks it has converged.
    • Yet the surface curves downward in some directions, so a true lower-loss path exists.
    • Question: how can noise reliably find that downward direction?
  2. 02Your Intuition Checkquiz
    Prediction

    A single prediction quiz asking the learner to commit to how noise interacts with a saddle before any explanation is given.

    • Make one independent choice about the mechanism.
  3. 03Drop the Ball on the Saddleinteractive
    Evidence

    An interactive 2D loss-surface widget where the learner places a ball at the saddle and toggles 'plain GD' vs 'noisy GD'. They watch the trajectories diverge — plain GD stays put, noisy GD drifts off the saddle and rolls down.

    • Place the iterate exactly on the saddle.
    • Run plain gradient descent — observe zero motion.
    • Run the same starting point with noise injection — observe a clear escape trajectory.
    • Try several random seeds to see the escape is systematic, not lucky.
  4. 04Why Some Noises Grow and Others Cancelinteractive
    Evidence

    An interactive widget that decomposes a random perturbation into its components along the saddle's upward-curving and downward-curving eigenvectors, then animates one step of gradient flow on each component to show which one gets amplified.

    • A random vector is sampled.
    • It is projected onto the upward and downward principal directions of the saddle.
    • After one gradient step, the upward component has grown; the downward component has shrunk.
    • The asymmetry of curvature biases the iterate toward descent.
  5. 05The Mechanism: Curvature Amplifies the Useful Directionslide
    Explanation

    Formal explanation of why noise escapes saddles. A random perturbation ξ has components along every Hessian eigenvector. The Hessian is indefinite at a saddle: positive eigenvalues shrink their component, negative eigenvalues grow theirs. After t steps the negative-curvature component grows like e^(√|λ_min| t), so the net drift points downhill.

    • Decompose the perturbation into Hessian eigenvectors.
    • Positive-curvature directions shrink the noise (gradient descent damps them).
    • Negative-curvature directions amplify the noise (the surface pushes the iterate further along that axis).
    • Net result: noisy descent accumulates motion in the descent direction.
  6. 06Noise Injection vs. Perturbed SGD: Two Routes, Same Ideaslide
    Explanation

    Contrast two practical implementations: (1) inject Gaussian noise into the gradients at each step (Noise Injection), (2) occasionally take a random step of fixed magnitude and accept it only if the loss drops (Perturbed SGD / Gradient Descent Ascent). Show they share the core mechanism — sampling directions and letting curvature amplify the negative-curvature one.

    • Noise injection: add ξ ~ N(0, σ²I) to the gradient every step.
    • Perturbed SGD: take a uniformly random step, keep it only if the loss decreases.
    • Both rely on the indefinite Hessian to bias future motion toward descent.
    • Perturbed SGD has stronger theoretical guarantees; noise injection is simpler and is what most deep-learning libraries approximate via SGD mini-batch noise.
  7. 07Apply It: A Plate-Shaped Lossinteractive
    Transfer

    Transfer scene. A new interactive widget shows a long, flat plateau — a degenerate saddle-like region. The learner must tune the noise scale and learning rate to escape the plateau in the fewest steps. This tests whether they can apply the curvature-amplification principle to a visually unfamiliar but mathematically similar situation.

    • Plateau is a near-saddle: low curvature in two directions, steep drop in a third.
    • Too little noise: iterate never escapes.
    • Too much noise: iterate oscillates wildly and may diverge.
    • Optimal setting matches the analysis: noise magnitude comparable to the smallest negative curvature direction.
  8. 08When Noise Stops Helpingslide
    Boundary

    Boundary case. Noise-based escape has limits: very ill-conditioned saddles need impractically many steps, and once the iterate reaches a region with all-positive curvature (a true basin), noise only hurts convergence. Mini-batch noise in deep learning works partly by accident — its scale is fixed by the batch size, not tuned to the local curvature.

    • Escape time scales inversely with the smallest negative eigenvalue of the Hessian.
    • Very flat saddles require exponentially many noisy steps.
    • Near minima, noise is pure harm — variance, not progress.
    • This is why learning-rate decay and batch-size schedules matter as much as the noise itself.
  9. 09Answering the Driving Questionslide
    Resolution

    Resolve the opening tension. Noise is not magic. At a saddle, the Hessian is indefinite, so random perturbations are not treated symmetrically — the negative-curvature component is amplified by the surface itself. Over many steps this turns noise into a systematic downhill drift, which is exactly why perturbed SGD and noise-injected gradient descent escape saddles that plain GD cannot.

    • Random perturbation samples both curvature directions.
    • Indefinite Hessian amplifies the negative-curvature component.
    • Iterated noisy descent converts noise into a directed drift toward lower loss.
    • This is the mechanism behind both noise injection and perturbed SGD.
Discussion

Discussion threads for a Stage aren't available yet.

Where this leads
Explore more

More in Technology & Computing

See all