On the Implicit Flatness Bias of Sharpness-Aware Minimization: A Linear Stability Analysis with Quantitative Hyperparameter Bounds

šŸ“… 2026-08-04
šŸ“ˆ Citations: 0
✨ Influential: 0
šŸ“„ PDF
šŸ¤– AI Summary
This work elucidates the quantitative mechanism by which Sharpness-Aware Minimization (SAM) favors flat minima, with a focus on the interplay among the perturbation radius ρ, learning rate, and batch size. Through linear stability analysis under local linearization and a gradient noise alignment assumption, the study derives the first upper bound on the largest Hessian eigenvalue at interpolating minima for SAM, revealing that ρ must balance enhanced flatness against the validity of local approximations. Building on this insight, the authors propose TLC-SAM, an adaptive strategy for tuning ρ. Experiments across 900 ResNet-18 and VGG-19 models on CIFAR-100 demonstrate that increasing ρ substantially reduces the largest Hessian eigenvalue, and TLC-SAM further improves this metric, corroborating the theoretical predictions.
šŸ“ Abstract
Sharpness-Aware Minimization (SAM) improves generalization by seeking parameters whose loss is robust to local adversarial perturbations, but the quantitative mechanism underlying its implicit bias toward flat minima remains unclear. In particular, the perturbation radius $ρ$ is typically treated as an isolated tuning parameter, despite defining the neighborhood in which SAM measures sharpness. We analyze mini-batch SAM near an interpolating minimum through linear stability. Under local linearization and gradient-noise alignment assumptions, we prove that every linearly stable minimum satisfies $Ī»_{\max}\leq\sqrt[3]{bĪ“/(2ρη^2)}$, where $Ī»_{\max}$ is the largest Hessian eigenvalue, $b$ is the batch size, $Ī·$ is the learning rate, and $Ī“$ bounds the gradient norm. The bound quantitatively characterizes SAM's implicit flatness bias: holding the other quantities fixed, a smaller batch size, a larger learning rate, or a larger radius restricts linearly stable SAM to flatter minima. It also exposes a necessary trade-off: $ρ$ should be large enough to promote flatness, yet remain local enough to preserve the approximation and stable training. We validate this prediction in a controlled study of 900 models on CIFAR-100 with ResNet-18 and VGG-19, where increasing $ρ$ is consistently associated with a smaller largest Hessian eigenvalue across batch-size and learning-rate settings. Finally, we instantiate the analysis in Taylor-Locality Controlled SAM (TLC-SAM), which adjusts $ρ$ using the observed Taylor-approximation error and further reduces the top Hessian eigenvalue relative to fixed-radius SAM. Our results provide quantitative hyperparameter bounds and a stability--locality perspective for analyzing and designing SAM variants.
Problem

Research questions and friction points this paper is trying to address.

Sharpness-Aware Minimization
flat minima
perturbation radius
linear stability
Hessian eigenvalue
Innovation

Methods, ideas, or system contributions that make the work stand out.

Sharpness-Aware Minimization
flat minima
linear stability analysis
Hessian eigenvalue
adaptive perturbation radius
šŸ”Ž Similar Papers