TL;DR
The paper introduces HyperP (Hypersphere Parameterization), the first hyperparameter transfer framework designed for hypersphere optimization using the Muon optimizer. By constraining weight matrices to a fixed-norm sphere, HyperP allows a single optimal learning rate tuned at a small scale to seamlessly transfer across model width, depth, training tokens, and Mixture-of-Experts (MoE) granularity, while structurally guaranteeing training stability at scale.
What Problem Does This Paper Address?
Scaling up Large Language Models (LLMs) is notoriously expensive and prone to training instabilities like logit explosions, activation outliers, and catastrophic loss spikes. To avoid wasting massive compute budgets, researchers use hyperparameter transfer frameworks (like Maximal Predictable Parameterization, or $\mu$P) to find the optimal learning rate (LR) on a small proxy model and project it to the target scale.
However, existing $\mu$P frameworks are primarily built for standard first-order optimizers (like AdamW) and do not structurally prevent training instability. Recent work on hypersphere optimization (e.g., MuonH), which projects weight matrices onto a fixed-norm hypersphere, offers a more stable alternative. Unfortunately, until now, we lacked clear hyperparameter transfer laws for hypersphere optimization across depth, token horizons, and Mixture-of-Experts (MoE) configurations.
Methods
The authors develop HyperP, a comprehensive parameterization framework tailored for Frobenius hypersphere optimization using the MuonH optimizer.
Key methodological components include:
- Elimination of Weight Decay: The authors mathematically prove that weight decay acts as a first-order "no-op" (no operation) under Frobenius-sphere renormalization. This completely removes weight decay from the hyperparameter tuning space.
- Depth Scaling Law: They disprove the notion that MuonH is inherently depth-transferable, deriving a necessary depth-dependent LR scaling factor of $O(L^{-1/2})$ to account for cumulative angular drift across residual layers.
- SqrtGate for MoEs: To scale Mixture-of-Experts granularities smoothly, they introduce SqrtGate, a square-root gating mechanism that preserves the root-mean-square (RMS) of the output signal regardless of how many experts ($k$) are activated.
A summary of how HyperP modifies parameter scaling compared to standard $\mu$P and $\mu$P++ can be seen below:
Datasets
All models were trained from scratch on the SlimPajama dataset, utilizing token allocations ranging from 10.4B to 166.4B tokens to establish data scaling behaviors.
Key Insights and Ideas
- The Universal "Magic Exponent": Empirically tracking optimal learning rates across token horizons revealed that the optimal LR follows a clean power law: $\eta^* \propto T^{-0.32}$. This exact exponent (0.32) matches previous findings for AdamW, strongly suggesting that data-dependent learning rate scaling is a universal property of gradient-based optimization, independent of the optimizer itself.
- Transferable Stability: Unlike standard training where scaling up increases the risk of activation outliers and logit explosions, HyperP exhibits transferable stability. Monitored instability metrics (Z-values, output RMS, outlier percentages) actually remain bounded or decrease as the model scales up.
- Rethinking MoE Load Balancing: In standard MoE training, adding a heavy auxiliary load-balancing loss typically degrades language modeling performance. Under hypersphere optimization, the bounded logits naturally prevent this interference, allowing researchers to use much larger load-balancing weights to achieve perfect expert balance without sacrificing model quality.
Key Results
- Compute Efficiency Gains: At a large compute budget of $6 \times 10^{21}$ FLOPs, dense models trained with MuonH+HyperP achieved a 1.58× Compute Efficiency Leverage (CEL) over a strong Muon baseline.
- MoE Superiority: Applying HyperP to an MoE model equipped with SqrtGate yielded a massive 3.38× CEL over the dense baselines.
- MuonH vs. Muon: MuonH matches or slightly exceeds the validation performance of standard Muon while completely eliminating the need to co-tune weight decay.
- Logit Control: SqrtGate successfully stabilized MoE routing, reducing router Z-value peaks by 5× compared to classical softmax gating.
Limitations and Future Work
While HyperP marks a significant step forward, the authors note several limitations:
- The "magic" data-scaling exponent of 0.32 is purely empirical and lacks a formal theoretical derivation.
- The batch size scaling exponent found in their experiments (0.56) slightly deviates from the theoretical 0.5 predicted by Stochastic Differential Equation (SDE) analysis.
- The framework assumes the Chinchilla optimal data-to-parameter ratio, which may need re-fitting for different datasets.
- Future work is required to extend these hypersphere scaling laws to alternative architectures like hybrid models or linear recurrent neural networks (e.g., Mamba).
Summary updated