Controlled LLM Training on Spectral Sphere

Tian Xie, Haoming Luo, Haoyu Tang, Yiwen Hu, Jason Klein Liu, Qingnan Ren, Yang Wang, Wayne Xin Zhao, Rui Yan, Bing Su, Chong Luo, Baining Guo

TL;DR

The Spectral Sphere Optimizer (SSO) achieves fully stable, width-invariant Large Language Model (LLM) pretraining by enforcing strict spectral constraints on both weights and updates. By unifying the rapid convergence of steepest descent with the theoretical safeguards of Maximal Update Parametrization ($\mu$P), SSO eliminates weight drift and activation explosions, outperforming both AdamW and Muon across dense and Mixture-of-Experts (MoE) architectures.

What Problem Does This Paper Address?

Scaling LLMs requires a delicate balance between convergence speed and training stability. Maximal Update Parametrization ($\mu$P) provides a theoretical framework to keep activation scales stable ($\Theta(1)$) as model width increases, acting as a safeguard against catastrophic activation explosions. However, standard optimizers like AdamW do not inherently respect these constraints, leading to massive activation drift and instability over long training horizons.

Recently, advanced optimizers like Muon have emerged to accelerate convergence by performing steepest descent under the spectral norm. However, the authors reveal a critical flaw: Muon is only "half-aligned" with $\mu$P. While it constrains parameter updates, it leaves the forward weights unconstrained. Over time, these weights drift, destabilizing the effective step size (the update-to-weight ratio) and causing attention logit explosions. To combat this, practitioners rely on ad-hoc architectural patches (like QK-Norm or logit softcapping) that can degrade model expressivity. This paper introduces a mathematically unique solution that simultaneously delivers optimal convergence speed via steepest descent and strict $\mu$P stability.

Methods

The authors introduce the Spectral Sphere Optimizer (SSO), which constrains both weights and updates to a module-wise spectral sphere of radius $R$ calibrated to the $\mu$P scaling law.

Key algorithmic components include:

  1. Tangent Space Optimization via $\lambda$-Search: SSO formulates a constrained optimization problem in the tangent space of the spectral sphere. It uses a Lagrange multiplier ($\lambda$) to find the steepest descent direction, solved efficiently at each step using a custom bracketing and bisection root-finding algorithm.
  2. Manifold Retraction: To prevent higher-order errors from causing weights to drift off the spectral sphere over time, SSO applies a pre-update retraction step ($W \leftarrow W \cdot \frac{R}{\|W\|_2}$). This reordering allows the computationally heavy Power Iteration step to be run only once per update, reusing the singular vectors for both retraction and tangent projection.
  3. Zero Weight Decay: Because the hard retraction strictly bounds weight magnitudes, conventional weight decay becomes completely redundant for hidden 2D weights and is eliminated.
  4. Fine-Grained Module Granularity: Instead of applying constraints to large, fused tensors (like QKV projections), SSO decomposes them into independent atomic modules (e.g., splitting QKV per head), which significantly boosts performance.

To scale this efficiently in Megatron-LM, the authors implement Atomic Module Sharding, a size-aware "ping-pong" load balancing strategy to distribute variable solver workloads across data-parallel ranks, and adaptive Triton kernels to accelerate matrix operations.

Datasets

  • Pretraining: The models were pretrained on 100 billion tokens sampled from the OLMo-Mix-1124 dataset, with 1 billion tokens reserved for validation.
  • Downstream Evaluation: Models were evaluated across a suite of standard zero-shot benchmarks: ARC (Challenge and Easy), BoolQ, CSQA, HellaSwag, PIQA, WinoGrande, and LAMBADA.

Key Insights and Ideas

  • The "Half-Aligned" Trap: Optimizers that only constrain update directions (like Muon) still suffer from weight drift. This drift gradually degrades the effective step size and destabilizes feature learning over long horizons, proving that constraining the weights themselves is non-negotiable for true $\mu$P alignment.
  • Geometry of Steepest Descent: Projecting the gradient onto the tangent space of the spectral sphere yields a larger update angle under weight constraints compared to unconstrained updates, maximizing the efficiency of each step.
  • Redundancy of Weight Decay: Enforcing hard geometric constraints on a manifold naturally bounds parameters, proving that explicit weight decay hyperparameters can be safely removed for hidden layers without sacrificing stability.

Key Results

  • Faster Convergence: On a Dense 1.7B model, SSO reached the same final validation loss level as AdamW 19% faster (compared to Muon's 12% speedup), despite the setup being hyperparameter-tuned to favor AdamW.
  • Perfect $\mu$P Learning Rate Transfer: SSO demonstrates flawless width-invariant scaling across a 25× range of model sizes (70M to 1.8B parameters), showing zero optimal learning rate drift, whereas Muon still exhibits mild drift.
Figure 2: µP width scaling across 25× model sizes (70M to 1.8B). Although µP aims for width- invariant scaling, Muon still exhibits notable optimal learning rate drift. In contrast, our Spectral Sphere achieves stable LR transfer, while also obtaining lower optimal loss than Muon. More details and related experiments are provided in Appendix A.5.
  • Strict Activation Bounding: SSO maintains completely flat, constant activation magnitudes (AbsMax and RMS) throughout training, while AdamW's activations explode to $\sim 100\times$ higher magnitudes.
Training dynamics showing that SSO maintains constant activation magnitudes compared to exploding AdamW activations.
  • MoE and Deep Network Stability: In a MoE 8B-A1B architecture, SSO achieved the lowest validation loss and significantly improved expert load balancing (measured by lower Maximal Violation spikes). It also successfully stabilized an ultra-deep 200-layer DeepNet stress test where AdamW suffered severe loss spikes.

Limitations and Future Work

  • Computational Latency: The iterative CPU-based bisection solver introduces host-device synchronization overhead, causing an 11.45% per-step latency regression compared to Muon.
  • Future Solver Optimizations: The authors plan to implement a pure GPU-native solver using more advanced root-finding algorithms (like Brent's method or $n$-section search) to eliminate synchronization bubbles and intend to run the matrix sign function (msign) in BFloat16 to exploit hardware features of next-generation GPUs.
  • Low-Precision Training: While SSO bounds weight matrices perfectly, the residual stream remains a primary source of outliers. Future work will explore combining SSO with fully manifold-constrained architectures to enable ultra-low-precision training (e.g., FP8/NVFP4).

Summary updated

BibTeX
@inproceedings{xie2026controlled,
  author = {Tian Xie and Haoming Luo and Haoyu Tang and Yiwen Hu and Jason Klein Liu and Qingnan Ren and Yang Wang and Wayne Xin Zhao and Rui Yan and Bing Su and Chong Luo and Baining Guo},
  title = {{Controlled LLM Training on Spectral Sphere}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=5kTn1c3vtt},
}
Figure