cs.LGMar 13, 2026

ZO-SAM: Zero-Order Sharpness-Aware Minimization for Efficient Sparse Training

Authors: Jie Ji, Gen Li, Kaiyuan Deng, Fatemeh Afghah, Xiaolong Ma

Organizations: Clemson University · University of Arizona

Abstract

Deep learning models, despite their impressive achievements, suffer from high computational costs and memory requirements, limiting their usability in resource-constrained environments. Sparse neural networks significantly alleviate these constraints by dramatically reducing parameter count and computational overhead. However, existing sparse training methods often experience chaotic and noisy gradient signals, severely hindering convergence and generalization performance, particularly at high sparsity levels. To tackle this critical challenge, we propose Zero-Order Sharpness-Aware Minimization (ZO-SAM), a novel optimization framework that strategically integrates zero-order optimization within the SAM approach. Unlike traditional SAM, ZO-SAM requires only a single backpropagation step during perturbation, selectively utilizing zero-order gradient estimations. This innovative approach reduces the backpropagation computational cost by half compared to conventional SAM, significantly lowering gradient variance and effectively eliminating associated computational overhead. By harnessing SAM's capacity for identifying flat minima, ZO-SAM stabilizes the training process and accelerates convergence. These efficiency gains are particularly important in sparse training scenarios, where computational cost is the primary bottleneck that limits the practicality of SAM. Moreover, models trained with ZO-SAM exhibit improved robustness under distribution shift, further broadening its practicality in real-world deployments.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. EMASAM: a Computationally Efficient Sharpness-Aware Minimization via EMA-Guided Perturbations

    Aug 15, 2026Tanapat Ratchatorn, Masayuki TanakaLoss Landscape SharpnessSharpness-Aware Minimization

  2. Sample-Adaptive Zeroth-Order Post-Training

    Oct 8, 2026Haiyuan Wan, Yanyi Li, Weicheng Lin +1Zeroth-Order OptimizationLLM Fine-Tuning