Skip to content

Learning-rate schedules, cooldowns and mid-training (WSD)

Skip →Mamba (selective SSM)
Pretraining stage 2 #6corefrontierpaperrubric 12/122024 · NeurIPS 2024 (Spotlight); taught with MiniCPM (arXiv 2404.06395) and Wen et al. (arXiv 2410.05192) · ~50 min

Alexander Hägele, Elie Bakouch, Atli Kosson, Loubna Ben Allal, Leandro Von Werra, Martin Jaggi

Read first: Decoupled Weight Decay Regularization (AdamW) · Training Compute-Optimal Large Language Models

Status

TL;DR. Cosine decay fixes the run length before training starts: every intermediate checkpoint is “half-cooled”, so comparing four lengths means four runs. Warmup–stable–decay (WSD), named by MiniCPM (Hu et al., 2024) and studied carefully by Hägele et al. (2024), holds the learning rate (LR) constant and adds a short cooldown at the end. A 20% cooldown (5–10% for long runs) matches cosine, and a 1-sqrt shape does better than linear. Any stable-phase checkpoint can be branched into a finished model, which roughly halves the cost of scaling-law sweeps and gives a natural place to train on better data: the anneal or mid-training stage used by Llama 3, OLMo 2, DeepSeek-V3 and Kimi K2. Wen et al. (2024) explain the sudden cooldown loss drop with a river-valley loss landscape.

Sources. Primary: Hägele et al., Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations (arXiv 2405.18392). WSD’s name, the “10% decay” rule and the decay-data ablation come from MiniCPM (arXiv 2404.06395). The “why” comes from Wen et al., Understanding Warmup-Stable-Decay Learning Rates: A River Valley Loss Landscape Perspective (arXiv 2410.05192). Hägele et al. call the schedule “constant LR + cooldown” because “WSD” clashes with weight decay; this page uses both names.

First read. Read the TL;DR, Key idea, the worked example, “Mid-training” and Caveats. Skip on a first read: Wen et al.’s theorems and bigram toy (§3–4), Hägele’s schedule-free and EMA comparisons, MiniCPM’s curvature and gradient analysis, and the FLOP-counting appendix.

Warmup: why start small. At step 0 Adam’s second-moment estimate vtv_t comes from a handful of gradients, so the per-parameter step size η/vt\eta/\sqrt{v_t} is noisy and can be huge. Liu et al.’s RAdam paper (arXiv 1908.03265) shows this variance is “problematically large” early on and motivates warmup as reducing that early variance in Adam’s adaptive learning rate. This is one explanation, not a proof that every Adam run needs warmup or that a single mechanism explains all transformer warmup behaviour. In practice almost every run ramps the LR linearly from 0 to the peak ηmax⁡\eta_{\max} over WW steps (2,000 for OLMo 2, 8,000 for Llama 3 405B, 500 for Kimi K2).

Cosine and its problem. In words: after warmup the LR follows half a cosine wave from the peak down to a floor, reaching the floor exactly at the planned last step. With tt the step, WW the warmup length, SS the total steps and ηmin⁡\eta_{\min} the floor (often 0.1 ηmax⁡0.1\,\eta_{\max}):

η(t)=ηmin⁡+12(ηmax⁡−ηmin⁡)(1+cos⁡(πt−WS−W)),W≤t≤S.\eta(t) = \eta_{\min} + \tfrac{1}{2}(\eta_{\max} - \eta_{\min})\Bigl(1 + \cos\bigl(\pi \tfrac{t - W}{S - W}\bigr)\Bigr), \qquad W \le t \le S.

SS appears inside every value, so the schedule for a 50k-step run differs from the first half of a 100k-step run (at step 25k: 1.74×10−41.74\times10^{-4} versus 2.65×10−42.65\times10^{-4} in the example below). A checkpoint from the middle of a cosine run has a high LR and a poor loss, and is not what you would get by training to that length. MiniCPM reproduces Chinchilla’s observation: cosine is best when its length equals the actual training length. So a Chinchilla-style sweep needs one run per (model size, token count) pair, and adapting a finished cosine model to a large new-data budget usually means re-warming (see Continual pretraining below).

WSD / constant + cooldown. In words: warm up, hold the peak LR for most of training, and decay only in the last NdecayN_{\text{decay}} steps. Hägele et al.’s Eq. 1, with nn the step and NN the total:

