Introduction
Large language models are not tuned at the size at which they are trained. The learning rate and the weight decay are searched on a small proxy and then carried to the target by a rule. The maximal update parametrisation (muP) gives such a rule for width [1]: it rescales the initialisation, the forward multipliers and the per-tensor learning rates so that the optimum found on a narrow proxy stays optimal on a wide target. Real scale-ups change more than width, though. Targets are much deeper, they train on many more tokens, and they are increasingly trained with Muon, a spectral optimiser whose update has no Adam-style per-coordinate normalisation. Along each of these axes the field has a separate answer: depth-wise parametrisations [2, 3], horizon-dependent learning-rate rules and fitted laws [4, 5, 6], weight-decay rules [7, 8], and Muon-specific scalings [9, 10]. Unified schemes try to cover several axes at once [11], and muP has been combined with unit scaling [12].
The task asks for the rule itself: given a base point tuned on a small proxy (and an optional budgeted search over two source shapes), produce the full per-tensor specification of a target that differs in width, depth, training length and optimiser. Three things make this hard.
The exponents are regime-dependent. muP's width exponent for Adam rests on an assumption about the gradient's structure, and horizon exponents fitted in one regime need not hold in another. A rule that hard-codes one exponent per axis is right only where its assumption is.
Axes interact through the weight decay. With decoupled weight decay the dynamics depend on the product of learning rate and decay, accumulated over the run. Change the learning rate or the number of steps, and the effective regularisation changes with it unless the decay is rescaled too.
The proxy and the target are not the same kind of network. A shallow proxy and a deep target with randomly initialised residual branches start in different places, so the proxy's optimum reflects an initial condition the target does not share.
Method
Our rule, NFIT (normal-form invariant transfer), is built from three parts: a normal form that proxy and target share, two invariants that are transferred exactly, and a run-time identification of the part of the learning-rate scaling that is not.
A shared normal form
Before anything is transferred, every model, proxy and target alike, is put into the same trainable form. The matrices that end a residual branch (the attention output and the MLP projection) are initialised to zero, so every network starts as a shallow identity map on the residual stream and deepens as the branches grow. The other hidden matrices are initialised with standard deviation . The schedule is warmup-stable-decay: a linear warmup over the first 0.05 of the run, a constant plateau, and a linear decay to zero over the last 0.2. The global gradient clip is 0.1 and Adam's is 0.99 on every non-norm tensor. None of these depends on scale, so they are applied identically at the proxy and the target. Our reasoning is that with random-init branches a deep target begins with depth-dependent noise in its residual stream that a shallow proxy does not have, so the proxy's tuned rate is tuned for a different starting point.
Two invariants
Write , , and for the target-to-proxy ratios of width, depth, training tokens and batch. The first invariant is the size of the per-step feature update. For a hidden matrix we transfer the learning rate as
with for AdamW (muP's exponent, which holds for a rank-one gradient whose Adam sign update has spectral norm of order ), for Muon (whose update is already orthogonalised, so its spectral norm does not grow with width), , and . Each residual branch's output is multiplied by , so with the branch is scaled down as and its learning rate carries no depth factor, the depth treatment of CompleteP [3]. Embeddings and the readout take with no width factor, the readout's forward multiplier is , and the per-layer norm gains take (the final norm takes ; no norm gain is decayed). Adam's on AdamW hidden tensors and per-layer gains is . Since the batch is never changed by this rule, and the batch term is inert. The horizon exponent is zero on purpose: our own measurements, below, contradicted the falling-with-horizon rule, so the horizon dependence is left to the identification step.
The second invariant is the weight-decay clock. Decoupled AdamW's trajectory depends on the product of learning rate and decay [7], so we hold fixed between proxy and target, where is the number of steps. With the same schedule shape at both ends the schedule integral cancels, and since ,
Note that here is the base rate before the correction , so a learning rate the identification raises is paired with a proportionally smaller decay, and the clock stays the proxy's.
def spec(self, hp):
s, b = self.shape, self.base
lr, wd = float(hp["lr"]), float(hp["wd"])
muon = s["optimizer"] == "muon"
B = self._batch(s, b)
v = _lratio(s, b, B)
th = self._theory_vec(s, b)
corr = tuple(float(hp.get(k, 0.0)) for k in ("cw", "cL", "cD", "cB"))
dc = sum(c * x for c, x in zip(corr, v))
dc = max(-1.5, min(1.5, dc))
f_corr = 2.0 ** dc
m, mL = s["width"] / b["width"], s["depth"] / b["depth"]
mD, mB = 2.0 ** v[2], 2.0 ** v[3]
lr_c = lr * f_corr
lr_h = lr_c * m ** th[0] * mL ** th[1] * mD ** th[2] * mB ** th[3]
lr_e = lr_c * mD ** th[2] * mB ** th[3]
lr_n = lr_c * mL ** th[1] * mD ** th[2] * mB ** th[3] # gains: no width factor (muP)
# decay clock: (lr_x*wd_x)*T_target == (lr*wd)*T_base. The schedule integral cancels
# because the same schedule shape is used at proxy and target; T_base/T_target = mB/mD.
t_ratio = mB / mD
wd_h = wd * (lr / lr_h) * t_ratio if lr_h > 0 else wd
wd_e = wd * (lr / lr_e) * t_ratio if lr_e > 0 else wd
eps_h = self.EPS / m * mL ** (-self.ALPHA)
eps_e = self.EPS / mFor Muon, each hidden matrix's rate is multiplied by and its decay divided by . Together with the optimiser's own this makes the update scale for every matrix, the scale a spectral condition on feature learning asks for, while leaving the product of rate and decay unchanged.
for name, kind, fi, fo in tensor_names(s):
if kind == "norm":
e = dict(init_std=0.0, mult=1.0, lr=(lr_e if name == "ln_f" else lr_n), wd=0.0,
eps=(eps_e if name == "ln_f" else eps_h))
elif kind in ("hidden", "hidden_out"):
mult = mL ** (-self.ALPHA) if kind == "hidden_out" else 1.0
if self.HID_INIT == "invsqrt":
std = 1.0 / math.sqrt(fi)
else:
std = self.INIT_STD / math.sqrt(m)
if kind == "hidden_out" and self.ZERO_HOUT:
std = 0.0
l, w = lr_h, wd_h
if muon:
if self.MUON_SHAPE == "spectral":
fac = math.sqrt(min(1.0, fo / fi))
elif self.MUON_SHAPE == "cancel":
fac = 1.0 / math.sqrt(max(1.0, fo / fi))
else:
fac = 1.0
l, w = lr_h * fac, wd_h / fac
e = dict(init_std=std, mult=mult, lr=l, wd=w, eps=(self.EPS if muon else eps_h))
elif kind == "readout":
e = dict(init_std=self.INIT_STD, mult=1.0 / m, lr=lr_e, wd=wd_e, eps=eps_e)
else:
e = dict(init_std=self.INIT_STD, mult=1.0, lr=lr_e, wd=wd_e, eps=eps_e)
if self.BETA2 is not None and kind != "norm":
e["beta2"] = self.BETA2
tensors[name] = eIdentifying the residual from two sources
The exponents above are a prior. The width exponent in particular rests on the gradient being rank-one, and mini-batch gradients are not; the horizon exponent we set to zero is a guess. Rather than fix them, we measure how wrong they are on the two source shapes the task supplies and extrapolate the correction.
The search spends its budget in rounds. The default grid is run on the base proxy; then the alternative weight decays at the best rate; then points half an octave either side of the best; then a quarter of an octave either side of a fitted optimum. Wherever a fitted optimum is used (in that round, in the last round and in the final selection), it is the vertex of a parabola fitted in to the points within two octaves of the best, and its standard error comes from the delta method on the fit,
with the residual variance of the fit. The vertex is clipped to the fitted window, and a fit with fewer than three points or non-positive curvature falls back to the best point. The last round places three runs on the larger source shape at the prior's predicted optimum and one octave either side of it (two runs at three quarters of an octave if only two fit the remaining budget; if fewer than two fit, the budget goes to further refinement on the proxy).
a, bb, cc = aug[0][3], aug[1][3], aug[2][3]
if a <= 0:
return best, None, None
xv = min(win[-1][0], max(win[0][0], -bb / (2.0 * a)))
resid = [y - (a * x * x + bb * x + cc) for x, y in win]
s2 = sum(r * r for r in resid) / max(1.0, n - 3.0)
ga, gb = bb / (2.0 * a * a), -1.0 / (2.0 * a)
var = s2 * (ga * ga * inv[0][0] + 2 * ga * gb * inv[0][1] + gb * gb * inv[1][1])
return xv, a, math.sqrt(max(var, 0.0)) if any(h["source"] == 1 for h in history) or len(sources) < 2 or costs[1] <= 0:
return []
b0 = self._opt(history, 0, bwd)
if b0 is None:
return []
v = _lratio(sources[1], sources[0])
th = self._theory_vec(sources[1], sources[0])
pred = b0 + sum(t * x for t, x in zip(th, v))
nfit = int(rem // costs[1])
if nfit < 2:
b3 = self._opt(history, 0, bwd)
if b3 is None:
return []
seen = {round(math.log2(h["hp"]["lr"]), 6) for h in s0}
for d in (0.125, -0.125, 0.375, -0.375):
if round(b3 + d, 6) not in seen:
return [{"lr": 2.0 ** (b3 + d), "wd": bwd}]
return []
offs = [-1.0, 0.0, 1.0] if nfit >= 3 else [-0.75, 0.75]
return [{"lr": 2.0 ** (pred + o), "wd": bwd, "source": 1.0} for o in offs]From the two fitted optima and and the log-ratio vector between the sources , the residual is the part of the measured shift the prior did not predict,
We shrink it toward zero in the manner of James and Stein, by how large it is against the uncertainty of the two vertices,
with when a fit gives no standard error, and project it onto the direction in which the sources actually differ: . At a target with log-ratios the correction is octaves, so the rule extrapolates the shrunk residual linearly in log scale and never moves the learning rate by more than a factor either way. The identification is applied to AdamW only. For Muon the selection returns the proxy optimum with a zero correction, and the prior carries the transfer alone.
def select(self, history):
s0 = [h for h in history if h["source"] == 0 and not h["diverged"]]
if not s0:
s0 = [h for h in history if not h["diverged"]] or history
best = min(s0, key=lambda h: h["select_loss"])
bwd = best["hp"]["wd"]
b0 = self._opt(history, 0, bwd)
if b0 is None:
b0 = math.log2(best["hp"]["lr"])
out = {"lr": 2.0 ** b0, "wd": bwd, "cw": 0.0, "cL": 0.0, "cD": 0.0, "cB": 0.0}
sources = list(getattr(self, "sources", [self.base, self.base]))
s1 = [h for h in history if h["source"] == 1 and not h["diverged"]]
# Muon's update is already spectral-normalised, so its width/depth scaling is exact and the
# residual identification only adds noise (and overshoots on deep targets); apply it to AdamW.
if self.base.get("optimizer") == "muon":
s1 = []
if len(s1) >= 2 and len(sources) >= 2:
v = _lratio(sources[1], sources[0])
nv = sum(x * x for x in v)
if nv > 1e-6:
th = self._theory_vec(sources[1], sources[0])
p1 = [(math.log2(h["hp"]["lr"]), h["select_loss"]) for h in s1 if h["hp"]["wd"] == bwd]
b1, a1, sd1 = self._fit(p1)
p0 = [(math.log2(h["hp"]["lr"]), h["select_loss"]) for h in s0 if h["hp"]["wd"] == bwd]
_, a0, sd0 = self._fit(p0)
if b1 is not None:
delta = (b1 - b0) - sum(t * x for t, x in zip(th, v))
sig2 = (sd0 if sd0 is not None else 0.15) ** 2 + (sd1 if sd1 is not None else 0.15) ** 2
js = delta * delta / (delta * delta + sig2 + 1e-12)
shrink = self.SHRINK * js * nv / (nv + 0.05)
c = [max(-self.CLAMP, min(self.CLAMP, shrink * delta * x / nv)) for x in v]
out.update(cw=c[0], cL=c[1], cD=c[2], cB=c[3])Results
| Method | ① | ③ | ② | |||
|---|---|---|---|---|---|---|
| Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | |
| Qwen4-Max | 6.061 | 5.187 | 3.970 | 4.073 | 3.835 | 3.930 |
| µP | 6.174 | 5.913 | 4.151 | 4.164 | 4.020 | 3.977 |
| CompleteP | 5.487 | 5.342 | 4.136 | 4.170 | 4.048 | 4.028 |
| Depth-µP | 5.714 | 5.486 | 4.151 | 4.179 | 3.971 | 3.989 |
| Complete(d)P, as published | 5.483 | 5.342 | 3.980 | 4.105 | 4.043 | 4.027 |
| Wang et al. | 6.323 | 6.006 | 4.011 | 4.121 | 3.974 | 3.987 |
| Power Lines | 6.289 | 5.856 | 3.955 | 4.080 | 3.877 | 3.926 |
| Bjorck et al. | 6.323 | 5.909 | 4.065 | 4.147 | 4.004 | 3.972 |
| Muon RMS matching | 6.532 | 5.935 | 4.071 | 4.113 | 3.944 | 3.888 |
| µP for Muon | 5.820 | 5.770 | 4.134 | 4.265 | 3.792 | 3.878 |
| u-µP | 5.684 | 5.646 | 4.104 | 4.149 | 4.781 | 4.436 |
| Step Law | 6.421 | 6.024 | 4.020 | 4.112 | 4.734 | 4.362 |
| Linear decay to zero | 5.973 | 5.794 | 4.041 | 4.127 | 3.886 | 3.922 |
| Hyperball | 6.379 | 5.396 | 4.015 | 4.101 | 3.816 | 3.905 |
| Complete(d)P, per-module search | 5.496 | 5.348 | 3.984 | 4.115 | 3.968 | 3.964 |
| Complete(d)P | 5.430 | 5.307 | 4.000 | 4.150 | 3.918 | 3.957 |
| Complete(d)P, batch warmup | 5.516 | 5.366 | 4.028 | 4.144 | 4.048 | 4.029 |
| DeepSeek LLM | 6.148 | 5.546 | 4.083 | 4.091 | 3.779 | 3.873 |
- ① GPT on FineWeb, sources 4 and 8 layers -> targets 32 and 128 layers
- ③ GPT on FineWeb, sources 250M and 500M -> targets 1B and 4B training tokens
- ② GPT on FineWeb with Muon, sources width 256 and 512 -> targets width 1024 and 2048
The ranking is very different at the midpoint and at the end, and it differs by setting.
At the midpoint NFIT has a lower loss than every published baseline on Depth (5.187, against 5.307 for Fitted-law LR [8]) and on Horizon (4.073, against 4.080 for Power Lines [8]). On Muon-width it is seventh, behind Fitted LR scaling law [6] (3.873) and five other baselines, at 3.930.
At the end of training the picture is weaker. On Horizon NFIT is second, at 3.970 against 3.955 for Power Lines [8], and ahead of every other baseline, including Complete(d)P at 3.980. On Muon-width it is fourth, at 3.835, behind Fitted LR scaling law [6] (3.779), muP for Muon (3.792) and Hyperball (3.816), and ahead of muP (4.020) and CompleteP (4.048).
On Depth NFIT loses most of its midpoint lead. Its final loss of 6.061 is behind nine of the seventeen published baselines; the best, Fitted-law LR [8], reaches 5.430, and CompleteP reaches 5.487. NFIT is still ahead of muP (6.174). On this setting every published baseline, like NFIT, ends with a higher loss than it had at the midpoint, so the second half of training is hard for all of them, but our rise, from 5.187 to 6.061, is larger than any baseline's except Hyperball's (5.396 to 6.379). We do not know the cause. One candidate is our own normal form: under warmup-stable-decay the learning rate stays at its peak until the last fifth of the run, and if the identification has raised that peak, a long high plateau is exactly where a late instability would build up. Our notes on the baselines record that Hyperball also uses a warmup-stable-decay schedule, which is consistent with this, but we have no measurement that isolates it.
How we got here
We did not start from the final rule; most of its parts were decided by measurements in our own reimplementation of the training harness, and several ideas were tried and dropped. All figures in this section are our development measurements, mostly single runs at shapes we chose, and lower is better.
- The structure was there from the first draft. Our first candidate already combined a spectral-condition learning rate meant to cover AdamW and Muon with one formula, the decay clock from Wang and Aitchison [7] (then still including the integral of the schedule), and a run-time calibration from the two source shapes. The spectral condition came from a paper on feature learning that our literature search read, which is not among this task's references.
- The horizon exponent went the wrong way. At a run several times longer than our development proxy, the horizon-dependent rules did worse: Bjorck et al.'s horizon rule reached 4.3638, Power Lines 4.4813 and Complete(d)P 4.9454, against 4.1155 for muP, which does not change the rate. With the decay held fixed, the optimum rate rose with the horizon. Scaling the decay by the clock did not undo this (4.1306 at the base rate, 4.0570 at twice it). We concluded that the falling-with-horizon exponent belongs to a different regime and set , leaving the horizon to the identification.
- Structural probes picked the normal form. On our development proxy, a warmup-stable-decay schedule and zero-initialised branch outputs were the two largest gains we found over the starter (about 0.23 and 0.13 in loss, by our notes). We also tried per-tensor update- and weight-norm constraints, a different attention scale, a different embedding initialisation, and linear decay to zero; none beat the combination we kept. At our first larger development target the warmup-stable-decay schedule was worth 4.622 against 4.913 for cosine decay, and the initialisation 4.622 against 4.810 for muP's. Zero-initialisation made no difference there (4.6217 without it), and the tighter clip was slightly worse there (4.601 with the default clip), so both are justified by our development proxy, not the target.
- The depth treatment is CompleteP's, and we checked the alternatives. At the same target, with no depth factor on the learning rate gave 4.6220; gave 5.0268, gave 4.664, gave 4.715, and with the learning rate also scaled as gave 5.0457.
- The width exponent went back and forth. On a short, width-only target muP's exponent won (5.9295 against 5.9988 for ), but on the deeper and longer target a width-free rate was much better (4.4422 against 4.6220), and it was not an artefact of zero-initialisation (4.4402 without it). We tried , then , and then found the underlying effect was larger and not about width: scaling all learning rates up at that target helped monotonically up to six times (4.622 at one times, 4.195 at three, 4.092 at six). A three-times boost hurt a short, width-only target (5.929 to 6.489) and helped a long, narrow one (5.117 to 4.883), so the boost is driven by training length. A later reading of the literature (a work not among this task's references) reported a similar rise of the optimal rate when the weight decay is scaled with muP.
- The identification is what captures the boost. Running the whole search-and-transfer pipeline at our first development target, the rule with muP's width prior and the identification reached 4.079 to 4.094, against 4.231 to 4.237 with the identification switched off; with a width-free prior the identification barely mattered (4.200 with it, 4.179 without). So we went back to as the prior and let the identification find the correction. Widening the larger source's three runs from three quarters of an octave to a full octave either side gave 4.0668 against 4.079 to 4.094; the larger source's loss had still been falling at the top of the narrower grid.
- A square-root decay rule was tried and reverted. Because a very short proxy cannot identify its own best decay (its loss was nearly flat in the decay), we tried letting the clock grow with the square root of the horizon, in the spirit of Complete(d)P [11]; at a deeper, longer target our rule without the identification had just lost to CompleteP (3.7365 against 3.6583). The square-root rule was neutral at our first target (4.0666 against 4.0668), and at a deeper, longer target the full AdamW rule with the plain clock reached 3.4534 against 3.6583 for CompleteP, so we kept the plain clock.
- Identification for Muon was switched off after one bad run. At that deeper target the full Muon rule with the identification reached 5.2709. The larger source's loss had still been falling at the top of its grid, so the fitted vertex was unreliable and the correction overshot. We restricted the identification to AdamW. The final rule then reproduced our earlier results at the first target (4.0668 for AdamW, 3.8604 for Muon), but we did not re-run Muon at the deeper target without the identification before submitting.
Limitations
- On Depth the final loss is behind nine published baselines, after NFIT led every published baseline at the midpoint. Whatever our rule gains early is lost in the second half there, and our development runs, in which NFIT beat CompleteP by a wide margin at the end of training, did not predict this. It suggests that our development targets were not representative.
- On Muon-width three baselines are ahead at the end of training and six at the midpoint, so there NFIT has no lead at either point.
- The Muon branch runs on the prior alone. The identification was switched off for Muon after a single bad development run, and the Muon rule without it was never checked at our deeper development target.
- The identification cannot tell the axes apart. The two source shapes differ along several axes at once, and the residual is projected onto that single direction, so a shift caused by training length is attributed in proportion to the width and depth ratios too. Our own probes say the boost is driven by training length, yet the rule extrapolates it along every axis the sources differ in. The clamp at 1.5 octaves bounds the damage but does not fix the attribution.
- The rule changes the recipe as well as the transfer. The warmup-stable-decay schedule, the zero-initialised branches, the clip of 0.1 and change how every model trains, not only how hyperparameters are carried across. Part of any gain over the baselines may come from that recipe rather than from the transfer, and we have no evaluation that separates the two.
- Many constants are set by hand. The shrinkage factor 0.85, the 0.05 in the shrinkage denominator, the default vertex uncertainty 0.15, the clamps at 0.5 per axis and 1.5 overall, and the search's octave offsets were chosen by judgement or by a handful of single-run development measurements, some of which differ by less than run-to-run noise.
- The decay clock transfers the proxy's decay, which the proxy barely determines. Our proxy's loss was nearly flat in the weight decay, so the decay that the clock preserves is weakly identified, and a long target inherits that uncertainty.
- The batch axis is unused. The rule never changes the batch size, so the batch term of the prior is inert.
References
- Greg Yang, Edward J. Hu, Igor Babuschkin et al. (2021). Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer. NeurIPS.
- Greg Yang, Dingli Yu, Chen Zhu et al. (2024). Tensor Programs VI: Feature Learning in Infinite-Depth Neural Networks. ICLR.
- Nolan Dey, Bin Claire Zhang, Lorenzo Noci et al. (2025). Don't be lazy: CompleteP enables compute-efficient deep transformers. NeurIPS.
- Johan Bjorck, Alon Benhaim, Vishrav Chaudhary et al. (2025). Scaling Optimal LR Across Token Horizons. ICLR.
- Houyi Li, Wenzhen Zheng, Qiufeng Wang et al. (2025). Predictable Scale: Part I, Step Law -- Optimal Hyperparameter Scaling Law in Large Language Model Pretraining.
- DeepSeek-AI, Xiao Bi, Deli Chen et al. (2024). DeepSeek LLM: Scaling Open-Source Language Models with Longtermism.
- Xi Wang, Laurence Aitchison (2025). How to set AdamW's weight decay as you scale model and dataset size. ICML.
- Shane Bergsma, Nolan Dey, Gurpreet Gosal et al. (2025). Power Lines: Scaling Laws for Weight Decay and Batch Size in LLM Pre-training. NeurIPS.
- Jingyuan Liu, Jianlin Su, Xingcheng Yao et al. (2025). Muon is Scalable for LLM Training.
- Shikai Qiu, Zixi Chen, Hoang Phan et al. (2025). Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scales. NeurIPS.
- Bruno Mlodozeniec, Pierre Ablin, Louis Béthune et al. (2026). Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration. ICLR.
- Charlie Blake, Constantin Eichenberg, Josef Dean et al. (2025). u-μP: The Unit-Scaled Maximal Update Parametrization. ICLR.
- Shane Bergsma, Nolan Dey, Gurpreet Gosal et al. (2025). Straight to Zero: Why Linearly Decaying the Learning Rate to Zero Works Best for LLMs. ICLR.
- Kaiyue Wen, Xingyu Dang, Kaifeng Lyu et al. (2026). Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization.
- William Merrill, Shane Arora, Dirk Groeneveld et al. (2025). Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training. NeurIPS.