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 paper presents the Spectral Sphere Optimizer (SSO), a training method for large language models that enforces strict spectral constraints on both weights and updates to achieve stable, width-aware learning aligned with Maximal Update Parametrization (muP). By solving a constrained steepest-descent problem on the spectral sphere and applying a retraction to keep the weight norm fixed, SSO achieves faster convergence and stronger stability than AdamW and Muon, while enabling robust activation bounding and MoE router balance. The authors provide a Megatron-LM implementation with architectural and infrastructural guidelines (atomic modularity, load balancing, adaptive kernels, and caching) to scale SSO to hundreds of billions of parameters. Empirical results across Dense 1.7B, MoE 8B-A1B, and DeepNet 200-Layer models show improved convergence speed, bounded activations, reduced outliers, and improved MoE routing stability, indicating strong practical impact for scalable LLM pretraining. The work also outlines future GPU-native solvers, kernel optimizations, and low-precision pathways to further enhance efficiency and applicability.
Abstract
Scaling large models requires optimization strategies that ensure rapid convergence grounded in stability. Maximal Update Parametrization ($\boldsymbolμ$P) provides a theoretical safeguard for width-invariant $Θ(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 \textbf{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 $\boldsymbolμ$P-aligned optimization process. To enable large-scale training, we implement SSO as an efficient parallel algorithm within Megatron. 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.
