Papers
Topics
Authors
Recent
Search
2000 character limit reached

Spectral Sphere Optimizer (SSO)

Updated 14 January 2026
  • Spectral Sphere Optimizer (SSO) is an optimization method that enforces strict spectral-norm constraints on both weights and updates, ensuring bounded activations under the Maximal Update Parametrization (μP).
  • It employs a constrained steepest-descent formulation that computes updates in the tangent space of the spectral sphere, resulting in rapid convergence and width-invariant learning dynamics.
  • Through efficient parallelization in platforms like Megatron, SSO outperforms traditional optimizers such as AdamW and Muon, offering improved stability and precise scaling in massive language models and MoE architectures.

The Spectral Sphere Optimizer (SSO) is an optimization method specifically designed for large-scale model training to achieve rapid convergence, rigorous stability, and strict scaling alignment under Maximal Update Parametrization (μP). SSO enforces simultaneous spectral-norm constraints on both weights and updates in each module, ensuring that model activations remain bounded and learning dynamics are width-invariant. Through a theoretically precise constrained steepest-descent formulation, SSO obtains updates that reside in the tangent space of the spectral sphere and applies an efficient parallel implementation suitable for massive LLMs and mixture-of-experts architectures (Xie et al., 13 Jan 2026).

1. Optimization Objective and Rationale

The optimization objective in SSO is to combine the fast convergence of steepest descent (in the spectral norm) with μP’s strict width-dependent activation control. Traditional optimizers such as AdamW allow weight drift, which leads to unbounded activation growth and degraded feature learning. Muon, by enforcing only the spectral norm of the update (ΔW2\|\Delta W\|_2), remains only “half-aligned” with μP, as it allows the weights W2\|W\|_2 to drift. SSO resolves this by solving the exact constrained optimization problem at each step: maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R, where R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}}), ensuring that both weights and updates live on spectral spheres scaled in accordance with μP theory. This achieves a fully μP-aligned optimization process, yielding bounded activations and stable training dynamics (Xie et al., 13 Jan 2026).

2. Spectral-Sphere Constraint Formulation

For any two-dimensional parameter matrix WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}, the spectral radius is fixed: W2=R,\|W\|_2 = R, with RR chosen as Θ(dout/din)\Theta(\sqrt{d_\text{out}/d_\text{in}}) to ensure operator-norm stability under μP. The update is decomposed as ΔW=ηRφ\Delta W = \eta R \varphi with φ2=1\|\varphi\|_2 = 1, and the constrained step requires that both the weight and the update after the step reside precisely on their respective spectral spheres: W2\|W\|_20 In practice, a first-order (tangent space) constraint is solved exactly, followed by a retraction step to ensure the post-update weight matrix precisely satisfies W2\|W\|_21. This locking of the spectral norm after each update ensures activations remain strictly bounded (Xie et al., 13 Jan 2026).

3. Algorithmic Derivation and Update Mechanics

The constrained steepest descent step is derived as follows. Let W2\|W\|_22. Introducing W2\|W\|_23, the update is found by solving: W2\|W\|_24 where the second constraint ensures the update direction lies in the tangent space to the spectral sphere at W2\|W\|_25. The Lagrangian becomes W2\|W\|_26. The maximizer, for fixed W2\|W\|_27, is the matrix-sign of W2\|W\|_28: W2\|W\|_29 where if maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,0 is the top-maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,1 SVD of maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,2, maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,3. The optimal maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,4 is chosen such that the tangent constraint maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,5 holds; this is solved numerically by bisection: maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,6 The update is then: maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,7 followed by a retraction: maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,8 A compact expression, utilizing the SVD maxΔWΔW,WL(W)subject toW2=R,    ΔW2=ηR,\max_{\Delta W} \langle \Delta W, \nabla_W L(W) \rangle \quad \text{subject to} \quad \|W\|_2 = R,\;\; \|\Delta W\|_2 = \eta R,9 and leading pair R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})0, is the tangent projector R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})1, yielding

R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})2

projecting R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})3 onto the tangent space and stepping in that direction up to the R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})4-shift (Xie et al., 13 Jan 2026).

4. μP Scaling Alignment and Theoretical Guarantees

