Sam Babichenko

Reading notes / Deep Learning Alchemy

Parametrization across width and depth

From Lecture 4 of Stanford CS 312 Deep Learning Alchemy (Fall 2026), taught by Tatsunori Hashimoto and Suhas Kotha

slides quiz answers assignment code

Width parametrization
nnwidth, the fan-in of a hidden layer
n0n_0reference width, where the parametrization coincides with the baseline model (512 for d8)
mmwidth multiplier m=n/n0m=n/n_0
a,b,ca,b,cexponents of the output multiplier n−an^{-a}, initialization scale n−bn^{-b}, learning rate n−cn^{-c}
σ\sigmawidth-independent initialization scale, in (W0)ij∼N(0,σ2n−2b)(W_0)_{ij}\sim N(0,\sigma^2n^{-2b})
η\etawidth-independent base learning rate; a layer's learning rate is ηW=η n−c\eta_W=\eta\,n^{-c}
z=n−aWxz=n^{-a}Wxa layer's output for input xx
ddfixed fan-in of an input layer, such as an embedding's one-hot vocabulary
kka matrix's actual fan-in
∥⋅∥RMS\|\cdot\|_{\rm RMS}root mean square of the entries, ∥v∥RMS2=1n∑jvj2\|v\|_{\rm RMS}^2=\frac1n\sum_jv_j^2
Θ(1)\Theta(1)exact order one as n→∞n\to\infty: bounded and bounded away from zero
O(1)O(1)bounded as n→∞n\to\infty
W,W, W0W_0a layer's weight matrix WW and its value W0W_0 at initialization
xxa layer's input feature vector
z0z_0a layer's output at initialization
Alignment
ΔW\Delta Wchange of the weights since initialization, ΔW=Wt−W0\Delta W=W_t-W_0
Δx\Delta xchange of a layer's input features since initialization
R(ΔW,x)R(\Delta W,x)alignment ratio ∥ΔWx∥RMS/(∥ΔW∥RMS∥x∥RMS)\|\Delta Wx\|_{\rm RMS}/(\|\Delta W\|_{\rm RMS}\|x\|_{\rm RMS})
α\alphaalignment exponent, R=Θ(nα)R=\Theta(n^\alpha); 1/21/2 none, 1 full
V0V_0initial readout weights, which meet the feature change Δx\Delta x
δ\deltaloss gradient at a layer's output; one SGD step on one example is ΔW=−ηWn−aδx⊤\Delta W=-\eta_Wn^{-a}\delta x^\top
Adam
m^,v^\hat m,\hat vrunning means of the gradient and of its square
NNAdam's normalized direction m^/(v^+ϵ)\hat m/(\sqrt{\hat v}+\epsilon); the course writes UU
ϵ\epsilonAdam's additive constant in the denominator
G\mathcal Gshared truncated-Gaussian matrix for d8's embedding and readout initialization; the course writes GG
Depth
LLnumber of blocks
L0L_0reference depth, against which depth is measured by r=L/L0r=L/L_0
rrrelative depth r=L/L0r=L/L_0 (2 in the five-step stress test)
flf_lblock ll, whose output is added to the residual stream: xl+1=xl+cLfl(xl)x_{l+1}=x_l+c_Lf_l(x_l)
cLc_Lbranch multiplier on each block's output, xl+1=xl+cLfl(xl)x_{l+1}=x_l+c_Lf_l(x_l); counting branch outputs puts it between 1/L1/L (aligned branches) and 1/L1/\sqrt L (independent ones)
Muon
G=UΣV⊤G=U\Sigma V^\topa gradient matrix and its singular value decomposition
∥⋅∥op\|\cdot\|_{\rm op}spectral norm, the largest singular value
ρ\rhoradius of the spectral ball ∥ΔW∥op≤ρ\|\Delta W\|_{\rm op}\le\rho on which the idealized Muon step ΔW=−ρUV⊤\Delta W=-\rho UV^\top lies

