Why can stochastic gradient noise help a model escape suboptimal local minima?

Quick Overview

Asks why the noise in mini-batch gradients can move a model out of poor local minima. Tests how learning rate and batch size set the noise level, sharp versus flat minima, saddle points in high dimensions, and why the learning rate is decayed late in training.

Why can stochastic gradient noise help a model escape suboptimal local minima?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why can stochastic gradient noise help a model escape suboptimal local minima? ```hint Compare the two optimizers inside one basin Describe what full-batch gradient descent does once it is inside a basin, then add a random kick to every step and ask which basins can hold the iterate. Think about how the kick size depends on the learning rate and batch size. ``` ### What a Strong Answer Covers - Why mini-batch gradients are noisy and how the noise scale depends on learning rate and batch size. - Why deterministic gradient descent stays in the basin it enters, and how noise lets the iterate leave. - Why sharp, narrow minima are left more easily than wide, flat ones, and the link to generalization along with its limits. - The role of noise near saddle points in high dimensions. - The cost of the noise and why the learning rate is decayed late in training. ### Follow-up Questions - You increase the batch size by 8x. How would you adjust the learning rate to keep the noise level similar, and when does that stop working? - Is a flat minimum always better for generalization? What argues against using flatness as the explanation? - How does mini-batch noise differ from adding isotropic Gaussian noise to the gradient?

Overview: Asks why the noise in mini-batch gradients can move a model out of poor local minima. Tests how learning rate and batch size set the noise level, sharp versus flat minima, saddle points in high dimensions, and why the learning rate is decayed late in training.

PracHub logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why can stochastic gradient noise help a model escape suboptimal local minima?

What a Strong Answer Covers Guidance

  • Why mini-batch gradients are noisy and how the noise scale depends on learning rate and batch size.
  • Why deterministic gradient descent stays in the basin it enters, and how noise lets the iterate leave.
  • Why sharp, narrow minima are left more easily than wide, flat ones, and the link to generalization along with its limits.
  • The role of noise near saddle points in high dimensions.
  • The cost of the noise and why the learning rate is decayed late in training.

Follow-up Questions Guidance

  • You increase the batch size by 8x. How would you adjust the learning rate to keep the noise level similar, and when does that stop working?
  • Is a flat minimum always better for generalization? What argues against using flatness as the explanation?
  • How does mini-batch noise differ from adding isotropic Gaussian noise to the gradient?