Generalization bounds for sharpness-aware minimization in wide neural networks
Generalization of Sharpness-Aware Minimization with Interpolating Neural Networks
Machine Learning
Summary
Training very large neural networks often means they fit the training data perfectly but still work well on new data. The paper explains why a method called Sharpness-Aware Minimization (SAM) helps these networks generalize better by finding solutions that don’t change too much with small tweaks. The authors prove that for wide shallow networks, SAM’s ability to generalize can be understood through how stable the training algorithm is and how close the network stays to its starting point. This theory helps explain why SAM works well without depending heavily on the number of parameters in the network.
What this means in practice
- •For machine learning engineers: Assess and improve training algorithms for classification tasks using SAM to achieve better generalization in wide shallow neural networks.
- •For data scientists in healthcare: Apply stability-informed SAM training to develop more reliable diagnostic models that generalize well with limited clinical data.
A theory result. No direct application yet.
Authors
Tan Sun, Junhong Lin
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\left(g(1/T)^2/n+1/T\right)$, where $g(\varepsilon)$ is the parameter deviation from the initialization needed to reach training loss $\varepsilon$, which implies the realizability, $n$ is the sample size, and $T$ the number of iterations. Under the additional NTK-separability condition and setting $T=Θ(n)$, this bound simplifies to $\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.