Context. As models get wider, a learning rate tuned on a narrow run usually fails on a wide one. On the course's d8 transformer under AdamW (8 layers, about 35M parameters at width 512, 153.6M tokens), the best peak learning rate shrinks almost like 1/width from width 128 to 1,024. Lecture 4 of Hashimoto and Kotha's Stanford course CS 312 (Deep Learning Alchemy) asks how to scale each layer's initialization, output multiplier, and learning rate with width so one base learning rate stays optimal. It also asks what the same scaling logic implies for the update direction itself. The lecture builds on Tensor Programs V (Yang et al., 2021), which turned the a rule for scaling initializations, multipliers and learning rates with width so that every layer keeps changing by order one during training at every width; for Adam the hidden-layer learning rate shrinks like 1/fan-in and the readout is multiplied by 1/width, and hyperparameters tuned at a small width then transfer to large ones (Yang et al., 2021). Reading note: Maximal update parametrization into a proxy-tuning recipe. Its other two readings are Everett et al. (2024), who tested μ\muP's assumptions across parametrizations and optimizers up to 26.8B parameters, and Jordan's post on an optimizer that replaces each weight matrix's momentum by the nearest matrix with all singular values equal to 1, UV⊤UV^\top for momentum UΣV⊤U\Sigma V^\top (Jordan et al., 2024). Reading note: Muon.

The scaling exponents come from counting orders of magnitude in width nn. A layer's output change is the product of its output multiplier, its weight update's size, and an alignment factor. That factor runs from n\sqrt n for updates unrelated to the input to nn for updates aligned with it. Keeping activations of order one at initialization and their changes of order one during training fixes how each layer type scales with width. Under Adam with full alignment, hidden learning rates and the the output layer, which maps the last hidden features to the logits's output multiplier both scale like 1/n1/n. In practice, measured alignment sits between the two extremes and shifts during training. With per-layer exponents and a few constants tuned on a small model, every common parametrization transfers its learning rate. Applying the same count across LL residual blocks places branch multipliers between 1/L1/\sqrt L and 1/L1/L. Constraining the update matrix to be an isometry drops the alignment assumption altogether and yields Muon.

Setting. Following Everett et al., consider a linear layer of fan-in nn acting on an input x∈Rnx\in\mathbb R^n, parameterized by three exponents (a,b,c)(a,b,c):z=n−aWx,(W0)ij∼N(0,σ2n−2b),ηW=η n−c.\begin{aligned}z&=n^{-a}Wx,\\ (W_0)_{ij}&\sim N(0,\sigma^2n^{-2b}),\\\eta_W&=\eta\,n^{-c}.\end{aligned}Here σ\sigma and the base learning rate η\eta do not depend on width. Sizes are measured by ∥v∥RMS2=1n∑jvj2\|v\|_{\rm RMS}^2=\frac1n\sum_jv_j^2 for v∈Rnv\in\mathbb R^n, the typical size of one coordinate; for a matrix, the root mean square of its entries. Width goes to infinity at a fixed training step tt, with bounded and bounded away from zero as the width grows; O(1)O(1) means bounded only denoting exact order one. A parametrization is stable when initial hidden features have ∥z0∥RMS=Θ(1)\|z_0\|_{\rm RMS}=\Theta(1) and feature changes satisfy ∥zt−z0∥RMS=O(1)\|z_t-z_0\|_{\rm RMS}=O(1), and it learns features when that change is Θ(1)\Theta(1). Nontriviality asks the same of the logits, ruling out degenerate stable choices such as a zero learning rate. Practical implementations express these scalings relative to a the width at which the parametrization coincides with the baseline model, 512 for d8; m=n/n0m=n/n_0 is the width multiplier, using the width multiplier m=n/n0m=n/n_0.

What it changes in practice. Under Adam, scale hidden-matrix learning rates as η/m\eta/m, give the readout a 1/m1/m multiplier with a width-independent initialization, and tune the base learning rate once on a narrow model. Tune per-layer constant multipliers for the embedding, hidden, and readout layers on that same small model. In Everett et al., those constants transferred to 26.8B parameters and improved every Adam parametrization except the parametrization of the mean-field limit of wide networks, with the network's output scaled by 1/width so that the output is an average over neurons; in that limit the features keep learning, unlike in the NTK limit (Mei et al., 2018). Reading note: Mean-field limits of two-layer networks above 2B parameters, where Adam's ϵ\epsilon interferes. With those constants, the the usual setup: weights initialized with variance 1/fan-in1/\text{fan-in} and one global learning rate. Reading note: Maximal update parametrization plus per-layer exponents outperformed μ\muP. Scale Adam's ϵ\epsilon with each layer's gradient scale, or remove it, so wide layers do not stall. Across depth, scale residual branches by 1/L1/\sqrt L with matching learning rate and ϵ\epsilon (Depth-μ\muP), or by 1/L1/L (CompleteP) when blocks add coherently. Weight decay sits outside the recipe. Tensor Programs V lists regularization among the hyperparameters that do not transfer. Norm equilibrium explains why weight decay still matters: a weight's norm forgets its initialization and settles where the learning rate and weight decay put it.

