XGrad: Boosting Gradient-Based Optimizers With Weight Prediction

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guan, Lei, Li, Dongsheng, Shi, Yanqi, Meng, Jian
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911829225111552
author Guan, Lei
Li, Dongsheng
Shi, Yanqi
Meng, Jian
author_facet Guan, Lei
Li, Dongsheng
Shi, Yanqi
Meng, Jian
contents In this paper, we propose a general deep learning training framework XGrad which introduces weight prediction into the popular gradient-based optimizers to boost their convergence and generalization when training the deep neural network (DNN) models. In particular, ahead of each mini-batch training, the future weights are predicted according to the update rule of the used optimizer and are then applied to both the forward pass and backward propagation. In this way, during the whole training period, the optimizer always utilizes the gradients w.r.t. the future weights to update the DNN parameters, making the gradient-based optimizer achieve better convergence and generalization compared to the original optimizer without weight prediction. XGrad is rather straightforward to implement yet pretty effective in boosting the convergence of gradient-based optimizers and the accuracy of DNN models. Empirical results concerning five popular optimizers including SGD with momentum, Adam, AdamW, AdaBelief, and AdaM3 demonstrate the effectiveness of our proposal. The experimental results validate that XGrad can attain higher model accuracy than the baseline optimizers when training the DNN models. The code of XGrad will be available at: https://github.com/guanleics/XGrad.
format Preprint
id arxiv_https___arxiv_org_abs_2305_18240
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle XGrad: Boosting Gradient-Based Optimizers With Weight Prediction
Guan, Lei
Li, Dongsheng
Shi, Yanqi
Meng, Jian
Machine Learning
Artificial Intelligence
In this paper, we propose a general deep learning training framework XGrad which introduces weight prediction into the popular gradient-based optimizers to boost their convergence and generalization when training the deep neural network (DNN) models. In particular, ahead of each mini-batch training, the future weights are predicted according to the update rule of the used optimizer and are then applied to both the forward pass and backward propagation. In this way, during the whole training period, the optimizer always utilizes the gradients w.r.t. the future weights to update the DNN parameters, making the gradient-based optimizer achieve better convergence and generalization compared to the original optimizer without weight prediction. XGrad is rather straightforward to implement yet pretty effective in boosting the convergence of gradient-based optimizers and the accuracy of DNN models. Empirical results concerning five popular optimizers including SGD with momentum, Adam, AdamW, AdaBelief, and AdaM3 demonstrate the effectiveness of our proposal. The experimental results validate that XGrad can attain higher model accuracy than the baseline optimizers when training the DNN models. The code of XGrad will be available at: https://github.com/guanleics/XGrad.
title XGrad: Boosting Gradient-Based Optimizers With Weight Prediction
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2305.18240