Learning Rate Warmup › Summary
Language AI HandbookAll chapters Learning Rate Warmup › SummaryOne section · Sections in this chapter15 / 16 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Learning rate warmup starts training with a very small learning rate and gradually increases it to the target value over a defined number of steps. The core motivation is threefold: it gives Adam's second-moment estimates time to stabilize, it allows gradients to find more reliable directions, and it prevents transformer attention weights from saturating before meaningful representations form.
Linear warmup is the dominant strategy, computing during the warmup phase before transitioning to a decay schedule. The warmup duration is typically 0.5-2% of total training steps, with a theoretical minimum of approximately steps based on Adam's statistics stabilization. For the standard , this means at least 1,000 warmup steps.
When scaling to larger batch sizes, both the learning rate and warmup duration should scale proportionally with the batch size ratio. This linear scaling rule is essential for preserving training stability when increasing parallelism. The square-root scaling rule provides a more conservative alternative for very large batch sizes where gradient variance reduction plateaus.
Beyond linear warmup, variants like polynomial warmup, cosine warmup, and the Warmup-Stable-Decay schedule offer different tradeoffs. For most applications, linear warmup is the right default choice. When warmup fails, characteristic loss spikes and gradient norm patterns allow you to diagnose the problem and adjust either the warmup duration or the peak learning rate.
The next chapter covers Learning Rate Decay, which describes what happens after warmup ends: how cosine schedules, step decay, and inverse square-root decay shape the learning rate throughout the bulk of training.