Online Learning-guided Learning Rate Adaptation via Gradient Alignment

Ruichen Jiang, Ali Kavis, Aryan Mokhtari · Submission to ICLR 2026 · Rejected

TL;DR

Tuning learning rates and schedules remains one of deep learning’s most computationally expensive chores. This paper introduces GALA (Gradient Alignment-based Learning rate Adaptation), a framework that casts step-size selection as a one-dimensional online learning problem driven by gradient alignment and local curvature estimates. By doing so, GALA enables optimizers like SGD and Adam to dynamically increase or decrease their step sizes on the fly, demonstrating remarkable robustness across initial learning rates spanning eight orders of magnitude ($10^{-8}$ to $1.0$).

What Problem Does This Paper Address?

Standard deep learning optimizers (such as SGD and Adam) are notoriously sensitive to the initial base learning rate $\eta_0$. Picking a value that is too small leads to training stagnation, while picking one that is too large causes divergence.

Existing solutions have notable shortcomings:

  • Predefined schedules (e.g., cosine decay) cannot respond dynamically to loss landscape geometry.
  • Adaptive methods like AdaGrad enforce monotonic decay, derived largely from convex optimization theories that do not match the non-convex realities of neural networks.
  • Parameter-free optimizers (e.g., D-Adaptation, Prodigy, AdGD) often constrain the rate of step-size expansion, become unstable in non-convex settings, or sharply degrade if initialized with a step size above $10^{-3}$.

Methods

GALA formulates learning rate adaptation as a 1D online convex optimization problem updated at each step via Follow-the-Regularized-Leader (FTRL).

  1. Surrogate Loss Function: Derived from the fundamental theorem of calculus, the progress between successive steps depends on the inner product of successive stochastic gradients: $$\ell_t(\eta) = -\eta \langle g'_t(w_t), g_t(x_t) \rangle + \frac{1}{2} L_t \|g_t(x_t)\|^2 \eta^2$$
  2. The first term rewards gradient alignment: if consecutive gradients point in similar directions, the learning rate increases. If they conflict, it decreases.
  3. The second term acts as a stabilizer, regularizing the step size via an empirical, on-the-fly estimate of the local gradient Lipschitz constant $L_t = \frac{\|g'_t(w_t) - g'_t(x_t)\|}{\|w_t - x_t\|}$.
  4. Online Learning Update: Solving this surrogate sequence with FTRL yields an analytic, closed-form update for $\eta_{t+1}$ that naturally aggregates alignment history without requiring manual tuning.
  5. Theoretical Analysis: The authors prove convergence guarantees for normalized SGD with momentum coupled with an optimistic FTRL variant, establishing an $\mathcal{O}(\sigma^{1/2} / T^{1/4} + 1/\sqrt{T})$ convergence rate in smooth non-convex stochastic settings, driven by local average curvature rather than worst-case global Lipschitz constants.
  6. Practical Heuristics: In practice, computing $L_t$ requires one additional gradient evaluation per step on the same mini-batch, setting $w_t = x_{t+1}$ and removing theoretical clipping bounds ($\eta_{\max}$).

Datasets

The authors evaluated GALA using standard vision classification benchmarks:

  • CIFAR-10 and CIFAR-100
  • Oxford 102 Flowers (Flower102)
  • Tiny-ImageNet-200

No new benchmarks were introduced. Architectures tested include ResNet-18 (trained from scratch) and ViT-Tiny (pretrained and fine-tuned).

Key Insights and Ideas

  • Bi-directional step size adaptation: Unlike classical accumulation methods (AdaGrad) which can only monotonically decrease the effective learning rate, GALA can expand and contract the learning rate as the optimizer traverses flat plateaus or steep ravines.
  • Fast self-correction from poor initialization: Because FTRL computes the step size via accumulated alignment ratios, the dependence on $\eta_0$ vanishes almost immediately after the first step.
  • Alignment on identical mini-batches: Evaluating alignment using consecutive iterate evaluations on the same mini-batch sample drastically reduces stochastic noise and stabilizes curvature estimation in practice.

Key Results

  • Invariance to Initial Learning Rates: In ResNet-18 experiments across CIFAR-10, CIFAR-100, and Flower102, both SGD-GALA and ADAM-GALA maintain competitive final test accuracies across all initializations $\eta_0 \in [10^{-8}, 1.0]$.
  • ViT Fine-Tuning Superiority: On Tiny-ImageNet with ViT-Tiny, SGD-GALA achieved consistent ~72% final test accuracy regardless of whether $\eta_0$ was $10^{-8}$ or $1.0$, matching or outperforming well-tuned AdamW with cosine decay.
  • Outperforming Existing Parameter-Free Baselines: Competing methods like Prodigy and D-Adaptation experienced catastrophic performance drops when initialized at $\eta_0 > 10^{-3}$. Similarly, AdGD suffered severe oscillations and instability on CIFAR-100, whereas GALA maintained smooth convergence.

Limitations and Future Work

  • Computational Overhead: GALA requires an extra backward pass per iteration to evaluate the gradient difference for the local Lipschitz estimate ($L_t$), effectively doubling the per-iteration gradient compute cost compared to standard SGD.
  • Theoretical vs. Practical Gap: Rigorous convergence proofs are established for normalized SGD with momentum, whereas the practical Adam-GALA algorithm relies on intuitive empirical heuristics.
  • Scope of Evaluation: Experiments are restricted to small-to-medium computer vision models; large-scale pretraining (e.g., large language models) remains unexplored.

Summary updated

BibTeX
@misc{jiang2025online,
  author = {Ruichen Jiang and Ali Kavis and Aryan Mokhtari},
  title = {{Online Learning-guided Learning Rate Adaptation via Gradient Alignment}},
  year = {2025},
  eprint = {2506.08419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.08419},
}
Figure