Warmup is a way of using a learning rate scheduler that raises the learning rate gradually from a small value only during a short period at the start of training, then switches to the main schedule once the target value is reached. Moving the weights abruptly with a large learning rate at the start of training can make training break down or lower the final accuracy, and warmup prevents this.
There are two main forms of warmup.
- Constant warmup: train with a small constant learning rate for only the first few epochs, then jump back to the target learning rate. The ResNet paper (He et al., 2015) used it for a 110-layer network.
- Gradual warmup: raise the learning rate linearly by a fixed amount every step, from a small value to the target. Goyal et al. (2017) proposed it to train ResNet-50 with large mini-batches.
Gradual warmup is the form commonly used today. Goyal et al. showed that even with mini-batches as large as 8,192 images, gradual warmup reaches almost the same accuracy as with 256 images, and cut ImageNet training to one hour on 256 GPUs.
The idea of warmup is also built into the learning rate formula of the Transformer (Vaswani et al., 2017), and it is widely used when training large models with Adam.

