Probing SAM Perturbations Through Statistical Replay
Ting Han, Jens Kleesiek, Michael Kamp
Key points
From the paper's conclusion- We introduce statistical replay, a diagnostic that summarizes perturbations from reference SAM trajectories using elementwise means and standard deviations over local windows and constructs new perturbations during independent SGD training.
Abstract
Sharpness Aware Minimization (SAM) updates model parameters using gradients evaluated at adversarially perturbed weights, but it remains unclear which aspects of this procedure are sufficient to reproduce its generalization behavior. In our ResNet 18 experiments on CIFAR 10, simple curvature regularizers based on the Hessian trace and largest eigenvalue remain below SAM in validation accuracy, motivating a direct examination of its perturbations. We introduce statistical replay, a diagnostic that summarizes perturbations from reference SAM trajectories using elementwise means and standard deviations over local windows and constructs new perturbations during independent SGD training. Pure replay uses only these summaries, whereas mixed replay adds isotropic Gaussian noise. Pure replay does not reproduce SAM's validation behavior, while mixed replay and pure isotropic perturbations can approach its validation performance at selected scales without reproducing its training dynamics. An equal radius random direction within SAM performs similarly to SGD, and source, temporal, and layer interventions further suggest that replay behavior depends on perturbation construction. Together, these preliminary results weaken several simple explanations of SAM while leaving an important part of its mechanism unexplained.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- One Size Does Not Fit All: Curvature-Aware Adaptive Perturbation for SAMarXiv · 2026
- Curvature-Scaled Sharpness-Aware Minimization: Convergence Beyond SmoothnessarXiv · 2026
- Sharpness-aware Orthogonalized Momentum AlgorithmsarXiv · 2026
- Sharpness-Aware Muon: Matrix-Aware Optimization with Momentum-Guided PerturbationsarXiv · 2026
- Adaptive Momentum Benefits Score-based Generative Models.IEEE transactions on image processing : a publication of the IEEE Signal Processing Society · 2026
- Same Function, Different Gradients: Evaluating Gradient Reliability under ReparameterizationarXiv · 2026