η(n)={nNwarmup ηmax⁡n<Nwarmupηmax⁡Nwarmup≤n≤N−Ndecayf(n,N,Ndecay) ηmax⁡n>N−Ndecay\eta(n) = \begin{cases} \frac{n}{N_{\text{warmup}}}\,\eta_{\max} & n < N_{\text{warmup}} \\ \eta_{\max} & N_{\text{warmup}} \le n \le N - N_{\text{decay}} \\ f(n, N, N_{\text{decay}})\,\eta_{\max} & n > N - N_{\text{decay}} \end{cases}

ff falls from 1 to 0. Let x=(n−(N−Ndecay))/Ndecay∈[0,1]x = (n - (N - N_{\text{decay}}))/N_{\text{decay}} \in [0, 1] be the fraction of the cooldown done. Linear is f=1−xf = 1 - x. Their best shape, 1-sqrt, is f=1−xf = 1 - \sqrt{x}: it drops fast at first, then lingers at small LRs. Only the last NdecayN_{\text{decay}} steps depend on NN, so all runs share one constant-LR trunk.

Why the cooldown drops the loss: the river valley. Picture a valley with steep walls and a gently sloping river along the bottom. Training wants to go down the river. A high LR with noisy gradients makes the iterate bounce from wall to wall, so its loss sits well above the river, yet it travels downstream fast. This is an explanatory model, not an established decomposition of an LLM’s AdamW loss. Wen et al.’s theorem assumes a locally regular valley, a straight river direction, sufficiently small SGD steps and Gaussian noise in the transverse directions. In their simplified model, with dd the dimension, σ2\sigma^2 the noise variance per transverse direction and η\eta the constant LR, after kk steps

E[L]≈Lriver(progress∝∑i≤kηi)+(d−1) η σ22.\mathbb{E}[L] \approx L_{\text{river}}(\text{progress} \propto \textstyle\sum_{i \le k} \eta_i) + \frac{(d-1)\,\eta\,\sigma^2}{2}.

The first term is how far downstream you are; the second, the “hill” term, is linear in the current LR. Its useful prediction is directional: lowering the LR reduces transverse noise while spending less LR budget on downstream progress. The exact coefficient should not be used to predict real AdamW losses without validating the assumptions. Cooling down shrinks the second term and the iterate settles to the floor, revealing progress made during the stable phase. Hägele et al. see the same thing directly: interpolating linearly between pre- and post-cooldown weights gives a smooth drop in loss (“a smooth transition to a basin”). Wen et al. argue the walls come from uncertain, high-entropy tokens and the river from deterministic ones such as facts.

Worked example: two schedules, four run lengths

Section titled “Worked example: two schedules, four run lengths”

Take ηmax⁡=3×10−4\eta_{\max} = 3\times10^{-4}, ηmin⁡=3×10−5\eta_{\min} = 3\times10^{-5}, W=2,000W = 2{,}000 and S=100,000S = 100{,}000 steps. WSD uses the same peak (in practice you would tune it, about half the cosine peak) and a 20% cooldown from step 80,000 to 0.

StepCosineWSD, linear 20%WSD, 1-sqrt 20%
25,0002.65×10−42.65\times10^{-4}3.0×10−43.0\times10^{-4}3.0×10−43.0\times10^{-4}
50,0001.69×10−41.69\times10^{-4}3.0×10−43.0\times10^{-4}3.0×10−43.0\times10^{-4}
80,0005.7×10−55.7\times10^{-5}3.0×10−43.0\times10^{-4}3.0×10−43.0\times10^{-4}
90,000 (x=0.5x = 0.5)3.7×10−53.7\times10^{-5}1.5×10−41.5\times10^{-4}8.8×10−58.8\times10^{-5}
100,0003.0×10−53.0\times10^{-5}00

For cosine, at 50k the phase is (50,000−2,000)/98,000=0.49(50{,}000 - 2{,}000)/98{,}000 = 0.49, so η=3×10−5+1.35×10−4(1+cos⁡0.49π)≈1.69×10−4\eta = 3\times10^{-5} + 1.35\times10^{-4}(1 + \cos 0.49\pi) \approx 1.69\times10^{-4}. For 1-sqrt at 90k, 1−0.5=0.2931 - \sqrt{0.5} = 0.293, giving 8.8×10−58.8\times10^{-5}. Summed over steps (including warmup), linear-WSD spends about 26.7 “LR-steps” (1-sqrt-WSD: 25.7) versus cosine’s 16.5: more LR budget for river progress, paid back by the cooldown. This comparison deliberately uses the same peak LR for arithmetic. It is not a fair tuned-quality comparison: Hägele’s optimal constant LR is lower, and AdamW updates also depend on moments, gradients and weight decay, so the integrals do not prove proportionally greater progress.

Branching four lengths. You want finished models at 25k, 50k, 75k and 100k steps. Cosine: four runs from scratch, 25+50+75+100=25025 + 50 + 75 + 100 = 250k steps. WSD with 20% cooldowns: one trunk to 80k (where the longest run starts cooling), plus branches of 5k, 10k, 15k and 20k starting at 20k, 40k, 60k and 80k: 80+50=13080 + 50 = 130k steps, 52% of cosine. With 10% cooldowns: 90+25=11590 + 25 = 115k, 46%. In general, for lengths LjL_j and cooldown fraction cc, the ratio is ((1−c)max⁡jLj+c∑jLj)/∑jLj\bigl((1-c)\max_j L_j + c\sum_j L_j\bigr)/\sum_j L_j. Hägele et al.’s Chinchilla estimate (token ratios 10, 15, 20, 25; 10% cooldowns) gives 29.5/70≈42%29.5/70 \approx 42\%, matching their 5.59×1023→2.36×10235.59\times10^{23} \to 2.36\times10^{23} FLOPs. MiniCPM describes the shared trunk as reducing the main runs from a two-dimensional sweep (O(m2)CO(m^2)C for mm sizes × mm lengths) to one run per model size, "O(mC)O(mC)". Total compute still includes every cooldown branch, (1−c)max⁡jLj+c∑jLj(1-c)\max_j L_j + c\sum_j L_j per size, so O(mC)O(mC) is a shorthand that neglects or bounds the branch cost: with a fixed nonzero cc and mm similarly costly lengths, the branches add an O(c m2C)O(c\,m^2 C) term across mm sizes. The finite formula above is the better statement.

Matching cosine. At 210M parameters a 20% linear cooldown nearly matches cosine and is slightly less sensitive to the LR. 1-sqrt beats linear, and the gap grows with longer runs (tested with cooldowns every 20k steps of a 200k-step run). The benefit plateaus near 20%. On a 20B-token run a 5% (10k-step) 1-sqrt cooldown almost matches cosine. MiniCPM independently finds 10% decay “enough” and 2.5% too short; Wen et al. find 8–12% roughly equivalent.

Downstream at 1B (aggregate score, Hägele Table 5 and the 460B-token run, single seeds):

Schedule100B FineWeb tokens460B tokens
Cosine to 10%46.26—
Cosine to 045.8848.03
1-sqrt 20%46.23—
1-sqrt 5%—47.91
Linear 20%46.2047.92
Linear 10%—47.98

Differences are tenths of a point. Decaying cosine to 0 lowered loss but scored lowest at 100B, while at 460B it scored highest, so tune peak and final LR separately. An 8B run (12B tokens) also matched cosine. That is a short schedule comparison, not evidence that the same hyperparameters remain optimal through a full frontier-scale pretraining run.

Scaling laws. Models of 33M–360M, each at about 10, 20 and 30 tokens per parameter, gave points on the diagonal (cooldown loss ≈ cosine loss) at about half the FLOPs and GPU hours. MiniCPM ran 6 sizes (0.04B–2B) with 6 decays each and fitted Dopt/Nopt≈192D_{\text{opt}}/N_{\text{opt}} \approx 192, far above Chinchilla’s 20, though with their own data and fitting.

Checkpoint averaging instead of a cooldown? SWA here means an arithmetic average of nearby checkpoints along one trajectory; EMA (exponential moving average) is a recency-weighted running average. OLMo 2’s soup instead averages endpoints from several annealing branches. None of these is an ensemble that runs multiple models at inference. Stochastic weight averaging (SWA, windows of up to 2,500 steps) helps both constant and cosine runs but does not reach the cooldown. EMA was worse, and a schedule-free optimizer was sensitive to its β\betas and at best matched the cooldown. In practice averaging is added on top: DeepSeek-V3 keeps a CPU EMA of weights “for early estimation of the model performance after learning rate decay”, Llama 3 averages checkpoints during its final anneal, and OLMo 2 averages three 50B-token anneals with different data orders (7B), or three 100B-token anneals plus one 300B-token anneal (13B, 32B).

Mid-training: the cooldown as a data stage

Section titled “Mid-training: the cooldown as a data stage”

Once the decay is a separate, short phase, its data can differ. MiniCPM’s A-1/A-2 experiment decays a stable-phase 2.4B checkpoint on either pretraining data alone or a mixture including high-quality and supervised fine-tuning (SFT) data, and both branches then receive the same 4B-token SFT stage. Scores go from 44.6 to 50.9 on MMLU, 27.7 to 42.3 on GSM8K and 40.0 to 52.6 on C-Eval. This measures the downstream benefit of changing the decay data under a fixed later SFT recipe, not the standalone pre-SFT effect of the cooldown. For the 1.2B model, B-3 versus B-1 compares a high-quality/SFT-enriched decay with a pretraining-only decay, each followed by 6B-token SFT: MATH improves from 7.9 to 10.5, while GSM8K declines from 34.2 to 31.8.

  • Llama 3. (arXiv 2407.21783) Cosine for the 405B, then the last 40M tokens annealed linearly to 0 with high-quality sources upsampled; the production annealing mixture explicitly excludes common benchmark training sets. In a separate experiment that annealed on the GSM8k and MATH training sets, the 8B improved on their validation sets by 24.0% and 6.4%, with negligible gain for the 405B; these results should not be attributed to the production mixture. As a data probe, they anneal a 50%-trained 8B to 0 over 40B tokens with 30% weight on a candidate dataset.
  • OLMo 2 (arXiv 2501.00656). Cosine (truncated early for the 7B and 32B), then 5–10% of FLOPs decaying linearly to 0 on Dolmino Mix 1124. 19 microanneals (130B tokens in all, fewer than three 50B anneals) ranked math sources, and differences showed in under 10B tokens.
  • DeepSeek-V3 (arXiv 2412.19437). A WSD–cosine hybrid: 2.2e-4 constant to 10T tokens, cosine to 2.2e-5 over 4.3T, then step-downs (2.2e-5 for 333B, 7.3e-6 for 167B).
  • Kimi K2 (arXiv 2507.20534). MuonClip with WSD: constant 2e-4 for 10T, cosine to 2e-5 over 5.5T, then an anneal 2e-5 → 7e-6 over 400B tokens at 4K context and 60B at 32K.

Continual pretraining and re-warming. A cosine-finished model sits at a tiny LR. To adapt efficiently over a substantial new-data budget, raising the LR and decaying it again can outperform staying at the old low floor. Re-warming is not required merely to keep updating the model, and it can cause loss spikes and forgetting; the right choice depends on the adaptation/retention trade-off. Ibrahim et al. (arXiv 2403.08763) compare against a baseline that continues at the old minimum LR, and find re-warming raises loss even on the same data; re-warm, re-decay and a small replay of old data together match retraining from scratch (at 405M parameters, and at 10B for a weak distribution shift). With WSD you keep the pre-cooldown checkpoint and continue at the stable LR. Wen et al.’s WSD-S goes further, resuming at high LR from the decayed checkpoint, and lands within 6e-3 loss of a cosine run tuned for each budget (0.1–1.2B, 50–200B tokens).

  • Scale. Schedule comparisons stop at 1B (460B tokens) and an 8B run of 12B tokens; the scaling study stops at 360M. The authors flag possible brittleness at frontier scale.
  • The trunk LR is shared. Branching assumes one constant LR is right for all lengths. The ideal cooldown fraction shrinks with length, so one fixed fraction is a compromise.
  • The decay does not create learning from nothing. In OLMo 2, higher peak LRs led early but were overtaken; after decaying to 0 on the same mid-training data, final losses were equal. A higher LR “does make mid-training more effective, but it does so by exactly the amount that the pretraining is worse”.
  • Branch point. Decaying right after a loss spike costs about 0.01–0.02 loss (Wen et al.); roll back or wait.
  • Kaplan vs Chinchilla. Concurrent work (Porian et al.; Pearce and Song) finds LR decay alone does not explain the gap between the two scaling laws.
  • Formulas. MiniCPM’s printed cosine and exponential-decay formulas have notation slips; use the standard cosine above.

These are honest analogies, not deep identities. Qwen3 Embedding (arXiv 2506.05176) merges fine-tuning checkpoints with spherical linear interpolation (SLERP), whereas OLMo 2 averages independently annealed models arithmetically. Both link weight merging to robustness, but they are different merge operations, and the Qwen3 Embedding report does not give the warmup/decay recipe needed for an LR-schedule comparison. Octen-WebGR finds that what a generative retriever retains depends on the cumulative LR after an item is seen, which is why late, low-LR anneal data has outsized influence. A microanneal is a cheap probe of a candidate training-data source, much like testing new hard negatives on a small model before a full run.

  • Explain one motivation for Adam warmup and the limits of that explanation, and why intermediate cosine checkpoints are generally not matched-budget, fully cooled baselines.
  • Write the WSD schedule with linear and 1-sqrt cooldowns and compute LR values at any step.
  • Explain the cooldown loss drop with the river-valley hill term, and say what it predicts.
  • Compute the compute saved by branching cooldowns for any set of run lengths.
  • Design an anneal-based data probe with a proper control, and plan continual pretraining from a WSD or cosine checkpoint.
  • Compare the end-of-training recipes of Llama 3, OLMo 2, DeepSeek-V3 and Kimi K2.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Take η_max = 3e-4, η_min = 3e-5, 2,000 warmup steps and a 100,000-step run. Compute the LR at steps 25k, 50k, 80k, 90k and 100k for cosine (decaying to η_min) and for WSD with a 20% linear cooldown to 0. Then count the steps needed to train runs of 25k, 50k, 75k and 100k steps with cosine versus with one constant-LR run plus branched 20% cooldowns, and repeat for 10% cooldowns.

    What a strong answer covers
    • Cosine: η(t) = η_min + ½(η_max − η_min)(1 + cos(π(t − 2000)/98000)) gives about 2.65e-4, 1.69e-4, 5.7e-5, 3.7e-5 and 3.0e-5.
    • WSD: 3e-4 at 25k, 50k and 80k (cooldown starts at 80k), then 3e-4·(1 − x) with x the cooldown fraction: 1.5e-4 at 90k and 0 at 100k. A 1-sqrt cooldown gives 3e-4·(1 − √0.5) ≈ 8.8e-5 at 90k.
    • Cosine needs four runs from scratch: 25 + 50 + 75 + 100 = 250k steps.
    • WSD with 20% cooldowns: one constant run to 80k, plus branches of 5k, 10k, 15k and 20k (starting at 20k, 40k, 60k, 80k) = 130k steps, 52% of cosine. With 10% cooldowns: 90k + 25k = 115k, 46%.
    • General ratio: ((1 − c)·max L + c·Σ L) / Σ L. With Hägele's token ratios 10, 15, 20, 25 and c = 0.1 this is 29.5/70 ≈ 42%, matching their 5.59 → 2.36 × 10²³ FLOPs estimate.
  2. Mechanism

    During a WSD run the loss falls slowly for most of training, then drops sharply within a few thousand cooldown steps. Explain this with the river-valley picture of Wen et al.: what the hillside and river directions are, what the constant LR does along each, why lowering the LR reveals progress already made, and which tokens they argue make up each direction.

    What a strong answer covers
    • River valley: a few sharp directions (steep hillsides) and a flat, slowly descending direction (the river). Loss = how far down the river you are + how high up the hillsides you bounce.
    • Under Wen et al.'s restricted SGD valley assumptions (locally regular valley, straight river, small steps, Gaussian transverse noise), the hill term is about (d − 1)ησ²/2 with noise variance σ² per transverse direction. Lower LR shrinks this term, while river progress grows with the sum of LRs; the formula is not a quantitative AdamW law.
    • Cooldown shrinks η, so the hill term falls in proportion and the iterate settles to the valley floor, revealing river progress made during the stable phase. Progress itself continues, more slowly.
    • Hägele's evidence that fits: linearly interpolating between the pre- and post-cooldown weights gives a smooth monotone loss decrease; the cooldown is a move into a basin.
    • The deterministic-token (river) versus uncertain-token (hillside) reading is a hypothesis supported by synthetic experiments. In the bigram toy, the Hessian trace of one context's conditional cross-entropy at its optimum equals that context's Gini impurity, 1 − ΣP².
  3. What if…

    You can ablate a WSD run's cooldown fraction, shape and terminal LR at a fixed final token budget. Predict what changes if a 20% linear cooldown becomes 5%, if linear becomes 1 − √x, or if cosine ends at zero rather than 10% of peak. Use Hägele's 100B- and 460B-token results to separate validation-loss gains from downstream gains, and specify the controls needed to isolate each change.

    What a strong answer covers
    • Changing cooldown duration at fixed total tokens moves both the branch point and the high-LR exposure; compare matched budgets and report the stable-stage checkpoint and peak LR.
    • Hägele's Figures 4–6 support shorter cooldown fractions for longer runs and lower small-model loss with 1-sqrt than linear; this is empirical, not a universal ordering of schedules.
    • At 100B tokens cosine-to-10% scores 46.26 versus 45.88 for cosine-to-zero, despite the latter's lower loss; 20% linear and 20% 1-sqrt score 46.20 and 46.23.
    • At 460B tokens cosine-to-zero scores 48.03, linear 10% 47.98 and 1-sqrt 5% 47.91. These change several schedule attributes at once and are not an isolated shape ablation.
    • Tune or control peak and terminal LR separately, keep data, order and evaluation fixed, and repeat seeds before reading tenths of a point as a robust advantage.
  4. Critique

    Hägele et al. use a constant-LR trunk with branched cooldowns to estimate scaling across training lengths. Which assumptions make the branch endpoint losses comparable to separately tuned cosine runs, and which remain untested at frontier scale? Explain how OLMo 2's peak-LR experiment and Wen et al.'s post-spike decay finding would change your branch-selection and hyperparameter controls.

    What a strong answer covers
    • Tested on 33M–360M models with 0.3B–10B tokens for the scaling study; schedule comparisons up to 1B (460B tokens) and an 8B run of only 12B tokens. Frontier runs are 10–1000× larger.
    • Branching assumes the best constant LR is the same for all lengths and that one cooldown fraction suits every branch; the needed fraction actually shrinks with length.
    • Concurrent work (Porian et al.; Pearce and Song) finds the Kaplan–Chinchilla gap is not explained by LR decay alone, and that constant-LR loss without cooldown gives the right optimum ratio but suboptimal loss.
    • OLMo 2: higher peak LRs give lower loss early but are overtaken; after decaying to 0 on the same mid-training data, final loss is the same. Peak LR interacts with what the anneal recovers.
    • Wen et al.: starting decay right after a loss spike costs about 0.01–0.02 loss, so the branch point matters; roll back or wait.
  5. Design

    You pretrain a 3B model with WSD and want to know whether 20B tokens of mined query–passage pairs and web Q&A should go into mid-training to improve downstream retrieval-augmented QA. Design the experiment using annealing as a data probe, with controls, and say how you would then continue training the released model on a new domain later.

    What a strong answer covers
    • Branch from a stable-phase checkpoint (Llama 3 used a 50%-trained 8B), decay linearly to 0 over a short budget (Llama 3: 40B tokens; OLMo 2 microanneals: under 10B showed differences) with about 30% new data and 70% default mix.
    • Control: identical-budget default-mixture and candidate-mixture branches with matched LR schedules. Report pre-SFT results and, if SFT is part of deployment, results after identical SFT; compare on held-out QA and retrieval tasks, and separately control contamination, old-domain retention and later checkpoint averaging.
    • Budget: OLMo 2 ran 19 microanneals in 130B tokens, less than three full 50B anneals, so several candidate sources can be tested.
    • Separate production annealing, data-quality probes and in-domain benchmark-training experiments. Llama 3's 24.0%/6.4% 8B gains came from annealing on the GSM8k and MATH training sets, not its production mixture; MiniCPM Table 1 is measured after matched SFT, so it does not isolate pre-SFT cooldown gains.
    • Continual pretraining: keep the pre-decay checkpoint and continue at the stable LR (no re-warm), or follow Wen et al.'s WSD-S. From a decayed cosine model, re-warming and re-decaying with replay of old data adapts better over a large budget (Ibrahim et al.), at some cost in forgetting; staying at the old low LR is the conservative alternative.
  6. Connect

    Connect three ways of getting a useful intermediate model: a cooldown from a constant-LR trunk, averaging checkpoints along that trunk, and averaging several independently annealed endpoints. Why can these give different models even at similar validation loss? Use Hägele, DeepSeek-V3 and OLMo 2 to separate quality estimation, release-time improvement and the checkpoint you would keep for future continuation.

    What a strong answer covers
    • A cooldown performs further gradient updates with decreasing LR; SWA averages existing iterates. Hägele's SWA improves constant-LR checkpoints but does not fully close the gap to a cooldown.
    • DeepSeek-V3's CPU EMA is reported as an early estimate of post-decay performance, not as evidence that the released model skips the decay.
    • OLMo 2 averages three 50B-token anneals for the 7B; for 13B and 32B it averages three 100B-token branches plus one 300B-token branch. This is not temporal averaging along one run.
    • Differences in data, trajectory and weighting can make averaging and further optimisation diverge; matched loss does not guarantee matched downstream behaviour or retention.
    • Keep the stable-phase model and optimizer state for trunk continuation, or test WSD-S continuation from a decayed checkpoint; do not assume an averaged release checkpoint has matching optimizer moments.

Done with this page?

Status