Why do modern deep networks such as Transformers and large-batch CNNs typically start training with a learning-rate warm-up instead of immediately using the peak learning rate?
Deep learning, Learning-rate schedules
Level L4 Advanced. Length Medium. Nature Th Theoretical.
What's being asked
Whether you understand the early-training instabilities—both optimisation curvature and Adam’s variance—that warm-up mitigates.
Key idea
At step , weights are random so early gradients can be huge and unaligned, while Adam’s second-moment estimate is built from only a handful of samples and has very high variance. Ramping linearly from near to lets gradients align and stabilise before taking full-sized steps.
Steps
- Early gradient variance in Adam: even with bias correction , for small (with ) reflects very few squared gradients, so has heavy-tailed variance and can trigger massive, erratic updates in the first few hundred steps.
- Initial curvature and LayerNorm dynamics: in Transformers (especially post-norm ones), random weights near initialisation can have sharp local curvature or cause gradients to concentrate in a few attention heads; starting with a high learning rate pushes parameters into bad regions or causes divergence.
- Large-batch training: when scaling batch size up with the linear scaling rule (), taking a large initial step at step before weights have adapted to the data distribution easily overshoots.
- How warm-up works: increases linearly (say over the first of steps) from to , giving parameters and moving-average statistics time to settle before cosine or inverse-square-root decay begins.
Common mistakes
- Saying warm-up exists solely to fix Adam’s zero-initialisation bias; bias correction fixes the mean of , whereas warm-up tames the variance of and early sharp curvature.
- Making the warm-up phase too long, which wastes training budget at sub-optimal step sizes.
How long your answer should be
Half a page; 3–4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: Taking , how do you prove that batch normalisation makes a layer’s output invariant to positive scalar rescaling of its weights, for any , and what does this imply for the weight gradient and the effective learning rate during SGD?
Next in Deep learning: What is epoch-wise double descent in deep neural networks, why can test error spike mid-training before falling again as training continues, and how do weight decay, data augmentation and early stopping affect the double-descent peak in practice?