Stability at initialization gives a+b=1/2a+b=1/2, which is Kaiming initialization. To keep activations from exploding or vanishing before training starts, the initial output z0=n−aW0xz_0=n^{-a}W_0x must have order-one RMS. Because W0W_0 is independent of xx, cross terms drop out in expectation:E[z0,i2∣x]=n−2a∑jE[(W0)ij2] xj2=σ2n−2(a+b)∥x∥22.\begin{aligned}\mathbb E[z_{0,i}^2\mid x]&=n^{-2a}\sum_j\mathbb E[(W_0)_{ij}^2]\,x_j^2\\&=\sigma^2n^{-2(a+b)}\|x\|_2^2.\end{aligned}Since ∥x∥22=n∥x∥RMS2\|x\|_2^2=n\|x\|_{\rm RMS}^2, the output RMS scales as n1/2−a−bn^{1/2-a-b} times the input RMS, so order-one activations require a+b=1/2a+b=1/2. Kaiming initialization for ReLU picks a=0a=0, b=1/2b=1/2, and σ2=2\sigma^2=2. Input layers have a fixed fan-in dd (an embedding reads a one-hot vector over a fixed vocabulary), so they need a+b=0a+b=0. Readouts only need initial logits of order at most one, giving a+b≥1/2a+b\ge1/2. Initialization alone does not separate training regimes: the standard parametrization, the unit-variance weights with each layer's output scaled by 1/fan-in1/\sqrt{\text{fan-in}}, so that an infinitely wide network trains like a fixed kernel, the neural tangent kernel (Jacot et al., 2018). Reading note: The neural tangent kernel, and μ\muP all satisfy a+b=1/2a+b=1/2 on hidden layers.

An update moves a layer's output by its size times an alignment factor between n\sqrt n and nn. Once training starts, the weight change ΔW=Wt−W0\Delta W=W_t-W_0 shifts the output by Δz=n−aΔWx\Delta z=n^{-a}\Delta Wx. How big that product gets depends on whether ΔW\Delta W lines up with xx. Define the R(ΔW,x)=∥ΔWx∥RMS/(∥ΔW∥RMS∥x∥RMS)R(\Delta W,x)=\|\Delta Wx\|_{\rm RMS}/(\|\Delta W\|_{\rm RMS}\|x\|_{\rm RMS}), how much more the product grows than the sizes of its factors R(ΔW,x)R(\Delta W,x) so that∥Δz∥RMS=n−aR(ΔW,x)⋅∥ΔW∥RMS∥x∥RMS.\begin{aligned}\|\Delta z\|_{\rm RMS}&=n^{-a}R(\Delta W,x)\\&\quad\cdot\|\Delta W\|_{\rm RMS}\|x\|_{\rm RMS}.\end{aligned}If ΔW\Delta W has independent centered entries unrelated to xx, each output coordinate sums nn random-sign terms and R≈nR\approx\sqrt n, the central-limit scaling. By contrast, one SGD step on a single example gives ΔW=−ηWn−aδx⊤\Delta W=-\eta_Wn^{-a}\delta x^\top, where δ\delta is the loss gradient at the layer's output. This rank-one matrix has xx as its right singular vector, so every coordinate sums nn same-sign terms and R=∥x∥22/∥x∥RMS2=nR=\|x\|_2^2/\|x\|_{\rm RMS}^2=n, the law-of-large-numbers scaling and Cauchy-Schwarz maximum. Writing R=Θ(nα)R=\Theta(n^{\alpha}) puts the the alignment exponent in R=Θ(nα)R=\Theta(n^{\alpha}): 1/21/2 for an update unrelated to the input (random signs, the central-limit size) and 1 for an update built from it (same signs, the law-of-large-numbers size) between 1/21/2 and 1. At finite fan-in nn, Everett et al. estimate α\alpha directly with the log⁡nR\log_nR measured at a finite width nn (the fan-in), an estimate of α\alpha log⁡nR\log_n R. The same factor between n\sqrt n and nn governs how the initial readout V0V_0 interacts with the hidden feature change Δx\Delta x.

