Why are flat minima thought to generalize better than sharp minima?

Quick Overview

Asks why flat minima of a neural network loss are expected to generalize better than sharp ones. It tests the shifted test-surface and description-length arguments, how batch size, learning rate and SAM relate to flatness, and the reparameterization caveat.

Why are flat minima thought to generalize better than sharp minima?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are flat minima thought to generalize better than sharp minima? ```hint Shift the surface Think of the test loss surface as the training surface moved slightly. Compare what that small move costs at the bottom of a wide basin and at the bottom of a narrow one. ``` ```hint Check the measurement Ask whether "sharpness" is a property of the function the network computes, or of the particular weights that represent it. ``` ### What a Strong Answer Covers - What flat and sharp mean in terms of curvature or loss change under weight perturbation - The argument from a shifted test loss surface, and the description-length or PAC-Bayes argument - How training choices such as batch size, learning rate and sharpness-aware optimizers relate to flatness - The reparameterization caveat, and whether the link to generalization is causal or a correlation ### Follow-up Questions - How would you measure the sharpness of a trained network's minimum in practice? - How does Sharpness-Aware Minimization change the update, and what does it cost per step? - Given that sharpness changes under reparameterization, how could you define a measure that is more meaningful? - Why does a larger learning rate steer gradient descent away from sharp minima?

Overview: Asks why flat minima of a neural network loss are expected to generalize better than sharp ones. It tests the shifted test-surface and description-length arguments, how batch size, learning rate and SAM relate to flatness, and the reparameterization caveat.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why are flat minima thought to generalize better than sharp minima?

What a Strong Answer Covers Guidance

  • What flat and sharp mean in terms of curvature or loss change under weight perturbation
  • The argument from a shifted test loss surface, and the description-length or PAC-Bayes argument
  • How training choices such as batch size, learning rate and sharpness-aware optimizers relate to flatness
  • The reparameterization caveat, and whether the link to generalization is causal or a correlation

Follow-up Questions Guidance

  • How would you measure the sharpness of a trained network's minimum in practice?
  • How does Sharpness-Aware Minimization change the update, and what does it cost per step?
  • Given that sharpness changes under reparameterization, how could you define a measure that is more meaningful?
  • Why does a larger learning rate steer gradient descent away from sharp minima?