Sharpness-Aware Minimization Can Hallucinate Minimizers
Abstract
Lay Summary
When researchers train AI models, they want them to work not only on examples they practiced on but also on new ones. A popular training method, Sharpness-Aware Minimization (SAM), helps by checking whether a model still performs well after its internal settings are nudged slightly. This usually encourages more reliable solutions. Our paper shows that the standard way SAM is implemented can backfire when the nudge is too large. In that case, SAM can be fooled into stopping at a false destination. We call this a "hallucinated minimizer": SAM sees no reason to keep learning, even though the model has not actually reached a good solution for the original training task. We give a mathematical explanation for when such false destinations can appear, and we show matching warning signs in neural-network experiments. We also provide a simple safeguard: begin with a short period of standard training, and turn on SAM only afterward. These results help researchers and practitioners use SAM more reliably, with less risk that an overly large perturbation derails training.