[Paper Review] A Second look at Exponential and Cosine Step Sizes: Simplicity, Adaptivity, and Performance
This paper provides the first theoretical convergence guarantees for exponential and cosine step size schedules in stochastic gradient descent (SGD) for smooth non-convex functions, proving they achieve near-optimal rates and surprisingly adapt to gradient noise levels under the Polyak-Łojasiewicz (PL) condition. Empirically, these simple schedules match or exceed state-of-the-art methods like Adam and stagewise decay while requiring only one or two hyperparameters to tune.
Stochastic Gradient Descent (SGD) is a popular tool in training large-scale machine learning models. Its performance, however, is highly variable, depending crucially on the choice of the step sizes. Accordingly, a variety of strategies for tuning the step sizes have been proposed, ranging from coordinate-wise approaches (a.k.a. ``adaptive'' step sizes) to sophisticated heuristics to change the step size in each iteration. In this paper, we study two step size schedules whose power has been repeatedly confirmed in practice: the exponential and the cosine step sizes. For the first time, we provide theoretical support for them proving convergence rates for smooth non-convex functions, with and without the Polyak-Łojasiewicz (PL) condition. Moreover, we show the surprising property that these two strategies are \emph{adaptive} to the noise level in the stochastic gradients of PL functions. That is, contrary to polynomial step sizes, they achieve almost optimal performance without needing to know the noise level nor tuning their hyperparameters based on it. Finally, we conduct a fair and comprehensive empirical evaluation of real-world datasets with deep learning architectures. Results show that, even if only requiring at most two hyperparameters to tune, these two strategies best or match the performance of various finely-tuned state-of-the-art strategies.
Motivation & Objective
- To provide theoretical justification for the empirical success of exponential and cosine step size schedules in SGD.
- To investigate whether these simple schedules exhibit adaptivity to intrinsic problem characteristics, such as gradient noise levels.
- To evaluate their performance against state-of-the-art adaptive and heuristic step size strategies in real-world deep learning tasks.
- To demonstrate that minimal hyperparameter tuning can yield performance comparable or superior to complex, finely-tuned baselines.
Proposed method
- Theoretical analysis of SGD with exponential and cosine step size schedules under smoothness and PL condition assumptions.
- Derivation of convergence rates for non-convex functions, showing O(1/√t) convergence up to logarithmic factors.
- Proof that both schedules adapt to the noise level in stochastic gradients under the PL condition without requiring knowledge of noise or tuning based on it.
- Empirical evaluation on CIFAR-10 and ImageNet using ResNet-20 and ResNet-34, comparing to Adam, polynomial decay, and stagewise schedules.
- Use of a fair benchmark with fixed hyperparameter search budgets to ensure comparability across methods.
- Analysis of training and test loss curves to study the impact of premature learning rate decay, including visualization of overfitting risks.
Experimental results
Research questions
- RQ1Do exponential and cosine step size schedules achieve provably optimal convergence rates for smooth non-convex functions?
- RQ2Can these schedules adapt to the noise level in stochastic gradients without explicit knowledge of noise or tuning based on it?
- RQ3How do these simple schedules compare empirically to state-of-the-art adaptive and heuristic learning rate strategies in deep learning?
- RQ4What is the impact of early learning rate decay on generalization, and how do these schedules mitigate such risks?
Key findings
- Exponential and cosine step sizes achieve O(1/√t) convergence rate for smooth non-convex functions, matching the best-known theoretical rates up to logarithmic factors.
- Under the Polyak-Łojasiewicz (PL) condition, both schedules adapt to the noise level in stochastic gradients, achieving near-optimal performance without requiring noise-level knowledge or tuning.
- On CIFAR-10 and ImageNet, cosine and exponential step sizes outperform or match Adam, polynomial decay, and stagewise schedules, with cosine achieving the best test accuracy of 0.7497±0.0044 on ImageNet.
- The exponential step size achieved the lowest training loss (0.0006±0.0001) and test loss (0.0098±0.0010) on CIFAR-10, outperforming all baselines.
- Empirical results show that cosine and exponential schedules require only 1 or 2 hyperparameters, respectively, while outperforming methods needing 3–4 hyperparameters like stagewise decay with multiple milestones.
- Visualization shows that premature learning rate decay leads to overfitting and rising test loss, highlighting the robustness of cosine and exponential schedules in avoiding such pitfalls.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.