Gradient Descent: The Ultimate Optimizer
Kartik Chandra, Audrey Xie, Jonathan Ragan-Kelley, Erik Meijer
Abstract
Working with any gradient-based machine learning algorithm involves the tedious task of tuning the optimizer's hyperparameters, such as its step size. Recent work has shown how the step size can itself be optimized alongside the model parameters by manually deriving expressions for "hypergradients" ahead of time. We show how to automatically compute hypergradients with a simple and elegant modification to backpropagation. This allows us to easily apply the method to other optimizers and hyperparameters (e.g. momentum coefficients). We can even recursively apply the method to its own hyper-hyperparameters, and so on ad infinitum. As these towers of optimizers grow taller, they become less sensitive to the initial choice of hyperparameters. We present experiments validating this for MLPs, CNNs, and RNNs. Finally, we provide a simple PyTorch implementation of this algorithm (see people.csail.mit.edu/kach/gradient-descent-the-ultimate-optimizer).
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.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Mechanic: A Learning Rate Tuner cites Learning-Rate-Free Learning by D-Adaptation
- Mechanic: A Learning Rate Tuner cites DoG is SGD's Best Friend: A Parameter-Free Dynamic Step Size Schedule
- Learning-Rate-Free Learning by D-Adaptation cites DoG is SGD's Best Friend: A Parameter-Free Dynamic Step Size Schedule
- DoG is SGD's Best Friend: A Parameter-Free Dynamic Step Size Schedule cites Learning-Rate-Free Learning by D-Adaptation
Cited by top-tier papers14
- Learning-Rate-Free Learning by D-AdaptationAaron Defazio, Konstantin MishchenkoICML 2023 · 117 citations
- DoG is SGD's Best Friend: A Parameter-Free Dynamic Step Size ScheduleMaor Ivgi, Oliver Hinder, Yair CarmonICML 2023 · 98 citations
- Doubly Adaptive Scaled Algorithm for Machine Learning Using Second-Order InformationMajid Jahani, Sergey Rusakov, Zheng Shi, Peter Richtárik et al.ICLR 2022 · 31 citations
- Mechanic: A Learning Rate TunerAshok Cutkosky, Aaron Defazio, Harsh MehtaNeurIPS 2023 · 27 citations
- Fast Trainable Projection for Robust Fine-tuningJunjiao Tian, Yen-Cheng Liu, James Seale Smith, Zsolt KiraNeurIPS 2023 · 23 citations
Builds on1
Related papers
- Scalable One-Pass Optimisation of High-Dimensional Weight-Update Hyperparameters by Implicit DifferentiationRoss M. Clarke, Elre Talea Oldewage, José Miguel Hernández-LobatoICLR 2022 · 9 citations
- MetaOptimize: A Framework for Optimizing Step Sizes and Other Meta-parametersArsalan Sharifnassab, Saber Salehkaleybar, Richard S. SuttonICML 2025
- Enhancing Optimizer Stability: Momentum Adaptation of The NGN Step-sizeRustem Islamov, Niccolò Ajroldi, Antonio Orvieto, Aurélien LucchiNeurIPS 2025 · 1 citation
- Guarantees for Tuning the Step Size using a Learning-to-Learn ApproachXiang Wang, Shuai Yuan, Chenwei Wu, Rong GeICML 2021 · 16 citations
- A Stagewise Hyperparameter Scheduler to Improve GeneralizationJianhui Sun, Ying Yang, Guangxu Xun, Aidong ZhangKDD 2021 · 8 citations
