Lune

NeurIPS2023Top-tier venue

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

Yun Yue, Zhiling Ye, Jiadi Jiang, Yongchao Liu, Ke Zhang

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • HVAdam: A Full-Dimension Adaptive Optimizer cites AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradients
  • AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradients cites ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learning
  • Towards Dynamic Interleaving Optimizers cites ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learning
  • Towards Dynamic Interleaving Optimizers cites AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradients
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. HVAdam: A Full-Dimension Adaptive OptimizerYiheng Zhang, Shaowu Wu, Yuanzhuo Xu, Jiajun Wu et al.AAAI 2025 · 1 citation
  2. Towards Dynamic Interleaving OptimizersYile Chen, Zeyi Wen, Jian Chen, Jin HuangICLR 2026

Builds on2

  1. AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed GradientsJuntang Zhuang, Tommy Tang, Yifan Ding, Sekhar Tatikonda et al.NeurIPS 2020 · 697 citations
  2. ADAHESSIAN: An Adaptive Second Order Optimizer for Machine LearningZhewei Yao, Amir Gholami, Sheng Shen, Mustafa Mustafa et al.AAAI 2021 · 358 citations

Related papers

  1. ASGO: Adaptive Structured Gradient OptimizationKang An, Yuxing Liu, Rui Pan, Yi Ren et al.NeurIPS 2025 · 58 citations
  2. A General Regret Bound of Preconditioned Gradient Method for DNN TrainingHongwei Yong, Ying Sun, Lei ZhangCVPR 2023
  3. Combining Axes Preconditioners through Kronecker Approximation for Deep LearningSai Surya Duvvuri, Devvrit, Rohan Anil, Cho-Jui Hsieh et al.ICLR 2024 · 16 citations
  4. MADA: Meta-Adaptive Optimizers Through Hyper-Gradient DescentKaan Ozkara, Can Karakus, Parameswaran Raman, Mingyi Hong et al.ICML 2024 · 7 citations
  5. AdaFisher: Adaptive Second Order Optimization via Fisher InformationDamien Martins Gomes, Yanlei Zhang, Eugene Belilovsky, Guy Wolf et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines