VASSO: Variance Suppression for Sharpness-Aware Minimization

Bingcong Li, Yilang Zhang, Georgios B. GiannakisarXiv 2025 · DOI

Abstract

Sharpness-Aware Minimization (SAM) has emerged as a powerful technique for improving the generalization of deep learning models by steering optimization toward "flat minima." However, SAM's reliance on noisy minibatch gradients to find adversarial perturbations often leads to "friendly adversaries"—perturbations that inadvertently decrease loss rather than probing true sharpness. We introduce VASSO (Variance Suppression for SAM), a method that stabilizes these adversaries using an exponentially moving average (EMA) of gradients. Our approach significantly improves the accuracy and robustness of SAM across various architectures and tasks, while an efficient variant, eVASSO, offers a superior computation-performance tradeoff.

Introduction: The "Friendly Adversary" Problem

Deep learning models frequently suffer from overfitting, where they achieve near-zero training loss but fail on unseen data. Sharpness-Aware Minimization (SAM) addresses this by seeking "flat valleys" in the loss landscape—regions where the loss remains low even under small parameter perturbations. Mathematically, SAM solves a minimax problem: find parameters that minimize the maximum loss in a small neighborhood.

SAM seeks flat valleys, but noisy gradients can create "friendly adversaries" (red bars) that fail to measure true sharpness.

In practice, SAM uses a single minibatch to estimate the inner maximization. Because these gradients are stochastic and noisy, the resulting perturbation might be "friendly"—it might actually lower the loss for the rest of the dataset. This failure to find a true adversary prevents SAM from accurately identifying and avoiding sharp minima, as illustrated in the figure above.

VASSO: Stabilizing the Adversary

To overcome the noise in minibatch gradients, we propose VASSO (Variance Suppression for SAM). The core innovation lies in how the adversarial perturbation is calculated.

Variance Suppression via EMA

Instead of relying solely on the current noisy minibatch gradient, VASSO maintains an Exponentially Moving Average (EMA) of gradients. By using the EMA, VASSO effectively "remembers" the sharpness profile of previous minibatches, allowing it to approximate global sharpness rather than just the local noise of the current sample. This ensures the perturbation remains truly adversarial across different data samples.

Efficient Training with eVASSO

Standard SAM requires two backpropagation passes per iteration, doubling training time. We introduce eVASSO, which uses a Bernoulli random variable to decide whether to perform a full VASSO update or a standard SGD update. This allows for a tunable tradeoff between training speed and generalization, achieving the same test accuracy as SAM while reducing computational overhead by up to 70%.

Key Results and Insights

We evaluated VASSO across diverse tasks, including image classification (CIFAR, ImageNet), domain generalization, and neural machine translation.

Empirical results showing that variance suppression (SAM-var) leads to better performance than vanilla SAM, particularly for deeper models like ResNet34.

As shown in the figure above, reducing gradient variance directly correlates with improved test performance. VASSO consistently outperforms vanilla SAM and other state-of-the-art variants. On ImageNet, VASSO improved ResNet-50 accuracy by 0.26% and ViT-S/32 by 0.56% over SAM. Its robustness is particularly evident in high-noise scenarios; in CIFAR-10 experiments with 75% label noise, VASSO achieved 85.02% accuracy, a massive 9.66% improvement over vanilla SAM.

Conclusion

VASSO addresses a fundamental flaw in Sharpness-Aware Minimization by suppressing gradient variance. By stabilizing the adversarial search, VASSO finds flatter minima and delivers significant gains in accuracy and efficiency. Future work will explore integrating variance suppression with other adaptive SAM variants to further push the boundaries of robust deep learning optimization.

Summary updated

BibTeX
@misc{li2025vasso,
  author = {Bingcong Li and Yilang Zhang and Georgios B. Giannakis},
  title = {{VASSO: Variance Suppression for Sharpness-Aware Minimization}},
  year = {2025},
  eprint = {2509.02433},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.02433},
}
Figure