Paper commentary
Cyclical Learning Rates for Training Neural Networks
- Problem Choosing one fixed learning rate or one decaying schedule takes many trial runs, and the choice strongly affects accuracy. Practitioners often must search several values before training well.
- Method Cyclical learning rates let the global rate rise and fall between two bounds instead of fixing it. The bounds come from a short LR range test that increases the rate linearly over a few epochs.
- Results Triangular 2 reached 81.4% test accuracy on CIFAR-10 in 25,000 iterations. The fixed policy needed 70,000 iterations to reach the same accuracy.
Why one learning rate schedule is hard to set
In stochastic gradient descent, one scalar learning rate scales every parameter update, so it sets how far each step moves the weights. A rate that is too small makes training slow, and a rate that is too large makes it diverge, so practitioners normally try several values and schedules before settling on one. The usual assumption has been a single value that falls monotonically during training.
Cyclical learning rates keep the global rate varying inside a band between two bounds instead of fixing it. Choosing the method then reduces to choosing two bounds and a cycle length, which is the search that the method aims to cut down. Because the schedule only changes the global rate, it adds essentially no computation, unlike adaptive per-parameter methods.
How a cyclical schedule is computed
The triangular policy rises linearly from the base value to the maximum and then falls linearly back, with the stepsize giving the number of iterations in half a cycle. The code in the paper computes the cycle index from the stepsize, then measures the position inside the cycle as the distance from the peak in units of stepsize. The rate is the base value plus the gap between maximum and base, multiplied by the larger of zero and one minus that distance.
The triangular 2 policy keeps the same shape but halves the amplitude between the bounds at the end of each cycle, so the spread shrinks as training goes on. The exp range policy cycles between the bounds while each bound decays by a constant factor per iteration, written as gamma. The authors tested several window shapes, including Welch and Hann, and found the same results, so they kept the simplest linear form.
The motivation draws on the claim that the difficulty of minimizing the loss comes from saddle points rather than poor local minima. Raising the rate lets training cross saddle plateaus faster, which is the reason given for why a periodic rise can help.
The stepsize is tied to epochs: CIFAR-10 has 50,000 training images and a batch size of 100, which gives 500 iterations per epoch. Setting stepsize to between 2 and 10 times the iterations in an epoch worked well, and final accuracy was reported as only weakly dependent on the cycle length. Training was reported to work best when stopped at the end of a cycle, where the learning rate is at its minimum and accuracy peaks.
Estimating bounds with an LR range test
The LR range test trains the network for a few epochs while the learning rate rises linearly from a low value to a high value. Accuracy is then plotted against the learning rate, and the value where accuracy begins to rise and the value where it slows or turns ragged are taken as the two bounds. In Caffe, the test is set up by giving base lr the low value, max lr the high value, and making stepsize and max iter equal.
For the CIFAR-10 example, the model starts converging at once, so the base value is 0.001. Accuracy becomes rough above 0.006 and then falls, so 0.006 is the maximum.
The authors recommend running the fixed rate and the CLR run over this range before choosing one of them for later experiments.
CIFAR-10 schedules compared with fixed and exp baselines
The fixed baseline reached 81.4% on CIFAR-10 after 70,000 iterations. The triangular 2 run reached the same 81.4% in 25,000 iterations, using the segmented bounds in Table 2 with stepsize 2,000 in the first segment and smaller bounds in later segments.
A decay control that falls linearly from max lr 0.007 to base lr 0.001 over 4000 iterations and then holds the rate ends at 78.5%. The authors read this as showing that both the rise and the fall of the rate are needed for the gain.
The best exp learning rate result in the same comparison was 79.1%.
On the sigmoid and batch normalization variant of the Caffe CIFAR-10 setup, the fixed learning rate ended at 60.8% and the cyclical rate at 72.2%.
Adaptive optimizers combined with CLR
Each adaptive method was run through its Caffe option, with boundaries from the range test and the lower bound used as base lr for the fixed runs.
The gains are therefore uneven: for some optimizers CLR matches the fixed result in a third of the iterations, and for others it needs the full 70,000 iterations.
Residual architectures on CIFAR-10 and CIFAR-100
The experiments use the original Torch implementations of ResNet, Stochastic Depth and DenseNet, all with batch normalization. Each model was trained with fixed initial rates of 0.1, 0.2 and 0.3 and with CLR over the range 0.1 to 0.3, and the table reports the average of five runs.
ResNet reached 92.8, 93.3 and 91.8 on CIFAR-10 at the three fixed rates, and 93.6 with CLR. On CIFAR-100, ResNet reached 71.2, 71.6 and 71.9 at the fixed rates, and 72.5 with CLR.
Stochastic Depth reached 94.6 on CIFAR-10 at fixed 0.1, and 94.5 with CLR, which is 0.1 below that row. On CIFAR-100 Stochastic Depth reached 75.2 at fixed 0.1 and 75.4 with CLR. DenseNet reached 94.5 on CIFAR-10 at fixed 0.1 and 94.9 with CLR, and 75.2 on CIFAR-100 at fixed 0.1 against 75.9 with CLR.
For Stochastic Depth the original work split the 50,000 training images into 45,000 for training and 5,000 for validation, and the table reports test accuracy only. In a Caffe run of DenseNet on CIFAR-10 with fixed rates 0.1, 0.2 and 0.3, averages of five runs were 91.67%, 92.17% and 92.46%, and CLR over 0.1 to 0.3 averaged 93.33%. Accuracy dips at some learning rate values inside the CLR range, though the overall CLR results were similar or better.
AlexNet on ImageNet
With batch size 256, one epoch on the ImageNet training set is 5,005 iterations, so stepsize 30,000 is about six epochs. The range test suggested a base near 0.006, but the baseline used base 0.01, so the triangular policies also used 0.01 for a fair comparison. The maximum was set at 0.015 because training peaks and then drops above that rate.
The exp range policy with gamma 0.999995 reached 56.5% at 300,000 iterations, while the exp policy needed 460,000 iterations to reach 56.5%. Triangular 2 and fixed both sit about 2% above exp, but the authors attribute that gap to gamma not being tuned.
GoogLeNet on ImageNet with no published baseline rate
The GoogLeNet solver file was not available, so the base rate was set to a best guess of 0.01. With batch size 128, an epoch is 10,009 iterations, and the stepsize was set to 30,000. A range test run for 4 epochs with the rate rising from 0.001 to 0.065 showed convergence between 0.01 and 0.04 and erratic training above 0.025, so max lr was set to 0.026.
Due to time limitations, not every stage was run until it fully plateaued.
Limitations
The benefit of CLR is sometimes smaller with adaptive learning rate methods, though it can still help at essentially no cost. The method was not applied to recurrent neural networks, and a theoretical analysis is left for future work. The CIFAR-10 comparisons at 25,000 and 70,000 iterations use different iteration budgets, and the GoogLeNet runs were stopped before full plateau.
Paper info
- Authors
- Leslie N. Smith
- Venue
- arXiv · Preprint
- First published
- 2015-6-3
- Added
- 2026-11-12
- Updated
- 2017-4-4
- Version
- v6
- arXiv
- 1506.01186
- Category
- cs.CV · cs.LG · cs.NE
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Leslie N. Smith (2015). Cyclical Learning Rates for Training Neural Networks. arXiv:1506.01186v6. https://arxiv.org/abs/1506.01186v6
BibTeX
@misc{smith2015cyclical,
title = {{Cyclical Learning Rates for Training Neural Networks}},
author = {Leslie N. Smith},
year = {2015},
eprint = {1506.01186},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1506.01186v6}
}