Interpreting Adaptive Gradient Methods by Parameter Scaling for Learning-Rate-Free Optimization

Min-Kook Suh, Seung-Woo Seo

TL;DR

Tuning learning rates is a tedious chore in deep learning, leading to the rise of "learning-rate-free" optimizers. However, these methods are mostly built for standard Stochastic Gradient Descent (SGD) and fail when paired with popular adaptive optimizers like Adam. This paper bridges the gap by framing adaptive gradient methods as standard SGD applied to a parameter-scaled network, delivering robust, tuning-free performance across vision, fine-tuning, and reinforcement learning tasks.

What Problem Does This Paper Address?

Setting the learning rate hyperparameter is one of the most critical yet time-consuming parts of training deep neural networks. To fix this, researchers developed "learning-rate-free" methods (like Stochastic Polyak Step-size or D-Adaptation) that automatically estimate the optimal step size during training.

The catch? Most of these methods assume that the gradient direction aligns with the parameter update direction. While this is true for standard SGD, it is completely false for adaptive gradient methods like Adam or RMSProp, which scale gradients element-wise to normalize their effects. Existing attempts to create learning-rate-free Adam variants often suffer from instability or divergence in complex settings like reinforcement learning or downstream fine-tuning.

Methods

The authors introduce a clever mathematical perspective: dividing a gradient by $\alpha^2$ (as adaptive methods do to normalize gradient scales) is mathematically equivalent to multiplying the network's parameters by $\alpha$ and applying standard steepest descent (SGD).

Using this "parameter scaling" trick, they transform two popular SGD-based learning-rate-free methods into adaptive variants:

  1. Parameter-scaled Stochastic Polyak Step-size (PS-SPS): Adapts the Polyak step-size method by scaling parameters and gradients before computing the step size. Algorithm 1: PS-SPS
Algorithm 1: PS-SPS
  1. Parameter-scaled D-Adapt SGD (PS-DA-SGD): Adapts D-Adaptation. Since Adam-style scaling can cause fast-converging parameters to approach zero and halt training prematurely, the authors add safeguards—shrinking the distance bound $D$ by the maximum scale ratio and tracking maximum gradients ($g_M$) to maintain stable updates. Algorithm 2: PS-DA-SGD
Algorithm 2: PS-DA-SGD

Datasets

The authors evaluated their methods across a diverse suite of benchmarks to ensure broad compatibility:

  • CIFAR-100: Used to train ResNet-32 and VGG-19 (with batch normalization removed to test stability).
  • OpenAI Gym (Hopper-v2, Humanoid-v2): Used for reinforcement learning via the Soft Actor-Critic (SAC) algorithm.
  • ImageNet-1K: Used to train a Vision Transformer (ViT-Tiny) from scratch.
  • ADE20K: Used for fine-tuning semantic segmentation networks (SegNeXt and Swin-Transformer).
  • STL-10: Used for self-supervised learning via SimCLR with a ResNet-18 backbone.

Key Insights and Ideas

  • The Equivalence Trick: The core "aha" moment is realizing that adaptive gradient optimization isn't a fundamentally different optimization paradigm that breaks learning-rate-free logic; it's just standard SGD operating in a dynamically stretched and scaled parameter space.
  • Why Existing Methods Fail in RL: Prior adaptive learning-rate-free methods like Prodigy and D-Adapt Adam frequently diverge in reinforcement learning because their learning rate estimates blow up. PS-DA-SGD avoids this by anchoring its scaling to the maximum historical scaling factor ($\alpha_M$), preventing explosive updates.
  • Implicit Regularization: In self-supervised learning on small datasets (like STL-10), methods that estimate larger learning rates (like Prodigy) sometimes generalize better because the large step size acts as an implicit regularizer against overfitting.

Key Results

  • Robustness Across the Board: PS-DA-SGD was the most stable and effective method tested, consistently matching or nearly matching the performance of hand-tuned Adam.
  • Reinforcement Learning Triumph: In the challenging Humanoid-v2 RL task, where steepest descent methods failed completely (0/5 success rate) and other adaptive methods like Prodigy failed to converge, PS-DA-SGD achieved a perfect 5/5 success rate with an average reward of 5534 (matching hand-tuned Adam's 5527).
  • Vision Transformers: On ImageNet-1K with ViT-Tiny, PS-DA-SGD achieved 73.6% top-1 accuracy without tuning, outperforming D-Adapt Adam (70.5%) and surpassing hand-tuned Adam (72.0%). When weight decay was added, it reached 75.0% accuracy, just shy of hand-tuned AdamW (75.4%).

Limitations and Future Work

  • Overfitting Vulnerability: Learning-rate-free methods are derived from convex optimization principles aimed purely at minimizing training loss. Consequently, they tend to overfit more severely than hand-tuned learning rates on smaller datasets.
  • The Regularization Paradox: While adding weight decay or other regularizers mitigates overfitting, it introduces new hyperparameters that need manual tuning—partially defeating the philosophy of "learning-rate-free" optimization. The authors note that integrating sharpness-aware minimization (SAM) or automatic regularization is a vital direction for future work.

Summary updated

BibTeX
@misc{suh2024interpreting,
  author = {Min-Kook Suh and Seung-Woo Seo},
  title = {{Interpreting Adaptive Gradient Methods by Parameter Scaling for Learning-Rate-Free Optimization}},
  year = {2024},
  eprint = {2401.03240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.03240},
}
Figure