AI Research Scientist · Scaling Laws & Stability
Sharpness and flat minima
Sharpness and flat minima
Sharpness
Sharpness describes how steeply the loss increases as parameters move away from a minimum: a sharp minimum sits in a narrow, high-curvature bowl, while a flat minimum sits in a wide, low-curvature basin.Flatter minima empirically show a smaller generalization gap — the gap between training and test loss — than sharper minima at the same training loss. Why: small parameter shifts, from noise or from train-test mismatch, barely raise loss inside a wide flat basin, but sharply raise loss inside a narrow sharp one. This is a robust empirical pattern, not a proven law, yet strong enough to guide design choices.
- WhenYou must pick between two optimizers with similar training loss.Choose the flatness-seeking one, such as SAM.WhyIt steers training into wide basins, which the sharpness-generalization link predicts will generalize better.
- WhenYou’re choosing between a very large batch size and a moderate one for the same training budget.Prefer the moderate batch, since very large batches tend to converge to sharp minima.WhyGradient noise from smaller batches steers training toward wide, flat basins, matching the flat-minima generalization pattern.
Recall check from the same lesson
To justify preferring a visibly flatter minimum for deployment over a visibly sharper one, you must first compute both minima's Hessian eigenvalues and show the flatter one's eigenvalues are numerically smaller.
Review the explanation
Answer: False. The qualitative link between basin shape and generalization is sufficient justification here — you reason from the visible curvature (narrow vs. wide basin), not from computed eigenvalue values. Requiring a Hessian eigenvalue computation confuses this qualitative reasoning task with the formal sharpness metrics that sit outside this concept's scope.
Sources
One sitting · 20–30 minutes
A focused session on your AI Research Scientist interview
LearnBench starts from what you already know — skip what you have, master what you’re missing.
Start now