What is a learning rate schedule?
A learning rate schedule is a plan that, rather than keeping the learning rate fixed throughout model training, changes it by a predefined rule tied to step or epoch count, for example raising it slowly at first and then lowering it.
Unlike the learning rate, the value setting how much parameters change in one step, the schedule sets how that value changes over training. A good learning rate paired with a poor schedule can still produce unstable or weak training.
- Topic
- Machine learning, models and training
- Also known as
- Learning rate scheduler, LR schedule
How a learning rate schedule works
- During warm-up, learning rate rises slowly from a small value to the target over a few hundred or thousand steps, chosen to suit model and data.
- Learning rate is then lowered by a linear, cosine or step rule.
- Some schedules periodically raise learning rate again before lowering it once more.
- If training may be paused and resumed, the schedule's current step is stored with the checkpoint.
In more detail
The Warmup-Stable-Decay (WSD) schedule
The Warmup-Stable-Decay (WSD) schedule has become a widely used alternative to cosine annealing in LLM training. After warm-up, WSD keeps the learning rate at a constant plateau, so training can continue as new data arrives, then applies a rapid decay (cooldown) phase only when branching off a releasable checkpoint.
The minimum learning rate floor and step horizon
Rather than decaying all the way to zero, schedules typically decay to a non-zero floor, a small fraction of the peak, so late-stage updates remain active. In cosine decay, setting the total step horizon accurately matters: stopping early leaves the model under-converged, while training past the horizon keeps the rate stuck at the floor.
Warmup ratio and step counts in distributed training
In distributed training, changing gradient accumulation or GPU count alters total optimiser steps per epoch, requiring the scheduler's total_steps and warmup_steps to be recalculated, often specified as a warmup ratio rather than a fixed step count.
Commonly confused terms
| Term | How it differs |
|---|---|
| Learning rate scheduler | A learning rate schedule is the mathematical rule or curve mapping training progress to a learning rate multiplier, whereas a learning rate scheduler is the software component in frameworks like PyTorch that tracks steps and updates the optimiser. |
| Adaptive optimiser | An adaptive optimiser (like AdamW) scales step sizes per parameter using gradient history automatically, whereas an explicit schedule modulates the global base learning rate over time; the two are used together, not as substitutes. |
| Early stopping | Early stopping halts training altogether when validation loss stops improving, whereas learning rate decay lowers the step size so the model can settle smoothly into a flatter minimum. |
Why a learning rate schedule matters for on-premises AI
A learning rate schedule markedly affects stability and final performance, especially when training and fine-tuning large models: starting without warm-up can spike loss in early steps, while training without decay can stop the model settling at a good point. Retraining or continued pre-training in-house needs the schedule set up again. Schedule type, warm-up length and final learning rate are logged in the experiment record so training can be reproduced.
Fine-tuning its in-house coding assistant, a carmaker uses a short warm-up followed by cosine decay; when a fault halts training, the schedule's step is restored from the checkpoint so training resumes on the same curve.
Common questions
Why is warm-up used?
At the start of training parameters are not yet well set, so large steps can spike the loss. Raising learning rate slowly keeps early steps stable.
Which schedule is best?
There is no single right one. Warm-up followed by cosine or linear decay is common; the choice is tested against model, data and training length.
Related terms
Sources
- Loshchilov and Hutter, SGDR: Stochastic Gradient Descent with Warm Restarts, 2016
- Goyal et al., Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour, 2017
- Goodfellow, Bengio and Courville, Deep Learning, 2016
In the glossary: Glossary, D to L