Pre-training large language models requires optimizing sensitive hyperparameters, including learning rate, weight initialization variance, Adam momentum coefficients, and learning rate schedules. In standard neural network implementations, optimal hyperparameters change whenever model dimensions expand. A learning rate tuned on a 125-million parameter model frequently destabilizes or underperforms when applied directly to a 13-billion or 70-billion parameter architecture.
Because grid-searching hyperparameters directly on multi-billion parameter clusters is economically prohibitive, engineering teams historically relied on manual heuristics, trial runs, or conservative learning rates that sacrifice loss convergence.
Maximal Update Parametrization (abbreviated as muP or P), introduced by Greg Yang and collaborators at Microsoft Research through the Tensor Programs framework, provides a mathematically rigorous parameterization where optimal hyperparameters remain invariant across model widths. Under muP, practitioners can optimize hyperparameters on a small, single-GPU proxy model and transfer those exact values zero-shot to arbitrarily wide production models.

The Mathematical Breakdown of Standard Parametrization
In the Standard Parametrization (SP) used by default in frameworks such as PyTorch, neural network weights are typically initialized according to Xavier/Glorot or Kaiming initialization schemes, where hidden layer weights have variance scaling as .
While standard initialization ensures that the variance of forward activations remains roughly at initialization (step 0), it fails to preserve consistent representation dynamics once gradient updates begin.
Consider a linear layer , where and . During a step of gradient descent with learning rate :
where . The induced change in hidden representations after one update step is:
In standard parametrization, as width :
- The inner product scales proportionally to the width , or .
- Consequently, the representation update scales as .
If the global learning rate is held constant as width grows, the representation update per step explodes at rate . Conversely, if is shrunk to to stabilize feature updates, the network transitions into the "Neural Tangent Kernel (NTK) regime" (also called the lazy training regime), where network weights barely move from initialization and internal representations fail to adaptively extract rich features from the data.
The muP Formalism: Preserving Maximal Feature Learning
Tensor Programs theory proves that muP is the unique parameterization that simultaneously satisfies two constraints in the infinite-width limit ():
- Activations and pre-activations remain bounded at throughout training.
- Representation updates at every layer remain non-trivial at , preserving maximal feature learning.
To enforce these conditions across all layer types, muP derives specific scaling rules for parameter initialization variance, weight multipliers, and optimizer-specific learning rates based on layer fan-in and fan-out dimensions.
1. Input and Embedding Layers ()
- Input dimensions (such as vocabulary size or input feature counts) remain fixed while hidden dimension scales.
- Weight initialization: Variance is set to .
- Learning rate scaling: Global base learning rate is applied without width discounting, scaling as .
2. Hidden Weight Matrices ()
- Both input and output dimensions grow with model width .
- Weight initialization: Variance is scaled as .
- Learning rate scaling: For standard optimizers like Adam and AdamW, the coordinate updates are normalized by coordinate variance. To ensure produces , the layer learning rate must scale inversely with width:
where is the hidden dimension of the small proxy model and is the target model width.
3. Readout / Output Projection Layers ()
- The readout projection maps hidden representations back to a fixed target space (such as vocabulary logits).
- Weight initialization: Variance is scaled as or explicitly initialized to zero.
- Output logit multiplier: Logits are scaled by an explicit multiplier factor:
- Learning rate scaling: Scaled as or parameterized via the output multiplier.

Transformer Attention Scaling: Correcting the Softmax Denominator
Standard Transformer architectures calculate scaled dot-product attention using a scaling factor of :
The original factor was chosen assuming that query vector and key vector are independent, zero-mean random variables at initialization, meaning their inner product variance grows as by the Central Limit Theorem.
However, during optimization, queries and keys become correlated as attention heads learn semantic associations. When and align, the inner product scales linearly with dimension by the Law of Large Numbers.
Under muP, attention logits are scaled by (or an equivalent attention multiplier ) rather than . This adjustment prevents attention entropy from collapsing into one-hot delta distributions as model width and head dimension scale up.
The Coordinate Check Diagnostic
Before committing massive compute budgets to large-scale training runs, practitioners verify their muP implementation using a coordinate check (coord_check).
A coordinate check tracks the mean absolute update of layer activations over initial training steps across models of exponentially increasing widths (for example, ):
- Failure Mode (Standard Parametrization): The mean activation update norm forms upward-sloping curves proportional to width , demonstrating parameter instability.
- Success Mode (muP): Activation update norms across all layers collapse into flat, overlapping horizontal lines, confirming that update magnitudes are scale-invariant at .
Zero-Shot Hyperparameter Transfer (muTransfer) in Production
The primary engineering deliverable of muP is muTransfer: the ability to perform rigorous hyperparameter sweeps on tiny models and transfer the optimal configuration directly to frontier-scale foundation models.
The production workflow proceeds in four distinct stages:
- Proxy Architecture Selection: Construct a base model with identical depth, vocabulary, and activation functions, but with narrow width (for example, a 13-million or 110-million parameter proxy with or ).
- Comprehensive Grid Sweeps: Run automated hyperparameter searches over learning rate, Adam and , weight decay, and learning rate warmup ratios on the proxy model using standard compute instances.
- Parameter Rescaling: Apply the muP width scaling multipliers to hidden layers, readout projections, and attention blocks for the target architecture (such as a 7-billion, 13-billion, or 70-billion parameter model).
- Direct Pre-Training Launch: Initialize the full-scale model using the transferred optimal hyperparameters without conducting exploratory tuning runs at scale.
Empirical validations by Microsoft Research and Cerebras Systems demonstrated that models trained with muTransfer achieve lower validation perplexity than standard parameterization baselines while eliminating the multi-million dollar overhead of large-scale hyperparameter trial runs.
Sources
- Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer (Yang et al., Microsoft Research / NeurIPS 2021)
- Tensor Programs IV: Feature Learning in Infinite-Width Neural Networks (Yang & Hu, ICML 2021)
- Maximal Update Parametrization (muP) GitHub Repository (Microsoft)
- The Practitioner's Guide to the Maximal Update Parameterization (Cerebras Systems)
- Cerebras-GPT: A Family of Open, Compute-Efficient Language Models (Dey et al., Cerebras Systems / arXiv 2023)
