Sharpness-Aware Lookahead for Accelerating Convergence and Improving Generalization
- 15 August 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Pattern Analysis and Machine Intelligence
- Vol. 46 (12) , 10375-10388
Abstract
Lookahead is a popular stochastic optimizer that can accelerate the training process of deep neural networks. However, the solutions found by Lookahead often generalize worse than those found by its base optimizers, such as SGD and Adam. To address this issue, we propose Sharpness-Aware Lookahead (SALA), a novel optimizer that aims to identify flat minima that generalize well. SALA divides the training process into two stages. In the first stage, the direction towards flat regions is determined by leveraging a quadratic approximation of the optimization trajectory, without incurring any extra computational overhead. In the second stage, however, it is determined by Sharpness-Aware Minimization (SAM), which is particularly effective in improving generalization at the terminal phase of training. In contrast to Lookahead, SALA retains the benefits of accelerated convergence while also enjoying superior generalization performance compared to the base optimizer. Theoretical analysis of the expected excess risk, as well as empirical results on canonical neural network architectures and datasets, demonstrate the advantages of SALA over Lookahead. It is noteworthy that with approximately 25% more computational overhead than the base optimizer, SALA can achieve the same generalization performance as SAM which requires twice the training budget of the base optimizer.Keywords
Funding Information
- National Key Research and Development Program of China (2020AAA0105601)
- National Natural Science Foundation of China (12371512, 62276208)
- Natural Science Basic Research Program of Shaanxi Province (2024JC-JCQN-02)
This publication has 30 references indexed in Scilit:
- Visual speech recognition for multiple languages in the wildNature Machine Intelligence, 2022
- PyHessian: Neural Networks Through the Lens of the Hessian2020
- Entropy-SGD: biasing gradient descent into wide valleys*Journal of Statistical Mechanics: Theory and Experiment, 2019
- Deep Residual Learning for Image Recognition2016
- Microsoft COCO: Common Objects in Context2014
- Large-Scale Machine Learning with Stochastic Gradient Descent2010
- ImageNet: A large-scale hierarchical image database2009
- Convex Optimization2004
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998
- Keeping Neural Networks Simple1993