Flat Minima and Generalization: Insights from Stochastic Convex Optimization
Abstract
Lay Summary
Machine learning systems often learn by searching for parameters that fit their training data well. A common belief is that some good solutions are better than others because they are “flat”: small changes to the parameters do not significantly change the training loss. This idea has motivated popular training methods, such as sharpness-aware minimization, that explicitly encourage flatter solutions. In this work, we study whether flatness by itself is enough to explain good performance on new data. We focus on a fundamental mathematical setting called stochastic convex optimization, which is often used to understand learning algorithms. Our results show that even in this simple setting, flat solutions can still perform poorly on new data, while sharper solutions can perform well. We also show that some sharpness-aware algorithms may either find flat solutions that generalize poorly, or fail to find flat solutions at all. These findings do not mean that flatness is useless, but they show that the connection between flatness and generalization is more subtle than it may appear. Understanding this distinction can help researchers better evaluate when sharpness-aware training methods are expected to improve learning.