Under Adam, full alignment gives a+c=1a+c=1 and sets distinct exponents for each layer type. Adam updates weights by ΔW=−ηn−cN\Delta W=-\eta n^{-c}N. Because Adam behaves like sign descent with momentum, its N=m^/(v^+ϵ)N=\hat m/(\sqrt{\hat v}+\epsilon), Adam's normalized direction, the running mean of the gradient divided entrywise by the root of the running mean of its square has RMS Θ(1)\Theta(1) regardless of gradient scale. With R(N,x)=Θ(nα)R(N,x)=\Theta(n^\alpha), the update shifts the output by∥n−aΔWx∥RMS=Θ(η nα−a−c).\|n^{-a}\Delta Wx\|_{\rm RMS}=\Theta(\eta\,n^{\alpha-a-c}).Under full alignment (α=1\alpha=1), an order-one feature change requires a+c=1a+c=1. For a hidden matrix with a=0a=0, this gives c=1c=1, so the learning rate falls like 1/n1/n. The other contribution to the output change is n−aW0Δxn^{-a}W_0\Delta x, the initial weights acting on the input shift. For a hidden matrix, the Gaussian operator-norm bound already makes that term O(n1/2−a−b)O(n^{1/2-a-b}), so a+b=1/2a+b=1/2 keeps it bounded. At the readout, the output dimension is fixed while fan-in grows, so full alignment between V0V_0 and Δx\Delta x makes n−aV0Δxn^{-a}V_0\Delta x of order Θ(n1−a−b)\Theta(n^{1-a-b}). Keeping it order one forces a+b=1a+b=1, leaving initial logits small at Θ(n−1/2)\Theta(n^{-1/2}).

Putting the layer conditions together gives the μ\muP recipe for Adam. Let kk denote a matrix's actual fan-in and m=n/n0m=n/n_0, matching the baseline at reference width n0n_0. One solution sets input layers to (0,0,0)(0,0,0), with multiplier 1, initialization variance 1/d1/d, and learning rate η\eta. Hidden matrices take (0,12,1)(0,\tfrac12,1), with multiplier 1, variance 1/k1/k, and learning rate η/m\eta/m, while the readout takes (1,0,0)(1,0,0), with multiplier 1/m1/m, variance 1/n01/n_0, and learning rate η\eta. Under SGD, the update keeps the gradient's own scale rather than normalizing it away, so the backward pass's exponents enter alongside cc. Throughout, this count tracks only leading orders and assumes terms do not cancel. Because Θ(n)−O(n)\Theta(n)-O(n) need not stay Θ(n)\Theta(n), as in (n+log⁡n)−n=log⁡n(n+\log n)-n=\log n, the derivation assumes the update, the initialization, and their interaction do not cancel.

Measured alignment sits between 1/21/2 and 1, and per-layer exponents make every parametrization transfer. Everett et al. (2024) test these assumptions on decoder-only transformers across fourteen widths from 128 to 16,384, spanning 9.9M to 26.8B parameters. Each model has 8 blocks and head dimension 128, trained at batch 256 and context 512 for 50,000 steps with no weight decay and warmup followed by cosine decay. They compare SGD, Adam, and Adam with each update is multiplied by the RMS of the weight it changes, so steps are relative to the weight's size (Shazeer and Stern, 2018) under four parametrizations: standard, NTK, μ\muP, and the parametrization of the mean-field limit of wide networks, with the network's output scaled by 1/width so that the output is an average over neurons; in that limit the features keep learning, unlike in the NTK limit (Mei et al., 2018). Reading note: Mean-field limits of two-layer networks. Alignment starts at 1/21/2, since initialization is independent of the data, and rises during training. In Adam's MLP layers it stays at or below 0.8. At the readout, it peaks above 0.9 under μ\muP and mean field and between 0.7 and 0.8 under standard and NTK, staying much lower for most of training. Even with partial alignment, full-alignment per-layer exponents paired with tuned per-layer constants keep the swept optimal base learning rate nearly flat across width. The fitted scaling exponents are n−0.05n^{-0.05} for standard, n−0.02n^{-0.02} for NTK, and n−0.06n^{-0.06} for μ\muP.

