Skip to content

Generalization of Sharpness-Aware Minimization with Interpolating Neural Networks

Tan Sun, Junhong Lin

cs.LG

Abstract

Neural networks often generalize remarkably well even when highly over-parameterized and perfectly interpolating the training data. Sharpness-Aware Minimization (SAM) improves generalization by seeking flat minima via a min-max optimization that minimizes loss in a local neighborhood. Despite empirical results, a rigorous theoretical understanding of SAM in interpolating neural networks remains limited. In this work, we study SAM for binary classification with shallow networks under a self-bounded loss and a neural network realizability assumption, which capture the ability of over-parameterized networks to interpolate while staying close to initialization.Using an algorithmic stability framework, we derive generalization error bounds that avoid the dimension-dependent factors typical of PAC-Bayesian analyses. For the full-batch SAM, we prove that when the network width is sufficiently large, the expected generalization gap is bounded by O(g(1/T)2/n+1/T)O\left(g(1/T)^2/n+1/T\right), where g(ε)g(\varepsilon) is the parameter deviation from the initialization needed to reach training loss ε\varepsilon, which implies the realizability, nn is the sample size, and TT the number of iterations. Under the additional NTK-separability condition and setting T=Θ(n)T=Θ(n), this bound simplifies to O~(1/n)\tilde{O}(1/n), hiding polylogarithmic factors. We further apply the analysis to non-interpolating settings, where the bound involves the distance from initialization and the empirical risk of a reference point, and we discuss the analogous results for stochastic SAM and the expected average population loss.Our results provide a stability-based theoretical perspective on SAM's generalization in over-parameterized regimes and show that, with sufficient width, SAM achieves favorable sample-efficient rates while circumventing explicit dependence on the parameter count.

Create a lesson

Metadata

Categories
cs.LG, stat.ML
Comments
32 pages