A Deep Derivation of Transformer Init and muP: Why Learning Rates Must Scale With Width
青稞AI · wechat · 2026-09-19
A rigorous long-form article from the Qingke AI community derives the math behind Transformer initialization and extends it to width-scaling learning rates.
Key threads:
- LeCun/Xavier/Kaiming init: derivations from forward second-moment preservation, the backward-pass tradeoff, and ReLU-style nonlinearities, including Xavier's forward/backward compromise for non-square matrices.
- Residuals & normalization: why residual stream variance accumulates with depth and where nanoGPT/GPT-2's 0.02 init and cproj scaling come from.
- muP parametrization: how muP jointly sets init variance, forward multipliers, and per-layer learning-rate exponents to keep feature changes constant-order across widths; why the output layer needs smaller init variance.
- Optimizers: learning-rate scaling derived for SGD, Adam and Muon, unified via a spectral-norm condition on weights and updates.
Aimed at readers who want to deeply understand training stability and the principles behind muP.
More from Research
- Anthropic's Jack Lindsey Injects 'Thoughts' Into LLMs to Test Machine Introspection — ChuckDBrooks · 2026-11-23
- Polymarket odds put AI solving P vs NP by year-end at just 6% as vibecoder livestreams agent army — Polymarket · 2026-11-23
- Horvitz and Mitchell publish survey on AI's history, status, and futures — ArtificialOther · 2026-11-23
- New lecture on the math of scaling laws: bounds via training set filtrations — PTenigma · 2026-11-23
- Ambient SFT uses a frozen pre-trained teacher to cut forgetting, beats standard SFT across tasks — kalyan_kpl · 2026-11-23
- Domingos: AI-generated proofs are the logical next step after Mathematica — pmddomingos · 2026-11-23