Introduction
Large language models are not tuned at the size at which they are trained. Their learning rate and weight decay are tuned on a small proxy and transferred. muP [1] made that transfer exact along one axis: if every tensor's initialisation, multiplier and learning rate scales with width in the prescribed way, the optimum learning rate of a narrow model is the optimum of a wide one. Real scale-ups change more than width. Models get deeper, which depth parametrisations address [2, 3, 4]; they train on many more tokens, which moves the optimal learning rate [5, 6, 7] and makes weight decay matter [8, 9]; and they are trained with spectral optimisers such as Muon, whose updates are normalised differently from Adam's [10, 11].
What rule should map the hyperparameters tuned on a small proxy to a target that differs along these axes, so that the target trains as well as if it had been tuned itself? Three properties of the problem shape our answer.
One learning rate is not one quantity. A single global rate sets the speed of very different motions: the residual body changes features shared by every token, the input table learns one row per word and sees a rare word only now and then, and the readout calibrates logits over the whole vocabulary. These motions respond differently to width, to depth and to training length, so a rule that moves one number cannot keep all three in place.
Training length changes what each tensor remembers. With decoupled weight decay, a tensor's effective memory is set by the product of learning rate and decay summed over the run. A decay strength that was irrelevant on a short proxy can decide the outcome of a long target, and a decay of zero chosen on the proxy can be catastrophic there.
A proxy observes only part of the change. What can be measured cheaply is the optimum at the proxy and, at greater cost, at one larger source shape. The target differs from both, and the displacement of its optimum has to be predicted from what those two shapes reveal.
Method
We call our rule CDT (clock-and-dose transfer). It has two halves: a parametrisation that maps a small set of base coordinates to every tensor of any target shape, and a proxy search that chooses those coordinates.
Rates in functional units
The base point has four coordinates. With , a contrast ("mix") and a contrast ("tilt"), the log rates of the three functional units are
and the fourth coordinate is for a dimensionless decay strength . The base learning rate enters every tensor linearly, as the interface requires; and only redistribute it. Within each unit the width scaling follows muP: an AdamW hidden matrix steps with times its clock, the word table with , and the readout with , stored behind a forward multiplier . Under Muon a hidden matrix instead steps with , where the bridge with matches the RMS of a momentum-filtered Adam step to that of an orthogonalised one. Residual branches end in a matrix initialised at half the hidden scale and carrying a forward multiplier in an -layer model.
def shift(key, component):
value = projection * hp.get(key, 0.0) + hp.get("elastic", 0.0) * shape_direction[component]
return min(1.5, max(-1.5, value))
common = 2.0 ** shift("shift_lr", 0)
mix = hp.get("mix", 0.0) + shift("shift_mix", 1)
tilt = hp.get("tilt", 0.0) + shift("shift_tilt", 2)
body_factor, input_factor, output_factor = (
self._rate_factor(-mix),
self._rate_factor(0.5 * mix + tilt),
self._rate_factor(0.5 * mix - tilt),
)
residual_gain = 2.0 / layers
# Recurrence of a tail Zipf type, measured in actual optimizer steps.
tail_probability = 1.0 / (vocab * (math.log(vocab) + 0.5772156649))
coverage = 8.0
table_memory = max(20.0, coverage / (batch_tokens * tail_probability))
table_beta = min(0.99999, math.exp(-1.0 / table_memory))
momentum = 0.95
nesterov_power = (1 - momentum) ** 2 * (1 + momentum) ** 2 + momentum**4 * (1 - momentum) / (
1 + momentum
)
beta1 = 0.9
spectral_bridge = math.sqrt((1 - beta1) / (1 + beta1)) * w0**0.125Two choices concern the vocabulary tables. A rare word's row receives a gradient only when the word occurs, so the Adam second-moment estimate of a table row with the default forgets it between occurrences. Under a Zipf prior a tail word has probability , and we give both tables a second-moment memory long enough to cover eight of its arrivals,
where is the number of tokens per step; hidden matrices keep . The attention scale is for context length , instead of . Every shape trains with 16 sequences per step and a linear schedule with 3% warmup that decays to zero [12].
Horizon clocks
Every rate is multiplied by a clock that depends on how much longer the target trains than the proxy, relative to the size of the parameter group it moves:
with the training tokens of proxy and target, for the body and for the two tables. A group that is large compared with the data barely changes its rate; a small group trained far longer slows as the cube root of the horizon.
Query and key matrices get a second, slower clock. The two factors of an attention logit both grow with accumulated displacement, so the logit grows with the product of their motions, and the entropy of attention collapses when that product grows too far. We measure the displacement budget as
with sequences per step, the noise power of Nesterov momentum , and slow the query and key rates to
def gate_work(model):
# The two factors of an attention logit grow with accumulated
# displacement. A momentum-filtered update has longer correlation
# time than its instantaneous RMS suggests.
# Measure both horizons after converting to the target optimizer.
if muon:
energy = spectral_bridge**2 / (w0 * nesterov_power)
else:
energy = 1.0 / model["width"]
return 1.0 + model["tokens"] * energy / (3 * batch * model["seq_len"])
gate_clock = math.sqrt(gate_work(base) / gate_work(s))
def template(role, fan_in, fan_out):
is_table = role in ("wte", "readout")
size = table_size if is_table else body_size
clock = ((base_tokens + size) / (tokens + size)) ** (1.0 / 3)
if role == "query_key":
clock = min(clock, gate_clock)
factor = common * clockWeight decay as a dose
We transfer decay not as a coefficient but as a dose. For a tensor with step , natural radius ( for a hidden matrix, for the readout, 1 for the word table) and per-coordinate update variance , the number of steps a random walk needs to cover that radius under a linear schedule (mean square one third) is , and an evidence retention time for a group of parameters seeing tokens is . The run then contains memory times, and we set
so that the cumulative contraction over the steps of a linear schedule equals : the decay strength is a contraction per memory time. Positional embeddings and norm gains are not decayed. The word table gets an additional decay , where is the average over a Zipf vocabulary of and the expected number of training sequences in which a word of that rank appears: a row seen in contexts has gained that much log precision, and that is how much of its older update history it can discard.
decay = 0.0
if role not in ("wpe", "norm"):
eta = peak * factor
# A linear schedule has mean one half and mean square one third.
# The two terms measure allowed random-walk time and evidence retention.
diffusion = 3 * radius / (eta * eta * variance)
evidence = math.sqrt(tokens * size) / batch_tokens
exposure = tokens / (batch_tokens * (diffusion + evidence))
effect = strength
if s != base:
mix0 = hp.get("mix", 0.0)
tilt0 = hp.get("tilt", 0.0)
ni0 = max(1, int(round(fan_in * w0 / w)))
no0 = max(1, int(round(fan_out * w0 / w)))
anchor = self._prior_dose(
role,
ni0,
no0,
base,
w0,
peak,
self._rate_factor(-mix0),
self._rate_factor(0.5 * mix0 + tilt0),
self._rate_factor(0.5 * mix0 - tilt0),
)
effect = self._dose_transfer(anchor, exposure, strength)
decay = min(100.0, 2.0 * effect / (eta * (diffusion + evidence)))
if role == "wte":
retention = self._embedding_memory(vocab, w, tokens, context)
decay = min(100.0, decay + 2.0 * retention * batch_tokens / (tokens * peak * factor))The strength itself is carried between horizons. When the target contains more memory times than the proxy did (, with computed at the proxy shape), we move it toward one,
and otherwise keep . A code comment motivates this as conditioning an accumulating mismatch on the one measured at the source. Its practical effect is that a proxy optimum of , which a short proxy may well select because decay barely affects it, becomes a positive strength at a long target.
@staticmethod
def _dose_transfer(source, target, strength):
if target <= source or strength == 1.0:
return strength
# The mismatch in negative log survival accumulates with the natural
# regularization clock. It has an uncertain persistent rate and
# independent innovations per e-fold. Conditioning this process on
# the measured source mismatch gives the transfer coefficient below.
coefficient = (source + source / target) / (1.0 + source)
return 1.0 + (strength - 1.0) * coefficientSearching two sources and extrapolating the displacement
The search uses at most 12 base-equivalent runs, plus one optional base run described below. It first measures three base-proxy points on the common rate at and octaves around it, and fits a parabola through them. Around that line centre a tetrahedral simplex at in and in measures the three remaining slopes in four runs. When the larger source differs enough from the base proxy and the budget allows, two to four larger-source runs are placed along the directions that most reduce the expected target loss per noisy source contrast, found as generalised eigenvectors of a predicted-signal and a noise matrix. When the first three losses bracket a minimum, a shorter base design and, if both the modelled time and the cost cap allow, one extra base observation chosen to resolve the remaining ambiguity may replace the standard design.
anchor = -math.log2(self.base["width"])
first = [self._point((anchor + q, 0.0, 0.0, 1.0)) for q in (0.0, -1.5, 1.5)]
todo = missing(first)
if todo:
return todo
initial = collect(first)
if not initial:
return []
lr = self._line_center(initial)
var = 0.0
n1 = 0
if len(costs) > 1 and len(src) > 1:
var = sum(
(x * s) ** 2
for x, s in zip(self._features(src[1], src[0]), (0.40, 0.30, 0.32, 0.35, 0.70))
)
if var > 0.007:
n1 = max(0, min(4, int((cap - 7 * costs[0]) / costs[1] + 1e-9)))
if n1 < 2:
n1 = 0
slots = int((cap - (n1 * costs[1] if n1 else 0)) / costs[0] + 1e-9)
special = None
if len(costs) > 1 and len(src) > 1 and var > 0.007 and self._brackets_minimum(initial):
alternative = min(4, int((cap - 6 * costs[0]) / costs[1] + 1e-9))
if alternative >= 2 and alternative > n1:
n1, special = self._short_design(first, lr, initial, n1, alternative, slots)
slots = int((cap - n1 * costs[1]) / costs[0] + 1e-9)The base optimum comes from a robustly weighted quadratic fit in the physical log rates with a prior on curvature, stepped to its minimum inside a trust region. The larger-source losses are then regressed on the local slope of that fitted bowl, with a three-component scale mixture for heavy-tailed noise, which gives a correction to the base optimum, applied to the selected base point, and a displacement of the optimum per coordinate. At the target the rule applies
where are the shape features (saturating log ratios of width and depth, log ratios of tokens and context, and an optimiser switch), their prior scales, and a clock axis computed from the target's shape, scaled by a fitted elasticity . The projection is one at the larger source and grows with how far the target lies beyond it in the same direction.
large = [h for h in history if int(h.get("source", 0)) == 1 and math.isfinite(self._value(h))]
if len(large) >= 2 and len(src) > 1:
features = self._features(src[1], src[0])
sig = (0.40, 0.30, 0.32, 0.35, 0.70)
variance = max(1e-10, sum((s * v) ** 2 for s, v in zip(sig, features)))
G = self._geometry(H)
C = self._center_cov(small, x, G, noise)
u = self._clock_axis(src[1], src[0])
center, drift, elastic = self._source_fit(large[:4], x, G, C, variance, noise, u)
hp = self._point([a + max(-0.8, min(0.8, b)) for a, b in zip(x, center)])
for j, (s, v) in enumerate(zip(sig, features)):
hp["axis" + str(j)] = s * s * v / variance
for key, v in zip(("shift_lr", "shift_mix", "shift_tilt", "shift_wd"), drift):
hp[key] = max(-0.85, min(0.85, v))
hp["elastic"] = max(-1.5, min(1.5, elastic))Results
| Method | ① | ③ | ② | |||
|---|---|---|---|---|---|---|
| Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | Validation loss ↓ | Validation loss, mid target ↓ | |
| GPT-6.2 Astra | 4.240 | 4.289 | 5.476 | 6.396 | 3.786 | 3.898 |
| µ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 CDT is far ahead of every published baseline: a final validation loss of 4.240 against 5.430 for the strongest baseline, Fitted-law LR [9]. The lead is already there halfway through training, at 4.289 against 5.307.
On Muon-width CDT reaches 3.786, second to Fitted LR scaling law [7] at 3.779 and ahead of muP for Muon at 3.792. Halfway through training three baselines are ahead of it, so the final position is reached late in the run.
On Horizon CDT fails. Its final loss of 5.476 is worse than every baseline, including plain muP at 4.151, and far from the best, 3.955 (Power Lines [9]). Halfway through training it stands at 6.396, so the target trained slowly or badly from early on rather than diverging at the end.
How we got here
CDT grew over many installed versions, each tested by transferring source-only choices to held-out targets on public text corpora that we trained ourselves. All figures in this section are our own development measurements, as recorded in the trace.
- Collapsed predictions came first. In our first runs, after eight AdamW updates the mean final-layer activation made up over 99% of its RMS magnitude: the model predicted nearly the same distribution at every position. Our first version allocated residual and readout changes in units of the input signal, and we tested whether preserving more of the input embedding through the residual stack lets the model learn word frequencies without losing token-specific predictions.
- A longer second-moment memory for the tables. Giving the output layer a longer Adam second-moment memory lowered the loss on rare tokens from 10.66 to 9.70 nats while the most frequent group moved from 2.19 to 2.17; a simulation with known word probabilities reproduced the effect, which we read as an estimator bias rather than a corpus effect.
- The attention gate came from a Muon failure. A long joint scale-up under Muon reached a validation loss of 3.75 a quarter of the way through and then rose above 4.0, finishing at 3.813. Instrumented, attention entropy fell across layers before the loss rose, and gradient norms then grew by orders of magnitude. We compared five interventions: lowering every rate to 0.65 of its value gave 3.265, projecting query and key matrices back to their initial norms 3.295, raising only their decay 3.286, projecting only the keys 3.429, and slowing only their learning rate by the displacement clock 3.242. We kept the clock.
- Decay as a dose came from the long runs. On a longer AdamW development run, removing decay first helped and then let the loss climb to 5.965, against 3.712 with the transferred decay. Transferring a proxy decay of zero unchanged gave 5.531, against 3.694 once the strength was adjusted for the contraction each tensor accumulates; when the proxy later selected zero decay on its own, the rule still reached 3.657. For the word table, most of the gain came from discounting earlier learned updates; decaying only the random initial embedding did little.
- The search was made smaller and conditional. Because a 24-run design took longer than we wanted in wall time, we moved to a compact 12-equivalent design. Its revised two-source version lowered our joint AdamW transfer from 4.653 to 4.583 and a duration-only transfer from 4.605 to 4.530. An even shorter base design helped AdamW but cost 0.254 in loss on one Muon run, so it is now used only when the first three proxy losses bracket a minimum. The optional seventh base observation improved three of four medium AdamW transfers, with a regression of 0.031 on a code corpus.
- An early second-source correction overreacted. It helped some depth and horizon changes but amplified small loss differences on width changes. We moved to probes paired across the two sources, which estimate the change in slopes and shrink poorly identified optima.
- A term we left out. A correction for switching optimiser between proxy and target improved four cross-optimiser probes slightly, but those probes replayed recorded source histories instead of re-running the source search with the modified rule, so we did not install it.
Against our own runs of the supplied Complete(d)P search [4] on a deeper and wider development target, an intermediate version of the rule reached 3.317 against 4.791 with AdamW, and a late version 3.246 against 3.361 with Muon. Our notes list three further works as related work, one on correcting decoupled weight decay and one on embedding learning rates among them; they are not in our reference list, and we do not cite them.
Limitations
- Horizon is a clear failure. CDT is behind every published baseline there, at both checkpoints, and we cannot say which component causes it. A rule that is far ahead on one setting and far behind on another is not yet a reliable transfer rule.
- Many constants are set, not derived. The cube-root clock, the eight-arrival table memory, the prior scales , the octave cap on shifts and the trust-region constants are motivated by arguments in the code's comments, but none is derived, and we chose them during development.
- The training recipe is fixed across shapes. Every target trains with 16 sequences per step and the same linear schedule, regardless of its size; the rule does not adapt the batch.
- Only half the search budget is used. The search is capped at 12 base-equivalent runs of the 24 allowed, to save wall time. The optional extra observation depends on the exact shape of the history (seven rows, a bracketed line) and is easy to miss.
- The method is complex. It carries a quadratic surrogate, a Bayesian displacement model and an acquisition rule in pure Python; each part was checked numerically, but their interaction is hard to audit, and the Horizon failure shows that it can go wrong in ways our development transfers did not reveal.
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.
- 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.
- 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.
- Charlie Blake, Constantin Eichenberg, Josef Dean et al. (2025). u-μP: The Unit-Scaled Maximal Update Parametrization. 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.