In one line: Shows that a weighted merge of the last n checkpoints applies a synthetic decay schedule to the updates since the oldest (exact for the updates taken, only approximately a run that really decayed), so a constant LR plus merging can emulate linear, cosine or 1-sqrt decay with no decay phase; on a 16.3B MoE it beat a WSD anneal by about 1 point (+1.28 best checkpoint against best, +1.18 at matched tokens, one run per arm), with merge duration the dominant hyperparameter and EMA the weakest merge.
How far to trust it: Believe the algebra and the recipe: keep the learning rate flat, save checkpoints, average the last stretch, and you get about what a decay gives, plus a cheap preview of the decayed model. Treat the size of the win as provisional: the +1.28 points is +1.18 at matched tokens, every comparison is one run with the best checkpoint picked on the test benchmarks, and the paper's merge-shape ranking reverses at matched tokens. The evidence, judged.
The idea in one sentence: averaging the last stretch of checkpoints is the same as applying a decay schedule to the updates between them, so you can keep the learning rate flat forever and get the effect of a decay (any non-increasing shape you choose) by merging, with no decay to plan and nothing to roll back when you train longer.
The merge weights are a decay schedule in disguise, and on a 16B MoE the merge scored about a point above the decay. Fig. 1 builds the identity on this page's toy, then shows what it bought on the paper's model; drag it to turn it.
Fig. 1, step by step
Toy: the page's 608-parameter network and its eight precomputed seeds (Merge instead of decay); the 1-sqrt weights are Theorem 3.1's for 16 checkpoints. Ling-mini: Table 1, with the merge and the raw flat-LR checkpoint read from Figure 3's vector figure (matched-token points derived on this page).
You need: cosine, WSD (warmup, stable, decay), cooldown shapes and schedule-free training, compared on one run: Optimisers and learning-rate schedulers. This page is the paper. New terms: WSM (warmup, stable, merge); merge duration (how much training the merged checkpoints span); 1-sqrt (the decay shape 1 − √t, Hägele et al.); Ling-mini (the paper's 16.3B-total, 1.4B-active MoE).
Every mainstream learning-rate (LR) schedule ends in a decay phase, and the decay phase is where the scheduling pain lives (§1, §2):
Both schedules, their cost per extra run length (Fig. 6 there: each cosine endpoint is a separate run, WSD branches its cooldowns off one trunk) and the evidence for each shape are on Optimisers and learning-rate schedulers; this page keeps what WSM changes.
So even WSD is not a fully autonomous, continuously extendable training process. Prior decay-free work (schedule-free optimisers, EWA-style weight averaging) mostly aimed to match WSD, and each averaging scheme hard-codes one annealing path (Li et al. 2025 showed constant LR plus averaging can be competitive with WSD). The chart redraws the paper's Figure 1; switch to "train longer" to see what each schedule does when you decide, at the end, to train half as long again.
Take an ordered run of checkpoints θn, θn+1, ..., θn+k and average them with non-negative weights that sum to one (Eq. 1). Now expand each checkpoint into the base plus the updates applied since, θn+j = θn − Σl≤j gn+l−1, where g is the whole update including the learning rate (Eq. 2). Swapping the order of the double sum (Eq. 3) gives:
So merging is identical to applying a synthetic decay schedule wi to the updates since the base. Theorem 3.1 inverts the map (Eq. 5, proof in Appendix B): for any monotonically non-increasing target curve 1 ≥ w1 ≥ ... ≥ wk ≥ 0, the checkpoint weights are uniquely ck = wk, cj = wj − wj+1, c0 = 1 − w1. Non-negative weights exist exactly when the curve never rises and starts at most at 1.
Equal weights give wi = (10 − i)/10: the update right after the oldest checkpoint keeps 90% of its LR, the last one 10%. A straight line down. The calculator is set to it.
In the calculator, pick a shape and a number of checkpoints: the bars are the merge weights the theorem prescribes, the staircase is the decay they apply. With 10 checkpoints the four shapes reproduce every one of the 40 weights printed in the paper's Figure 2.
The last gradient coefficient equals the newest checkpoint's weight, wk = ck = 0.206. An EMA never anneals far: its equivalent curve stays high and then drops, ending at a fifth of the peak. The calculator is now set to it.
It calls EMA's decay convex and 1-sqrt concave (Figure 2, §4.3.2). In the usual sense it is the reverse: 1 − √t bends upward (midpoint test w(¼) + w(¾) − 2w(½) = +0.048), Figure 2(a)'s EMA curve 1 − 0.11−t bends downward (−0.108). What separates them is that 1-sqrt drops early and ends near zero, while EMA ends at 21% of the peak.
Exact, or approximate? The algebra is exact for any optimiser if g is the update actually applied, so the method is optimiser-agnostic: nothing in the training loop changes, and it composes with SGD, Adam or anything else. What is approximate is "equals a run that decayed": a real decay computes its later gradients at different points, which the paper sets aside ("we assume the updates ... are independent and ignore optimizer states", §3.1). This page's toy measures the gap: the merge lands 17% to 36% of the weights' movement away from its decay run, and usually scores better (the equivalence test). So mean averaging is (approximately) linear decay, EMA an early-high, late-drop curve ending well above zero, and cosine and 1-sqrt curves can be constructed explicitly.
Warm up linearly to lrpeak, then hold the LR constant indefinitely. No decay, ever (§3.2, Algorithm 1):
Offline, then online (§3.3). Keeping the checkpoint history is the exploration mode: one training run, many simulated anneals of different shapes and durations, which an online EMA cannot give since it hard-codes one annealing path from step one. Once a winner is found ("an average of the last 4 checkpoints") it runs online as a fixed sliding window. The cost is storage (total tokens over the checkpoint interval; "a minor fraction of a typical pre-training budget"), and a window of n = 12 was enough. For a 16.3B model one bf16 checkpoint is 32.5 GB (derived): 520 GB for the 16 checkpoints of the 400B branch, 390 GB for 12.
(§3.3): Li et al. (2025) study heuristic WMA, SMA and EMA merges empirically and find merging matches an annealed model; WSM derives the weights from a schedule and claims to beat WSD.
The paper's own picture (§4.4, after Wen et al. 2024): constant-LR training traverses a canyon with oscillating steps, merging finds the river at the canyon floor; its t-SNE map of one layer (Figure 6) shows decay-phase checkpoints converging toward the merged model. Fig. 2 runs that picture, with the same noise in both branches. Why a constant rate hovers above the floor in the first place, and how cosine and WSD settle it, is Fig. 5 on Optimisers and learning-rate schedulers; this figure adds the merge.
Fig. 2, step by step
Averaging cancels the bounce across the canyon, as a decay does, but the merged point sits about halfway back along the window, giving up some progress down the river (a decay gives up progress too: its late steps are small). A longer window averages more noise and costs more lag, so merge duration is the knob that matters, with diminishing returns.
illustrative Plain SGD on L(x, y) = ½(y² + 0.02·(x − 4)²), gradient noise of standard deviation 2 across the valley and 0.1 along it, LR 0.3, 60 shared steps then an 80-step branch, a checkpoint every 10 steps, merge of the last 8 (mean); height is √L. Same noise in both branches (noise draw 170 shown). Only the mechanism is the paper's; the numbers come from this toy, not from Ling-mini. The trained toy on the next tab measures the same comparison on a real (small) network.
Setup: one Ling-mini checkpoint pretrained on 10.2T tokens at a constant LR, switched to a high-quality anneal set and branched for 400B tokens two ways, a WSD decay (1-sqrt shape) against constant LR plus mean merging, a checkpoint every 25B tokens.
(§4.1, Appendix A). Ling-mini, a 16.3B-total, 1.4B-active MoE: 20 layers (1 dense, 19 MoE), hidden size 2,048, 256 experts with top-8 routing plus one shared expert, GQA, RoPE, 8K context (Table 6). Its shape matches the later open Ling-mini-2.0, whose config recounts to exactly these sizes (recount). AdamW (β 0.9, 0.95, weight decay 0.1), peak LR 4.78e-4, batch 2,048 sequences of up to 8K tokens (16.8M tokens, derived). Start from one checkpoint pretrained on 10.2T tokens at constant LR (10T at 4,096-token sequences plus 200B long-context), switch to a high-quality annealing set, and branch 400B tokens two ways: a conventional WSD decay (baseline, 1-sqrt shape per Table 3) against constant LR plus merging (WSM). Checkpoint every 25B tokens; mean averaging unless stated.
WSM beats WSD, comparing the best checkpoint of each: +1.28 points on the average of 41 base-model benchmarks (62.67 to 63.95), ahead in all five categories, most in professional knowledge (+4.83% relative) (Table 1). The body text quotes gains of up to 2.7 points on MATH, 2.4 on HumanEval and 2.1 on MMLU-Pro (§4.2); the abstract's +3.5%, +2.9% and +5.5% are relative figures from mixed sources (see How much to believe). Figure 3 is rebuilt from the paper's vector figure (exact marker positions, calibrated on its gridlines); tick the box to stop both runs at WSD's 400B tokens.
The gain survives post-training. After identical supervised fine-tuning for 5 epochs, the WSM-derived instruct model leads 64.07 to 62.90 on the average of 60 benchmarks, winning on language, knowledge, math, reasoning and agent, and losing narrowly on code (−0.48% relative) (Table 2, Tables 8 and 9).
(Table 5). The merged model routes more evenly (per layer, |max(L) − μ|/μ falls from 0.601 to 0.545 and |min(L) − μ|/μ from 0.322 to 0.201, averaged over layers), at a higher language-modelling loss, 0.697 against 0.675; the authors read that as better generalisation, which the table alone cannot show. Appendix D adds that decay worsens weight-matrix condition numbers and lowers FFN SVD entropy while merging keeps both (Figures 8 and 9).
Merge duration. First chart: the best overall average for each mean-merge window in Figure 4 (25B tokens per checkpoint), rising with diminishing returns. Second: Table 4 holds the span fixed at 80B tokens and trades interval against count; every merged split lands within 1 point, and only the single unmerged checkpoint falls away.
Figure 5(a) rebuilt from the vector figure: the constant-LR run (grey, 200 evaluations), 100B-token decays started at five milestones (red), and the 4-checkpoint mean merge every 500B tokens (blue stars). Tap or hover a milestone for the numbers.
What holds up. The algebra is exact (Figure 2's 40 weights reproduce from Theorem 3.1). The comparison is paired: both branches start from one checkpoint and see the same data. Merging adds about 3.5 points over the raw constant-LR checkpoint at 400B (60.32 to 63.85, Figure 3); at matched tokens the best mean merge still leads WSD by 1.18, and the single best merged checkpoint wins 28 of 41 benchmarks (Table 7). The mid-run proxy is within 0.56 points of a real decay at all five milestones. The lab then shipped WSM for Ling 2.0, 16B to 1T parameters, reporting 1 to 2 point gains (Ling 2.0 §3.2.3; same authors). This page's toy finds a 16-checkpoint mean merge ahead of a matched 1-sqrt decay in 8 of 8 seeds (the toy).
What is weaker, concretely:
Verdict. Believe the mechanism and the practical recipe: a flat LR plus an average of the last stretch of checkpoints gives about what a decay gives, with no decay to plan, and a cheap preview of the decayed model at any point. Read the +1.3 as "about +1 point at matched tokens, from one run selected on the test benchmarks", a strong signal rather than a settled constant, and treat the merge-shape ranking (1-sqrt over mean over EMA) as unproven: it flips at matched tokens, and EMA's weakness is better explained by where its curve ends than by its shape.
Two distinct things, worth separating:
Its own lab adopted it: Ling 2.0's three models use "linear warmup for the first 2,000 steps to a peak LR, then constant LR until training ends; the final annealing is achieved by checkpoint merging instead of LR decay" (Ling 2.0 report). The schedule family it joined, and how it compares with cosine, WSD and schedule-free training today, is kept current on Optimisers and learning-rate schedulers.
Costs and caveats: storage for the checkpoint history (small relative to a pretraining budget, and avoidable via an online sliding window of about 12 checkpoints); results come from one model family and one 400B-token branch, so the +1.3 should be read as a strong signal rather than a settled constant; and the merged model is a separate artifact from the live training weights, which is an extra thing for a training pipeline to track.
The paper's experiment, rerun at toy scale with seeds and error bars it did not have: one constant-LR run, then a branch that either decays the LR (WSD) or keeps it flat and merges checkpoints (WSM), on the same data. Every number below is measured by the same code running in your browser.
A 608-parameter network (16 inputs, 24 tanh units, 8-way softmax) learns a fixed random "teacher" network whose labels are sampled, so there is irreducible noise, from an endless stream of fresh batches of 16: like pretraining, it never sees an example twice. Adam with β 0.9 and 0.95 as the paper's AdamW (no weight decay), LR warmed up over 200 steps to 0.005 and held. After 8,000 shared steps (the paper's 10.2T-token checkpoint) the run branches for 1,600 steps (its 400B tokens, so 100 steps stand for its 25B-token checkpoint interval) and WSM continues to 2,000 (its 500B). The score is held-out excess loss: cross-entropy above the teacher's own entropy on 1,024 fixed inputs, so 0 is perfect and lower is better. The engine matches PyTorch to 7 × 10−16 (check_engine.py).
Eq. 4 says merging the last n checkpoints with weights c equals the oldest of them plus the later updates reweighted by w. Here each merge at step 1,600 is set against a real run that starts from the oldest checkpoint in its window, with its Adam state, and trains on the same batches with the LR set to peak × wi (the staircase the merge stands for). If the updates did not depend on where they were computed, the two would be identical.
What the toy cannot test: benchmarks, a data switch to a high-quality mixture (both branches here see the same stream), MoE routing, or anything about a 16B model's loss landscape. It tests the optimisation claim only: whether averaging a flat-LR run's checkpoints buys what a decay buys. Training log of the shared phase:
Tables transcribed from the arXiv HTML with the printed precision kept (tables.json); figure values read from the vector PDFs in the arXiv source, every marker mapped through its own panel's gridlines and tick labels (calibration residual under 0.01 point; extract_figs.py). Every derived number is recomputed in recompute.py.
Figure 4 rebuilt from the vector figure. The dashed line is WSD's best, 62.67 at 400B; the shaded region is past WSD's 400B tokens.
Every link opens in a new tab. Reading time of the resources below: 3h 45m.
arXiv preprint, the paper itself; the HTML version has the anchors this page links to. abstract page, PDF.
(45 min)
None released: the arXiv page links no code, and a GitHub search on 3 October 2026 found no repository. The method needs none beyond a weighted average of saved weights; this page's toy (the second tab) implements it in a few lines.
Alexander Hägele, Elie Bakouch, Atli Kosson, Loubna Ben Allal, Leandro von Werra, Martin Jaggi: background on why the decay phase is worth attacking: constant LR plus a short cooldown matches cosine, the 1-sqrt cooldown beats linear, and weight averaging as a partial substitute.
(45 min)
ByteDance Seed (reference 36 in the paper): the concurrent, purely empirical take: WMA, SMA and EMA merging during constant-LR pretraining, reaching the performance of an annealed model.
(40 min)
Kaiyue Wen, Zhiyuan Li, Jason Wang, David Hall, Percy Liang, Tengyu Ma: the river-valley picture behind the paper's canyon-and-river analogy (§4.4): a high constant LR makes progress along the river while bouncing between the canyon walls; decay or averaging settles onto the floor.
(40 min)
Aaron Defazio, Xingyu Yang, Harsh Mehta, Konstantin Mishchenko, Ahmed Khaled, Ashok Cutkosky: schedule-free optimisation: deletes the schedule by iterate averaging inside the optimiser, where WSM does it outside, on saved checkpoints.
(40 min)
Ling Team, Ant Group: the same lab's production use of WSM for Ling-mini-2.0, Ling-flash-2.0 and Ling-1T, plus the top-32-by-validation checkpoint average it added on top.
(15 min)
Llama 3 405B annealed the LR linearly to 0 on its last 40M tokens and averaged checkpoints during the anneal (§3.4.3): exactly the Decay-then-Merge hybrid that WSM found adds nothing (Figure 5b).
keeps an EMA of the weights in CPU memory "for early estimation of the model performance after learning rate decay" (§3.2.3): WSM's evaluation-proxy use, already in production, with the EMA shape WSM ranks last.
why cosine needs the run length up front: a cosine cycle longer than the run leaves the LR high at the end, which is how Chinchilla explained part of the gap to Kaplan's laws (Appendix B).
the cosine-to-zero schedules WSD and WSM were designed to replace.
model souping at the end of mid-training: the same weight-averaging machinery, used as ensembling rather than as a schedule.
Optimisers and learning-rate schedulers: the LR-schedule family (cosine, WSD, schedule-free, WSM) and where the WSD-versus-WSM comparison lives.
Pretraining and Data mixing: WSM's data-anneal switch step is the same lever as the mid-training anneal (Dolmino, Llama 3 annealing).
the Ai2 OLMo section (the old Ai2 OLMo lab page was merged here): the Olmo 3 recipe's checkpoint souping, with its public training logs.
This page is one row of the Papers database; its properties (Paper, Takeaway, Topics, Year) live there.