AGD: an Auto-switchable Optimizer using Stepwise Gradient Difference for Preconditioning Matrix

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yue, Yun, Ye, Zhiling, Jiang, Jiadi, Liu, Yongchao, Zhang, Ke
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913601542946816
author Yue, Yun
Ye, Zhiling
Jiang, Jiadi
Liu, Yongchao
Zhang, Ke
author_facet Yue, Yun
Ye, Zhiling
Jiang, Jiadi
Liu, Yongchao
Zhang, Ke
contents Adaptive optimizers, such as Adam, have achieved remarkable success in deep learning. A key component of these optimizers is the so-called preconditioning matrix, providing enhanced gradient information and regulating the step size of each gradient direction. In this paper, we propose a novel approach to designing the preconditioning matrix by utilizing the gradient difference between two successive steps as the diagonal elements. These diagonal elements are closely related to the Hessian and can be perceived as an approximation of the inner product between the Hessian row vectors and difference of the adjacent parameter vectors. Additionally, we introduce an auto-switching function that enables the preconditioning matrix to switch dynamically between Stochastic Gradient Descent (SGD) and the adaptive optimizer. Based on these two techniques, we develop a new optimizer named AGD that enhances the generalization performance. We evaluate AGD on public datasets of Natural Language Processing (NLP), Computer Vision (CV), and Recommendation Systems (RecSys). Our experimental results demonstrate that AGD outperforms the state-of-the-art (SOTA) optimizers, achieving highly competitive or significantly better predictive performance. Furthermore, we analyze how AGD is able to switch automatically between SGD and the adaptive optimizer and its actual effects on various scenarios. The code is available at https://github.com/intelligent-machine-learning/atorch/tree/main/atorch/optimizers.
format Preprint
id arxiv_https___arxiv_org_abs_2312_01658
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle AGD: an Auto-switchable Optimizer using Stepwise Gradient Difference for Preconditioning Matrix
Yue, Yun
Ye, Zhiling
Jiang, Jiadi
Liu, Yongchao
Zhang, Ke
Machine Learning
Distributed, Parallel, and Cluster Computing
Optimization and Control
Adaptive optimizers, such as Adam, have achieved remarkable success in deep learning. A key component of these optimizers is the so-called preconditioning matrix, providing enhanced gradient information and regulating the step size of each gradient direction. In this paper, we propose a novel approach to designing the preconditioning matrix by utilizing the gradient difference between two successive steps as the diagonal elements. These diagonal elements are closely related to the Hessian and can be perceived as an approximation of the inner product between the Hessian row vectors and difference of the adjacent parameter vectors. Additionally, we introduce an auto-switching function that enables the preconditioning matrix to switch dynamically between Stochastic Gradient Descent (SGD) and the adaptive optimizer. Based on these two techniques, we develop a new optimizer named AGD that enhances the generalization performance. We evaluate AGD on public datasets of Natural Language Processing (NLP), Computer Vision (CV), and Recommendation Systems (RecSys). Our experimental results demonstrate that AGD outperforms the state-of-the-art (SOTA) optimizers, achieving highly competitive or significantly better predictive performance. Furthermore, we analyze how AGD is able to switch automatically between SGD and the adaptive optimizer and its actual effects on various scenarios. The code is available at https://github.com/intelligent-machine-learning/atorch/tree/main/atorch/optimizers.
title AGD: an Auto-switchable Optimizer using Stepwise Gradient Difference for Preconditioning Matrix
topic Machine Learning
Distributed, Parallel, and Cluster Computing
Optimization and Control
url https://arxiv.org/abs/2312.01658