Abstract
Scaling large models requires optimization strategies that ensure rapid convergence grounded in stability. Maximal Update Parametrization ($\mu$P) provides a theoretical safeguard for width-invariant $\Theta(1)$ activation control, whereas emerging optimizers like Muon are only "half-aligned" with these constraints: they control updates but allow weights to drift. To address this limitation, we introduce the Spectral Sphere Optimizer (SSO), which enforces strict module-wise spectral constraints on both weights and their updates. By deriving the steepest descent direction on the spectral sphere, SSO realizes a fully $\mu$P-aligned optimization process. Through extensive pretraining on diverse architectures, including Dense 1.7B, MoE 8B-A1B, and 200-layer DeepNet models, SSO consistently outperforms AdamW and Muon. Furthermore, we observe significant practical stability benefits, including improved MoE router load balancing, suppressed outliers, and strictly bounded activations.
The Stability Challenge in LLM Scaling
Scaling up Large Language Models (LLMs) requires optimization strategies that don't just learn quickly, but also remain stable. The Maximal Update Parametrization ($\mu$P) framework provides a safeguard for this by dictating how weights and updates should scale to keep neural network activations constant (at a $\Theta(1)$ scale) as model width grows.
However, standard optimizers like AdamW rely on soft regularization (like weight decay) which often fails to prevent weights from drifting over long training runs, leading to unstable activations. Recent, highly efficient optimizers like Muon perform steepest descent under the spectral norm, but they only constrain the updates. Because Muon leaves the weights themselves unconstrained, it is only "half-aligned" with $\mu$P. This weight drift can lead to massive activation spikes (e.g., logit explosions), forcing practitioners to rely on ad-hoc architectural hacks like aggressive normalization (SandwichNorm) or logit softcapping. The Spectral Sphere Optimizer (SSO) aims to simultaneously achieve the steepest descent for speed and strict $\mu$P constraints for fundamental stability.
The Spectral Sphere Optimizer (SSO)
Instead of just normalizing the update step, SSO formulates optimization as a steepest descent problem where both the weights and the updates are strictly constrained to a geometric manifold called the "spectral sphere."
- Tangent Space Update: SSO calculates the gradient and projects it onto the tangent space of the spectral sphere. This involves solving a constrained optimization problem using a Lagrange multiplier, which is solved efficiently using a bracket-and-bisect search algorithm.
- Manifold Retraction: To prevent numerical errors from accumulating and pushing the weights off the sphere, SSO applies a "retraction" step that explicitly projects the weights back onto the target spectral radius before each update.
- Infrastructure Design: To make SSO practical for large-scale distributed training, it is implemented in Megatron-LM using "atomic module sharding" (breaking fused tensors into independent spectral units) and a ping-pong load-balancing strategy to handle the variable workload of the root solver.
Stability and $\mu$P Alignment
A key advantage of SSO is its full alignment with $\mu$P principles. By constraining the spectral norm of the weights themselves, SSO maintains constant activation magnitudes throughout training. This alignment is empirically verified by observing that the optimal learning rate remains consistent across different model widths.
Furthermore, because SSO's retraction step strictly bounds the weight magnitudes on the spectral sphere, traditional weight decay for hidden 2D weights becomes redundant. This removes a notoriously sensitive hyperparameter from the training pipeline.
Performance and Empirical Results
SSO was evaluated on the OLMo-Mix-1124 dataset (100B tokens) across several architectures:
- Dense 1.7B Model: SSO reached AdamW's final validation loss 19% faster and Muon's 12% faster. It also achieved the highest average accuracy (56.35%) across downstream benchmarks (ARC, BoolQ, CSQA, HellaSwag, PIQA, WinoGrande, LAMBADA) compared to AdamW (54.75%) and Muon (55.26%).
- MoE 8B-A1B Model: SSO achieved the lowest validation loss while maintaining the best expert load balance, avoiding the frequent routing spikes seen with AdamW.
- Extreme Depth (200-Layer DeepNet): In a narrow model scaled to 200 layers, AdamW showed severe instability. SSO maintained smooth, stable convergence and achieved the lowest overall loss.
Conclusion and Future Work
SSO demonstrates that strict spectral constraints on both weights and updates provide a superior path to stable, high-performance LLM training. While the current implementation introduces a slight per-step latency due to CPU-GPU synchronization in the root solver, future work will focus on a pure GPU-native solver. Additionally, the strict activation bounds provided by SSO make it an ideal candidate for low-precision training (FP8/NVFP4), where limited dynamic range typically poses a significant challenge.
Summary updated