Maximal Update Parameterization
Maximal update parameterization (μP) is a rule that sets each layer’s initialization scale and learning rate from its shape. In the standard parameterization (SP), all layers share one learning rate. Its best value changes as the network gets wider. Under μP the best hyperparameters stay fixed across width. A small model can then be tuned and its settings reused for a large one (Yang et al. 2022, Tensor Programs V; Yang, Simon and Bernstein 2023, A Spectral Condition for Feature Learning).
The RMS norm of measures the typical size of one entry:
A layer with is measured by the induced RMS→RMS norm. It is the largest factor by which the matrix can multiply the RMS norm of an input:
where is the spectral norm, the largest singular value.Feature learning means that every hidden layer keeps entries of order one at any width. Each training step also changes those entries by order one. These two desiderata read
Given enough alignment between inputs and weights, both follow from two spectral conditions on each weight matrix and its update:
In spectral terms, and are both . An update budget with in every layer gives four rules:
- Initialization: entries with variance (Xavier) keep equal to in expectation. For layers with the spectral condition asks for a smaller scale.
- Adam and sign-SGD: layer uses the learning rate , so the rate scales as . The rule comes from the rank-one gradient of a batch of one.
- Muon and other spectral updates: the step is , where .
- What transfers: the budget tuned on a narrow network stays near its best value on a wide one. The raw learning rate does not.
Intuition
Tuning a large network is expensive, because each trial learning rate costs a full training run. A cheaper plan tunes a narrow copy and reuses its settings at full width. In the standard parameterization this plan fails. One Adam step moves every weight by about , whatever the width. Each entry of sums products of a weight and an input. The gradient pushes all weight changes in a direction that agrees with the input, so their effects add up. The change in each feature therefore grows in proportion to . For a hidden layer, a learning rate tuned at width is eight times too large at width .
Under μP, each step is measured in units that do not depend on width. The RMS norm measures the size of a typical entry, and that size does not grow with width. The RMS→RMS norm of bounds how far one step can move a typical entry of . Capping that norm at the same in every layer gives each layer a learning rate set by its shape. A practitioner tunes the single number , and its best value no longer depends on width. The figure is a schematic of Figure 1 in Tensor Programs V. Under SP the minimum of the loss curve moves to smaller learning rates as width grows. Under μP the minima line up, and wider networks reach lower loss.
\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{prp}{HTML}{8E6BD6}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=0.8cm,y=0.8cm]
\foreach \ox/\ttl/\xl in {0/{SP: optimum shifts}/{$\log \eta$},7/{$\mu$P: optimum fixed}/{$\log \gamma$}} {
\draw[->] (\ox,0) -- (\ox+5.6,0) node[below left] {\xl};
\draw[->] (\ox,0) -- (\ox,4.4);
\node[rotate=90] at (\ox-0.4,2.2) {training loss};
\node at (\ox+2.8,4.9) {\ttl};
}
\draw[cold,thick] plot[domain=2.0:5.4,samples=50] (\x,{0.9*(\x-3.7)^2+1.5});
\draw[prp,thick] plot[domain=0.9:4.6,samples=50] (\x,{0.9*(\x-2.75)^2+1.0});
\draw[hot,thick] plot[domain=0.15:3.6,samples=50] (\x,{0.9*(\x-1.8)^2+1.2});
\foreach \m/\b/\c in {3.7/1.5/cold,2.75/1.0/prp,1.8/1.2/hot} \fill[\c] (\m,\b) circle (2.5pt);
\draw[->,thick] (3.6,0.55) -- (1.9,0.55);
\draw[dashed,mid] (9.75,0) -- (9.75,4.2);
\draw[cold,thick] plot[domain=8.1:11.4,samples=50] (\x,{0.9*(\x-9.75)^2+1.6});
\draw[prp,thick] plot[domain=7.95:11.55,samples=50] (\x,{0.9*(\x-9.75)^2+1.1});
\draw[hot,thick] plot[domain=7.8:11.7,samples=50] (\x,{0.9*(\x-9.75)^2+0.6});
\foreach \b/\c in {1.6/cold,1.1/prp,0.6/hot} \fill[\c] (9.75,\b) circle (2.5pt);
\foreach \c/\lab [count=\i from 0] in {cold/narrow,prp/medium,hot/wide} {
\draw[\c,very thick] (2.6+3*\i,-1.1) -- (3.4+3*\i,-1.1);
\node[right] at (3.4+3*\i,-1.1) {\lab};
}
\end{tikzpicture}
\end{document}Properties
(Width-Free Scale) Entries of mean square give an RMS norm near at every width, and an norm near .
The squared RMS norm is the average of the squared entries, and an average does not grow with . The $\ell_2$ norm adds the squares instead. A layer output with has RMS norm at width and at width . The RMS norm also satisfies , with equality when all entries have the same magnitude. A row of with no zero entries therefore has RMS norm exactly . A vector with one large entry and zeros elsewhere can also have RMS norm . Reading RMS norm as “every entry is about ” is a relaxation that suits dense vectors.
(Deriving the Induced Norm) Rescaling by and turns the RMS→RMS norm into a multiple of the spectral norm.
An input with has , so write with . Then
The maximum is reached at the top right singular vector . A square matrix has equal RMS→RMS and spectral norms. A non-square matrix and its transpose share a spectral norm but have different RMS→RMS norms. Like every induced norm, this one is submultiplicative. The width factors of a stack cancel, , so per-layer bounds multiply into a bound for the whole stack.
(Xavier Meets the First Desideratum) Requiring at initialization recovers the fan-in rule of Xavier initialization.
Take with independent zero-mean weights of variance . Then . Keeping requires . The output width drops out, because each output entry has its own row of weights. Xavier initialization controls the RMS norm for inputs that point in a random direction. The spectral condition also bounds inputs aligned with the top singular vectors. Training updates create such alignment, as the Derivation shows.
Not Taught in Lecture
A matrix of independent entries has when both sizes are large. Xavier’s then gives . This meets the first spectral condition when . It is too large by about when . A readout layer with Xavier entries has RMS→RMS norm about . Yang, Simon and Bernstein (2023) therefore use
which brings the same readout layer to an RMS→RMS norm near .
(Why Adam Needs ) With a batch of one, the sign of the gradient is a rank-one matrix with RMS→RMS norm .
For one example the gradient is the outer product of the backpropagated vector and the layer input. Its sign is still rank one. A rank-one matrix has one nonzero singular value, so . The step then has
Adam follows the same rule, because its per-entry step also has size about . Larger batches give a sign matrix of higher rank. Its Frobenius norm is still , and that norm only bounds the spectral norm from above. The rule therefore stays within budget for any batch size. For large batches it is conservative, since the true step can be well below .
(Muon’s Width Factor) The Muon step has RMS→RMS norm exactly and reaches it for every input in its row space.
Muon replaces the momentum-averaged gradient by , which has spectral norm for any shape. Its RMS→RMS norm is therefore , and the factor brings it to . This is the steepest-descent step under the RMS→RMS norm from 6.4.4. Steepest Descent Under a Norm. With a batch of one, sign-SGD at has the same spectral norm, . With larger batches the sign matrix has unequal singular values. Its weaker directions then move the features less than the budget allows. Muon uses the full budget in every direction. An expanding layer, with , gets a spectral step larger than . A readout layer with few outputs gets a much smaller one.
(Units That Transfer) Writing a hyperparameter as a width-free constant times the right power of width makes its optimum stop moving with width.
Let be independent with mean and variance . For a bounded continuous , let . The best shrinks with , because the sum grows like . With the central limit theorem gives
The limit depends on alone, so the minimizer settles to a fixed value. An found at small then works at large , while keeps moving. Take coin flips and . The best falls from at to at . The best moves only from to , next to the limit . In μP the budget corresponds to , and the learning rate corresponds to .
(SP Drifts With Width) Under SP the best Adam learning rate shrinks as the model widens, and wider models can lose to narrower ones.
Tensor Programs V trains Transformers of widths to with Adam and plots training loss against the learning rate. Under SP the minimum of each curve sits further left as width grows. Wider models also fail to beat narrower ones reliably, even after tuning. Under μP the minima line up, and every increase in width lowers the loss. With one shared , a hidden layer takes an RMS→RMS step of , which grows with width. The tuned must shrink like to compensate. The input layer, whose stays fixed, then takes steps that shrink toward zero as the network widens.
(Why “Maximal”) μP gives each layer the largest update size that keeps its features bounded as width grows.
Not Taught in Lecture
This contrast follows Yang and Hu (2021, Tensor Programs IV), the paper that introduced μP. The neural tangent kernel is from Jacot, Gabriel and Hongler (2018).
An update budget that shrinks with width makes in the hidden layers. The features then barely move during training. The wide network then behaves like a model that is linear in its parameters, with features fixed at initialization. This is the lazy or neural tangent kernel regime, reached for example by the NTK parameterization. A budget that grows with width makes the features blow up. μP keeps the budget at , the largest size that does not blow up. The word “maximal” in the name refers to this choice.
Derivation
We want to show that the two spectral conditions give both desiderata. Ignore biases and nonlinearities, so , and assume the input has . By submultiplicativity of the induced norm,
Induction on gives . In terms this is . After one step, expanding gives
The last term is second order in the step and is often dropped. Writing for both the RMS norm and the RMS→RMS norm, the triangle inequality and submultiplicativity give
The input does not change, so . By induction every term is a product of factors, and .
The upper bounds alone allow the features to shrink with width. The lower bounds need to align with the top right singular vectors of and . Each matrix then stretches it by about its spectral norm. For the update, the gradient supplies this alignment. With a batch of one, has right singular vector . A Muon step with or a plain gradient step then gives exactly. A sign-SGD step reaches the fraction of the bound. That fraction is about for Gaussian-like entries. For the weights, Yang, Simon and Bernstein (2023) assume the same alignment. (Proof omitted; see that paper.) With both lower bounds, the two desiderata hold with in place of .
Examples
(Easy) Same Features, Two Widths
A hidden layer of width outputs a vector . It has entries equal to and entries equal to . A wider copy of the network, with , outputs entries equal to and equal to . A third vector has one entry equal to and zeros elsewhere.
Compute the and RMS norms of all three vectors. Which norm shows that the two copies of have entries of the same size? What does show? At , . So and . At , . So and again. The norm grew by the factor , although no entry changed. The RMS norm stayed at and matches the entries. For , and . Its RMS norm is below that of , yet one of its entries is . The RMS norm describes a typical entry only when the vector is dense.
(Medium) The RMS→RMS Norm of a Small Layer
A layer maps inputs to outputs with
Find and an input of RMS norm that reaches it. Compare the all-ones input and the transposed layer . The rows are orthogonal, with squared lengths and , so . The singular values are and , so . The formula gives . The top right singular vector is the first row divided by its length, . The input has RMS norm . Its image has RMS norm . The all-ones input also has RMS norm . It gives with RMS norm , a little below the maximum. The transpose has the same spectral norm, but its RMS→RMS norm is .
(Hard) Widening a Three-Layer MLP
A team trains an MLP with widths under μP. The best update budget is . They widen both hidden layers to and keep .
Give each layer's Adam learning rate and Muon spectral step at both widths. Suppose the team had used SP instead, with one Adam rate tuned at width . How large would the hidden-layer step be at width ? The Adam rate is , and the Muon step has spectral norm .
Layer Shape Adam Muon 1, narrow 2, narrow 3, narrow 1, wide 2, wide 3, wide The input layer keeps its Adam rate, because its does not change. The two later layers get rates eight times smaller. Muon’s step grows in the input layer, which now expands more, and shrinks in the readout layer. With a batch of one, sign-SGD at these rates has the same spectral norms as the Muon column. Under SP the hidden layer would keep . Its RMS→RMS step would be , eight times the budget. The SP rate must therefore be tuned again at the new width.
See Also
- 4.1. Weight Initialization, for the variance rules that the first spectral condition refines.
- 4.2. Muon, the optimizer whose orthogonalized step μP scales by .
- 6.4.4. Steepest Descent Under a Norm, which turns a choice of norm into an update rule.
- 6.4.3. Adam, whose per-entry step size makes its learning rate scale as .
- 4.5.2. Layer Normalization, which centers each activation vector and rescales it to RMS norm .
- 4.9b Operator Norm, for induced norms and submultiplicativity.