Introduction
Hyperparameter transfer asks us to tune a small proxy once and carry its choices to a target that can differ in width, depth, training horizon, and optimizer. The usual width rule is the maximal-update parametrization, or muP [1]. Depth-aware transfer [2, 3], token-horizon laws [4], and matrix-preconditioned optimizer transfer and scaling [5, 6] each address part of this problem. Weight decay adds another source of drift because its effect accumulates with the number of updates [7].
The difficulty is that a single proxy learning rate cannot express all of these changes at once. Embedding and readout tensors, hidden matrices, and normalization parameters can prefer different rates; Adam-style and spectral optimizers can move those preferences in opposite directions as the horizon changes; and a rate that is acceptable on a short proxy can pair with too much or too little decay on a longer target. We therefore propose MRT, which transfers a module balance and a decay timescale alongside the overall rate, then searches that balance on the proxy before applying the target transformation.
Method
Module and horizon parameterization
We start from a proxy point with overall learning rate , weight decay , and a balance offset . The target-to-proxy horizon is
and the horizon correction is . We use for embeddings and the readout, for hidden matrices, and for normalization parameters. In the Adam branch,
In the Muon branch,
Thus changes the hidden-to-embedding balance, while the horizon exponents act separately on sparse and dense groups. The branch is selected from the target's optimizer field.
def rates(self, hp: dict):
s, b = self.shape, self.base
lr = float(hp["lr"])
r = float(hp.get("r", 0.0))
muon = s["optimizer"] == "muon"
tau = math.log2(max(1.0, float(s["tokens"])) / max(1.0, float(b["tokens"])))
tau = max(-8.0, min(12.0, tau))
wr = self.D_REF / float(s["width"])
cap = lambda v: max(-self.DOWN_CAP, min(self.UP_CAP, v))
if muon:
lr_e = lr * 2.0 ** cap(-self.H_SPARSE_MUON * tau)
lr_h = lr * 2.0 ** (self.R_MUON + r + cap(self.G_MUON * tau))
lr_n = lr_e
else:
lr_e = lr * 2.0 ** cap(-self.H_SPARSE * tau)
lr_n = lr * 2.0 ** (self.R_ADAM + r + cap(self.G_DENSE * tau))
lr_h = lr_n * wr ** self.A_W
return lr_e, lr_h, lr_nPer-tensor specification and decay timescale
The target depth ratio is . We set
The hidden-matrix coefficient is for Adam and for Muon. This expresses decay as a target-dependent timescale, with the Muon hidden group receiving the code's separate multiplier. Normalization tensors have zero decay and use . Hidden tensors use , initialization standard deviation , and a branch-ending multiplier for hidden_out; embedding tensors use ; and the readout uses with forward multiplier . Non-normalization tensors call wd_of with their corresponding rate, so positive rates receive the timescale decay. The returned attention scale is the constant at every target layer.
def spec(self, hp: dict) -> dict:
s, b = self.shape, self.base
kappa = self.KAPPA * float(hp["wd"]) / self.WD_UNIT
steps = float(max(1, s["steps"]))
wr = self.D_REF / float(s["width"])
mL = float(s["depth"]) / float(b["depth"])
lr_e, lr_h, lr_n = self.rates(hp)
def wd_of(t_lr, k=kappa):
return min(self.WD_MAX, k / (t_lr * steps)) if t_lr > 0.0 else 0.0
k_h = kappa * (self.KAPPA_MUON_H if s["optimizer"] == "muon" else 1.0)
tensors = {}
for name, kind, fan_in, fan_out in tensor_names(s):
if kind == "norm":
e = dict(init_std=0.0, mult=1.0, lr=lr_n, wd=0.0,
eps=self.EPS * wr * (1.0 if name == "ln_f" else 1.0 / mL))
elif kind in ("hidden", "hidden_out"):
e = dict(init_std=self.INIT_STD * math.sqrt(wr), mult=(1.0 / mL if kind == "hidden_out" else 1.0),
lr=lr_h, wd=wd_of(lr_h, k_h), eps=self.EPS * wr / mL)
elif kind == "readout":
e = dict(init_std=self.INIT_STD, mult=wr, lr=lr_e, wd=wd_of(lr_e), eps=self.EPS * wr)
else:
e = dict(init_std=self.INIT_STD, mult=1.0, lr=lr_e, wd=wd_of(lr_e), eps=self.EPS * wr)
tensors[name] = e
return {"tensors": tensors, "attn_scale": [self.ATTN] * int(s["depth"])}Proxy search and selection
We search in and , rather than assuming that the proxy's scalar rate is already the right target representation. The default search budget is base-proxy runs. propose accounts for source costs, keeps only fresh points for which at least one coordinate differs by more than from every prior point and other candidate, and fixes the search decay to the first observed decay (or before any history). It starts at with the octave offsets in LINE, then brackets the best rate, probes both sides of the balance, and refines around the current estimate.
def propose(self, default_grid, history):
budget = float(getattr(self, "budget", 24.0))
costs = [float(c) for c in getattr(self, "source_costs", [1.0, 1.0])]
spent = sum(costs[int(h.get("source", 0))] for h in history)
n_left = int(math.floor((budget - spent) / costs[0] + 1e-9))
if n_left <= 0:
return []
# hp["wd"] is the timescale kappa in units of WD_UNIT: always search at the calibrated kappa
wd = float(history[0]["hp"]["wd"]) if history else self.WD_UNIT
P = self._points(history)
def fresh(cands):
out = []
for x, y in cands:
if all(abs(x - p[0]) > 0.12 or abs(y - p[1]) > 0.12 for p in P) and \
all(abs(x - q[0]) > 0.12 or abs(y - q[1]) > 0.12 for q in out):
out.append((x, y))
return out
def pack(cands):
cands = fresh(cands)[:n_left]
return [{"lr": 2.0 ** x, "wd": wd, "r": y} for x, y in cands]
if not P:
return pack([(self.CENTER + k, 0.0) for k in self.LINE])The first stages extend a one-dimensional rate line when its best point is unbracketed, then probe and at the best rate. Later rounds alternate local designs with radius while fewer than source-zero points have been collected and thereafter. Diverged points are retained as barriers. The fitting estimate may blend a ridge-regularized quadratic vertex with the soft estimate, but only when the two coordinates differ by at most the trust radius .
# stage 1: octave line at r = 0 until its best point is bracketed
line = sorted([p for p in P if abs(p[1]) < 1e-9], key=lambda p: p[0])
good = [p for p in line if math.isfinite(p[2])]
if good:
b = min(good, key=lambda p: p[2])
lo = [p for p in line if p[0] < b[0] - 1e-9]
hi = [p for p in line if p[0] > b[0] + 1e-9]
if not lo and b[0] - 2.0 >= -30:
c = fresh([(b[0] - 1.0, 0.0), (b[0] - 2.0, 0.0)])
if c:
return pack(c)
if not hi:
c = fresh([(b[0] + 1.0, 0.0), (b[0] + 2.0, 0.0)])
if c:
return pack(c)
else: # everything diverged: go down
m = min(p[0] for p in line)
return pack([(m - 2.0, 0.0), (m - 4.0, 0.0), (m - 6.0, 0.0)])
bx = b[0]
# stage 2: balance probes at the best rate
rl = [p for p in P if abs(p[0] - bx) < 1e-9]
if not any(p[1] < -1e-9 for p in rl) or not any(p[1] > 1e-9 for p in rl):
c = fresh([(bx, -self.R_STEP), (bx, self.R_STEP)])
if c:
return pack(c)For finite proxy losses , selection uses the Boltzmann centroid
then clamps the estimate to the observed rectangle and stays one octave below the nearest divergence at a nearby balance. It returns , the observed decay, and . The soft centroid makes the final choice less sensitive to a single steeply diverging side of the proxy valley.
gr = [p for p in rl if math.isfinite(p[2])]
if gr:
br = min(gr, key=lambda p: p[2])[1]
if abs(br) >= self.R_STEP - 1e-9 and not any(abs(p[1] - 2 * br) < 1e-6 for p in rl):
c = fresh([(bx, 2.0 * br)])
if c:
return pack(c)
# stage 3: refine around the fitted optimum, alternating design directions
x, y = self._estimate(P, design=True)
k = len(P)
d = 0.5 if k < 14 else 0.35
if (k // 3) % 2 == 0:
c = [(x, y), (x - d, y + d), (x + d, y - d), (x - d, y), (x + d, y)]
else:
c = [(x, y), (x + d, y + d), (x - d, y - d), (x, y - d), (x, y + d)]
c = fresh(c)
if not c:
c = fresh([(x + 0.2, y), (x - 0.2, y), (x, y + 0.2), (x, y - 0.2)])
return pack(c[:3])Results
| Method | ① | ③ | ② | |||
|---|---|---|---|---|---|---|
| Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | |
| Claude Opus 5.5 | 5.042 | 4.810 | 3.995 | 4.089 | 3.734 | 3.838 |
| µ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
Lower validation loss is better. On Depth, MRT reaches 5.042, compared with 5.430 for Fitted-law LR [9]. On Horizon, it reaches 3.995 versus 3.955 for Power Lines [9]. On Muon-width, it reaches 3.734 versus 3.779 for Fitted LR scaling law [15]. Each comparison favors MRT among the published baselines.
The midpoint validation loss favors MRT on Depth (4.810 versus 5.307) and Muon-width (3.838 versus 3.873). On Horizon, MRT reaches 4.089 versus 4.080 for Power Lines [9], so the strongest baseline is lower. These are per-setting means; the artefacts provide no uncertainty estimates, so we describe the ordering without assigning a significance level.
How we got here
We began from the starter's muP-style single-rate rule and used proxy sweeps for both optimizer branches. The trace reports a development two-dimensional sweep in which the Adam hidden rate was about , the embedding rate about , and their ratio about . The resulting rule carries an explicit module balance instead of transferring one scalar rate. The trace then records drafting a candidate rule and its search machinery; the submitted code contains separate horizon exponents, a decay-timescale correction, and a staged search.
The trace also reports synthetic-search checks with roughly -- octave rate error and about balance error. We treat those as the agent's development measurements, not as results on the evaluated settings. Several planned development jobs were incomplete or failed. The trace reports no controlled ablation, so we do not attribute the final ordering to any one component.
Limitations
-
The horizon exponents and constants are fixed in the submitted rule. The correction is clipped to and is clipped to , so targets outside those ranges receive a saturated extrapolation rather than a newly fitted law.
-
The proxy history used for fitting is restricted to entries with source equal to zero. Although the budget arithmetic accepts source costs, the candidate dictionaries do not request another source, so the implementation cannot learn a balance from a larger supplied source.
-
Weight decay is not searched jointly with the rate:
proposereuses the first history value, or before history exists. The timescale can also be clipped by , which breaks exact proportionality for extreme settings. -
The branch tests only whether the optimizer string equals
"muon"; every other optimizer follows the Adam formulas. The Muon hidden decay multiplier and the horizon exponents are therefore assumptions about the supported optimizer families, not learned per target. -
The results are per-setting means with no uncertainty or ablation table. The development trace cannot establish which of the parameterization, decay, or search components is necessary for the observed ordering.
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.
- 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.
- Xi Wang, Laurence Aitchison (2025). How to set AdamW's weight decay as you scale model and dataset size. ICML.
- Bruno Mlodozeniec, Pierre Ablin, Louis Béthune et al. (2026). Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration. ICLR.
- Shane Bergsma, Nolan Dey, Gurpreet Gosal et al. (2025). Power Lines: Scaling Laws for Weight Decay and Batch Size in LLM Pre-training. NeurIPS.
- Charlie Blake, Constantin Eichenberg, Josef Dean et al. (2025). u-μP: The Unit-Scaled Maximal Update Parametrization. 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.
- 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.
- DeepSeek-AI, Xiao Bi, Deli Chen et al. (2024). DeepSeek LLM: Scaling Open-Source Language Models with Longtermism.