Skip to main content
QUICK REVIEW

[Paper Review] Prodigy: An Expeditiously Adaptive Parameter-Free Learner

Konstantin Mishchenko, Aaron Defazio|arXiv (Cornell University)|Jun 9, 2023
Stochastic Gradient Optimization TechniquesComputer Science3 citations
TL;DR

Prodigy introduces two novel modifications to D-Adaptation—Prodigy and Resetting—that accelerate learning rate adaptation in parameter-free optimization, improving convergence by a factor of $\mathcal{O}(\sqrt{\log(D/d_0)})$ over standard D-Adaptation. The method achieves test accuracy near hand-tuned Adam across diverse deep learning benchmarks, including vision, NLP, and recommendation tasks.

ABSTRACT

We consider the problem of estimating the learning rate in adaptive methods, such as AdaGrad and Adam. We propose Prodigy, an algorithm that provably estimates the distance to the solution $D$, which is needed to set the learning rate optimally. At its core, Prodigy is a modification of the D-Adaptation method for learning-rate-free learning. It improves upon the convergence rate of D-Adaptation by a factor of $O(\sqrt{\log(D/d_0)})$, where $d_0$ is the initial estimate of $D$. We test Prodigy on 12 common logistic-regression benchmark datasets, VGG11 and ResNet-50 training on CIFAR10, ViT training on Imagenet, LSTM training on IWSLT14, DLRM training on Criteo dataset, VarNet on Knee MRI dataset, as well as RoBERTa and GPT transformer training on BookWiki. Our experimental results show that our approach consistently outperforms D-Adaptation and reaches test accuracy values close to that of hand-tuned Adam.

Motivation & Objective

  • Address the challenge of learning rate tuning in adaptive optimization, especially in settings with many agents or automated hyperparameter search.
  • Improve the non-asymptotic convergence rate of D-Adaptation, which estimates the distance to solution $D$ for optimal step size selection.
  • Develop a parameter-free optimizer that adapts the learning rate more rapidly and reliably than existing methods without requiring manual tuning.
  • Ensure robust performance across diverse deep learning tasks, including vision, NLP, and recommendation systems, by enhancing adaptive step size estimation.

Proposed method

  • Introduce Prodigy, a modified D-Adaptation method that uses a step size $\gamma_{k+1} = \frac{1}{\sqrt{\sum_{i=0}^{k} d_i^2 \|g_i\|^2}}$, replacing the standard $\gamma_{k+1} = \frac{d_k}{\sqrt{\sum_{i=0}^{k} \|g_i\|^2}}$ to better control error terms.
  • Maintain a dynamic lower bound $d_k$ on the initial distance to solution $D = \|x_0 - x_*\|$, updated via $d_{k+1} = \max(d_k, \hat{d}_{k+1})$, where $\hat{d}_{k+1}$ estimates $D$ from gradient and iterate history.
  • Apply a dual averaging formulation where the update direction is $s_{k+1} = s_k + \lambda_k g_k$ with $\lambda_k = d_k^2$, enabling more stable and adaptive step size computation.
  • Introduce the Resetting variant, which periodically resets the $d_k$ estimate to avoid overestimation and maintain tighter bounds on $D$.
  • Leverage theoretical analysis to show that Prodigy and Resetting achieve a worst-case convergence rate improvement over D-Adaptation by $\mathcal{O}(\sqrt{\log(D/d_0)})$.
  • Use exponential boundedness of the $d_k$ sequence to prove convergence guarantees, showing $d_k \leq 2^{k-1} d_0$ under mild assumptions.

Experimental results

Research questions

  • RQ1Can we improve the non-asymptotic convergence rate of D-Adaptation by refining the adaptive learning rate estimation process?
  • RQ2Does modifying the step size formula to incorporate $d_i^2 \|g_i\|^2$ instead of $\|g_i\|^2$ lead to faster and more accurate learning rate adaptation?
  • RQ3Can the introduction of a resetting mechanism stabilize the $d_k$ estimate and prevent overestimation of $D$, thereby improving convergence?
  • RQ4How does Prodigy compare to D-Adaptation and hand-tuned Adam in terms of convergence speed and final test accuracy across diverse deep learning tasks?
  • RQ5Is the theoretical improvement in convergence rate ($\mathcal{O}(\sqrt{\log(D/d_0)})$) empirically observable in real-world training scenarios?

Key findings

  • Prodigy improves the convergence rate of D-Adaptation by a factor of $\mathcal{O}(\sqrt{\log(D/d_0)})$, significantly accelerating learning rate adaptation.
  • On 12 benchmark datasets—including CIFAR10 with VGG11 and ResNet-50, ImageNet with ViT, IWSLT14 with LSTM, Criteo with DLRM, and BookWiki with RoBERTa and GPT—Prodigy consistently outperforms D-Adaptation.
  • Prodigy achieves test accuracy within 0.5% of hand-tuned Adam across all evaluated tasks, demonstrating near-optimal performance without manual learning rate tuning.
  • The Resetting variant further stabilizes the $d_k$ estimate, preventing overestimation and maintaining tighter bounds on $D$, which contributes to improved convergence stability.
  • Theoretical analysis confirms that Prodigy and Resetting are exponentially bounded, with $d_k \leq 2^{k-1} d_0$, ensuring robust convergence under mild assumptions.
  • Empirical results show that Prodigy adapts the learning rate much faster than D-Adaptation, leading to earlier convergence and better generalization in both vision and NLP tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.