With per-layer exponents and tuned constants, the standard parametrization beats μ\muP at scale. Tuning constant learning-rate multipliers for the embedding, hidden, and readout layers at width 1,024 and reusing them at every width improved every Adam parametrization except mean field above 2B parameters. Under this treatment, the best Adam model was the standard parametrization with an order-one embedding learning rate and 1/n1/n hidden and readout learning rates. It reached loss 2.572 at 26.8B parameters against 2.599 for μ\muP, and its 15.3B model beat the 26.8B μ\muP model. Everett et al. trace Tensor Programs V's win for μ\muP to comparing per-layer μ\muP with tuned constants against a standard parametrization restricted to one global learning rate.

No-alignment exponents fail to absorb width scaling, while parameter scaling changes the winner. No-alignment exponents give larger learning rates than full-alignment ones. When swept at each width, they reached slightly lower loss for NTK, μ\muP, and mean field, but the optimal base learning rate fell like n−0.58n^{-0.58} to n−0.69n^{-0.69} across standard, NTK, and μ\muP. Because the base rate had to absorb the width dependence that the exponents omitted, full-alignment exponents give the cleaner transfer law. Under Adam with Adafactor's parameter scaling, which multiplies each update by the existing weight's RMS, global and no-alignment learning rates coincide. That setup performed best and produced the study's overall best model, NTK with no-alignment exponents.

Wide layers stall unless Adam's ϵ\epsilon scales down or disappears. Adam adds ϵ\epsilon to v^\sqrt{\hat v} in its denominator, while gradient entries shrink with width; under μ\muP, hidden-matrix gradients scale like 1/n1/n. With a fixed ϵ\epsilon, set to 10−910^{-9} in Everett et al., wide layers eventually see v^\sqrt{\hat v} approach ϵ\epsilon. Their updates then shrink until they stop learning. Mean field has the smallest gradients and hits this wall first, which is why its tuned constants stopped transferring above 2B parameters. Three fixes worked: a smaller constant ϵ\epsilon, a per-layer ϵ\epsilon scaled with that layer's gradient scale, and Adam with m^/(v^+ϵ)\hat m/(\sqrt{\hat v}+\epsilon) replaced by atan2⁡(m^,v^)\operatorname{atan2}(\hat m,\sqrt{\hat v}), which equals the ratio when it is small, is bounded by π/2\pi/2, and is unchanged when all gradients are multiplied by a constant (Everett et al., 2024), which removes ϵ\epsilon altogether. Depth-scaling prescriptions scale ϵ\epsilon with the branch multiplier for the same reason.

On d8, μ\muP keeps the optimal learning rate flat in width. The course builds μ\muP from d8's baseline at n0=512n_0=512 by changing four settings, with a shared matrix one shared matrix of standard Gaussian draws truncated at ±3\pm3, used for both the embedding and the readout initialization in every prescription of truncated Gaussians for embedding and readout initialization. Embedding initialization moves from G/n\mathcal G/n to G/n0\mathcal G/n_0, and readout initialization moves from G/n\mathcal G/\sqrt n to G/n0\mathcal G/\sqrt{n_0}. The readout multiplier changes from 1 to 1/m1/m, and the hidden-matrix peak learning rate moves from η\eta to η/m\eta/m. Across widths 128 to 1,024 at 153.6M tokens, the baseline's optimal base learning rate falls almost like 1/n1/n, with fitted exponent about −0.96-0.96, whereas μ\muP keeps it flat. A five-step check at width 640 also measures alignment directly. Over the first five updates, hidden-matrix update alignment lies between about 0.6 and 0.95 (read off a plot), with 0.75 typical.

Fixing the relative step size changes width scaling under Hyperball. Hyperball holds each weight matrix at its initial Frobenius norm and moves it by a Frobenius step of length η\eta relative to that norm. Under AdamW, an n×nn\times n hidden matrix has initial entries of order n−1/2n^{-1/2}, giving Frobenius norm about n\sqrt n. Its update entries are of order η\eta, giving Frobenius norm about ηn\eta n, so its relative step is ∥ΔW∥F/∥W∥F≈ηn/n=ηn\|\htmlData{gr=gn8}{\Delta W}\|_F/\|W\|_F\approx\eta n/\sqrt n=\eta\sqrt n. Because Hyperball fixes the relative step at η\eta regardless of width, its optimal learning rate scales differently with width under d8's baseline parametrization.

