Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models

Uložené v:
Podrobná bibliografia
Názov: Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models
Autori: Xingyu Xie, Pan Zhou, Huan Li, Zhouchen Lin, Shuicheng Yan
Zdroj: IEEE Transactions on Pattern Analysis and Machine Intelligence. 46:9508-9520
Publication Status: Preprint
Informácie o vydavateľovi: Institute of Electrical and Electronics Engineers (IEEE), 2024.
Rok vydania: 2024
Predmety: FOS: Computer and information sciences, Computer Science - Machine Learning, Theory and Algorithms, Complexity theory, Fast DNN training, OS and Networks, 0211 other engineering and technologies, Deep learning, 02 engineering and technology, 01 natural sciences, Machine Learning (cs.LG), Stochastic processes, Optimization and Control (math.OC), Task analysis, 0202 electrical engineering, electronic engineering, information engineering, FOS: Mathematics, Adaptive optimizer, Training, Computer architecture, DNN optimizer, 0101 mathematics, Convergence, Mathematics - Optimization and Control, 0105 earth and related environmental sciences
Popis: In deep learning, different kinds of deep networks typically need different optimizers, which have to be chosen after multiple trials, making the training process inefficient. To relieve this issue and consistently improve the model training speed across deep networks, we propose the ADAptive Nesterov momentum algorithm, Adan for short. Adan first reformulates the vanilla Nesterov acceleration to develop a new Nesterov momentum estimation (NME) method, which avoids the extra overhead of computing gradient at the extrapolation point. Then, Adan adopts NME to estimate the gradient's first- and second-order moments in adaptive gradient algorithms for convergence acceleration. Besides, we prove that Adan finds an $ε$-approximate first-order stationary point within $\mathcal{O}(ε^{-3.5})$ stochastic gradient complexity on the non-convex stochastic problems (e.g., deep learning problems), matching the best-known lower bound. Extensive experimental results show that Adan consistently surpasses the corresponding SoTA optimizers on vision, language, and RL tasks and sets new SoTAs for many popular networks and frameworks, e.g., ResNet, ConvNext, ViT, Swin, MAE, DETR, GPT-2, Transformer-XL, and BERT. More surprisingly, Adan can use half of the training cost (epochs) of SoTA optimizers to achieve higher or comparable performance on ViT, GPT-2, MAE, etc., and also shows great tolerance to a large range of minibatch size, e.g., from 1k to 32k. Code is released at https://github.com/sail-sg/Adan, and has been used in multiple popular deep learning frameworks or projects.
Druh dokumentu: Article
Popis súboru: application/pdf
ISSN: 1939-3539
0162-8828
DOI: 10.1109/tpami.2024.3423382
DOI: 10.48550/arxiv.2208.06677
Prístupová URL adresa: https://pubmed.ncbi.nlm.nih.gov/38963744
http://arxiv.org/abs/2208.06677
Rights: IEEE Copyright
arXiv Non-Exclusive Distribution
CC BY NC ND
Prístupové číslo: edsair.doi.dedup.....53be0a0517b7a4105596eab9c9d9c4a9
Databáza: OpenAIRE
Popis
Abstrakt:In deep learning, different kinds of deep networks typically need different optimizers, which have to be chosen after multiple trials, making the training process inefficient. To relieve this issue and consistently improve the model training speed across deep networks, we propose the ADAptive Nesterov momentum algorithm, Adan for short. Adan first reformulates the vanilla Nesterov acceleration to develop a new Nesterov momentum estimation (NME) method, which avoids the extra overhead of computing gradient at the extrapolation point. Then, Adan adopts NME to estimate the gradient's first- and second-order moments in adaptive gradient algorithms for convergence acceleration. Besides, we prove that Adan finds an $ε$-approximate first-order stationary point within $\mathcal{O}(ε^{-3.5})$ stochastic gradient complexity on the non-convex stochastic problems (e.g., deep learning problems), matching the best-known lower bound. Extensive experimental results show that Adan consistently surpasses the corresponding SoTA optimizers on vision, language, and RL tasks and sets new SoTAs for many popular networks and frameworks, e.g., ResNet, ConvNext, ViT, Swin, MAE, DETR, GPT-2, Transformer-XL, and BERT. More surprisingly, Adan can use half of the training cost (epochs) of SoTA optimizers to achieve higher or comparable performance on ViT, GPT-2, MAE, etc., and also shows great tolerance to a large range of minibatch size, e.g., from 1k to 32k. Code is released at https://github.com/sail-sg/Adan, and has been used in multiple popular deep learning frameworks or projects.
ISSN:19393539
01628828
DOI:10.1109/tpami.2024.3423382