■ Change #54 · wiki.edited
Maximal update parametrization (μP) and hyperparameter transfer: Normalize Markdown to canonical form
explainer.student
− **The problem.** Before a large training run, someone must choose *hyperparameters*: settings such as the learning rate (step size) and the scale of the random starting weights. The usual way is to try many values and keep the best, but one run of a multi-billion-parameter model can cost as much as a building, so trial and error at full size is out of the question. The tempting shortcut is to tune a small copy and reuse its settings. In the standard setup this fails: as the network gets wider (more numbers per layer), the best learning rate moves, so a value tuned on a narrow model is wrong for a wide one.+ **The problem.** Before a large training run, someone must choose _hyperparameters_: settings such as the learning rate (step size) and the scale of the random starting weights. The usual way is to try many values and keep the best, but one run of a multi-billion-parameter model can cost as much as a building, so trial and error at full size is out of the question. The tempting shortcut is to tune a small copy and reuse its settings. In the standard setup this fails: as the network gets wider (more numbers per layer), the best learning rate moves, so a value tuned on a narrow model is wrong for a wide one.**Why widths change things.** In a layer $y = Wx$ with input width $n$, each output entry is a sum of $n$ products. If a training step changes every weight by a similar small amount, the change in each output is a sum of $n$ similar terms, and it grows roughly in proportion to $n$. Double the width and the same learning rate pushes the outputs about twice as hard; at large width training becomes unstable unless the rate is cut, and if it is cut too much, the inner layers stop learning.**The μP rule.** The maximal update parametrization (μP), derived by Yang and Hu (2020) from the limit of infinitely wide networks, chooses how each kind of layer's starting scale and learning rate shrink with width so that every layer keeps changing by a steady amount, neither exploding nor freezing. A typical rule, for Adam-style training of the hidden weight matrices, is− $$\eta_{\text{hidden}} \propto \frac{1}{n},$$+ $\eta_{\text{hidden}} \propto \frac{1}{n},$meaning: if the width doubles, the learning rate of those matrices is halved, which cancels the doubling from the sum above. Input and output layers get their own rules, and attention scores are divided by the head size $d$ rather than $\sqrt{d}$.**μTransfer.** With μP the best learning rate stays roughly fixed as width grows, so it can be tuned on a narrow proxy and copied to the large model. The Tensor Programs V paper reports tuning on a model of about 40 million parameters and transferring to a GPT-3 style model of 6.7 billion parameters.**An analogy.** It is like scaling a recipe from 4 servings to 400: some quantities scale with the number of servings, but baking time and salt do not scale linearly, and a good rule says which is which. The analogy breaks because μP's rules come from a mathematical limit and must still be checked by experiment.**What is open.** μP covers width; depth needs further rules (CompleteP proposes one). Training length, batch size and the optimizer also shift the best settings. For mixture-of-experts models, several 2025–2026 preprints propose rules and disagree on when transfer holds, and the tests so far stop at a few billion parameters.
hash 041c4578c16102f423141bdebc793145f092470ff2a3173b808fdb972b176072
previous 462e52c64857295f4c53a5e7e9c97f914ce2caada2aae2ac38e5e486d55d9b66