NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Preconditioned Sharpness-Aware Minimization: Unifying Analysis and a Novel Learning Algorithm

Yilang Zhang, Bingcong Li, Georgios B. Giannakis

TL;DR

This paper introduces preSAM, a unifying framework that categorizes various Sharpness-Aware Minimization (SAM) variants based on how they use "preconditioning" to find flatter regions in the loss landscape. Building on this theory, the authors propose infoSAM, a novel algorithm that uses gradient noise estimates to prevent "adversarial model degradation," leading to superior generalization and robustness against label noise compared to standard SAM.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notorious for memorizing training data, which often leads to poor generalization on unseen data. To combat this, researchers use Sharpness-Aware Minimization (SAM). Instead of just looking for a point with the lowest loss, SAM looks for a "flat valley"—a region where the loss remains low even if you perturb the model parameters slightly.

However, two issues have plagued the field:

  1. Fragmentation: Many SAM variants (like ASAM or FisherSAM) exist, but there hasn't been a single theoretical framework to explain how they relate or why some converge faster than others.
  2. Adversarial Model Degradation (AMD): SAM relies on stochastic gradients to find the "most adversarial" direction to perturb the model. In practice, these gradients are extremely noisy (the authors found a Signal-to-Noise Ratio of just $10^{-2}$). This noise can lead SAM to pick "adversarial" directions that are actually just random noise, sabotaging the training process.

Methods

The authors propose preSAM, which views SAM through the lens of preconditioning. They split SAM variants into two categories:

  • Constraint Preconditioning (CP): These methods (like ASAM) change the shape of the "neighborhood" SAM searches in, turning a spherical search area into an ellipsoid.
  • Objective Preconditioning (OP): These methods change the direction of the gradient itself before calculating the perturbation.

The paper provides a unified convergence analysis for both types, revealing that CP methods are much more sensitive and can actually cause the model to diverge if not tuned carefully.

The Star of the Show: infoSAM

To solve the noise problem (AMD), the authors introduce infoSAM, an OP-based algorithm.

  • How it works: It maintains an Exponential Moving Average (EMA) of the gradients to estimate the "true" gradient.
  • The "Info" part: It calculates the variance of the gradient for each parameter. If a specific parameter's gradient is very noisy (high variance), infoSAM scales down the perturbation for that dimension.
  • The Result: By being "cautious" on noisy dimensions, infoSAM ensures the adversarial perturbation is based on actual information rather than random fluctuations.

Datasets

The authors evaluated infoSAM against standard baselines (SGD, SAM, ASAM) using several classic image classification benchmarks:

  • CIFAR-10 & CIFAR-100: Tested across multiple architectures including ResNet-18, DenseNet-121, WideResNet-28-10, and PyramidNet-110.
  • ImageNet: A large-scale test using ResNet-50 to prove the algorithm scales to real-world complexity.
  • Noisy CIFAR-10: A specialized setup where 25%, 50%, or 75% of the training labels were randomly flipped to test robustness.

Key Insights and Ideas

  • The SNR Bottleneck: The discovery that the Signal-to-Noise Ratio (SNR) in SAM training is often as low as $10^{-2}$ is a major "aha" moment. It explains why vanilla SAM often struggles: it's frequently chasing ghosts in the noise.
  • CP vs. OP Flexibility: The theoretical analysis shows that Objective Preconditioning (OP) is mathematically "safer" than Constraint Preconditioning (CP). OP doesn't explicitly slow down the convergence rate, making it a more robust choice for designing new algorithms.
  • Information-Aware Perturbations: Rather than treating all parameters equally, infoSAM recognizes that some dimensions of the loss landscape are "noisier" than others. By adjusting the perturbation based on variance, it effectively filters out harmful stochastic noise.

Key Results

  • Consistent Superiority: infoSAM achieved the highest accuracy across all tested architectures on CIFAR-10 and CIFAR-100. For example, on CIFAR-100 with PyramidNet, infoSAM reached 85.83% accuracy, compared to SAM's 85.60% and ASAM's 83.72%.
  • ImageNet Gains: On ImageNet, infoSAM outperformed both SAM and ASAM in Top-1 and Top-5 accuracy.
  • Robustness to Label Noise: This is where infoSAM truly shined. In the 75% label noise scenario, infoSAM maintained significantly higher accuracy than standard SAM, proving that its noise-filtering mechanism helps the model ignore "fake" sharpness caused by corrupted data.

Limitations and Future Work

  • Hyperparameter Sensitivity: Like many SAM variants, infoSAM introduces a new hyperparameter ($\alpha$ for the EMA). While the paper provides values used, the sensitivity of the algorithm to this parameter across vastly different domains (like NLP) isn't fully explored.
  • Hybrid Approaches: The authors note that infoSAM (an OP method) could potentially be combined with CP methods (like ASAM) for even better results. However, they leave the implementation and testing of these "hybrid" preconditioners for future research.
  • Computational Overhead: While infoSAM is more efficient than some variants, it still requires maintaining an EMA of gradients, which increases memory usage slightly compared to vanilla SGD.

Summary updated

BibTeX
@inproceedings{zhang2025preconditioned,
  author = {Yilang Zhang and Bingcong Li and Georgios B. Giannakis},
  title = {{Preconditioned Sharpness-Aware Minimization: Unifying Analysis and a Novel Learning Algorithm}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10889586},
}

Loading related content...

Figure