Controlled LLM Training on Spectral Sphere
Tian Xie, Haoming Luo, Haoyu Tang, Hu Yiwen, Jason Liu, Qingnan Ren, Yang Wang, Xin Zhao, Rui Yan, Bing Su, Chong Luo, Baining Guo
Overview
Large Language Model (LLM) pre-training requires balancing two competing priorities: training speed (how rapidly the loss decreases) and training stability (preventing hidden activations and attention logits from drifting or blowing up). Traditional optimizers like AdamW achieve fast convergence through coordinate-wise scaling, but frequently struggle with activation instabilities at scale. Conversely, constraint-based optimizers like Spectral Mu-P maintain stability by controlling weight scaling, but leave parameter updates unconstrained, causing long-term weight drift. This talk introduces the Spectral Sphere Optimizer (SSO), a novel optimization framework designed to unify rapid convergence with geometric stability by enforcing updates on a constrained spectral manifold.

Key moments
- 0:00 Introduction to Spectral Sphere Optimizer and stability goals
- 2:00 SSO algorithm design and geometric tangent constraints
- 4:00 Practical recipes and experimental pre-training results
- 6:00 Conclusion, takeaways, and audience Q and A session
Controlled LLM Training on Spectral Sphere
Speakers: Tian Xie; Haoming Luo; Haoyu Tang; Hu Yiwen; Jason Liu; Qingnan Ren; Yang Wang; Xin Zhao; Rui Yan; Bing Su; Chong Luo; Baining Guo
Conference: ICML
YouTube: https://slideslive.com/39083566
Overview
Large Language Model (LLM) pre-training requires balancing two competing priorities: training speed (how rapidly the loss decreases) and training stability (preventing hidden activations and attention logits from drifting or blowing up). Traditional optimizers like AdamW achieve fast convergence through coordinate-wise scaling, but frequently struggle with activation instabilities at scale. Conversely, constraint-based optimizers like Spectral Mu-P maintain stability by controlling weight scaling, but leave parameter updates unconstrained, causing long-term weight drift. This talk introduces the Spectral Sphere Optimizer (SSO), a novel optimization framework designed to unify rapid convergence with geometric stability by enforcing updates on a constrained spectral manifold.
Presented at ICML by Tian Xie on behalf of a large collaborative team, the research demonstrates that SSO accelerates LLM pre-training by roughly 19% over carefully tuned AdamW baselines while maintaining strict control over internal activation scales. By formulating weight updates as steepest descent under the matrix spectral norm combined with a rank-one corrected tangent space projection, SSO addresses the fundamental tradeoffs in modern neural network training. This article details the mathematical formulation, systems engineering, and empirical evaluations of the Spectral Sphere Optimizer across dense and Mixture-of-Experts (MoE) architectures.
Background
▶ Watch: Introduction to Spectral Sphere Optimizer and stability goals (0:00)
In the systems and machine learning community, designing optimizers for large-scale transformer training has traditionally focused on empirical heuristics rather than geometric principles. However, almost all first-order optimizers can be unified under the framework of steepest descent under a chosen norm. Under this perspective, SGD corresponds to the Frobenius norm ($F$-norm), Adam corresponds to the $L_\infty$ norm, and the Mu-optimizer corresponds to the matrix spectral norm.
Maintaining stable training in deep linear and transformer layers requires controlling how activation scales propagate through the network. Specifically, for a linear layer, an input with a constant Root Mean Square (RMS) scale should produce an output with a controlled, predictable scale. Spectral Mu-P provides scaling rules for this stability, asserting that both the weight and its updates must maintain a constant scale denoted as $\theta^2 \frac{dL}{d_{\text{in}}}$.
However, standard spectral optimizers only regulate the weight matrix while leaving the update step unconstrained. Over long training horizons, unconstrained updates allow weights to drift, culminating in activation explosions and attention logit blow-ups. While alternative geometric spaces like the Stiefel manifold enforce strict constraints by fixing all singular values to exact unity (proving overly rigid), and unconstrained spaces like the hyperball allow the largest singular value to dominate (proving too loose), a principled middle ground is required. SSO bridges this gap by operating directly on the spectral sphere, controlling exclusively the largest singular value to establish rigorous worst-case activation bounds.
Key Findings
▶ Watch: SSO algorithm design and geometric tangent constraints (2:00)
The primary contribution of this work is the Spectral Sphere Optimizer (SSO), which reformulates weight updates to enforce optimization speed while preserving the stable geometry of the weight matrix. Key findings and empirical results include:
- Throughput Gains: On a 1.8-billion parameter Qwen-style model trained on 100 billion tokens, SSO achieves a 19% training speedup compared to a fully tuned AdamW baseline, while simultaneously achieving a lower final loss than both AdamW and standard Spectral Mu-P.
- Activation Stability: SSO tightly bounds hidden RMS and Absolute Maximum (ABS-max) values along a linear trajectory. In contrast, AdamW exhibits activation outliers that reach magnitudes up to 100 times larger than those observed under SSO and Mu-P.
- Parameter Transfer Consistency: Unlike standard spectral optimizers—whose optimal learning rates can drift across model scales due to partial constraint enforcement—SSO maintains a strictly constant optimal learning rate across varying model dimensions under Mu-P width transfer scaling laws.
- Robustness in Stress Tests: SSO demonstrates exceptional stability in extreme training regimes, including Mixture-of-Experts (MoE) architectures (mitigating router balance instability and reducing max violation scores) and deep-stack architectures utilizing a 200-layer DeepNet stress test.
Technical Deep Dive
▶ Watch: Practical recipes and experimental pre-training results (4:00)
The technical architecture of the Spectral Sphere Optimizer rests on constrained optimization over matrix spectral norms. To guarantee that updates do not compromise the geometric stability of the weight matrix, SSO forces updated weights to remain precisely on the spectral sphere.
Mathematical Formulation and Geometry
Viewed geometrically, if a weight matrix $\theta$ is constrained to a fixed spectral sphere, any valid update must occur along its tangent space. For the spectral norm, the tangent space is defined by the top left and right singular vectors.
Rather than utilizing unconstrained gradients, SSO derives its optimal update by applying the M-sign function to a rank-one corrected gradient. This rank-one correction provides sufficient rotational adjustment to align the standard gradient directly with the tangent space of the weight matrix:
$$\Delta \theta_{\text{SSO}} = \text{M-sign}\left(\nabla_{\theta} L + \text{rank-one correction}\right)$$
To solve the associated constrained optimization problem, the framework constructs a Lagrangian function $H(\lambda)$. The authors prove that $H(\lambda)$ is non-decreasing and possesses a single unique root near zero, allowing efficient evaluation via bisection steps.
Because first-order tangent space approximations accumulate small numerical errors over long training horizons, SSO applies a spectral norm retraction step at each iteration. This forces the weight matrix back onto the spectral sphere, entirely eliminating the need for traditional weight decay across all hidden two-dimensional weight matrices.
Infrastructure and Systems Engineering
Because the matrix operations and tangent projections introduced by SSO incur non-trivial computational overhead, the authors engineered specific software and systems optimizations within Megatron-LM to bridge the performance gap:
- Spectral Mu-P LR Scaling: Implementing a specialized learning rate scalar designed to maintain a consistent relative step size across varying layer shapes.
- Radius Scaling: Tuning the $C$ parameter to regulate branch output magnitude relative to the residual stream, enabling direct control over activation ABS-max and RMS scales.
- Matrix Disaggregation: Standard Megatron implementations fuse Query-Key-Value (QKV) projections and SwiGLU gate/up matrices for efficiency. SSO recommends un-fusing these operations—specifically splitting QKV projections by individual attention heads—which yields the largest empirical throughput and stability gains.
Experimental Setup & Results
▶ Watch: Conclusion, takeaways, and audience Q and A session (6:00)
The evaluation of SSO was conducted using rigorous large-scale pre-training workloads designed to test both convergence efficiency and numerical stability.
- Datasets & Scale: Models were pre-trained on a 100 billion token dataset, representing approximately a 20x overtraining factor relative to Chinchilla-optimal scaling laws for the tested model size, ensuring that loss convergence was thoroughly evaluated.
- Model Architectures: Experiments utilized an 1.8-billion parameter Qwen-style dense model and extended to specialized architectures including Mixture-of-Experts (MoE) models and an extreme 200-layer DeepNet stress-test configuration.
- Baselines: SSO was benchmarked against AdamW (tuned under its most favorable hyperparameters) and standard Spectral Mu-P.
- Headline Metrics:
- Achieved a 19% reduction in training time compared to highly tuned AdamW.
- Maintained hidden RMS and ABS-max activation bounds with zero outlier spikes, contrasting sharply with the orders-of-magnitude activation spikes seen in AdamW.
- Preserved optimal learning rate invariance across scaled model widths.
Practical Implications
For infrastructure teams, model builders, and systems deployers, the Spectral Sphere Optimizer offers a compelling alternative to AdamW for massive-scale transformer training.
- Elimination of Hyperparameter Tuning Drifts: Because SSO adheres strictly to Mu-P width transfer rules, practitioners can tune optimal learning rates on smaller proxy models and reliably transfer them to multi-billion parameter architectures without re-tuning.
- Mitigation of Numerical Instability: Deploying ultra-deep networks or MoE architectures frequently introduces catastrophic activation spikes that require precision adjustments or gradient clipping. SSO internalizes this stability, reducing the risk of sudden training divergence.
- Implementation Overhead: While the mathematical formulation requires rank-one corrections and bisection root-finding, providing drop-in Megatron-LM compatible code recipes (such as per-head QKV splitting) minimizes the engineering barrier to adoption.
- Tradeoffs: The method introduces additional compute overhead per step compared to standard unconstrained optimizers, which is successfully amortized by the 19% wall-clock training speedup derived from faster loss reduction and elimination of wasted training runs caused by divergence.
Key Takeaways
- Unified Optimization: SSO connects training speed and geometric stability into a single steepest-descent optimizer operating under the matrix spectral norm.
- Tangent Space Constraints: By applying a rank-one corrected gradient and spectral norm retraction, SSO maintains weights precisely on the spectral sphere, eliminating weight decay.
- Empirical Efficiency: Delivers a 19% pre-training speedup over fully tuned AdamW on a 1.8B parameter Qwen-style model trained on 100B tokens.
- Activation Control: Tightly bounds hidden RMS and ABS-max scales, preventing the massive outlier spikes characteristic of traditional optimizers.
- Robustness at Scale: Excels in unstable training environments, including Mixture-of-Experts routing and 200-layer DeepNet stress tests.
- Drop-in Readiness: Supported by practical implementation recipes and code frameworks tailored for Megatron-LM.
About the Speaker(s)
Authors: Tian Xie, Haoming Luo, Haoyu Tang, Hu Yiwen, Jason Liu, Qingnan Ren, Yang Wang, Xin Zhao, Rui Yan, Bing Su, Chong Luo, Baining Guo.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026