Sharpness-aware minimization with dual adaptive momentum for training deep neural networks
摘要
Sharpness-Aware Minimization (SAM) achieves strong generalization performance in deep learning by seeking flat loss regions. However, vanilla SAM computes the perturbation direction from instantaneous stochastic gradients, which contains a full gradient component that may harm generalization. Moreover, existing momentum-based SAM variants rely on fixed momentum coefficients that require careful tuning. In this paper, we propose DualFR, a novel SAM variant that addresses both limitations. The perturbation direction is designed as the difference between the current gradient and the accumulated momentum, effectively extracting the beneficial stochastic noise component. Adaptive momentum derived from the Fletcher-Reeves conjugate gradient parameter is incorporated into both the perturbation computation and parameter update, eliminating the need for momentum hyperparameter tuning. Our theoretical analysis establishes that DualFR guarantees