English

Sharpness-Aware Minimization with Z-Score Gradient Filtering

Machine Learning 2026-04-24 v6 Artificial Intelligence Computer Vision and Pattern Recognition Information Theory Neural and Evolutionary Computing math.IT

Abstract

Deep neural networks achieve high performance across many domains but can still face challenges in generalization when optimization is influenced by small or noisy gradient components. Sharpness-Aware Minimization improves generalization by perturbing parameters toward directions of high curvature, but it uses the entire gradient vector, which means that small or noisy components may affect the ascent step and cause the optimizer to miss optimal solutions. We propose Z-Score Filtered Sharpness-Aware Minimization, which applies Z-score based filtering to gradients in each layer. Instead of using all gradient components, a mask is constructed to retain only the top percentile with the largest absolute Z-scores. The percentile threshold QpQ_p determines how many components are kept, so that the ascent step focuses on directions that stand out most compared to the average of the layer. This selective perturbation refines the search toward flatter minima while reducing the influence of less significant gradients. Experiments on CIFAR-10, CIFAR-100, and Tiny-ImageNet with architectures including ResNet, VGG, and Vision Transformers show that the proposed method consistently improves test accuracy compared to Sharpness-Aware Minimization and its variants. The code repository is available at: https://github.com/YUNBLAK/Sharpness-Aware-Minimization-with-Z-Score-Gradient-Filtering

Keywords

Cite

@article{arxiv.2505.02369,
  title  = {Sharpness-Aware Minimization with Z-Score Gradient Filtering},
  author = {Vincent-Daniel Yun},
  journal= {arXiv preprint arXiv:2505.02369},
  year   = {2026}
}

Comments

Accepted to ICASSP 2026 | NeurIPS 2025 OPT Workshop Paper

R2 v1 2026-06-28T23:21:01.837Z