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 0, weights are random so early gradients can be huge and unaligned, while Adam’s second-moment estimate v^t is built from only a handful of samples and has very high variance. Ramping ηt linearly from near 0 to ηmax⁡ lets gradients align and v^t stabilise before taking full-sized steps.

Steps

  1. Early gradient variance in Adam: even with bias correction 1/(1−β2t), for small t (with β2=0.999) v^t reflects very few squared gradients, so 1/v^t has heavy-tailed variance and can trigger massive, erratic updates in the first few hundred steps.
  2. 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.
  3. Large-batch training: when scaling batch size B up with the linear scaling rule (η∝B), taking a large initial step at step 1 before weights have adapted to the data distribution easily overshoots.
  4. How warm-up works: ηt increases linearly (say over the first 1–5% of steps) from 0 to ηmax⁡, giving parameters and moving-average statistics time to settle before cosine or inverse-square-root decay begins.

Common mistakes

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 ϵ→0, how do you prove that batch normalisation makes a layer’s output invariant to positive scalar rescaling of its weights, BN⁡(cWx)=BN⁡(Wx) for any c>0, and what does this imply for the weight gradient ∇cWL 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?