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 (∥ΔW∥2\|\Delta W\|_2), remains only “half-aligned” with μP, as it allows the weights ∥W∥2\|W\|_2 to drift. SSO resolves this by solving the exact constrained optimization problem at each step: max⁡ΔW⟨ΔW,∇WL(W)⟩subject to∥W∥2=R,    ∥ΔW∥2=η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 W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}, the spectral radius is fixed: ∥W∥2=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: ∥W∥2\|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 ∥W∥2\|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 ∥W∥2\|W\|_22. Introducing ∥W∥2\|W\|_23, the update is found by solving: ∥W∥2\|W\|_24 where the second constraint ensures the update direction lies in the tangent space to the spectral sphere at ∥W∥2\|W\|_25. The Lagrangian becomes ∥W∥2\|W\|_26. The maximizer, for fixed ∥W∥2\|W\|_27, is the matrix-sign of ∥W∥2\|W\|_28: ∥W∥2\|W\|_29 where if max⁡ΔW⟨ΔW,∇WL(W)⟩subject to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 to∥W∥2=R,    ∥ΔW∥2=η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 W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}0 is in BF16, msign in FP32 with 8 iterations, with W∈Rdout×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 W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}2 under SSO, while AdamW shows activation growth by W∈Rdout×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: W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}4, with W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}5 yielding best loss. AbsMax scales linearly with W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}6; RMS scales as W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}7, W∈Rdout×dinW \in \mathbb{R}^{d_\text{out} \times d_\text{in}}8.
  • Learning Rate Scaling: Spectral μP scaler W∈Rdout×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: ∥W∥2=R,\|W\|_2 = R,0-root tolerance ∥W∥2=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 ∥W∥2=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).