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

Xiaoyu Wang, Sindri Magnússon, Mikael Johansson

Introduction: The Gap Between Theory and Practice

In the realm of stochastic optimization, the choice of step-size (or learning rate) is paramount. Historically, theoretical research has focused heavily on diminishing step-size schedules, such as $\eta_t = 1/t$ or $1/\sqrt{t}$. These schedules are mathematically elegant and offer strong convergence guarantees, yet they are rarely used by practitioners training modern deep neural networks.

Instead, the deep learning community overwhelmingly favors step decay (often called "constant-and-then-cut") schedules. In this approach, the learning rate remains constant for many epochs and is then multiplied by a decay factor (e.g., 0.1) at specific milestones. While frameworks like PyTorch and TensorFlow make this the default due to its excellent convergence and generalization qualities, the theoretical foundation explaining why and how fast it converges—especially for general non-convex problems and the "last iterate" actually used in deployment—has remained elusive.

This paper bridges that gap, providing a comprehensive theoretical foundation for the step decay heuristic across non-convex, convex, and strongly convex problems, proving that this popular practical trick achieves near-optimal convergence rates.

Stagewise SGD and the "Late Weighting" Breakthrough

To analyze step decay, the authors model a stagewise Stochastic Gradient Descent (SGD) algorithm. The total training horizon $T$ is divided into $N$ stages of equal length $S$. Within each stage, the step-size remains constant, but it is divided by a decay factor $\alpha > 1$ at the beginning of each subsequent stage.

A major methodological hurdle in non-convex optimization proofs is how to evaluate the iterates. Traditional proofs often analyze a "randomly picked" iterate from the training history, weighting early iterates more heavily ($P_t \propto \eta_t$). The authors introduce a novel, non-uniform sampling rule where $P_t \propto 1/\eta_t$. This "late weighting" approach places more importance on later iterates, aligning perfectly with the practical intuition that a model improves over time.

By leveraging this new sampling rule, the authors successfully removed the problematic $\ln T$ factor from the best-known convergence rates for standard $1/\sqrt{t}$ schedules, unlocking tight bounds for step decay.

Theoretical Guarantees Across Convexity Regimes

The stagewise analysis yields separate, rigorous proofs demonstrating how the number of stages $N$ and the decay factor $\alpha$ impact the final error bound across different types of optimization landscapes:

  • Non-Convex Problems: The authors establish a convergence rate of $\mathcal{O}(\ln T / \sqrt{T})$ for the gradient norm. This near-optimal rate provides a solid theoretical justification for using step decay in deep learning.
  • Strongly Convex Problems: For smooth, strongly convex problems, the schedule achieves an $\mathcal{O}(\ln T / T)$ rate for the last iterate. Crucially, the authors prove this rate is tight, meaning no algorithm of this class can achieve a better bound. For non-smooth strongly convex problems, the rate is $\mathcal{O}(\ln^2 T / T)$.

Empirical Validation and Practical Robustness

To validate their theoretical findings, the authors tested step decay on several standard benchmarks, including MNIST (2-layer fully-connected networks), CIFAR-10 and CIFAR-100 (100-layer DenseNet architectures), and rcv1.binary (regularized logistic regression for the strongly convex case).

The empirical results highlight several key practical advantages of step decay:

  1. Superior Accuracy: On CIFAR-100, Step-Decay combined with standard optimizers (NAG, Adam, AdamW) consistently outperformed exponential decay or constant schedules, reaching higher testing accuracies (e.g., 75.68% for NAG + Step-Decay).
  2. Robustness to Hyperparameters: Step decay proved significantly more robust to the initial learning rate ($\eta_0$) than constant step-size schedules. Even if the initial rate is slightly miscalibrated, the periodic "cuts" eventually force the learning rate into a productive, convergent range.
  3. Better Generalization: The experiments demonstrate that step decay helps models find stationary points that generalize better to unseen data. In contrast, constant learning rates often cause the model to "overfit" to noise during the later stages of training.

Limitations and Future Directions

While this work provides a much-needed theoretical backing for step decay, it assumes stages of equal length ($S = T/N$). In practice, developers frequently use custom, uneven milestones (e.g., dropping the rate at epochs 80, 120, and 160). Extending these proofs to accommodate arbitrary stage lengths is a natural next step.

Furthermore, while step decay is robust to the initial learning rate, the choice of the number of stages $N$ (or stage length $S$) still requires empirical tuning. Future research could explore adaptive methods for selecting stage lengths, potentially mitigating the loss of generalization sometimes observed at the very end of training.

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