Training Re-evaluation Curves
Re-scored with their final weights, two MuonH runs fit best the batches they read four fifths to nine tenths of the way through training and have forgotten the first quarter. Bergsma et al.’s formula follows this shape only with a fitted exponent, and then a control without any averaging fits nearly as well. A larger learning rate, a long EMA and more steps over the same text move the low point further than the averaging predicts, and when the data is read again, only the last read counts. A schedule that gives every batch the same weight in the final weights keeps only 0.003 nats more of the first quarter and raises the final loss by 0.03 to 0.11 nats. Early batches are learned and then forgotten at a rate set by the sum of the learning rate to a power between 1.2 and 1.4. Halving the learning rate makes a batch last 2.1 to 2.8 times as many steps. The distance the weights move does not set that power, and MuonH’s fixed-norm shrink sets at most a small part of it. A momentum of 0.98 makes the shrink 2.1 to 3.0 times as strong, yet after the first 248 steps the imprint follows it only at the smallest learning rate.
用最终权重重新给训练批次打分,两个 MuonH run 拟合得最好的都是训练进度五分之四到十分之九处读到的批次,而训练前四分之一已经忘掉。Bergsma 等人的公式要先拟合指数才能贴合这个形状,而这时不做任何滑动平均的对照也几乎一样贴合。更大的学习率、长时间尺度的 EMA,以及同样文本切出的更多步数,都会把最低点推得比滑动平均预测的更远;数据重读时,只有最后一次读到才算数。让每个批次在最终权重里权重相同的学习率 schedule,只把前四分之一多留住 0.003 nats,最终损失却高出 0.03 到 0.11 nats。早期的批次先学会、后忘掉,遗忘速度由学习率的 1.2 到 1.4 次方之和决定。学习率减半,一个批次能保留的步数变为 2.1 到 2.8 倍。权重移动的距离决定不了这个次方,MuonH 固定范数的缩小也至多占其中一小部分。动量 0.98 让这种缩小强 2.1 到 3.0 倍,但过了前 248 步,只有在最小的学习率下印记才跟着它走。
Setup设置
We take two finished runs of the MuonH Qwen3 recipe of the Marin speedrun, trained with the 128K Marin tokenizer on fineweb-edu-10B text. The first uses the recipe's 130m model with 12 layers instead of 6; its learning rate holds steady for the first fifth of training and then falls linearly to zero, a warmup-stable-decay (WSD) schedule without warmup. The second uses the 300m model, whose learning rate warms up and then follows a cosine to zero. After training, we score each final checkpoint on every training batch in order, and on 512 later batches from the shared data stream that neither run read. The final model's loss on the batch of step t against the training fraction t/T forms the training re-evaluation curve (TREC) of Bergsma, Dey and Hestness (2025), and this code computes the curve and its predictions.
我们取两个训练完的 run,都按 Marin speedrun 的 MuonH Qwen3 配方训练,使用 128K 个词的 Marin tokenizer 和 fineweb-edu-10B 文本。第一个是配方中的 130m 模型,层数从 6 层改为 12 层;学习率在训练的前五分之一保持不变,随后线性降到零,即不带预热的 warmup-stable-decay(WSD)调度。第二个是 300m 模型,学习率先预热,再按 cosine 降到零。训练结束后,我们用每个 run 的最终 checkpoint,按训练顺序给它读过的每一批打分,再给同一数据序列中两个 run 都没读到的后 512 批打分。最终模型在第 t 步那一批上的损失对训练进度 t/T 作图,就是 Bergsma、Dey 和 Hestness(2025)提出的训练再评估曲线(TREC);打分和预测使用这份代码。
Details详细说明
The runs follow the MuonH Qwen3 recipe of the Marin speedrun, which covers 130m to 1.2B parameters, with the 128K Marin tokenizer on fineweb-edu-10B text. We take two finished runs. The first uses the recipe's 130m model with 12 layers instead of 6. Its learning rate stays at 0.02 for the first fifth of its 4959 steps and then falls linearly to zero, a warmup-stable-decay (WSD) schedule with no warmup. The second uses the 300m model, which warms up to 0.01 over 1000 steps and then follows a cosine to zero at step 11444. Both runs read the same shuffled stream of batches, each holding 128 sequences of 4096 tokens. The 130m run therefore reads the first 43% of the 300m run's text. After training, we score each final checkpoint on every training batch in order, and on 512 later batches from the same stream that neither run read. The final model's loss on the batch of step t, plotted against the training fraction t/T, is the training re-evaluation curve (TREC) of Bergsma, Dey and Hestness (2025). The scoring and predictions use this code.
两个 run 都按 Marin speedrun 的 MuonH Qwen3 配方训练。这个配方覆盖 130m 到 1.2B 参数,使用 128K 个词的 Marin tokenizer 和 fineweb-edu-10B 文本。我们取两个训练完的 run。第一个是配方中的 130m 模型,层数从 6 层改为 12 层。它的学习率在 4959 步的前五分之一保持 0.02,随后线性降到零,即不带预热的 warmup-stable-decay(WSD)调度。第二个是 300m 模型,学习率用 1000 步预热到 0.01,再按 cosine 在第 11444 步降到零。两个 run 读同一个打乱后的批次序列,每批包含 128 条长 4096 个 token 的序列,因此 130m run 读到的文本就是 300m run 前 43% 的文本。训练结束后,我们用每个 run 的最终 checkpoint,按训练顺序给它读过的每一批打分,再给同一序列中两个 run 都没读到的后 512 批打分。最终模型在第 t 步那一批上的损失对训练进度 t/T 作图,就是 Bergsma、Dey 和 Hestness(2025)提出的训练再评估曲线(TREC)。打分和预测使用这份代码。
Experiments实验
Answered已有结论Which training batches does the final model fit best?最终模型对哪些训练批次拟合得最好?
It fits best the batches read four fifths to nine tenths of the way through training, later under the linear decay than under the cosine. Neither model remembers the first quarter of training and scores those batches like unread text.
训练进度五分之四到十分之九处读到的批次,在线性衰减下比在 cosine 下更靠后。两个模型都不记得训练前四分之一的批次,在这些批次上的损失和没读过的文本一样。
12 layers of width 512, MLP width 1792 and 8 heads: 45.6M parameters in the layers, 65.7M in the embedding, 65.7M in the output head. The learning rate stays at 0.02 for the first fifth of 4959 steps and falls linearly to zero; the final model scores every batch.12 层,宽 512,MLP 宽 1792,8 个头:各层共 45.6M 参数,embedding 65.7M,输出头 65.7M。学习率在 4959 步的前五分之一保持 0.02,之后线性降到零;最终模型给每一批打分。
The learning rate warms up to 0.01 over 1000 steps and follows a cosine to zero at step 11444; the final model scores every batch.学习率用 1000 步预热到 0.01,之后按 cosine 在第 11444 步降到零;最终模型给每一批打分。
Details详细说明
The learning rate stays at 0.02 for the first fifth of 4959 steps and falls linearly to zero; the final model scores every batch.学习率在 4959 步的前五分之一保持 0.02,之后线性降到零;最终模型给每一批打分。
Answered已有结论Does the optimizer's averaging predict the curve?优化器的滑动平均能预测这条曲线吗?
No. With the exponent m that Bergsma et al. fit for AdamW, every reading of the optimizer misplaces the low point. When we fit m to each run, every reading and the control where nothing shrinks follow the measured shape about equally well. The shape alone cannot tell them apart.
不能。直接用 Bergsma 等人为 AdamW 拟合的指数 m 时,优化器的每一种理解算出的最低点都偏离实测。对每个 run 单独拟合 m 后,每一种理解和什么都不缩小的对照贴合实测形状的程度都差不多。单看形状分不出它们。
MuonH as it runs: momentum tilts each update outward, so rescaling to the old norm shrinks the old weights by about 1 − Aη²/2, with A = 23 at the 130m momentum of 0.95 and 73 at the 300m momentum of 0.98.MuonH 的实际做法:动量让每次更新带一点向外的分量,缩放回原来的范数时,旧权重约乘以 1 − Aη²/2;130m 的动量 0.95 下 A = 23,300m 的动量 0.98 下 A = 73。
The same rescaling if every update were at right angles to the weights: the old weights shrink by 1/√(1 + η²).同样的缩放,但假设每次更新都与权重垂直:旧权重乘以 1/√(1 + η²)。
The config's unused weight decay read as AdamW: the old weights shrink by 1 − 0.1η, and then the update is added.把配置里未使用的权重衰减当作 AdamW:旧权重先乘以 1 − 0.1η,再加上更新。
The control where nothing shrinks: each update keeps the weight its learning rate gave it.对照:什么都不缩小,每次更新保留学习率给它的权重。
Bergsma et al. predict the TREC from the weight c that each update keeps in the final weights: under AdamW with weight decay λ, ci = ηi ∏j>i (1 − ηjλ). MuonH has no weight decay and instead rescales each weight matrix to its starting norm after every step. This rescaling shrinks the old weights by an amount that grows with A, the number of successive steps over which momentum points the same way.
Bergsma 等人根据每次更新在最终权重里保留的权重 c 来预测 TREC:在权重衰减为 λ 的 AdamW 下,ci = ηi ∏j>i (1 − ηjλ)。MuonH 没有权重衰减,而是在每一步后把每个权重矩阵缩放回初始范数。这一缩放会让旧权重变小,缩小的幅度随动量保持同向的连续步数 A 增大。
Details详细说明
No. With the exponent m that Bergsma et al. fit for AdamW, every reading of the optimizer misplaces the low point by 0.04 to 0.15 of training. When we fit m to each run, every reading follows the measured shape, and the learning-rate-only control, where nothing shrinks, does nearly as well. The shape alone cannot tell the readings apart.
不能。如果直接用 Bergsma 等人为 AdamW 拟合的指数 m,优化器的每一种理解预测的最低点都偏离实测,偏差为训练进度的 0.04 到 0.15。对每个 run 单独拟合 m 后,每一种理解都能贴合实测形状,什么都不缩小的“只看学习率”对照也几乎一样贴合。单看形状分不出哪一种理解是对的。
Bergsma et al. predict the TREC from how much weight each update still keeps in the final weights. AdamW shrinks the weights by 1 − ηλ at every step, leaving the update of step i with weight ci = ηi ∏j>i (1 − ηjλ). MuonH has no weight decay; after every step it rescales each weight matrix back to its starting norm. If successive steps were unrelated, an update of relative size η would shrink the old weights by 1/√(1 + η²), close to 1 − η²/2, giving a timescale of 20,000 steps at the 300m peak rate. Momentum instead makes successive steps point the same way. Each step then also pushes outward along the weights, and the rescaling shrinks the old weights by about 1 − Aη²/2, where A counts how many steps share a direction. Checkpoints of the 300m recipe give A = 73 at its momentum of 0.98, a timescale of about 275 steps; a simulation gives A = 23 at the 130m momentum of 0.95. The recipe's config also lists a weight decay of 0.1 that MuonH never applies; read as AdamW, it would give a timescale of 1000 steps.
Bergsma 等人根据每次更新在最终权重里还占多少份额来预测 TREC。AdamW 每一步把权重乘以 1 − ηλ,因此第 i 步更新最终保留的权重是 ci = ηi ∏j>i (1 − ηjλ)。MuonH 没有权重衰减,而是在每一步后把每个权重矩阵缩放回初始范数。如果相邻两步互不相关,一次相对大小为 η 的更新会把旧权重乘以 1/√(1 + η²),约等于 1 − η²/2;在 300m 的峰值学习率下,时间尺度是 20,000 步。但动量让相邻两步指向同一方向。每一步因此还会沿着权重向外推,缩放回原范数时,旧权重约乘以 1 − Aη²/2,其中 A 表示共享同一方向的步数。从 300m 配方的检查点测得,在 0.98 的动量下 A = 73,时间尺度约为 275 步;模拟给出 130m 在 0.95 的动量下 A = 23。配方的配置里还写着 0.1 的权重衰减,MuonH 从不使用;如果按 AdamW 算,对应的时间尺度是 1000 步。
Answered已有结论Does a shorter timescale move the low point later?更短的时间尺度会把最低点推后吗?
Yes. When a tokenizer takes more steps over the same text, the final model fits later batches best, and the low point moves further than the averaging alone predicts.
会。同样的文本由 tokenizer 切出的步数越多,最终模型拟合得最好的批次越靠后,而且最低点后移得比单靠滑动平均预测的更多。
The text takes 11444 steps of 128 sequences of 4096 tokens.这段文本切成 11444 步,每步 128 条长 4096 个 token 的序列。
Smaller tokens: the same text takes 15464 steps.词更短:同样的文本切成 15464 步。
One byte per token: the same text takes 54248 steps.每个字节一个 token:同样的文本切成 54248 步。
Answered已有结论Which settings move the low point?哪些设置会移动最低点?
A larger learning rate, a long EMA and byte tokens move the low point; depth, batch size and the training seed do not. The momentum reading predicts the direction of each shift, but predicts a smaller shift than the one measured.
更大的学习率、长时间尺度的 EMA 和字节 token 会移动最低点;深度、batch 大小和训练种子不会。带动量的理解能预测每次移动的方向,但预测的移动幅度比实测小。
Details详细说明
A larger learning rate, a long EMA and byte tokens move the low point; depth, batch size and the training seed do not. The momentum reading predicts the direction of each shift but only a quarter to three fifths of its size.
更大的学习率、长时间尺度的 EMA 和字节 token 会移动最低点;深度、batch 大小和训练种子不会。带动量的理解能预测每次移动的方向,但只预测出移动幅度的四分之一到五分之三。
Answered已有结论What does reading the data again do to the TREC?数据再读一遍,TREC 会怎样?
Only the last read counts. When we sort batches by the time their data was last read, every pass falls on one TREC, and an earlier read barely changes the final loss.
只有最后一次读到才算数。按每批数据最后一次读到的时间排序后,各遍的批次落在同一条 TREC 上,更早的读取几乎不改变最终损失。
Details详细说明
Only the last read counts. When we sort batches by the time their data was last read, every pass falls on one TREC, and an earlier read changes the final loss by no more than 0.003 nats.
只有最后一次读到才算数。按每批数据最后一次读到的时间排序后,各遍的批次落在同一条 TREC 上,更早的那次读取让最终损失的变化不超过 0.003 nats。
Answered已有结论Does giving every batch the same weight keep the early data?让每个批次的权重相同,能留住早期的数据吗?
No. With every batch weighted equally, the first quarter is still forgotten. Its loss falls only 0.003 nats further below the unread level, while the final loss rises by 0.03 nats with a cooldown and by 0.11 nats without one.
不能。让每个批次的权重相同时,前四分之一仍然被忘掉。它的损失只比没读过的文本再低 0.003 nats,而最终损失在有冷却时高出 0.03 nats,没有冷却时高出 0.11 nats。
Details详细说明
Equal weights do not keep the early batches: the first quarter ends 0.004 nats below the unread level instead of 0.001, while the last quarter stays 0.07 below it. The schedule costs 0.03 nats of final loss with a cooldown and 0.11 without one.
权重相同留不住早期的批次:前四分之一只比未读水平低 0.004 nats(原 schedule 为 0.001),而最后四分之一仍然低 0.07。这个 schedule 让最终损失在有冷却时高出 0.03 nats,没有冷却时高出 0.11 nats。
Answered已有结论Were the early batches learned little, or learned and then forgotten?早期的批次是一开始就学得少,还是学到了后来又忘掉了?
They were learned and then forgotten. Right after a first-quarter batch is read, its loss sits 0.07 to 0.12 nats below the unread level; at the end of training, 1% to 4% of that remains at 130m and nothing at 300m.
是先学到,后来又忘掉了。刚读完时,前四分之一的批次比未读水平低 0.07 到 0.12 nats;到训练结束时,130m 只剩下其中的 1% 到 4%,300m 什么也没剩下。
Details详细说明
Early batches are learned and then forgotten: a first-quarter batch keeps 1% of its imprint under the original schedule, 4% under 1/√t with a cooldown and nothing at 300m. The decay follows the sum of the learning rate since the read more closely than the number of steps.
早期批次先学到,然后被忘掉:前四分之一的批次在原 schedule 下留下 1% 的印记,在 1/√t 加冷却下留下 4%,在 300m 上什么也没留下。衰减更吻合读到以来的学习率之和,而非步数。
Answered已有结论What sets how fast a batch is forgotten?什么决定一个批次被忘得多快?
The sum of the learning rate to the power 1.3 sets the forgetting rate; the power rises from 1.2 early in training to 1.4 late. Neither the number of steps alone nor the shrinking of the weights by the fixed norm alone, which grows with the square of the learning rate, sets it. A momentum of 0.98 makes that shrinking 2.1 to 3.0 times as strong on these runs, yet after 248 steps the imprint follows it only at the smallest learning rate. The shrinking sets at most a small part of the power.
由学习率的 1.3 次方之和决定,这个次方从训练早期的 1.2 升到后期的 1.4。单看步数决定不了它;固定范数对权重的缩小随学习率的平方增长,单靠它也决定不了。动量 0.98 在这些 run 上让这种缩小强 2.1 到 3.0 倍,但 248 步之后,只有在最小的学习率下印记才跟着它走。固定范数的缩小至多决定这个次方的一小部分。
Details详细说明
Forgetting follows the sum of the learning rate to a power between 1.2 and 1.4. Halving the learning rate makes a batch last 2.1 to 2.8 times as many steps. Neither the number of steps alone nor the shrinking by the fixed norm alone sets it. A momentum of 0.98 makes that shrinking 2.1 to 3.0 times as strong on these runs and speeds up forgetting at every learning rate. By the end, however, each run keeps 0.76 to 0.77 of what it keeps at 0.95, whereas the measured shrinking would leave the run with the largest learning rate about half.
遗忘跟着学习率 1.2 到 1.4 次方之和走。学习率减半,一个批次能保留的步数变为 2.1 到 2.8 倍。单看步数决定不了它,只靠固定范数的缩小也决定不了它。动量 0.98 在这些 run 上让这种缩小强 2.1 到 3.0 倍,在每个学习率下都忘得更快。但到结束时,每个 run 剩下的都是动量 0.95 时的 0.76 到 0.77,而按测得的缩小,学习率最大的 run 只会剩约一半。
Takeaways核心结论
Re-scored with their final weights, two MuonH runs fit best the batches they read four fifths to nine tenths of the way through training and have forgotten the first quarter. Bergsma et al.’s formula follows this shape only with a fitted exponent, and then a control without any averaging fits nearly as well. A larger learning rate, a long EMA and more steps over the same text move the low point further than the averaging predicts, and when the data is read again, only the last read counts. A schedule that gives every batch the same weight in the final weights keeps only 0.003 nats more of the first quarter and raises the final loss by 0.03 to 0.11 nats. Early batches are learned and then forgotten at a rate set by the sum of the learning rate to a power between 1.2 and 1.4. Halving the learning rate makes a batch last 2.1 to 2.8 times as many steps. The distance the weights move does not set that power, and MuonH’s fixed-norm shrink sets at most a small part of it. A momentum of 0.98 makes the shrink 2.1 to 3.0 times as strong, yet after the first 248 steps the imprint follows it only at the smallest learning rate.
用最终权重重新给训练批次打分,两个 MuonH run 拟合得最好的都是训练进度五分之四到十分之九处读到的批次,而训练前四分之一已经忘掉。Bergsma 等人的公式要先拟合指数才能贴合这个形状,而这时不做任何滑动平均的对照也几乎一样贴合。更大的学习率、长时间尺度的 EMA,以及同样文本切出的更多步数,都会把最低点推得比滑动平均预测的更远;数据重读时,只有最后一次读到才算数。让每个批次在最终权重里权重相同的学习率 schedule,只把前四分之一多留住 0.003 nats,最终损失却高出 0.03 到 0.11 nats。早期的批次先学会、后忘掉,遗忘速度由学习率的 1.2 到 1.4 次方之和决定。学习率减半,一个批次能保留的步数变为 2.1 到 2.8 倍。权重移动的距离决定不了这个次方,MuonH 固定范数的缩小也至多占其中一小部分。动量 0.98 让这种缩小强 2.1 到 3.0 倍,但过了前 248 步,只有在最小的学习率下印记才跟着它走。
Acknowledgements致谢
The author is pleased to acknowledge that the work reported on in this post was substantially performed using the Princeton Research Computing resources at Princeton University. Princeton Research Computing is a consortium of groups including the Princeton Institute for Computational Science and Engineering (PICSciE) and Research Computing at Princeton University.
本文报告的工作主要使用普林斯顿大学 Princeton Research Computing 的计算资源完成。Princeton Research Computing 是由普林斯顿计算科学与工程研究所(PICSciE)和普林斯顿大学 Research Computing 等团队组成的联合体。
Experiment record实验记录
Citation
@misc{chai2026trec,
title = {Training Re-evaluation Curves},
author = {Chai, Wenhao},
year = {2026},
howpublished = {Blog post},
url = {https://wenhaochai.com/exps/trec.html}
}