Counting over residual branches places the depth multiplier between 1/L1/\sqrt L and 1/L1/L. In a residual stack xl+1=xl+cLfl(xl)x_{l+1}=x_l+c_Lf_l(x_l) of LL blocks flf_l with the factor on each block's output before it is added to the residual stream, xl+1=xl+cLfl(xl)x_{l+1}=x_l+c_Lf_l(x_l), a function of the depth LL: 1 in standard μ\muP, (L/L0)−1/2(L/L_0)^{-1/2} in Depth-μ\muP and (L/L0)−1(L/L_0)^{-1} in CompleteP, for a reference depth L0L_0, the branch outputs accumulate. If they add like independent terms, LL branches sum to size L\sqrt L, calling for cL∝L−1/2c_L\propto L^{-1/2}. If they align coherently, they sum to size LL, calling for cL∝L−1c_L\propto L^{-1}. Combining the depth relative to a reference depth L0L_0, 2 in the five-step stress test with μ\muP's width rules gives three prescriptions for hidden matrices and within-block norms, leaving embeddings, readout, and the final norm unchanged. Standard μ\muP keeps cL=1c_L=1, block learning rate η\eta, and block ϵ=10−8\epsilon=10^{-8}. Depth-μ\muP takes the no-alignment scaling: cL=r−1/2c_L=r^{-1/2}, learning rate ηr−1/2\eta r^{-1/2}, and ϵ=10−8r−1/2\epsilon=10^{-8}r^{-1/2}. CompleteP takes the full-alignment scaling: cL=r−1c_L=r^{-1}, learning rate η\eta, and ϵ=10−8r−1\epsilon=10^{-8}r^{-1}.

Five-step depth stress tests favor Depth-μ\muP for independent blocks. The course runs a five-step stress test at width 64, training for just five updates at depths 2, 100, and 1,000. Standard μ\muP's residual stream grows with depth, reaching an initial RMS of about 33 at depth 1,000. Depth-μ\muP holds it near 1.3, and CompleteP holds it at 1.0. After five updates at large depth, Depth-μ\muP reached the lowest loss, with an optimal learning rate that moved little. CompleteP overcorrected, ending with the highest loss and an optimum that drifted downward. Independently initialized blocks add closer to independent terms than to aligned ones.

