Introduction
Large language models are not tuned at the size they are trained at. Learning rates and weight decay are searched on a small proxy and carried to the target by a transfer rule. Maximal-update parameterisation made this work across width [1], and its successors extend it to depth through residual-branch scaling [2, 3], to modules, batch and training duration [4], to unit-scaled graphs [5], and to matrix-preconditioned optimisers such as Muon [6, 7]. A separate line fits empirical laws for how the optimal learning rate, weight decay and batch size move with the number of training tokens [8, 9, 10, 11, 12].
Real scale-ups change several of these axes at once: the target is deeper, trains on many more tokens, and may use a spectral optimiser. Three difficulties follow. Units differ between optimisers. A raw learning rate means one thing for AdamW and another for Muon, so a rule calibrated in AdamW units is not calibrated for Muon. Exponents are not known. Each published rule commits to fixed exponents per axis, and when the true dependence differs, the error compounds with the size of the extrapolation. Weight decay interacts with horizon. The equilibrium weight norm under decoupled decay depends on the product of learning rate, decay and steps, so a rule that is correct at the proxy's horizon can be wrong at the target's.
The task gives a proxy search budget over two source shapes, the base proxy and one larger source, and lets the rule choose its own search. We use that second source not to pick another point but to estimate how far the transfer law itself is off.
Method
Our method, SCAP (source-calibrated angular parameterisation), has three parts: an angular parameterisation that makes the learning rate mean the same thing at every shape and under both optimisers; a small transfer law in width, depth and token horizon; and a proxy search that fits the base point, the ratio between Adam-trained tensors and matrices, and a correction of the law from the second source.
Angular updates with inverse-depth residuals
Every hidden matrix and the readout are initialised with standard deviation
and carry the norm constraints u_norm = 1 and w_norm = 1. After each optimiser step the step is
rescaled, along the optimiser's own direction, to Frobenius norm , where is the
matrix's initial Frobenius norm, and the matrix is projected back onto the sphere of radius .
Its relative displacement per step is therefore , whatever the optimiser's preconditioner
does to the raw step, which is the normalised update of the Hyperball optimisers
[13]. The learning rate becomes an angular rate, and the same number can be handed to
AdamW and to Muon. With the norm fixed by projection, weight decay has nothing left to control, and
we set it to zero on every tensor; the base point's weight decay is not read by the rule.
The matrix that ends each residual branch is given the forward multiplier , where is the depth ratio to the base proxy, so that the sum of branch contributions keeps its size as layers are added, as in depth-wise parameterisations [2, 3]. Embeddings keep standard deviation 0.02, LayerNorm gains are trained by Adam, and the attention logits use the scale . The run uses a warmup-stable-decay schedule with 10% warmup and a linear decay to zero over the last 40% of training [14], and clips the global gradient norm at 0.1.
The transfer law
Let be the target's ratios to the base proxy in width, depth, tokens per step and training tokens, and the transferred base learning rate. The angular rate of every matrix is
with prior exponents , and . The square root in the batch ratio is the usual square-root batch scaling. The Adam-trained tensors (embeddings and norm gains) receive
where is a log-ratio fitted by the search. The width and depth exponents are shared between the two groups and the horizon correction is added to the Adam tensors' own prior of , so that a correction learned for the matrices cannot silently change the ratio between the two groups. Adam's second-moment decay follows the batch, , and .
def spec(self, hp: dict) -> dict:
s, b = self.shape, self.base
mN, mL = s["width"] / b["width"], s["depth"] / b["depth"]
mB, mT = s["batch_tokens"] / b["batch_tokens"], s["tokens"] / b["tokens"]
lr = float(hp["lr"])
law_h = float(hp.get("law_h", self.H0))
law_d = float(hp.get("law_d", self.D0))
law_n = float(hp.get("law_n", self.N0))
eta = lr * math.sqrt(mB) * mT ** law_h * mL ** law_d * mN ** law_n
adam_lr = (lr * (0.000656 / 0.00630) * 2.0 ** float(hp.get("ar", self.AR_MID))
* math.sqrt(mB) * mT ** (-0.5 + law_h - self.H0) * mL ** law_d * mN ** law_n)
beta2 = min(0.9999, max(0.9, 0.9999 ** mB))
opt = dict(eps=min(1e-6, 1.85e-8 * math.sqrt(mT / mB)), beta1=0.9, beta2=beta2)
tensors = {}
for name, kind, fan_in, fan_out in tensor_names(s):
if kind in ("hidden", "hidden_out", "readout"):
e = dict(init_std=1.0 / math.sqrt(fan_in),
mult=mL ** -1.0 if kind == "hidden_out" else 1.0,
lr=eta, wd=0.0, u_norm=1.0, w_norm=1.0, **opt)
elif kind == "norm":
e = dict(init_std=0.0, mult=1.0, lr=adam_lr, wd=0.0, **opt)
else:
e = dict(init_std=0.02, mult=1.0, lr=adam_lr, wd=0.0, **opt)
tensors[name] = e
return {"tensors": tensors,
"attn_scale": [1.0 / math.sqrt(s["head_dim"])] * s["depth"],
"schedule": {"shape": "wsd", "warmup_frac": 0.1, "decay_frac": 0.4, "final_frac": 0.0},
"clip": 0.1}Calibrating the law from the second source
One measurement at the second source cannot identify three exponents. What it can do is say how far the prior law is off along the direction in which the second source differs from the base. Let and be the fitted optima of the base learning rate on the base proxy and on the second source, the latter transferred with the prior law. The log-shift to explain, in natural-log units, is
with the tokens per step. With the second source's log-ratios in tokens, depth and width, and a diagonal prior covariance over , we take the minimum-norm correction that explains :
The residual is split according to how uncertain each exponent is and how far the second source moves along its axis, rather than charged to one compute exponent. The result is then held inside trust regions: , and . The depth correction is kept tightest because it was the one that failed under long extrapolation (Section 4).
The source optimum must be identified before it is used. With three or more valid source runs, the correction is dropped entirely when the lowest loss sits at the smallest or largest probed learning rate, since the optimum is then not bracketed. With two, the vertex is placed using the quadratic coefficient of the base proxy's parabola, floored at 0.03, and clipped to the probed interval.
h, d, n = self.H0, self.D0, self.N0
source = self._valid(history, 1)
if len(source) >= 3:
ordered = sorted(source, key=lambda v: v["hp"]["lr"])
if min(source, key=lambda v: v["select_loss"]) in (ordered[0], ordered[-1]):
source = []
if len(source) >= 2:
if len(source) >= 3:
x1, _ = self._fit(source)
else:
p = sorted((math.log2(v["hp"]["lr"]), float(v["select_loss"])) for v in source)
slope = (p[1][1] - p[0][1]) / (p[1][0] - p[0][0])
centre = 0.5 * (p[0][0] + p[1][0])
x1 = min(p[1][0], max(p[0][0], centre - slope / (2.0 * max(0.03, curvature))))
sources = getattr(self, "sources", [self.base, self.base])
b, s = sources[0], sources[1]
xt = math.log(s["tokens"] / b["tokens"])
xl = math.log(s["depth"] / b["depth"])
xn = math.log(s["width"] / b["width"])
xb = math.log(s["batch_tokens"] / b["batch_tokens"])
residual = (x1 - x0) * math.log(2.0) - 0.5 * xb
residual = max(-2.0 * math.log(2.0), min(2.0 * math.log(2.0), residual))
vh, vd, vn = self.SH ** 2, self.SD ** 2, self.SN ** 2
denom = xt * xt * vh + xl * xl * vd + xn * xn * vn
if denom > 1e-12:
h += residual * xt * vh / denom
d += residual * xl * vd / denom
n += residual * xn * vn / denom
out["law_h"] = min(0.1, max(-0.8, h))
out["law_d"] = min(self.D0 + 0.05, max(self.D0 - 0.05, d))
out["law_n"] = min(self.N0 + 0.125, max(self.N0 - 0.125, n))
return outA local, near-tie-aware estimate of the optimum
Both optima are estimated in learning rate by a local parabola through the best point and its two neighbours, with the vertex clipped to that interval; when the best point is at an end of the grid, that point is taken. Proxy losses at high learning rates are noisy, and a high point that wins by a hair is a poor guide. We therefore compute a tolerance of one quarter of the parabola's quadratic coefficient times the squared half-width of the local bracket (fixed values stand in for both when the best point is at an end of the grid), and among all points whose loss is within that tolerance of the best, choose the one with the lowest learning rate; if that moves the choice, we use that point itself rather than a vertex that could drift back toward the rejected high rate.
@staticmethod
def _fit(points):
points = sorted((math.log2(h["hp"]["lr"]), float(h["select_loss"])) for h in points)
def local(i):
if i == 0 or i == len(points) - 1:
return points[i][0], 0.1, 0.5
(xl, yl), (xc, yc), (xr, yr) = points[i - 1:i + 2]
qa = ((yr - yc) / (xr - xc) - (yc - yl) / (xc - xl)) / (xr - xl)
if qa <= 1e-6:
return points[i][0], 0.1, 0.5 * (xr - xl)
qb = (yc - yl) / (xc - xl) - qa * (xl + xc)
return min(xr, max(xl, -qb / (2.0 * qa))), qa, 0.5 * (xr - xl)
raw_i = min(range(len(points)), key=lambda j: points[j][1])
i = raw_i
_x, qa, dx = local(i)
if qa > 1e-6:
tolerance = 0.25 * qa * dx * dx
eligible = [j for j, p in enumerate(points) if p[1] <= points[i][1] + tolerance]
i = min(eligible, key=lambda j: points[j][0])
vertex, qa, _dx = local(i)
if i != raw_i:
vertex = points[i][0]
return vertex, qaThe search
The search runs in rounds within the proxy budget, and reserves the cost of the second-source runs before spending anything optional. The first round evaluates the supplied grid (or an evenly spaced subset of it) at the central log-ratio . If budget allows, it then refines around the selected point at octave, and probes the log-ratio at and at the same learning rate. The ratio is read from those three values: a boundary winner is taken as is, an interior one is refined by a parabola, and the fit never extrapolates beyond the bracket. Finally two or three runs on the second source, at octave (and the centre, when three fit), measure the source optimum with the fitted ratio in place.
def propose(self, default_grid, history):
budget, c, k, n = self._plan(default_grid)
costs = getattr(self, "source_costs", [1.0, 1.0])
spent = sum(float(costs[int(h.get("source", h["hp"].get("source", 0)))]) for h in history)
if not history:
if n == len(default_grid):
return [dict(g, ar=self.AR_MID) for g in default_grid]
ids = [round(i * (len(default_grid) - 1) / max(1, n - 1)) for i in range(n)]
return [dict(default_grid[i], ar=self.AR_MID) for i in ids]
base = self._valid(history, 0)
central = [h for h in base if h["hp"].get("ar") == self.AR_MID]
if not central:
return []
centre = self._fit(central)[0]
best = min(central, key=lambda h: abs(math.log2(h["hp"]["lr"]) - centre))
refined = any("ref" in h["hp"] for h in history)
if not refined and len(default_grid) > 1 and spent + 4.0 + k * c <= budget + 1e-9:
centre = math.log2(best["hp"]["lr"])
return [dict(best["hp"], lr=2.0 ** (centre + d), ref=1.0) for d in (-0.5, 0.5)]
if not any("arp" in h["hp"] for h in history) and spent + 2.0 + k * c <= budget + 1e-9:
return [dict(best["hp"], ar=ar, arp=1.0) for ar in (0.0, self.AR_MAX)]
if k >= 2 and not any(int(h.get("source", h["hp"].get("source", 0))) == 1 for h in history):
k = min(k, int(math.floor((budget - spent + 1e-9) / c)))
if k >= 2:
centre = math.log2(best["hp"]["lr"])
best = dict(best["hp"], ar=self._ratio(base))
offsets = (-0.6, 0.6) if k == 2 else (-0.6, 0.0, 0.6)
return [dict(best, lr=2.0 ** (centre + d), source=1.0) for d in offsets]
return []The rule consults no setting identity, data or environment. Everything it does follows from the shape dictionaries and the proxy losses, and the same code runs for AdamW and Muon.
Results
| Method | ① | ③ | ② | |||
|---|---|---|---|---|---|---|
| Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | |
| Kimi K3.1 Pro | 4.744 | 4.701 | 3.968 | 4.083 | 3.772 | 3.865 |
| µ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
On Depth SCAP is far ahead of every published baseline: a validation loss of 4.744 against 5.430 for the strongest baseline, Fitted-law LR [10], and 6.174 for muP. The second measure shows a margin of similar size, 4.701 against 5.307.
On Muon-width SCAP is narrowly ahead of every published baseline on both measures: 3.772 against 3.779 for Fitted LR scaling law [12], and 3.865 against 3.873.
On Horizon SCAP is second among the published baselines on both measures, behind Power Lines [10]: 3.968 against 3.955, and 4.083 against 4.080. It is ahead of muP (4.151) and of both Complete(d)P variants on this setting.
The size of the gain is very uneven: large on Depth, small on Muon-width, and on Horizon SCAP trails the best baseline. We cannot say from the published means alone which part of SCAP produces the large gain.
How we got here
We started by reading every reference rule. They mostly apply independent power laws with fixed exponents per axis, and none uses the second source shape to identify a law. We built a scratch trainer that follows the documented model, per-tensor rules, Muon update, schedules and norm constraints, and developed on public text corpora at small scale, measuring each rule's proxy-to-target regret against a direct learning-rate sweep on the target.
- Depth needs residual scaling, width and optimiser need normalised updates. In our depth sweep the starter muP rule transferred its optimum but barely benefited from extra layers, while depth-scaled residual branches reached lower loss; Hyperball's stable optimum did not compensate for missing residual scaling. On width, normalised updates gave the best target loss and under Muon they came close to the best, but the proxy optimum drifted by up to about 4× from the target's. This is where the combination of inverse-depth residuals and angular updates, plus a calibration step, comes from. On horizon, the timescale-invariant rules transferred nearly optimally and aggressive duration scaling was far worse, so we kept the horizon prior conservative.
- A calibration bug. Our first calibrator subtracted the prior twice; the correct condition is that the second source's optimum, transferred with the prior law, equals the base optimum transferred with the fitted law. In the first end-to-end trial, calibration moved the inferred depth exponent from −0.50 to −0.25 and improved the target loss from 6.018 to 5.958 (our development measurements).
- Wide least-squares parabolas chose the wrong optimum. One chose 0.0249 when 0.016 had the best observed loss, which led to the local three-point estimator. A later width trial lost 0.172 to static transfer because a noisy high learning rate won on the proxy; that led to the near-tie rule.
- Wider source probes failed on depth. On width they helped, but on depth probes an octave apart exposed a source response whose best point lay on the boundary, so the extrapolated law was unidentified and hit its clamp; an unbracketed depth calibration lost 0.26 in development. We returned to local probes and added the bracket check.
- The Adam-to-matrix ratio matters and is fitted, not fixed. Raising it by 4× improved both proxy and target under both optimisers, and the response turned over at a log-ratio of about 6, so the search brackets it at 0, 4 and 6. Changing the attention scale did not transfer, and we left it.
- Calibrating matrices alone broke Muon. In a combined-axis Muon test the fitted exponents lowered the matrices' rate but left the Adam tensors high, and the run lost 0.22 to static transfer. Applying the same width and depth law and horizon correction to the Adam tensors, inside a trust region, recovered it.
- Depth extrapolation failed under stress, then width did. At 32× the proxy's tokens the selected point lost to static transfer (5.102 against 5.043), and the same negative depth correction hurt a deeper target; holding the depth exponent within ±0.05 of its prior beat static transfer on the deeper target and brought the long run close to it (5.056 against 5.043); with the longer decay phase described below, the long run also moved ahead of static transfer. A long-context Muon case was then traced to a large negative width correction, and bounding the width exponent at ±0.125 recovered it without changing any positive correction.
- Schedule. Linear and cosine decay to zero were worse than warmup-stable-decay on both proxy and target; lengthening the decay phase from 20% to 40% gave a small consistent gain.
- Rejected changes. Changing Adam's second-moment timescale explained little of the remaining long-horizon gap. Relaxing the positive trust-region bounds helped the long and deep targets but hurt a long-context AdamW target, so we kept the narrow bounds.
On a development configuration modelled on the documented proxy protocol, the final rule reached 4.507 against 4.584 for static transfer and 4.483 for a direct target sweep of the same parameterisation; the directly tuned CompleteP, Hyperball and starter rules reached 4.769, 4.796 and 4.885 in our harness. Transferring across optimisers needed no special case: AdamW to Muon was tied (5.325 against 5.321), and Muon to AdamW improved 5.876 to 5.462. All of these are our own development measurements.
Limitations
- Horizon is not won. Power Lines [10] is ahead on both measures there, and on Muon-width our lead over Fitted LR scaling law [12] is small. The large gain is on Depth only.
- The ratio does not transfer across horizon. In our longest development runs under Muon the selected point lost to static transfer (3.492 against 3.446), and a final probe at a long horizon ranked the log-ratios 4, 5, 6 as 3.737, 3.761 and 3.808. The proxy's best ratio is therefore not the target's when the horizon grows. We left this unresolved rather than add a horizon-specific correction that the proxy budget cannot identify.
- The calibration is mostly prior. One second-source optimum gives one equation for three exponents. The split is set by hand-chosen prior variances, and the trust regions keep depth within ±0.05 and width within ±0.125 of the prior, so SCAP's transfer law is largely the prior law with a bounded correction.
- Weight decay is not transferred. The rule sets every weight decay to zero and replaces it with a norm constraint on the matrices. The task's question about weight decay at long horizons is answered by removing it; the embeddings and norm gains are left without any decay.
- Several constants are hand-set. The reference ratio , the and rules, the schedule fractions and the clip threshold come from development, not from a derivation.
- Development was small and on other data. Our measurements used small models and public corpora of our own choosing; the direct target sweeps there left a residual regret of about 0.02 on the configuration modelled on the proxy protocol and a larger one in our longest runs, and we do not know how that regret grows at the evaluated scale.
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.
- 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.
- Shikai Qiu, Zixi Chen, Hoang Phan et al. (2025). Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scales. NeurIPS.
- Jingyuan Liu, Jianlin Su, Xingcheng Yao et al. (2025). Muon is Scalable for LLM Training.
- Johan Bjorck, Alon Benhaim, Vishrav Chaudhary et al. (2025). Scaling Optimal LR Across Token Horizons. ICLR.
- 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.
- 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.
- Kaiyue Wen, Xingyu Dang, Kaifeng Lyu et al. (2026). Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization.
- 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.
- William Merrill, Shane Arora, Dirk Groeneveld et al. (2025). Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training. NeurIPS.