Back to Discover
Curiosity

Gradient Noise vs. Parameter Noise

Gradient noise and parameter noise shape optimization through fundamentally different mechanisms: gradient noise produces an implicit regularization that scales with learning rate, while parameter noise produces an explicit perturbation that scales with weight magnitude.

Before you enter

A complete interactive classroom, not just a preview.

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

8
Scenes
16 min
Estimated
Content language: en-US
Start this Stage
Sign-in may be required to play
What happens inside
  1. 01Two Doors Into the Optimizerslide
    Question

    Open the investigation by contrasting the two injection points: noise added to the gradient signal versus noise added directly to the parameters, and frame the driving question.

    • Noise can enter before or after the loss surface is probed
    • Gradient noise perturbs the direction of the update step
    • Parameter noise perturbs the location where the gradient is evaluated
    • Both strategies are used in practice: SGD minibatch noise versus weight perturbation methods
  2. 02Commit to a First Guessquiz
    Prediction

    Ask the learner to predict which noise type acts like implicit regularization and which acts like explicit perturbation, before any mechanism is revealed.

    • Make one independent choice between the two mechanisms
    • Justify the prediction in terms of where the noise enters the update rule
  3. 03Watch Two Optimizers Climbinteractive
    Evidence

    A simulation widget where the learner adjusts noise variance and learning rate, and observes how gradient-noise versus parameter-noise trajectories differ on a 2D loss surface.

    • Adjust noise scale independently for each injection point
    • Adjust learning rate and observe trajectory shape
    • Compare the two paths on the same loss landscape
  4. 04Why the Two Paths Divergeslide
    Explanation

    Walk through the update equations to show that gradient noise is multiplied by the learning rate while parameter noise is effectively multiplied by the gradient magnitude, producing fundamentally different bias.

    • Update rule separates noise that enters the gradient from noise that enters the weights
    • Gradient noise contribution to the step scales with learning rate
    • Parameter noise contribution to the step scales with local gradient magnitude
    • Learning rate annealing therefore kills gradient noise but not parameter noise
  5. 05Anneal the Learning Rateinteractive
    Evidence

    Let the learner decay the learning rate over training and observe that gradient-noise-induced exploration collapses while parameter-noise-induced exploration persists.

    • Run a short training schedule with a decaying learning rate
    • Measure trajectory spread under each noise type
    • Notice which noise type loses its smoothing effect
  6. 06When the Difference Disappearsslide
    Boundary

    Show the edge case where the two noise types become equivalent: a linear model with unit gradient magnitude, where the learning-rate scale and weight scale align.

    • On linear models, gradient noise and parameter noise are equivalent up to rescaling
    • Scale-invariance of parameter noise requires careful per-layer tuning
    • In deep nonlinear networks the difference is large and practically important
  7. 07Apply It to a Real Recipeinteractive
    Transfer

    A transfer widget where the learner chooses between two training tricks, SAM-style parameter perturbation and minibatch gradient noise, and predicts which one survives learning rate warmup-and-decay.

    • Recognize which noise type is hidden inside each training trick
    • Predict the effect of a learning rate schedule on each trick
    • Justify the prediction using the update-rule reasoning
  8. 08The Answer in One Lineslide
    Resolution

    Close the investigation by directly answering the driving question and contrasting the two mechanisms in a single comparison frame.

    • Gradient noise is an implicit, learning-rate-scaled regularizer that anneals away
    • Parameter noise is an explicit, gradient-magnitude-scaled perturbation that biases toward flat minima
    • The optimizer sees them very differently because of where they enter the update
Discussion

Discussion threads for a Stage aren't available yet.

Where this leads

This path ends here.

Explore more

More in Technology & Computing

See all