Constraining the update to be an isometry removes the alignment assumption and gives Muon. Instead of assuming how updates align with inputs as μ\muP does, an optimizer can constrain the update matrix itself. If a square ΔW\Delta W is an isometry, then ∥n−aΔWz∥=n−a∥z∥\|n^{-a}\Delta Wz\|=n^{-a}\|z\| for every input zz, regardless of alignment. Minimizing the linearized loss over a ball in the ∥ΔW∥op\|\Delta W\|_{\rm op}, the largest singular value, the most the matrix stretches any vector, min⁡∥ΔW∥op≤ρ⟨G,ΔW⟩\min_{\|\Delta W\|_{\rm op}\le\rho}\langle G,\Delta W\rangle, yields ΔW=−ρUV⊤\Delta W=-\rho UV^\top for a gradient with SVD G=UΣV⊤G=U\Sigma V^\top, by spectral-nuclear norm duality. In this idealized Muon, matrices step on a spectral ball and scalar parameters step on a Euclidean one. Practical Muon orthogonalizes momentum instead of the raw gradient, replaces the SVD with five a polynomial iteration, X←aX+bXX⊤X+c(XX⊤)2XX\leftarrow aX+bXX^\top X+c(XX^\top)^2X in Jordan's version, that pushes a matrix's singular values toward 1 using only matrix products (Jordan et al., 2024). Reading note: Muon, and leaves embeddings, readout, gains, and scalars to AdamW. (The speedrun section's Muon note gives the full derivation.) Moonshot AI's large-scale version (Liu et al., 2025) adds weight decay and rescales each update to AdamW's typical RMS of 0.2.

Two qualifications temper the isometry picture. First, Jordan's quintic Newton-Schulz coefficients do not have 1 as an exact fixed point. The update's singular values land in a band around 1, which the lecture judges harmless. Second, recent experiments find that updates with unequalized singular values, including some with random or inverted spectra, train about as well. Equalizing all singular values is therefore not the entire reason Muon works.

Caveats. The exponent analysis is asymptotic in width at a fixed step count, assumes no cancellation across terms, and treats alignment as constant even though it varies by layer and across training. Choosing between full- and no-alignment exponents therefore remains empirical. Everett et al.'s main comparisons fix 50,000 steps without weight decay, and their appendix notes that compute-optimal horizons may call for steeper learning-rate exponents. μ\muP transfers optimization hyperparameters rather than regularizers such as weight decay. The course's own evidence rests on a 35M-parameter model and five-step stress tests, single-seed in places. Hyperball's width drift also differs across setups. The Hyperball paper reports about 1.4 times drift across widths 128 to 2,048 in a hybrid-normalization model trained on 10B tokens per run, with Hyperball on attention and MLP matrices. On d8 (153.6M tokens, with Hyperball also on the readout), the course's runs give fitted exponents of −0.56-0.56 at seed 42 and about −0.38-0.38 at seeds 43 and 44. That is a 2 to 3 times drift from width 128 to 1,024, matching the relative-step calculation above. Because architecture, token budget, parametrization, and readout treatment all differ, neither experiment isolates the cause.

Terms

abc-parametrization
z=n−aWxz=n^{-a}Wx, W0∼N(0,σ2n−2b)W_0\sim N(0,\sigma^2n^{-2b}), learning rate ηn−c\eta n^{-c}
Stability at initialization
a+b=1/2a+b=1/2 for hidden layers (Kaiming), a+b=0a+b=0 for input layers
Alignment ratio
R=∥ΔWx∥RMS/(∥ΔW∥RMS∥x∥RMS)R=\|\Delta Wx\|_{\rm RMS}/(\|\Delta W\|_{\rm RMS}\|x\|_{\rm RMS}): n\sqrt n unrelated, nn rank one built from xx
Adam, full alignment
a+c=1a+c=1: hidden learning rate η/m\eta/m; readout multiplier 1/m1/m with learning rate η\eta
μ\muP for Adam (one solution)
input (0,0,0)(0,0,0); hidden (0,12,1)(0,\frac12,1); readout (1,0,0)(1,0,0)
Measured alignment
starts at 1/21/2, moves during training; MLP at most 0.8, readout peaks above 0.9 under μ\muP (Everett et al.)
Per-layer constants
embedding, hidden and readout learning-rate factors tuned at small width and reused; improve every Adam parametrization except mean field above 2B
Epsilon underflow
gradients shrink with width until v^≈ϵ\sqrt{\hat v}\approx\epsilon; fix by scaling ϵ\epsilon per layer or with Adam-atan2
Depth-μ\muP, CompleteP
branch multipliers r−1/2r^{-1/2} and r−1r^{-1}: no and full alignment across blocks
Idealized Muon
arg⁡min⁡∥ΔW∥op≤ρ⟨G,ΔW⟩=−ρUV⊤\arg\min_{\|\Delta W\|_{\rm op}\le\rho}\langle G,\Delta W\rangle=-\rho UV^\top

Sources

Lecture 4, “Optimization 1: Scaling limits and feature learning, µP, Muon” (Oct 6, 2026), of Stanford CS 312 Deep Learning Alchemy, Fall 2026. Taught by Tatsunori Hashimoto and Suhas Kotha; course staff Kaiyue Wen and Tristan Thrush (CAs).

Course site Lecture slides Online quiz Quiz answers Assignment Assignment code

The lessons, experiments, figures and quiz problems in this note are the course's, shown here with the instructors' permission.

Connected notes

  • Any model becomes lazy, its tangent kernel effectively frozen, when its output scale grows and its initial output is cancelled; for a width-nn network a 1/n1/\sqrt n output normalization is lazy in the limit and the mean-field 1/n1/n is not.

  • In one-layer linear self-attention, the loss depends only on the product V=u−1U11V=u_{-1}U_{11} and leaves the scale split between the label-value scalar and the key-query matrix free; gradient flow conserves u−12=∥U11∥F2u_{-1}^2=\|U_{11}\|_F^2, which pins the limit on the hyperbola of equivalent global minima.

  • Linear attention's state is a running sum of key-value products that never forgets. Of Mamba-2's components added one at a time to a 300M model, a data-dependent decay of that sum and a short convolution carry nearly all the gain. Test loss goes from 3.13 to 2.88 with the decay alone, 2.93 with the convolution alone and 2.77 with both, while the other components move it by 0.07 or less.

  • Kaplan et al. trained every model on one fixed-length schedule and read compute-optimal points off intermediate steps, and many of their runs are under 100M parameters while the frontier bends, so slopes fitted on small models overpredict model size at large budgets. At 102110^{21} FLOPs the 2.80B model chosen by Chinchilla's fit beats the 4.74B model chosen by Kaplan's law.

Threads