Simple Algorithm
Deep Learning · Emergence · 26 min

Why Warmup Works

Adam’s noisy second moments, early instability, and how warmup tames them.

Remove the warmup from a Post-LN transformer trained with Adam and it may never train properly; remove it from a Pre-LN transformer and little changes. Warmup is nearly universal, yet its explanation has moved from the variance of Adam's statistics, to the size of early updates, to the curvature of the early landscape. This lesson derives each mechanism, weighs the experiments for and against it, and asks what each one predicts about how long warmup should last.

What you’ll learn

  • Summarize the evidence that warmup matters, for large-batch SGD and for Post-LN transformers, and the changes that remove the need for it.
  • Derive RAdam's approximate SMA length ρt\rho_t and its variance rectification, and explain why an untuned linear warmup over 2/(1−β2)2/(1-\beta_2) steps does as well.
  • Derive how Adam's momentum bias correction inflates its first updates by (1+β1t)/(1−β1t)\sqrt{(1+\beta_1^t)/(1-\beta_1^t)}, and relate early update size to weight norms and to the critical batch size.
  • Explain the curvature account (the stability threshold, sharpness reduction versus progressive sharpening, self-stabilization and Adam's preconditioned sharpness), and state what remains open.

What needs explaining

Learning-Rate Schedules & Warmup showed the first piece of evidence: ResNet-50 at a batch of 8,192 trained as well as at 256 only with a gradual warmup. Transformers supplied the second. Xiong et al. (2020) trained the original Post-LN transformer with Adam on IWSLT14 German–English translation. Without warmup it reached a BLEU score of 8.45, against about 34 with a 4,000-step warmup; with a 500-step warmup it reached 31.16 at a peak rate of 5×10−45\times10^{-4} but only 2.77 at 10−310^{-3}. On the same task, Liu et al. (2020) saw the training loss stall near 10 without warmup and reach about 3 with it. At larger scale, a longer warmup makes the final loss less sensitive to the peak rate, most clearly for the larger models tested (Wortsman et al., 2023).

HypothesisMechanismTime scale it predictsSupportChallenge
Unreliable second moments (Liu et al., 2020)v^t\hat{\mathbf v}_t averages few squared gradients, so the per-coordinate rate η/v^t\eta/\sqrt{\hat{\mathbf v}_t} is erraticabout 2/(1−β2)2/(1-\beta_2) stepsfreezing the weights for 2,000 steps while v^\hat{\mathbf v} accumulates removes the failurem^t\hat{\mathbf m}_t and v^t\hat{\mathbf v}_t move together, so update sizes are regular even when 1/v^t1/\sqrt{\hat{\mathbf v}_t} is not (Ma & Yarats, 2021)
Oversized early updates (Ma & Yarats, 2021; Kosson et al., 2024)momentum bias correction, small initial weights and correlated early gradients make the first updates effectively largea few times 1/(1−β1)1/(1-\beta_1) steps for the bias correction; longer for weight normsnormalizing update sizes reduces the benefit of warmupnormalizing their ℓ2\ell_2 size alone does not remove it
Early curvature (Gilmer et al., 2022; Kalra & Barkeshli, 2024)the sharpness, or Adam's preconditioned sharpness, starts above 2/ηmax⁡2/\eta_{\max} and must fall firstas long as the sharpness takes to fallsharpness traces; warmup matches better initializations; works for SGD tooneeds Hessian measurements that are expensive at scale
Architecture (Xiong et al., 2020)Post-LN's output-side gradients are large at initializationuntil those gradients settlePre-LN trains without warmupPre-LN models are still warmed up in practice, for the other reasons
The mechanisms are not exclusive: one run can suffer from several, and each predicts a different warmup length.

Adam's second moment from a handful of samples

Write Adam's step on one coordinate as η ψt m^t\eta\,\psi_t\,\hat m_t, with the adaptive learning rate ψt=(1−β2t)/vt=1/v^t\psi_t=\sqrt{(1-\beta_2^t)/v_t}=1/\sqrt{\hat v_t} (taking ϵ=0\epsilon=0). Liu et al. (2020) asked how noisy ψt\psi_t is early on. Model the coordinate's gradients at initialization as i.i.d. N(0,σ2)\mathcal N(0,\sigma^2). At t=1t=1, ψ1=1/∣g1∣\psi_1=1/\abs{g_1}, and since 1/g121/g_1^2 has a scaled inverse chi-squared distribution with one degree of freedom, ψ1\psi_1 has infinite variance. How fast does that improve?

DerivationRAdam's degrees of freedom and rectification (Liu et al., 2020)
  1. ∑k=0t−1k (1−β2) β2k1−β2t=β21−β2−t β2t1−β2t  =  ρt−12\sum_{k=0}^{t-1}k\,\frac{(1-\beta_2)\,\beta_2^{k}}{1-\beta_2^{t}}=\frac{\beta_2}{1-\beta_2}-\frac{t\,\beta_2^{t}}{1-\beta_2^{t}}\;=\;\frac{\rho_t-1}{2}

    Treat the bias-corrected moving average v^t\hat v_t as a simple moving average (SMA) of the last ρ\rho squared gradients, so that ρv^t/σ2∼χρ2\rho\hat v_t/\sigma^2\sim\chi^2_\rho. Choose ρ\rho so that the SMA has the same center of mass, the same average age of its terms, as the exponential average, whose weights on ages k=0,…,t−1k=0,\dots,t-1 are (1−β2)β2k/(1−β2t)(1-\beta_2)\beta_2^k/(1-\beta_2^t):

  2. ρt=ρ∞−2t β2t1−β2t,ρ∞=21−β2−1\rho_t=\rho_\infty-\frac{2t\,\beta_2^{t}}{1-\beta_2^{t}},\qquad\rho_\infty=\frac{2}{1-\beta_2}-1

    The right-hand side is the average age of an SMA of length ρt\rho_t. Solving for it gives the effective number of samples. For t≪1/(1−β2)t\ll1/(1-\beta_2) the weights are nearly equal and ρt≈t\rho_t\approx t, with ρ1=1\rho_1=1 exactly; the limit ρ∞\rho_\infty is 1,999 for β2=0.999\beta_2=0.999 and is approached only after a few thousand steps:

  3. E[ψ2]=ρ(ρ−2) σ2,Var⁡[ψ2]=2ρ2(ρ−2)2(ρ−4) σ4⟹Var⁡[ψ]≈ρ2(ρ−2)(ρ−4) σ2\E[\psi^2]=\frac{\rho}{(\rho-2)\,\sigma^2},\qquad\Var[\psi^2]=\frac{2\rho^2}{(\rho-2)^2(\rho-4)\,\sigma^4}\qquad\Longrightarrow\qquad\Var[\psi]\approx\frac{\rho}{2(\rho-2)(\rho-4)\,\sigma^2}

    Now ψ2=1/v^\psi^2=1/\hat v is scaled inverse chi-squared with ρ\rho degrees of freedom. Its first two moments and the first-order (delta-method) approximation Var⁡[ψ]≈Var⁡[ψ2]/(4E[ψ2])\Var[\psi]\approx\Var[\psi^2]/(4\E[\psi^2]) give a variance that is finite only for ρ>4\rho>4 and decays like 1/ρ1/\rho. (The exact variance, finite for ρ>2\rho>2, is about 250 times larger at ρ=5\rho=5 than at ρ=500\rho=500.)

  4. rt=(ρt−4)(ρt−2) ρ∞(ρ∞−4)(ρ∞−2) ρt,θt=θt−1−η rt m^tv^t(ρt>4)r_t=\sqrt{\frac{(\rho_t-4)(\rho_t-2)\,\rho_\infty}{(\rho_\infty-4)(\rho_\infty-2)\,\rho_t}},\qquad\boldsymbol\theta_t=\boldsymbol\theta_{t-1}-\eta\,r_t\,\frac{\hat{\mathbf m}_t}{\sqrt{\hat{\mathbf v}_t}}\quad(\rho_t>4)

    RAdam multiplies the adaptive step by rtr_t, chosen so that its variance equals the asymptotic one, and while ρt≤4\rho_t\le4 it switches adaptivity off and takes plain momentum steps:

A fixed schedule in disguise. Ma & Yarats (2021) noted that ρt≤4\rho_t\le4 exactly when t≤4t\le4, for every β2\beta_2 from 0.80.8 up to 11, and that rtr_t depends only on tt and β2\beta_2, never on the gradients. RAdam is therefore four steps of heavy-ball momentum followed by Adam with a fixed warmup factor rtr_t: for β2=0.999\beta_2=0.999, rtr_t is 0.220.22 at step 100, 0.650.65 at step 1,000 and 0.980.98 at step 5,000. They also questioned the premise. Early gradients are not zero-mean, which shrinks the variance of ψt\psi_t; more importantly, m^t\hat m_t and v^t\sqrt{\hat v_t} move together. At t=1t=1, ∣m^1∣=v^1\abs{\hat m_1}=\sqrt{\hat v_1}, so every coordinate moves by exactly η\eta: the update has zero spread at the very step where Var⁡[ψ1]\Var[\psi_1] is infinite.

To compare warmups, they defined the effective warmup period ∑t(1−ωt)\sum_t(1-\omega_t) of a warmup factor ωt\omega_t. A linear ramp over τ\tau steps has a period of about τ/2\tau/2. With β2=0.999\beta_2=0.999, RAdam's factor has a period of about 1,030 steps and a linear ramp over 2/(1−β2)=2,0002/(1-\beta_2)=2{,}000 steps about 1,000. On ImageNet with ResNet-50, language modeling on WikiText-103 and English–German translation, that untuned linear warmup performed like RAdam, and they recommended it as the default.

Check your understanding

Why can RAdam be described as Adam with a fixed warmup schedule?

  1. Because it resets vt\mathbf v_t to zero whenever the loss rises
  2. Because it uses a larger ϵ\epsilon during the first steps
  3. Because its rectifier rtr_t depends only on the step tt and on β2\beta_2, and its momentum-only phase (ρt≤4\rho_t\le4) lasts exactly four steps
  4. Because it raises β1\beta_1 gradually from zero
Show the answer

C. Because its rectifier rtr_t depends only on the step tt and on β2\beta_2, and its momentum-only phase (ρt≤4\rho_t\le4) lasts exactly four steps

ρt\rho_t and therefore rtr_t are deterministic functions of tt and β2\beta_2, so RAdam multiplies Adam's step by the same sequence on every problem, after four momentum steps. That is a warmup, and its effective length of about 1/(1−β2)1/(1-\beta_2) steps is what an untuned linear warmup over 2/(1−β2)2/(1-\beta_2) steps reproduces.

Updates that are too large

Shift attention from ψt\psi_t to the update itself, ut=m^t/v^tu_t=\hat m_t/\sqrt{\hat v_t}, the step measured in units of η\eta. Even at a minimum, where the gradients are pure noise and nothing needs fixing, Adam's first updates are several times larger than its later ones.

DerivationHow bias correction inflates the first updates
  1. E[mt2]=(1−β1)2∑k=0t−1β12k σ2=1−β11+β1(1−β12t) σ2,E[vt]=(1−β2t) σ2\E[m_t^2]=(1-\beta_1)^2\sum_{k=0}^{t-1}\beta_1^{2k}\,\sigma^2=\frac{1-\beta_1}{1+\beta_1}\big(1-\beta_1^{2t}\big)\,\sigma^2,\qquad\E[v_t]=\big(1-\beta_2^{t}\big)\,\sigma^2

    Let one coordinate's gradients be i.i.d. with mean 00 and variance σ2\sigma^2, as at a minimum. Unrolling mt=(1−β1)∑k=0t−1β1kgt−km_t=(1-\beta_1)\sum_{k=0}^{t-1}\beta_1^kg_{t-k}, independence gives

  2. E[m^t2]=1+β1t1−β1t⋅1−β11+β1 σ2,E[v^t]=σ2\E[\hat m_t^2]=\frac{1+\beta_1^{t}}{1-\beta_1^{t}}\cdot\frac{1-\beta_1}{1+\beta_1}\,\sigma^2,\qquad\E[\hat v_t]=\sigma^2

    Bias correction divides mtm_t by 1−β1t1-\beta_1^t, which is exact for a constant gradient but too much for noise, whose terms partly cancel. Since 1−β12t=(1−β1t)(1+β1t)1-\beta_1^{2t}=(1-\beta_1^t)(1+\beta_1^t):

  3. rms⁡(ut)rms⁡(u∞)≈1+β1t1−β1t(1.44 at t=10 and 1.13 at t=20, for β1=0.9)\frac{\operatorname{rms}(u_t)}{\operatorname{rms}(u_\infty)}\approx\sqrt{\frac{1+\beta_1^{t}}{1-\beta_1^{t}}}\qquad\big(1.44\text{ at }t=10\text{ and }1.13\text{ at }t=20,\text{ for }\beta_1=0.9\big)

    So the root-mean-square update starts at 11 (exactly ∣u1∣=1\abs{u_1}=1) and settles at (1−β1)/(1+β1)\sqrt{(1-\beta_1)/(1+\beta_1)}, which is 0.2290.229 for β1=0.9\beta_1=0.9. The early excess fades over a few times 1/(1−β1)1/(1-\beta_1) steps:

Predict before you look

With β1=0.9\beta_1=0.9 and pure-noise gradients, by what factor is Adam's first update larger, in root-mean-square, than its updates once the averages have settled?

Show the answer

4.36

(1+β1)/(1−β1)=1.9/0.1=19≈4.36\sqrt{(1+\beta_1)/(1-\beta_1)}=\sqrt{1.9/0.1}=\sqrt{19}\approx4.36. Every coordinate's first step is exactly η\eta, while the settled steps have root-mean-square 0.229η0.229\eta and median about 0.6745×0.229η≈0.155η0.6745\times0.229\eta\approx0.155\eta, close to the 0.153η0.153\eta that Ma & Yarats measured in simulation. With β1=0.99\beta_1=0.99 the factor is about 14 at t=1t=1 and still about 1.51.5 at t=100t=100: higher momentum needs longer protection.

Ma & Yarats (2021) simulated exactly this case, i.i.d. zero-mean gradients for 25,000 parameters with β1=0.9\beta_1=0.9, β2=0.999\beta_2=0.999 and ϵ=0\epsilon=0: the median update started at η\eta and settled near 0.15η0.15\eta only after about 40 steps, and in a real EMNIST network it took about 100. SGD's steps at a minimum are proportional to the small gradients, so a nearly converged model can be restarted with SGD without warmup; with Adam it cannot, one reason adaptive methods need warmup more than SGD does.

Kosson, Messmer & Jaggi (2024) pushed the update-size view further for GPT-2-style models trained with AdamW and Lion, and found three ways in which early updates are too large:

  • The bias correction above. Removing the β1\beta_1 correction removes the inflation.
  • Large relative to the weights. What changes a neuron's behavior is the direction of its weight vector. The angular update, the angle between wt\mathbf w_t and wt+1\mathbf w_{t+1}, is large while the weight norm is small compared with the equilibrium norm that the learning rate and weight decay eventually produce (What Weight Decay Really Does).
  • Too correlated to average. Early in training the gradients of different examples point in similar directions, so the critical batch size is small (Gradient Noise, Batch Size & Scaling Rules) and a large batch at the full rate changes the network's internal representations too fast.

Optimizers that normalize the ℓ2\ell_2 size or the angle of every update reduced the benefit of warmup but did not remove it; controlling the change in the representations, or very high momentum together with the other fixes, came close to removing it in their setting. The authors still recommend a short warmup in practice, since fully eliminating it took substantial changes to the optimizer.

The curvature account

Gradient descent multiplies the error along the top Hessian eigenvector by 1−ηλmax⁡1-\eta\lambda_{\max} at every step, so it is stable only below the stability threshold η<2/λmax⁡\eta<2/\lambda_{\max}. Gilmer et al. (2022) tracked the sharpness λmax⁡\lambda_{\max} across many architectures and tasks: training with SGD and momentum stayed stable only while it remained roughly where λmax⁡≲2/η\lambda_{\max}\lesssim2/\eta. Configurations that diverged without warmup started out highly curved, and warmup let λmax⁡\lambda_{\max} fall gradually until the peak rate was safe; warmup alone matched the gains of initialization schemes designed for the same failures (MetaInit, GradInit, Fixup). For Adam the relevant quantity is the sharpness of the preconditioned Hessian, λmax⁡(P−1H)\lambda_{\max}(P^{-1}H) with P=diag⁡(v^+ϵ)P=\diag\big(\sqrt{\hat{\mathbf v}}+\epsilon\big).

xt+1=(1−ηtλt) xt,λt+1=λt+ηt(α−12β xt2)x_{t+1}=(1-\eta_t\lambda_t)\,x_t,\qquad\lambda_{t+1}=\lambda_t+\eta_t\big(\alpha-\tfrac12\beta\,x_t^2\big)
A two-variable model of training near the stability threshold (Damian, Nichani & Lee, 2023), with the time-varying rate used by Kalra & Barkeshli (2024), who write the model without the factor 12\frac12. Here xtx_t is the displacement along the top Hessian eigenvector and λt\lambda_t the sharpness; α=−∇λ⋅∇L\alpha=-\nabla\lambda\cdot\nabla\loss is how fast gradient flow itself changes the sharpness, and β=∥∇λ∥2\beta=\norm{\nabla\lambda}^2 (not a momentum coefficient) how strongly oscillations along xx reduce it, through the cubic term of the loss. When ηtλt>2\eta_t\lambda_t>2, xtx_t grows and the loss jumps; once 12βxt2>α\frac12\beta x_t^2>\alpha the sharpness falls until ηtλt<2\eta_t\lambda_t<2 and the loss comes back down. This self-stabilization, or catapult, buys a flatter region with a brief loss spike.

Kalra & Barkeshli (2024) studied warmup systematically with SGD and Adam on fully connected networks, ResNets and transformers, and found two regimes, depending on the initialization and the parameterization:

  • Natural progressive sharpening (α>0\alpha>0). The sharpness rises on its own while warmup raises the rate, a head-on collision: the run reaches the threshold and then rides it, ηt≈2/λt\eta_t\approx2/\lambda_t, in a persistent cycle of catapults for the rest of the warmup.
  • Natural sharpness reduction (α<0\alpha<0). The sharpness already falls on its own. A fast warmup still hits the threshold and triggers a few separate catapults; a slower one can ride the natural decrease, so lengthening warmup makes the catapults later and milder.

Either way the payoff is the same: warmup lets the run tolerate a larger target rate, and the target rate largely sets the final performance. For Adam they found the preconditioned sharpness starts high even at large batch sizes, where the statistics are accurate, and so located Adam's need for warmup in curvature rather than in a shortage of samples. Two fixes follow. GI-Adam initializes the second moment with the squared initial gradient, v0=g02\mathbf v_0=\mathbf g_0^2, instead of zero, which needs no second-moment bias correction and consistently matched or improved on standard Adam; and the starting rate can be chosen by deliberately triggering a catapult, which in some settings removed the need for warmup altogether.

Warmup from theory, and what is open

For convex problems, Defazio, Cutkosky, Mehta & Mishchenko (2023) bounded the loss of SGD's last iterate for an arbitrary schedule in terms of the sequence of gradient norms, and found the schedule that minimizes the bound. With weights wt∝∥gt∥−2w_t\propto\norm{\mathbf g_t}^{-2} it is

ηt  ∝  wt ∑p=t+1Twp∑p=1Twp,wt∝∥gt∥−2\eta_t\;\propto\;w_t\,\frac{\sum_{p=t+1}^{T}w_p}{\sum_{p=1}^{T}w_p},\qquad w_t\propto\norm{\mathbf g_t}^{-2}
When the gradient norms are large early in training, wtw_t and so ηt\eta_t start small: the optimal schedule begins with a warmup, and the sum over future steps makes it decay to zero at the end. In their comparison across deep-learning problems, plain linear decay beat the other standard schedules, and schedules refined from the gradient norms of a previous run improved on it further, with warmups that emerged from the theory rather than being imposed. In this reading warmup keeps large early gradients from producing large steps, much as the update-size account does.

Key takeaways

  • Warmup matters most for large-batch SGD, adaptive optimizers and Post-LN transformers, whose output-side gradients at initialization are of order dln⁡dd\sqrt{\ln d} at every depth, against dln⁡d/Ld\sqrt{\ln d/L} for Pre-LN.
  • RAdam treats v^t\hat{\mathbf v}_t as an average of ρt=ρ∞−2tβ2t/(1−β2t)≈t\rho_t=\rho_\infty-2t\beta_2^t/(1-\beta_2^t)\approx t samples and rescales the step to equalize its variance; since rtr_t depends only on tt and β2\beta_2, it is a fixed warmup, matched by an untuned linear warmup over 2/(1−β2)2/(1-\beta_2) steps.
  • For zero-mean gradients, momentum bias correction inflates Adam's root-mean-square update by (1+β1t)/(1−β1t)\sqrt{(1+\beta_1^t)/(1-\beta_1^t)}, 19≈4.4\sqrt{19}\approx4.4 at t=1t=1 for β1=0.9\beta_1=0.9. Small initial weight norms and a small early critical batch size make early updates effectively large as well.
  • In the curvature account, training is stable only while the sharpness (for Adam, the preconditioned sharpness) stays below about 2/η2/\eta; warmup gives it time to fall, naturally or through self-stabilizing instabilities, so that a larger peak becomes usable. No single mechanism explains every case.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

By RAdam's approximation, after t=10t=10 steps with β2=0.999\beta_2=0.999, Adam's second-moment estimate is worth about how many independent squared gradients?

  1. 1, because the first gradient dominates
  2. About 10
  3. About 1,000, the averaging horizon 1/(1−β2)1/(1-\beta_2)
  4. About 1,999, the limit ρ∞\rho_\infty
Show the answer

B. About 10

ρ10=1999−20×0.999101−0.99910≈9.98\rho_{10}=1999-\frac{20\times0.999^{10}}{1-0.999^{10}}\approx9.98. For t≪1/(1−β2)t\ll1/(1-\beta_2) the bias-corrected average weights its tt terms almost equally, so it is worth about tt samples; it approaches ρ∞=1999\rho_\infty=1999 only after a few thousand steps.

Question 2

According to Xiong et al. (2020), why does the original Post-LN transformer need warmup while a Pre-LN transformer often does not?

  1. Post-LN transformers have more parameters
  2. The Pre-LN models were trained with a different optimizer
  3. Post-LN transformers have no residual connections
  4. At initialization the gradients of Post-LN's last layers are of order dln⁡dd\sqrt{\ln d} whatever the depth, while in Pre-LN they shrink like 1/L1/\sqrt L, so a large rate is unstable only for Post-LN
Show the answer

D. At initialization the gradients of Post-LN's last layers are of order dln⁡dd\sqrt{\ln d} whatever the depth, while in Pre-LN they shrink like 1/L1/\sqrt L, so a large rate is unstable only for Post-LN

Their Theorem 1 bounds the last feed-forward layer's gradient by O(dln⁡d)\order{d\sqrt{\ln d}} for Post-LN and O(dln⁡d/L)\order{d\sqrt{\ln d/L}} for Pre-LN. Post-LN trains with warmup anyway; Pre-LN trained without it matched the Post-LN baselines on translation and BERT.

Question 3

Kosson et al. (2024) found that Adam's first updates are inflated by its momentum bias correction. Which change removes that inflation?

  1. Dropping the correction 1/(1−β1t)1/(1-\beta_1^t) of the first moment
  2. Dropping the correction 1/(1−β2t)1/(1-\beta_2^t) of the second moment
  3. Raising β2\beta_2 toward 1
  4. Lowering ϵ\epsilon to zero
Show the answer

A. Dropping the correction 1/(1−β1t)1/(1-\beta_1^t) of the first moment

For noisy gradients, dividing the momentum by 1−β1t1-\beta_1^t overcorrects: the averaged noise partly cancels, so the corrected estimate is too large by (1+β1t)/(1−β1t)\sqrt{(1+\beta_1^t)/(1-\beta_1^t)} in root-mean-square. Without the correction the momentum starts small and grows, which acts like a short built-in warmup.

Question 4

Kalra & Barkeshli (2024) varied the warmup length and the target (peak) rate separately. What did they conclude is warmup's main benefit?

  1. Collecting accurate second-moment statistics before large steps are taken
  2. Reducing the noise in each gradient estimate early in training
  3. Letting the network tolerate a larger target rate, by moving it into better-conditioned regions; at a fixed target rate a longer warmup helps only marginally
  4. Lowering the final loss by a large margin at any fixed target rate
Show the answer

C. Letting the network tolerate a larger target rate, by moving it into better-conditioned regions; at a fixed target rate a longer warmup helps only marginally

Performance was set mainly by the target rate. Warmup raises the largest target rate that trains without failure by letting the sharpness, for Adam the preconditioned sharpness, fall first, either naturally or through self-stabilizing instabilities. For a fixed target, extra warmup mostly keeps the run further from the failure boundary.

Further reading

  • L. Liu, H. Jiang, P. He, W. Chen, X. Liu, J. Gao & J. Han, "On the variance of the adaptive learning rate and beyond," ICLR (2020).
  • J. Ma & D. Yarats, "On the adequacy of untuned warmup for adaptive optimization," AAAI (2021).
  • R. Xiong, Y. Yang, D. He, K. Zheng, S. Zheng, C. Xing, H. Zhang, Y. Lan, L. Wang & T.-Y. Liu, "On layer normalization in the transformer architecture," ICML (2020).
  • A. Kosson, B. Messmer & M. Jaggi, "Analyzing & reducing the need for learning rate warmup in GPT training," NeurIPS (2024).
  • D. S. Kalra & M. Barkeshli, "Why warmup the learning rate? Underlying mechanisms and improvements," NeurIPS (2024).