Summary (Overview)
- HyperP Framework: Introduces the first framework for transferring optimal learning rates across model width, depth, training tokens, and MoE granularity under Frobenius-sphere optimization with the MuonH optimizer.
- Key Theoretical Results: Proves that weight decay is a first-order no-op on the Frobenius sphere, demonstrates that Depth-µP remains necessary (refuting prior claims of inherent depth transferability), and discovers a "magic exponent" of 0.32 for data scaling that matches previous AdamW results.
- Compute Efficiency: A single base learning rate tuned at the smallest scale (208M parameters) transfers across all compute budgets, achieving 1.58× Compute Efficiency Leverage (CEL) over a strong Muon baseline at FLOPs, with MoE models reaching 3.38× CEL over dense baselines.
- Transferable Stability: All six monitored instability indicators (Z-values, output RMS, activation outliers) remain bounded and non-increasing as training FLOPs scale from 913M to 13.3B total parameters.
- SqrtGate Mechanism: A novel square-root gating mechanism for MoE that preserves output RMS across granularities, reducing router Z-value peaks by 5× compared to standard gating.
Introduction and Theoretical Foundation
Background and Motivation
Neural scaling laws are central to compute-efficient LLM development, but identifying true scaling behavior requires each model to be trained with near-optimal hyperparameters. Existing hyperparameter transfer frameworks primarily study first-order optimizers and lack structural guarantees on training stability at scale.
Key challenges addressed:
- Training instability: Scaling up training FLOPs routinely triggers logit explosion, activation outliers, and loss spikes
- Hyperparameter complexity: Weight decay's optimal value depends intricately on learning rate, training duration, and model width
- MoE scaling: Classical gating mechanisms cause output RMS to shrink with granularity
Theoretical Foundation: Hypersphere Optimization
Hypersphere optimization constrains weight matrices to lie on a unit sphere under a chosen matrix norm:
MuonH instantiates this with the Frobenius norm and Muon optimizer:
where is the initial weight norm and .
Key Theoretical Results
Theorem 1 (Weight decay is a first-order no-op): Under Frobenius renormalization, if , then:
where is the tangent-space projection. The weight decay term has no first-order effect.
Theorem 2 (Width transfer): With , hypersphere optimization preserves width transfer without explicit learning rate scaling as in standard µP.
Theorem 3 (Depth scaling): For residual networks with normalized updates:
With standard depth-stabilizing scaling , this gives .
Methodology
Data Scaling Law
Through empirical studies varying training tokens from 10.4B to 166.4B with fine-grained LR sweeps, the optimal learning rate follows:
where is the total training tokens. Leave-one-out cross-validation gives a mean absolute prediction error of only 1.50% for optimal LR.
HyperP Parameterization Summary
The framework applies:
- Weight decay: Eliminated entirely (set to 0)
- Width scaling: Native transfer via Frobenius-sphere constraint
- Depth scaling: with residual multiplier
- Data scaling:
SqrtGate for MoE
Proposition 5 (Classical gating is k-dependent): With classical softmax gating:
for near-uniform routing weights, showing output RMS shrinks with granularity.
Proposition 6 (SqrtGate is approximately k-invariant): By replacing with :
The routed-branch RMS is approximately invariant to granularity .
Training Setup
- Architecture: Transformer-Next with GQA (4 KV heads), head dimension 128, aspect ratio (width ), QK-Norm, headwise gated attention
- Data: SlimPajama dataset, context length 4K, batch size 2M tokens
- Schedule: Linear decay to 10% of peak without warm-up, momentum 0.95
- Scaling: Chinchilla law with Tokens Per Parameter (TPP)
Empirical Validation / Results
MuonH vs. Muon Optimality
| Method | Fitted η* | Best Val Loss | Weight Decay |
|---|---|---|---|
| Muon (best λ=10⁻³) | 0.0222 | 2.479 | 10⁻³ |
| MuonH (λ=0) | 0.0155 | 2.475 | 0 |
MuonH achieves slightly better validation loss while entirely removing weight decay as a hyperparameter.
Depth Scaling Verification
Without Depth-µP, optimal LR decreases from at d=8 to at d=24. With Depth-µP, the optimal LR remains nearly constant at – from d=8 to d=24, validating the theoretical predictions.
Critical Batch Size
The optimal LR scales as , with exponent ≈ 0.56 sitting between linear scaling (1.0) and square-root rule (0.5).
MoE Scaling Results
Auxiliary Balance Loss: The largest weight achieves the best loss (2.332) with the lowest Mean MaxVio (0.086), contrasting with prior work suggesting auxiliary loss harms quality.
| γ | Best Val Loss | Mean MaxVio |
|---|---|---|
| 10⁻³ | 2.334 | 0.848 |
| 10⁻² | 2.336 | 0.132 |
| 10⁻¹ | 2.332 | 0.086 |
Sparsity Scaling: Optimal LR varies only mildly (0.012–0.016) across a 32× sparsity range, with increasing sparsity improving validation loss by 0.224 from S=1 to S=32.
Granularity Scaling: With SqrtGate, performance improves up to k=32 (best loss 2.310), whereas baseline saturates at k=16. SqrtGate consistently improves val loss at every k.
Compute Scaling Comparisons
At the largest budget ( FLOPs):
- MuonH+HyperP: 1.58× CEL over Muon baseline, lowest irreducible floor ()
- MuonH+HyperP MoE: 3.38× CEL over dense baselines, comparable floor ()
- MuonH without HyperP: Declines to 0.70× CEL, showing LR transfer mismatch compounds into substantial penalty
Transferable Stability
All six monitored instability indicators (attention Z-values, router Z-values, attention output RMS, MoE output RMS, attention outlier %, MoE outlier %) are bounded and non-increasing with scale. Router Z-value peaks decrease monotonically with depth (from 56 at d=8 to 33 at d=20).
LR Estimation Sensitivity
- Optimal loss is 50–140× less sensitive than optimal LR estimation
- With n=5 points, worst-case LR error is 4.1%, but corresponding loss error is only 0.04% (~0.001 nats)
- Five points suffice for reliable estimates
Theoretical and Practical Implications
Theoretical Contributions
-
Weight decay elimination: Proves that Frobenius-sphere optimization makes weight decay a first-order no-op, reducing hyperparameter search from the joint plane to a single dimension .
-
Universal scaling exponent: The "magic exponent" 0.32 for data scaling matches previous AdamW results, suggesting universality across optimizers.
-
Depth transfer correction: Refutes the claim that MuonH is inherently depth-transferable, showing Depth-µP remains necessary due to cumulative angular drift from residual connections.
-
Bounded logits: For any weight matrix with and input with :
This provides structural stability guarantees that standard training lacks.
Practical Implications
-
Single-scale tuning: One LR sweep at small scale (d=8, 208M parameters) determines learning rates for the full scaling trajectory up to 3.8B active parameters.
-
MoE load balancing: Hypersphere optimization enables substantially larger auxiliary load-balancing weights, achieving both strong performance and good expert balance simultaneously.
-
Architecture stability: While loss improvements from QK-Norm, Gated Attention, and SqrtGate diminish with scale, their stability benefits (preventing RMS spikes, controlling Z-values) become increasingly important for long-horizon training.
-
Compute efficiency: The advantage of HyperP over baselines grows monotonically with scale, implying even larger gains at frontier compute budgets.
Conclusion
HyperP is the first framework for transferring a single optimal learning rate across model width, depth, training tokens, and MoE granularity under Frobenius-sphere optimization. Key achievements include:
- Theoretical advances: Weight decay elimination proof, depth scaling derivation, and the discovery of a universal data-scaling exponent (0.32)
- Practical gains: 1.58× compute efficiency over Muon baseline at FLOPs, with MoE models reaching 3.38× CEL
- Stability guarantees: All monitored instability indicators are non-increasing with scale under transferred hyperparameters
- Novel MoE mechanism: SqrtGate preserves output RMS across granularities with 5× reduction in router Z-value peaks
Future Directions
- Theoretical derivation of the magic data scaling exponent 0.32 for universality guarantees
- Extension to other architectures (hybrid models, linear recurrent models)
- Batch size scaling: The exponent 0.56 deviates from SDE-predicted 0.5, warranting further investigation
- Optimizer momentum analysis: Extending transfer laws to momentum terms for better scaling performance
- Re-fitting Chinchilla law per training dataset, as the current assumption may not be universally optimal
Related papers
- SPADE: Self-Play in Adaptive Synthetic Executable Environments
SPADE lets a single LLM both write executable training environments and solve them, achieving +8.1 average improvement over base on eight held-out benchmarks via hint-based regret self-play.
- Training Transformers for KV Cache Compressibility (KV-CAT)
KV-CAT trains transformers with learned routers to produce inherently compressible KV caches, improving compression quality up to 3.21x without sacrificing dense performance.
- COBS: Cumulant Order Block Sparse Attention
COBS stores compressed per-block key covariances to raise block sparse attention selection from first-order to second-order approximations, closing 86% of the gap to dense attention with minimal extra KV cache reads.