The optimizer achieves strict μP alignment by enforcing both the spectral norm constraints on weights and updates: R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})5 This provides width-invariant scaling, so that the learning rate may be kept constant across model sizes without the risk of activation explosion. In contrast, Muon only enforces R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})6 but not R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})7, permitting hidden activation drift (“half-aligned”), whereas SSO exactly preserves both. The result is strictly bounded activations and improved stability, especially relevant in large-scale LLM and MoE settings (Xie et al., 13 Jan 2026).

5. Parallelized Implementation in Megatron

SSO is implemented in the Megatron-GPT codebase using several engineering strategies for efficiency and scalability:

  • Atomic Module Sharding: Each logical sub-matrix (such as attention Q, K, or V projections and SwiGLU gate/up matrices) is separately constrained and updated, avoiding over- or under-constraint. Sharding is performed at the atomic module level across data-parallel (DP) ranks.
  • Load Balancing: Due to varying compute required for the spectral solver (bracketing and bisecting for R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})8), modules are zigzag assigned to DP ranks to interleave large and small workloads.
  • Synchronization and Communication: After the spectral update, parameters are synchronized via iterative All-Gather on the atomic shards.
  • Kernel and Precision Optimizations: Adaptive msign kernels—for small matrices (R=Θ(dout/din)R = \Theta(\sqrt{d_\text{out}/d_\text{in}})9), JIT torch.addmm, and for large, Triton SYRK-optimized Newton–Schulz. Multi-streaming hides launch latency on small independent modules. Power iteration for WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}0 is in BF16, msign in FP32 with 8 iterations, with WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}1 cached for rapid convergence (Xie et al., 13 Jan 2026).

6. Empirical Evaluation and Performance Analysis

Comprehensive empirical results demonstrate SSO’s performance advantages:

Model / Setting AdamW Muon SSO
Dense 1.7B (100B tokens) 23K steps (loss 2.588), 54.75% acc 20.3K steps (loss 2.588), 55.26% acc 18.7K steps (loss 2.588), 56.35% acc
MoE 8B-A1B (Router Max-Violation) ∼0.20 with spikes ∼0.10 ∼0.02 (consistent)
DeepNet 200-layer Spiky, slow More stable, tail heavy Smoothest, lowest-loss

SSO accelerates convergence (e.g., 19% fewer steps on Dense 1.7B for target loss), produces higher downstream accuracy, yields tightly controlled router load variance in MoEs, and achieves smoothly descended training loss in deep architectures. In Dense-1.7B, attention AbsMax and FFN RMS remain at WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}2 under SSO, while AdamW shows activation growth by WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}3 (Xie et al., 13 Jan 2026).

7. Ablation Studies and Hyperparameter Strategies

Ablation studies reveal optimal choices and practical considerations:

  • Spectral Radius Scaling: WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}4, with WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}5 yielding best loss. AbsMax scales linearly with WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}6; RMS scales as WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}7, WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}8.
  • Learning Rate Scaling: Spectral μP scaler WRdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}9 outperforms both Align-Adam-RMS and Spectral-Kaiming.
  • Module Granularity: Split attention QKV per head for maximal gain; for SwiGLU, keep gate/up separate by default.
  • Solver Tolerance and Iterations: W2=R,\|W\|_2 = R,0-root tolerance W2=R,\|W\|_2 = R,1, max 20 iterations; bracket 1–3 steps, bisection 5–7 steps. msign with 8 Newton–Schulz iterations in FP32 (5 in BF16, negligible precision loss).
  • Momentum and Weight Decay: Nesterov momentum W2=R,\|W\|_2 = R,2; no explicit weight decay for hidden 2D weights (enforced by retraction). 1D parameters may optionally use small decay; results are mixed.

These studies support the prescription that stability and transferability are optimized by enforcing spectral constraints at the most granular and theoretically justified level (Xie et al., 13 Jan 2026).


SSO is thus the uniquely defined optimizer that solves the exact constrained steepest-descent step on the spectral sphere, realizes strict μP scaling on both weights and updates, is practical at large scale via efficient parallelization, and outperforms or matches established optimizers such as AdamW and Muon while guaranteeing strict activation and routing stability mandatory for robust LLM and MoE training (Xie et al., 13 Jan 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Spectral Sphere Optimizer (SSO).