On the Convergence of Step Decay Step-Size for Stochastic Optimization

Xiaoyu Wang, Sindri Magnússon, Mikael Johansson

Abstract

This paper bridges the gap between deep learning practice and optimization theory by providing the first comprehensive convergence guarantees for "step decay" learning rate schedules. By introducing a novel non-uniform sampling rule ($P_t \propto 1/\eta_t$), the authors prove that step decay achieves near-optimal convergence rates across non-convex, convex, and strongly convex problems, matching or exceeding the performance of traditional polynomial decay schedules.

Introduction

In the world of Stochastic Gradient Descent (SGD), the "step-size" (or learning rate) is a critical hyperparameter. Theoretical researchers often favor schedules that decrease every iteration (like $1/\sqrt{t}$ or $1/t$) because they are mathematically easier to analyze. However, practitioners almost exclusively use step decay: keeping the learning rate constant for a long period (an "epoch") and then cutting it by a factor (e.g., dividing by 10) at specific milestones.

Despite its ubiquity in training state-of-the-art neural networks, step decay has lacked rigorous theoretical grounding, especially in non-convex settings. While empirical evidence suggests it works, the mathematical rate at which it converges compared to other methods has remained under-explored. This research aims to provide the missing proofs and theoretical framework for this popular practice.

Methodology

The authors analyze a "Stagewise Step Decay" version of SGD. The algorithm runs in $N$ outer loops; in each loop, it performs $S$ iterations with a constant learning rate $\eta_t$, then reduces the learning rate by a factor $\alpha > 1$ for the next loop.

The key theoretical innovation is a novel output selection rule. To prove convergence for non-convex functions, theorists typically analyze a "randomly picked" iterate from the training history. Previous proofs used a probability proportional to the step size ($P_t \propto \eta_t$), which unfortunately gives the most weight to the earliest, noisiest iterations. This paper proposes picking the output with probability inversely proportional to the step size ($P_t \propto 1/\eta_t$).

Comparison of sampling probabilities for different learning rate schedules and selection rules. The $P_t \propto 1/\eta_t$ rule shifts focus to later, more refined iterates.

As shown in the figure above, the $1/\eta_t$ rule (blue and red) shifts the focus to the later, more refined iterates compared to the traditional $\eta_t$ rule (green). This shift allows the authors to derive much tighter and more realistic convergence bounds.

Theoretical Insights

  • The Power of Inversion: The $1/\eta_t$ sampling rule aligns theory with the intuition that the model improves over time. By using this rule, the authors removed the $\ln T$ factor that typically plagues the convergence rates of $1/\sqrt{t}$ schedules.
  • Robustness to Hyperparameters: Step decay is significantly more "forgiving" than constant learning rates. While a constant step size must be perfectly tuned to avoid divergence, step decay works well across a massive range of initial learning rates spanning several orders of magnitude.
  • Tightness of Bounds: For smooth, strongly convex problems, the authors proved a lower bound showing that their $\mathcal{O}(\ln T / T)$ rate is actually tight for this specific algorithm.
  • Generalization vs. Optimization: Experiments highlight a "phase" behavior. Within a single stage of constant learning rate, training loss drops, but testing accuracy often plateaus. The "cut" in learning rate acts as a catalyst that pushes the model into a better region of the loss landscape.

Empirical Results

The authors validated their findings using standard benchmarks including MNIST, CIFAR-10, CIFAR-100 (using ResNet-20 and DenseNet-100), and the rcv1.binary dataset for strongly convex cases.

Key findings include:

  • Non-Convex Regime: Established a near-optimal $\mathcal{O}(\ln T / \sqrt{T})$ convergence rate for the gradient norm.
  • Strongly Convex Regime: Achieved an $\mathcal{O}(\ln T / T)$ rate for smooth problems and $\mathcal{O}(\ln^2 T / T)$ for non-smooth problems.
  • Empirical Superiority: In head-to-head tests on CIFAR-100 with DenseNet, Step Decay consistently reached higher testing accuracy (e.g., 75.68% with NAG optimizer) compared to Exponential Decay (75.31%) and other adaptive methods like AdaGrad.

Discussion and Future Work

While providing a solid theoretical foundation, several areas remain open for investigation. The current theory assumes a specific mathematical schedule for dropping the learning rate ($S = T/\log T$), whereas practitioners often pick milestones based on validation error plateaus. Additionally, the authors noted that generalization ability sometimes weakens toward the end of a constant-step-size phase, suggesting future work should investigate dynamic selection of the inner-loop size $S$. Finally, extending these proofs to adaptive optimizers like Adam and AdamW remains a logical next step.

Summary updated

BibTeX
@inproceedings{wang2021convergence,
  author = {Xiaoyu Wang and Sindri Magnússon and Mikael Johansson},
  title = {{On the Convergence of Step Decay Step-Size for Stochastic Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=dBGGkca6VL},
}
Figure