Learning Rate Scheduling
Learning rate scheduling means dynamically changing the learning rate during training according to a predefined rule instead of using one fixed value throughout. It formalizes the intuition of "large steps for exploration early, small steps for refinement late", directly determines convergence speed, final loss and generalization quality, and is the key element in a training recipe second only to the choice of optimizer.
Core Principles
A fixed learning rate poses a dilemma: set it too high and early convergence is fast but late training bounces around the minimum or even diverges; set it too low and early progress is too slow, wasting compute. Scheduling resolves the conflict through a timetable that makes the learning rate vary with the step count. Common schemes include step decay, multiplying by a decay factor every fixed number of epochs; exponential decay, a continuous exponential drop by step; cosine annealing, where the learning rate follows a cosine curve smoothly down to near zero, with warm restarts when needed; and linear decay, simple and predictable, often used in large-model pretraining.
Another component that cannot be ignored is warmup. Early in training the parameters are random and gradient statistics are extremely noisy, and the second-moment estimates of adaptive optimizers have not yet accumulated sufficiently, so using a large learning rate at this point easily causes divergence. Warmup linearly raises the learning rate from near zero to the target value over the first several steps, giving the statistics a stable window while preventing early large gradients from damaging the model. Large-model training almost unconditionally needs warmup, and the number of steps is often tied to the batch size.
Recent years have also brought learning-rate methods that adjust automatically based on effective progress, such as adaptive scheduling based on the scale of gradient noise, as well as cyclical learning rates and one-cycle policies, which treat scheduling itself as a form of regularization. Scheduling is strongly coupled with batch size: when the batch doubles, one often scales the learning rate linearly and lengthens warmup, otherwise retuning is needed.
How to Judge Whether a Schedule Is Reasonable
One can observe the relationship between learning rate and loss: if the loss has already plateaued long before decay begins, the peak is likely too small or warmup too short; if it only starts dropping markedly after decay, the early phase was drowned in gradient noise. A short pilot run over a tenth of the total steps with several peak values can be used to pick the one that decays most steadily. In fine-tuning scenarios, a smaller peak with short warmup and linear decay to zero is common, to avoid destroying pretrained knowledge; in continued pretraining, warmup should be redone to prevent distribution shift from causing violent updates. Also note that the training stopping point often does not coincide with the schedule endpoint: when interrupted early, the learning rate has not yet decayed fully and the model has not converged sufficiently, so it is best to keep several late-stage checkpoints for ensembling.
Key Points
Cosine annealing: decays smoothly from the peak along a half-cosine curve to near zero, falling slowly at the end, which favors fine convergence; it is the general default choice.
Linear warmup: usually 1% to 5% of total steps, longer for large models.
Step decay: multiply by 0.1 at milestones; classic but requiring manual node settings and not smooth enough.
Warm restarts: periodically return to the peak, which can escape local minima and supports snapshot ensembling.
Peak learning rate: still the first factor; scheduling can only improve, not compensate for, a wrong peak.
Common Misconceptions
A common mistake is copying someone else's schedule while ignoring your own total steps and batch size. Some treat warmup as an optional trick, and it works fine at small scale, but early loss explodes when scaled up to large training. Others mistakenly believe that the smaller the learning rate decays toward zero the better, causing the tail of training to nearly stall and waste compute. When using a cosine schedule but interrupting early, the learning rate has not fallen to a low value and the model has not converged sufficiently.
Application Scenarios
Large-scale language model pretraining, vision model classification and detection training, speech recognition, balancing the discriminator and generator of generative adversarial networks, low learning rate linear decay during fine-tuning, distillation and few-shot training.