betaFeedback

WorksComputer Science

Musec: MomentUm SpEctral Clipping for Stable Muon-type Training

Abstract

Muon has emerged as a highly effective optimizer for large language model training, often achieving superior convergence and performance compared with the widely adopted Adam and AdamW optimizers. Nevertheless, Muon is prone to training instability due to its spectral flattening, manifested by loss spikes and unbounded growth of model weights. Existing approaches primarily rely on weight or attention-logit clipping, which require architecture-specific modifications and do not directly address instability across all model components. We propose MomentUm SpEctral Clipping (Musec), which replaces Muon's spectral flattening with spectral clipping: rather than setting all singular values of the momentum matrix to approximately one, Musec clips singular values that exceed a threshold while preserving the underlying spectral structure of the momentum. Our strategy provides an optimizer-level, architecture-agnostic mechanism for stabilizing Muon training. Theoretically, we establish convergence guarantees for Musec in nonconvex nonsmooth stochastic optimization. Practically, we develop Soft Musec, an efficient implementation that uses a smooth spectral saturation function approximated by coupled Newton-Schulz iterations. Empirically, Soft Musec consistently improves training stability over existing Muon variants across a wide range of learning rates and model sizes, remaining stable in settings where existing Muon variants diverge while matching their performance under well-tuned configurations.

Introduction

Matrix-aware optimizers have recently emerged as strong alternatives to Adam [23] and AdamW [29] for training large language models. Methods such as Shampoo [15], SOAP [41], Muon [20, 28], and Scion [32] exploit the two-dimensional structure of weight matrices to achieve faster convergence. Among these, Muon stands out as the simplest and has already been adopted in several large-scale commercial LLM training efforts, including Kimi K2 [22], GLM-5 [47], and DeepSeek-V4 [43].

Despite the fast convergence, Muon training is known to suffer from training instability, frequently exhibiting exploding weight norms and divergent attention logits [22, 28 Appendix E]. Muon replaces the singular values of its momentum matrix with approximately one, producing an update with a flat singular spectrum. This spectral flattening can inject substantial update magnitude into directions that have relatively small singular values in the original momentum matrix, contributing to unstable weight growth [22 Appendix E]. Several approaches have been proposed to address this instability. Logit soft-capping [12] bounds attention scores after computation, but does not prevent the underlying query-key dot products from growing excessively. QK-Norm [9, 42] normalizes query and key vectors directly, but is incompatible with architectures such as multi-head latent attention (MLA) [27], where key matrices are not explicitly materialized during inference. MuonClip [22] takes a different approach by applying weight clipping to the query-key matrices to constrain attention logits. However, it is inherently architecture-specific and only constrains the query-key weight matrices, leaving the value-output and MLP weights entirely unaddressed. These approaches treat the symptoms of Muon’s instability rather than its root cause, which lies in Muon’s spectral transformation itself.

In this paper, we propose MomentUm SpEctral Clipping (Musec), which replaces Muon’s spectral flattening with a spectral clipping operator. While Muon sets all singular values to one, Musec only clips singular values that exceed a threshold. The resulting update preserves the spectral skewness of the momentum matrix, thereby avoiding the amplification of directions associated with relatively small momentum singular values. Unlike existing remedies that target specific architectural components, such as capping attention logits [12] or clipping query-key weights [22], Musec operates directly within the optimizer and is therefore architecture-agnostic, stabilizing all weight matrices uniformly. Moreover, we show that Musec’s update admits a principled interpretation as constrained steepest descent: it solves a Frobenius-norm-penalized quadratic subproblem subject to a spectral-norm constraint, complementing the unconstrained steepest descent interpretation of Muon established by Bernstein & Newhouse [1]. We demonstrate the effectiveness of Musec both theoretically and empirically. Despite the growing empirical adoption of Muon-type optimizers, their convergence properties beyond the smooth setting remain poorly understood. In fact, Jiang et al. [18] recently showed that Muon does not converge in the general nonconvex nonsmooth setting, highlighting the need for principled modifications to its update rule. Since training objectives in modern deep neural networks are generally nonconvex and may involve nonsmooth components, such as piecewise linear activations and discrete routing mechanisms, we provide convergence guarantees for Musec in the general nonconvex nonsmooth setting. We summarize our main contributions:

  • Theoretically, we consider the following stochastic optimization problem:

min⁡W∈Rm×nf(W)=Eξ∼P[F(W;ξ)](1)\min_{W \in\mathbb{R}^{m \times n}} f(W) = \mathbb{E}_{\xi\sim\mathcal{P}}[F(W;\xi)] \tag*{(1)}

where P\mathcal{P} is some unknown distribution, the objective function f(W)f(W) is ρ\rho-weakly convex and the stochastic component function F(W;ξ)F(W;\xi) is possibly nonconvex and nonsmooth. We show that Musec converges to a (δ,ϵ)(\delta,\epsilon)-Goldstein stationary point of the objective with O(r3/2δ−1ϵ−3+δ2ρ3/2r−3/2+ρ3/4δ−1)O(r^{3/2}\delta^{-1}\epsilon^{-3}+\delta^{2}\rho^{3/2}r^{-3/2}+\rho^{3/4}\delta^{-1}) stochastic gradient oracle calls, where r=min⁡(m,n)r=\min(m,n) is the smaller matrix dimension. As long as the weak convexity parameter satisfies ρ≤O(rδ−1ϵ−1)\rho\le O(r\delta^{-1}\epsilon^{-1}), the dominant term of our complexity is O(r3/2δ−1ϵ−3)O(r^{3/2}\delta^{-1}\epsilon^{-3}). The dependence on the accuracy parameters δ\delta and ϵ\epsilon matches that of the optimal stochastic first-order method for nonconvex nonsmooth optimization [5]. While Jiang et al. [18] showed that Muon with the exact polar update does not converge in the nonconvex nonsmooth setting, Li & Tsuchiya (2026) proved that finite Newton–Schulz iterations restore convergence through implicit smoothing. We provide a complementary result: Musec converges in the nonconvex nonsmooth setting through explicit spectral clipping, offering both convergence guarantees and improved training stability.

  • We further develop an efficient implementation, Soft Musec, which replaces hard spectral clipping with a smooth saturation function and approximates the resulting matrix transformation using coupled Newton–Schulz iterations. Empirically, Soft Musec achieves more stable training than existing Muon variants across multiple datasets, including FineWeb, OpenWebText, and C4, over a substantially wider range of learning rates. Notably, Soft Musec maintains stable convergence in settings where existing Muon variants diverge, while matching their performance under well-tuned configurations.

Concurrent work. Concurrently with our work, Jiang et al. [19] proposed spectral clipping as an optimizer-agnostic wrapper, SPECTRA, that can be applied to various base optimizers, including AdamW [29] and Signum [2]. Yi [45] studied singular-value clipping as a replacement for Muon’s polar step (MuCon), with a focus on the numerical challenges of SVD-free approximation. Jiang et al. [18] established nonconvex nonsmooth convergence guarantees for Pion and Leon, two matrix-aware optimizers derived from adaptive online learning, and showed that Muon with the exact polar update does not converge in this setting. Li & Tsuchiya (2026) subsequently proved that finite Newton–Schulz iterations restore convergence through implicit smoothing of the polar map. We independently identify spectral clipping as a natural replacement for Muon’s spectral flattening, motivated by its ability to preserve the spectral structure of momentum matrices while suppressing excessively large singular values. Our work complements these concurrent studies by providing convergence guarantees for spectral clipping-based Muon variants in the nonconvex nonsmooth setting, together with systematic empirical evaluation demonstrating consistent stability improvements across multiple datasets and model sizes. Please refer to § 4.1 and Appendix § 12 for a detailed discussion.

Paper Organization. Section 2 reviews related work on matrix-aware optimizers and nonconvex nonsmooth optimization. Section 3 establishes notation, formalizes assumptions, and reviews the Muon optimizer along with its training instability. Section 4 introduces Musec and presents its convergence analysis. Section 5 develops Soft Musec, an efficient SVD-free implementation via coupled Newton–Schulz iterations. Section 6 provides experimental evaluation on NanoGPT models across multiple datasets and model scales. Section 7 concludes the paper.

Related Work

Matrix-Aware Optimizers Matrix-aware optimizers exploit the two-dimensional structure of weight matrices to improve upon coordinate-wise methods such as Adam [23]. Shampoo [15] and SOAP [41] leverage Kronecker-factored preconditioning, while Muon [20] orthogonalizes the momentum matrix via Newton–Schulz iterations, which Bernstein & Newhouse Bernstein & Newhouse [1] showed corresponds to steepest descent under the spectral norm. Scion [32] further develops this viewpoint through the Frank–Wolfe framework. Subsequent work has explored variants of Muon, such as NorMuon [26], which introduces neuron-wise adaptive scaling after orthogonalization. Concurrently, SPECTRA [19] proposed spectral clipping as an optimizer-agnostic wrapper with convex smooth convergence analysis, and Yukhimchuk et al. Yukhimchuk et al. [46] proposed spectral gradient clipping for heavy-tailed noise. On the theoretical side, Shen et al. Shen et al. [37] and Gluon [34] established convergence guarantees under smoothness or generalized smoothness, and Yang et al. Yang et al. [44] analyzed Spectral Descent under convexity and sharpness. Concurrently, Li & Tsuchiya Li & Tsuchiya (2026) showed that finite Newton–Schulz iterations restore convergence in the nonsmooth nonconvex setting through implicit smoothing. Our work provides a complementary perspective, establishing convergence guarantees for spectral clipping-based Muon variants in this regime.

Nonconvex Nonsmooth Optimization The foundations of nonsmooth optimization trace back to the seminal work of Clarke Clarke [3] and Goldstein Goldstein [14]. Non-asymptotic complexity guarantees for general nonconvex nonsmooth settings remained elusive until Zhang et al. Zhang et al. [49] established the first non-asymptotic complexity guarantees for subgradient methods converging to Goldstein stationary points. This breakthrough led to a series of subsequent developments [8, 40, 24, 5, 21]. In particular, Cutkosky et al. Cutkosky et al. [5] introduced the online-to-nonconvex (O2NC) framework, achieving the first optimal convergence rates for stochastic nonconvex nonsmooth optimization. Our analysis considers the class of weakly convex functions [10] (Davis & Drusvyatskiy 2019; Davis & Grimmer 2019), which encompasses a broad class of objectives arising in neural network training. For this class of problem, Ji & Yuan Ji & Yuan [17] showed that the O2NC framework can be derandomized while preserving the optimal O(δ−1ϵ−3)\mathcal{O}(\delta^{-1}\epsilon^{-3}) complexity. Recently, Jiang et al. Jiang et al., [18] established nonconvex nonsmooth convergence guarantees for Pion and Leon, two matrix-aware optimizers derived from adaptive online learning over the spectral-norm ball. Notably, they also demonstrated that Muon with the exact polar update does not converge in this setting, while Li & Tsuchiya Li & Tsuchiya (2026) proved that finite Newton–Schulz iterations restore convergence through implicit smoothing of the polar map. We provide a complementary result: Musec converges in the nonconvex nonsmooth setting through explicit spectral clipping, offering both convergence guarantees and improved training stability.

Preliminaries and Background

In this section, we establish notation, formalize the problem setting and assumptions, and review the Muon optimizer along with its training instability.

Notations

Throughout this paper, ∥⋅∥2\|\cdot\|_2 and ∥⋅∥F\|\cdot\|_F denote the spectral norm and the Frobenius norm of a matrix, respectively, and ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle denotes the Frobenius inner product. For a set of matrices Ω⊆Rm×n\Omega\subseteq\mathbb{R}^{m\times n}, we denote dist⁡(0,Ω):=inf⁡M∈Ω∥M∥F\operatorname{dist}(0,\Omega):=\inf_{M\in\Omega}\|M\|_F and conv⁡(Ω)\operatorname{conv}(\Omega) for the convex hull of Ω\Omega. For any positive integer NN, we abbreviate [N]={1,…,N}[N]=\{1,\ldots,N\}. We use Bδ(W)={V∈Rm×n:∥V−W∥F≤δ}\mathbb{B}_{\delta}(W)=\{V\in\mathbb{R}^{m\times n}:\|V-W\|_F\leq\delta\} to denote the closed ball of radius δ\delta centered at W∈Rm×nW\in\mathbb{R}^{m\times n}. For a scalar w≥0w\geq0 and a threshold D>0D>0, we define the clipping operator as clip⁡(w,D)=min⁡{w,D}\operatorname{clip}(w,D)=\min\{w,D\}. For a diagonal matrix M∈Rr×rM\in\mathbb{R}^{r\times r}, we apply the clipping entrywise:

Clip⁡(M,D)=Diag⁡(clip⁡(M1,1,D),…,clip⁡(Mr,r,D)).\operatorname{Clip}(M,D)=\operatorname{Diag}(\operatorname{clip}(M_{1,1},D),\ldots,\operatorname{clip}(M_{r,r},D)).

where Mi,iM_{i,i} is the (i,i)(i,i)-th entry of the matrix MM.

Problem Formulation

We now formalize the problem setting and state the assumptions used throughout this paper. We begin with the definitions of Lipschitz continuity and weak convexity.

Definition 3.1. We say a function h:Rm×n→Rh:\mathbb{R}^{m\times n}\to\mathbb{R} is LL-Lipschitz continuous if

∣h(W1)−h(W2)∣≤L∥W1−W2∥F,|h(W_1)-h(W_2)|\leq L\|W_1-W_2\|_F,

for all W1,W2∈Rm×nW_1,W_2\in\mathbb{R}^{m\times n}.

The Clarke subdifferential [4] of a Lipschitz function hh at W∈Rm×nW\in\mathbb{R}^{m\times n} is denoted by ∂h(W)\partial h(W). We next define weakly convex functions.

Definition 3.2. We say a function h:Rm×n→Rh:\mathbb{R}^{m\times n}\to\mathbb{R} is ρ\rho-weakly convex for some ρ>0\rho>0 if the quadratically regularized function h(⋅)+(ρ/2)∥⋅∥F2h(\cdot)+(\rho/2)\|\cdot\|_F^2 is convex, or equivalently

h(W1)≥h(W2)+⟨g,W1−W2⟩−ρ2∥W1−W2∥F2,h(W_1)\geq h(W_2)+\langle g,W_1-W_2\rangle-\frac{\rho}{2}\|W_1-W_2\|_F^2,

for all W1,W2∈Rm×nW_1,W_2\in\mathbb{R}^{m\times n}, g∈∂h(W2)g\in\partial h(W_2).

In the remainder of this paper, we suppose Problem (1) satisfies the following assumptions.

Assumption 3.3. For any ξ∼P\xi\sim\mathcal{P}, the loss function F(W;ξ)F(W;\xi) is LL-Lipschitz continuous with respect to its first argument. Furthermore, the objective f(W)f(W) is ρ\rho-weakly convex.

Assumption 3.4. For each W∈Rm×nW\in\mathbb{R}^{m\times n}, we can access to a stochastic oracle G(W;ξ)G(W;\xi) that is an unbiased estimator of a Clarke subgradient such that E[G(W;ξ)]∈∂f(W)\mathbb{E}[G(W;\xi)]\in\partial f(W). Given a positive constant σ>0\sigma>0, we further assume bounded variance:

E[∥G(W;ξ)−E[G(W;ξ)]∥F2]≤σ2.\mathbb{E}[\|G(W;\xi)-\mathbb{E}[G(W;\xi)]\|_F^2]\leq\sigma^2.

We assume that the objective is bounded below, i.e., f∗=inf⁡W∈Rm×nf(W)>−∞f^*=\inf_{W\in\mathbb{R}^{m\times n}}f(W)>-\infty and we denote Δf:=f(W0)−f∗\Delta_f:=f(W_0)-f^*.

For general nonsmooth nonconvex objectives, convergence is standardly measured via Goldstein stationarity [14].

Definition 3.5. The Goldstein δ\delta-subdifferential of a Lipschitz function ff at a point W∈Rm×nW\in\mathbb{R}^{m\times n} is the convex hull of all Clarke subgradients at points in a δ\delta-ball around WW, i.e.,

∂δf(W):=conv⁡{⋃V∈Bδ(W)∂f(V)}.\partial_{\delta}f(W):=\operatorname{conv}\left\{\bigcup_{V\in\mathbb{B}_{\delta}(W)}\partial f(V)\right\}.

A point W∈Rm×nW\in\mathbb{R}^{m\times n} is called a (δ,ϵ)(\delta,\epsilon)-stationary point if dist⁡(0,∂δf(W))≤ϵ\operatorname{dist}(0,\partial_{\delta}f(W))\leq\epsilon.

The Muon Optimizer

Muon [20] is an optimizer designed for matrix-valued parameters. At each iteration, it orthogonalizes the momentum matrix, replacing its nonzero singular values with one and thereby flattening the singular spectrum. The complete procedure is presented in Algorithm 1. Since computing the full SVD is prohibitively expensive in practice, Muon is typically implemented using Newton–Schulz iterations [16] to approximate this orthogonalization [20, 1].

Algorithm 1: Muon (Jordan et al. [20])

  1. Input: Initial point W0W_0, momentum parameter β∈[0,1)\beta\in[0,1), learning rate η\eta.

  2. for n=0,1,…,N−1n = 0,1,\ldots,N-1 do

  3. Sample ξn∼P\xi_n \sim\mathcal{P}

  4. Gn=G(Wn;ξn)G_n = G(W_n;\xi_n)

  5. if n=0n = 0 then

  6. M0=G0M_0 = G_0

  7. else

  8. Mn=(1−β)Mn−1+βGnM_n = (1-\beta)M_{n-1}+\beta G_n

  9. end

  10. (Un,Sn,Vn)=SVD⁡(Mn)(U_n,S_n,V_n) = \operatorname{SVD}(M_n)

  11. Wn+1=Wn−ηUnVnTW_{n+1} = W_n-\eta U_nV_n^{\mathsf{T}}

  12. end

Algorithm 2: Musec: MomentUm SpEctral Clipping

  1. Input: Initial point W0W_0, momentum parameter β∈[0,1)\beta\in[0,1), learning rate η\eta, clipping threshold D>0D>0, positive integers KK and TT

  2. N=K×TN = K \times T

  3. for n=0,1,…,N−1n = 0,1,\ldots,N-1 do

  4. Sample ξn∼P\xi_n \sim\mathcal{P}

  5. Gn=G(Wn;ξn)G_n = G(W_n;\xi_n)

  6. if n=0n = 0 then

  7. M^0=G0\widehat{M}_0 = G_0

  8. else

  9. M^n=(1−β)Mn−1+βGn\widehat{M}_n = (1-\beta)M_{n-1}+\beta G_n

  10. end

  11. (Un,S^n,Vn)=SVD⁡(M^n)(U_n,\widehat{S}_n,V_n) = \operatorname{SVD}(\widehat{M}_n)

  12. Sn=clip⁡(S^n,D)S_n = \operatorname{clip}(\widehat{S}_n,D)

  13. Mn=UnSnVnTM_n = U_nS_nV_n^{\mathsf{T}}

  14. Wn+1=Wn−ηMnW_{n+1} = W_n-\eta M_n

  15. end

  16. Set W‾(k)=1T∑t=0T−1Wt(k)\overline{W}^{(k)} = \frac{1}{T}\sum_{t=0}^{T-1}W_t^{(k)} where Wt(k)=W(k−1)T+tW_t^{(k)} = W_{(k-1)T+t} for ∀k∈[K]\forall k \in[K].

  17. Return: W‾T∼Uniform⁡({W‾(k):k∈[K]})\overline{W}_T \sim\operatorname{Uniform}(\{\overline{W}^{(k)}: k \in[K]\}).

Training instability of Muon. Let Mn=UnSnVnTM_n = U_nS_nV_n^{\mathsf{T}} denote the SVD of the momentum matrix at step nn. The Muon update UnVnTU_nV_n^{\mathsf{T}} replaces all nonzero singular values of MnM_n with one, discarding the spectral magnitude information entirely. Consequently, directions associated with small momentum singular values receive updates of the same magnitude as those associated with large singular values, amplifying weakly represented directions and contributing to weight growth and training instability ([22 Appendix E]). These observations motivate replacing spectral flattening with spectral clipping, which preserves the spectral structure of the momentum while constraining only excessively large singular values.

Methodology

In this section, we introduce MomentUm SpEctral Clipping (Musec) and establish its convergence guarantees for nonconvex nonsmooth optimization.

The Algorithm

We present the complete procedure of Musec in Algorithm 2. The key difference from Muon lies in Step 13, where we replace the orthogonalized momentum with a spectrally clipped momentum:

Mn=UnSnVnT,where Sn=Clip⁡(S^n,D).M_n = U_n S_n V_n^{\mathsf{T}}, \qquad\text{where } S_n = \operatorname{Clip}(\widehat{S}_n,D).

Here, (Un,S^n,Vn)=SVD⁡(M^n)(U_n,\widehat{S}_n,V_n)=\operatorname{SVD}(\widehat{M}_n) is the singular value decomposition of the momentum M^n\widehat{M}_n, with S^n\widehat{S}_n the diagonal matrix of its singular values, and D>0D>0 is the clipping threshold. Unlike Muon’s polar step, which maps all nonzero singular values to one, the clipping operator only truncates singular values exceeding the threshold DD while leaving smaller singular values unchanged. Thus, Musec preserves the spectral structure of the momentum while controlling large spectral components.

In contrast to SPECTRA [19], which applies spectral clipping as a post-processing step to the accumulated momentum while carrying the unclipped momentum state forward, Musec feeds the clipped momentum Mn−1M_{n-1} back into the exponential moving average (EMA) update at the next step, integrating spectral clipping directly into the momentum recurrence. This ensures that the momentum state itself remains spectrally bounded, allowing singular values to decay in directions where recent gradients are small, rather than being dominated by historical accumulation.

The return procedure in Steps 16–17 partitions the iterates into KK consecutive epochs of length TT, averages within each epoch, and returns one epoch average uniformly at random. This two-level averaging scheme is standard in the nonconvex nonsmooth optimization literature [5, 17] and is required to establish convergence to Goldstein stationary points. In practice, it is sufficient to return the final iterate WnW_n, as is conventional in deep learning.

Musec as Constrained Steepest Descent

Bernstein & Newhouse [1] showed that Muon’s polar update solves the unconstrained steepest descent problem under the spectral norm. We establish an analogous characterization for Musec: its spectrally clipped update arises as the solution to a Frobenius-norm-penalized quadratic subproblem subject to a spectral-norm constraint.

Proposition 4.1. Let G1,…,GLG_1,\ldots,G_L be gradient matrices, let λ>0\lambda>0 be a sharpness parameter, and let D>0D>0. For each l=1,…,Ll=1,\ldots,L, consider the problem

min⁡Δl[⟨Gl,Δl⟩+λ2∥Δl∥F2],s.t.∥Δl∥2≤D/λ.(2)\min_{\Delta_l}\left[\langle G_l,\Delta_l\rangle+\frac{\lambda}{2}\lVert\Delta_l\rVert_F^2\right],\qquad\text{s.t.}\quad\lVert\Delta_l\rVert_2\leq D/\lambda. \tag*{(2)}

where ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle denotes the Frobenius inner product and Δl\Delta_l has the same shape as GlG_l. Let Gl∈Rml×nlG_l\in\mathbb{R}^{m_l\times n_l} have reduced SVD of the form Gl=UlSlVlTG_l=U_lS_lV_l^{\mathsf{T}} with Sl=Diag⁡(σ1,…,σdl)S_l=\operatorname{Diag}(\sigma_1,\ldots,\sigma_{d_l}) and dl=min⁡(ml,nl)d_l=\min(m_l,n_l). Then Problem (2) is solved by

Δl=−η⋅UlS^lVlT,where η=1λ,S^l=Clip⁡(Sl,D).\Delta_l=-\eta\cdot U_l\widehat{S}_lV_l^{\mathsf{T}},\qquad\text{where }\eta=\frac{1}{\lambda},\quad\widehat{S}_l=\operatorname{Clip}(S_l,D).

The spectral-norm constraint ∥ΔWl∥2≤D/λ\lVert\Delta W_l\rVert_2\leq D/\lambda clips singular values that exceed DD while preserving smaller ones. Thus, rather than being an ad hoc modification of Muon, Musec admits a principled interpretation as constrained steepest descent under the Frobenius norm with a spectral-norm budget.

Convergence Analysis

In this subsection, we present the convergence analysis of Musec for solving the nonconvex nonsmooth optimization problem.

We define the filtration Fn=σ(G1,G2,…,Gn)\mathcal{F}_n=\sigma(G_1,G_2,\ldots,G_n). Under Assumption 3.4, we can infer that Hn:=E[Gn∣Fn−1]∈∂f(Wn)H_n:=\mathbb{E}[G_n\mid\mathcal{F}_{n-1}]\in\partial f(W_n). Analogous to Wt(k)W_t^{(k)}, we define variables Mt(k)=M(k−1)T+tM_t^{(k)}=M_{(k-1)T+t} and Ht(k)=H(k−1)T+tH_t^{(k)}=H_{(k-1)T+t} for any k∈[K]k\in[K] and t∈{0}∪[T−1]t\in\{0\}\cup[T-1], and we denote the epoch average H‾(k)=∑t=1THt(k)/T\overline{H}^{(k)}=\sum_{t=1}^{T}H_t^{(k)}/T. We first establish the following convergence result for a single epoch $k.

Lemma 4.2. Let γ=β/η\gamma= \beta/\eta and η≤1/ρ\eta\le1/\rho where β≤1/8\beta\le1/8, then for any k∈[K]k \in[K], the sequence {Wt(k)}t=1T\{W_t^{(k)}\}_{t=1}^{T} generated by Algorithm 2 satisfies

E[f(WT(k))−f(W0(k))]≤−E[βDTγ∥H(k)∥F+∑t=0T−1β8γ∥Mt(k)∥F2]+βDσTγ+(βTγ+1γ)D2+β2L2Tγ+rD2γ.\mathbb{E}\left[f\left(W_T^{(k)}\right)-f\left(W_0^{(k)}\right)\right] \le-\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|H^{(k)}\right\|_F+\sum_{t=0}^{T-1}\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_F^2\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{1}{\gamma}\right)D^2+\frac{\beta^2L^2T}{\gamma}+\frac{rD^2}{\gamma}.

By combining Lemma 4.2 with a bound relating ∥H(k)∥F\left\|H^{(k)}\right\|_F to the Goldstein δ\delta-subdifferential dist⁡(0,∂δf(W‾(k)))\operatorname{dist}(0,\partial_{\delta}f(\overline{W}^{(k)})), we obtain the following convergence guarantee for Musec (Algorithm 2) in finding a (δ,ϵ)(\delta,\epsilon)-Goldstein stationary point of nonconvex nonsmooth problem.

Theorem 4.3. Let γ=β/η\gamma= \beta/\eta and η≤1/ρ\eta\le1/\rho where β≤1/8\beta\le1/8, Then for any δ≥ηTDr\delta\ge\eta TD\sqrt{r}, the sequence {W‾(k)}k=1K\{\overline{W}^{(k)}\}_{k=1}^{K} generated by Algorithm 2 satisfies

E[1K∑k=1Kdist⁡(0,∂δf(W‾(k)))]≤σT+(1+2rβT)D+βL2D+γΔfβDTK.\mathbb{E}\left[\frac{1}{K}\sum_{k=1}^{K}\operatorname{dist}\left(0,\partial_{\delta}f\left(\overline{W}^{(k)}\right)\right)\right]\le\frac{\sigma}{\sqrt{T}}+\left(1+\frac{2r}{\beta T}\right)D+\frac{\beta L^2}{D}+\frac{\gamma\Delta_f}{\beta DTK}.

The following corollary, which follows directly from Theorem 4.3, establishes the oracle complexity of Musec for finding a (δ,ϵ)(\delta,\epsilon)-Goldstein stationary point.

Corollary 4.4. By choosing the parameters as

T=(δN)2/3,K=δ−2/3N1/3,D=(δN)−1/3,T=(\delta N)^{2/3},\qquad K=\delta^{-2/3}N^{1/3},\qquad D=(\delta N)^{-1/3},
β=r1/2(δN)2/3,γ=rδ4/3N1/3,η=δ2/3rN1/3,\beta=\frac{r^{1/2}}{(\delta N)^{2/3}},\qquad\gamma=\frac{r}{\delta^{4/3}N^{1/3}},\qquad\eta=\frac{\delta^{2/3}}{\sqrt{r}N^{1/3}},

then it takes Algorithm 2 at most

N=O(r3/4δ+δ2β3r3/2+r3/2(σ3+L6+Δf3)δϵ3)N=O\left(\frac{r^{3/4}}{\delta}+\frac{\delta^2\beta^3}{r^{3/2}}+\frac{r^{3/2}(\sigma^3+L^6+\Delta_f^3)}{\delta\epsilon^3}\right)

to obtain a (δ,ϵ)(\delta,\epsilon)-Goldstein stationary point.

Remark 4.5. When the weak convexity parameter satisfies ρ≤O(rδ−1ϵ−1)\rho\le O(r\delta^{-1}\epsilon^{-1}), the dominant term of the complexity reduces to O(r3/2δ−1ϵ−3)O(r^{3/2}\delta^{-1}\epsilon^{-3}). The dependence on the accuracy parameters δ\delta and ϵ\epsilon matches that of the optimal stochastic first-order method for nonconvex nonsmooth optimization [5]. The factor of r3/2r^{3/2} arises from the matrix-valued structure of the updates. For comparison, the convergence analysis of Muon under smoothness assumptions by Shen et al. [37] incurs a factor of r2r^2 in the stochastic setting, though we note that the two results target different stationarity concepts and operate under different assumptions.

A Practical Implementation

Computing the exact spectral clipping operator requires a full SVD decomposition at each iteration (step 11 in Algorithm 2), which is prohibitively expensive for the large weight matrices encountered in LLM training. In this section, we develop an efficient SVD-free approximation of the clipping operation. We term the resulting algorithm Soft Musec.

Specifically, we replace the hard clipping function clip⁡(w,D)=min⁡(w,D)\operatorname{clip}(w,D)=\min(w,D) with the smooth saturation function

h(w,D)=Dww2+D2,h(w,D)=\frac{Dw}{\sqrt{w^2+D^2}},

which satisfies that h(w,D)≈wh(w,D)\approx w when w≪Dw\ll D and h(w,D)≈Dh(w,D)\approx D when w≫Dw\gg D. Applying h(⋅,D)h(\cdot,D) to each singular value of a matrix M∈Rm×nM\in\mathbb{R}^{m\times n} while preserving its singular vectors yields the soft spectral clipping operator:

H(M,D)=D(MM⊤+D2I)−1/2M.(3)H(M,D)=D\left(MM^{\top}+D^2I\right)^{-1/2}M. \tag*{(3)}

The key computational challenge in evaluating the operator (3) is the matrix inverse square root (MM⊤+D2I)−1/2(MM^{\top} + D^{2}I)^{-1/2}. We approximate this using coupled Newton–Schulz iterations (Higham 2008, Chapter 6; Jiang et al. [19]), which involve only matrix–matrix multiplications and are therefore well-suited to modern GPU hardware. The addition of D2ID^{2}I shifts all eigenvalues away from zero, ensuring numerical stability and rapid convergence of the iteration. In practice, we find that five Newton–Schulz iterations yield strong training performance in bfloat16 arithmetic. The complete Soft Musec algorithm is provided in Algorithm 4 in Appendix § 11.

Experiments

In this section, we evaluate the effectiveness and stability of Soft Musec on LLM training.

Experimental Setup

We compare Soft Musec against three baselines: Muon (Jordan et al., [20]), MuonClip (Kimi et al., [22]), and SPECTRA (Jiang et al., [19]). For SPECTRA, we use SGDM (stochastic gradient descent with momentum) as the base optimizer, which corresponds to Muon without the orthogonalization step. This isolates the effect of spectral clipping from Muon’s orthogonalization. We note that Jiang et al. [19] evaluated SPECTRA on AdEMAMix (Pagliardini et al., [30]), AdamW (Loshchilov & Hutter, [29]), and Signum (Bernstein et al., [2]); to our knowledge, our experiments provide the first empirical evaluation of spectral clipping applied to Muon in this setting. For all methods, we tune weight decay over {0.096,0.3,0.6,1.2}\{0.096, 0.3, 0.6, 1.2\}. All methods use five Newton–Schulz iterations. For Soft Musec and SPECTRA, we additionally tune the clipping threshold DD over {0.05,0.125,0.25,0.5,0.75,1.0}\{0.05, 0.125, 0.25, 0.5, 0.75, 1.0\}.

We adopt the modded-nanogpt codebase1, a decoder-only Transformer with modern architectural modifications, including RMSNorm (Zhang & Sennrich, [48]), Rotary Positional Embeddings (RoPE) (Su et al., [39]), and square ReLU activations (So et al., [38]). We evaluate three model configurations—NanoGPT-Small (491M parameters), NanoGPT-Medium (613M parameters), and NanoGPT-Wide (1.63B parameters)—across three datasets: FineWeb (Penedo et al., [31]), OpenWebText (Gokaslan & Cohen, [13]), and C4 (Raffel et al., [33]). For all experiments, the respective optimizer is applied to matrix parameters in non-embedding layers (attention and MLP weight matrices), while AdamW is used for embedding layers and vector parameters. Full architectural and hyperparameter details are provided in Appendix § 13.

Stability Across Learning Rates

We evaluate each method across learning rates ranging from 0.01 to 0.8 for each model configuration on FineWeb. The exact grid for each configuration is provided in Appendix § 13.§ 3. Results are shown in Figure 1; runs that diverge during training are omitted. For NanoGPT-Small, all methods achieve comparable validation loss at smaller learning rates. As the learning rate increases, Soft Musec maintains stable convergence, while Muon and MuonClip begin to degrade. At the largest learning rate, Muon fails to converge across all model sizes. MuonClip also fails to converge on NanoGPT-Small and NanoGPT-Medium, and converges to substantially worse validation loss on NanoGPT-Wide. In contrast, Soft Musec and SPECTRA remain stable across all configurations. Across all configurations, Soft Musec achieves performance comparable to SPECTRA, with slight improvements in several settings. Consistent results on OpenWebText and C4 are reported in Appendix § 14.§ 1.

Validation loss versus learning rate across NanoGPT-small, NanoGPT-medium, and NanoGPT-wide

Figure 1. Validation loss versus learning rate on FineWeb across three model configurations.

Training Dynamics

To examine training behavior in greater detail, we train NanoGPT-Medium at a learning rate of 0.2 on all three datasets and plot the validation loss over training steps in Figure 2.

Validation loss versus training steps on FineWeb, OpenWebText, and C4

Figure 2. Validation loss versus steps of training NanoGPT-Medium on the three datasets.

All methods exhibit a transient loss spike near step 400, which coincides with a scheduled transition in the modded-nanogpt training pipeline: the learning rate increases by 52%, the batch size doubles, and the attention window widens simultaneously. Notably, Soft Musec and SPECTRA recover from this spike quickly and smoothly, while Muon recovers slowly and converges to a substantially higher final validation loss. MuonClip improves over Muon but displays noticeable oscillations throughout training, suggesting that QK-weight clipping alone does not fully stabilize the optimization trajectory. In contrast, both Soft Musec and SPECTRA converge smoothly and reach comparable final validation loss. Complete training dynamics across all datasets and model configurations are reported in Appendix F.2.

Weight Norm Analysis

To understand the source of the stability improvements, we track the spectral norm of weight matrices across three component types: query-key (QK) projections, value-output (VO) projections, and MLP weights, during NanoGPT-Medium training on FineWeb at learning rate η=0.2\eta= 0.2. Results are shown in Figure 3. Muon exhibits severe spectral-norm inflation across all three components, with norms reaching 300–400 and displaying large oscillations. This is consistent with the spectral flattening mechanism discussed in § 3: by assigning comparable update magnitudes to all singular directions, Muon amplifies weakly represented directions, leading to substantial weight growth. The unchecked growth of QK norms is particularly concerning, as it can drive attention logit explosion [22]. MuonClip partially mitigates QK norm growth but leaves VO and MLP norms elevated, confirming that it only regulates the query-key matrices. In contrast, both Soft Musec and SPECTRA maintain spectral norms below 10 across all components, demonstrating that optimizer-level spectral clipping provides uniform stabilization across the entire model.

Spectral norm of weight matrices over training steps for NanoGPT-Medium on FineWeb

Figure 3. (a) QK projections (b) VO projections (c) MLP weights. Spectral norm of weight matrices over training steps for NanoGPT-Medium on FineWeb.

Conclusion

In this paper, we introduced Musec, which replaces Muon’s spectral flattening with a spectral clipping operator that preserves the spectral structure of the momentum matrix while constraining excessively large singular values. We established the first convergence analysis of Muon-type algorithms in the nonconvex nonsmooth setting, with a rate matching the optimal dependence on the accuracy parameters for stochastic nonconvex nonsmooth optimization. On the practical side, we developed Soft Musec, an efficient SVD-free implementation based on coupled Newton–Schulz iterations, and demonstrated that it substantially improves training stability over existing Muon variants across multiple datasets and model sizes.

Appendix

The appendix is organized as follows. Section A proves that Musec’s update solves a Frobenius-norm-penalized quadratic subproblem subject to a spectral-norm constraint. Section B provides the detailed convergence analysis of Musec for nonconvex nonsmooth optimization. Section C presents the complete Soft Musec algorithm with coupled Newton–Schulz iterations. Section D compares the update rules of Musec and SPECTRA. Section E details the architecture configurations, training configurations, and hyperparameter choices for the NanoGPT experiments. Section F provides additional learning rate sweep results, training dynamics, effective rank analysis, computational overhead, and ablation studies.

Proof of Proposition 4.1

In this section, we give a formal proof of Proposition 4.1. We first restate the proposition as follows.

Proposition A.1. Let G1,…,GLG_1,\ldots,G_L be gradient matrices, let λ>0\lambda> 0 be a sharpness parameter, and let D>0D > 0. For each l=1,…,Ll = 1,\ldots,L, consider the problem

arg⁡min⁡Δl [⟨Gl,Δl⟩+λ2∥Δl∥F2],s.t.∥Δl∥2≤Dλ.(4)\underset{\Delta_l}{\arg\min}\ \left[\langle G_l,\Delta_l\rangle+\frac{\lambda}{2}\|\Delta_l\|_F^2\right],\quad\text{s.t.}\quad\|\Delta_l\|_2\leq\frac{D}{\lambda}. \tag*{(4)}

where ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle denotes the Frobenius inner product and Δl\Delta_l has the same shape as GlG_l. Let Gl∈Rml×nlG_l\in\mathbb{R}^{m_l\times n_l} have reduced SVD of the form Gl=UlSlVlTG_l=U_lS_lV_l^\mathsf{T} with Sl=Diag⁡(σ1,…,σdl)S_l=\operatorname{Diag}(\sigma_1,\ldots,\sigma_{d_l}) and dl=min⁡(ml,nl)d_l=\min(m_l,n_l). Then Problem (2) is solved by

Δl=−η⋅UlS^lVlT,whereη=1λ,S^l=Clip⁡(Sl,D).\Delta_l=-\eta\cdot U_l\widehat{S}_lV_l^\mathsf{T},\quad\text{where}\quad\eta=\frac{1}{\lambda},\quad\widehat{S}_l=\operatorname{Clip}(S_l,D).

Proof. The Frobenius norm ∥Δl∥F\|\Delta_l\|_F and the spectral norm ∥Δl∥2\|\Delta_l\|_2 depend on Δl\Delta_l only through its singular values, while by Von Neumann’s trace inequality the inner product ⟨Gl,Δl⟩\langle G_l,\Delta_l\rangle is minimized, for any fixed spectrum of Δl\Delta_l, by aligning Δl\Delta_l’s singular vectors with those of −Gl-G_l. It therefore suffices to restrict attention to

Δl=−UlAlVlT,Al=diag⁡(a1,…,adl),a1≥a2≥⋯≥adl≥0.\Delta_l=-U_lA_lV_l^\mathsf{T},\quad A_l=\operatorname{diag}(a_1,\ldots,a_{d_l}),\quad a_1\geq a_2\geq\cdots\geq a_{d_l}\geq0.

Under this parametrization,

⟨Gl,Δl⟩=−∑i=1dlσiai,∥Δl∥F2=∑i=1dlai2,∥Δl∥2=a1.\langle G_l,\Delta_l\rangle=-\sum_{i=1}^{d_l}\sigma_i a_i,\quad\|\Delta_l\|_F^2=\sum_{i=1}^{d_l}a_i^2,\quad\|\Delta_l\|_2=a_1.

Since a1≥⋯≥adl≥0a_1\geq\cdots\geq a_{d_l}\geq0, the constraint a1≤D/λa_1\leq D/\lambda is equivalent to 0≤al≤D/λ0\leq a_l\leq D/\lambda for every ii, and Problem (2) reduces to the separable box-constrained program

min⁡ai∈[0,D/λ]∑i=1dl[−σiai+λ2ai2].(5)\underset{a_i\in[0,D/\lambda]}{\min}\sum_{i=1}^{d_l}\left[-\sigma_i a_i+\frac{\lambda}{2}a_i^2\right]. \tag*{(5)}

Each scalar subproblem is a quadratic in aia_i with unconstrained minimizer σi/λ≥0\sigma_i/\lambda\geq0; clipping to the interval [0,D/λ][0,D/\lambda] gives

ai∗=min⁡(σiλ,Dλ)=1λmin⁡(σi,D).a_i^*=\min\left(\frac{\sigma_i}{\lambda},\frac{D}{\lambda}\right)=\frac{1}{\lambda}\min(\sigma_i,D).

The ordering σ1≥⋯≥σdl\sigma_1\geq\cdots\geq\sigma_{d_l} ensures a1∗≥⋯≥adl∗a_1^*\geq\cdots\geq a_{d_l}^*, so the monotonicity of the parametrization is automatically satisfied. Since ai∗=min⁡(σi,D)/λa_i^*=\min(\sigma_i,D)/\lambda, we have Al∗=1λS^lA_l^*=\frac{1}{\lambda}\widehat{S}_l with S^l=Clip⁡(Sl,D)\widehat{S}_l=\operatorname{Clip}(S_l,D), and hence

Δl=−UlAl∗VlT=−η⋅UlS^lVlT,\Delta_l=-U_lA_l^*V_l^\mathsf{T}=-\eta\cdot U_l\widehat{S}_lV_l^\mathsf{T},

with η=1/λ\eta=1/\lambda, as claimed. □

Convergence Analysis

In this section, we provide the detailed convergence analysis of the Musec algorithm.

Regret Analysis of Online Gradient Descent

Before presenting the convergence analysis of the Musec algorithm, we first establish a convergence result for online gradient descent on a quadratic objective, which will subsequently serve as the basis for analyzing the clipping operation in Musec.

Consider a quadratic function of the form:

ft(X):=−βγ⟨Gt+1,X⟩+β2γ∥X∥F2f_t(X) := -\frac{\beta}{\gamma}\langle G_{t+1}, X\rangle+ \frac{\beta}{2\gamma}\lVert X\rVert_F^2

in the matrix-valued variable XX. We analyze the following standard online gradient descent (OGD) method with stepsize γ>0\gamma> 0 over a convex compact set CC:

Xt+1:=ΠC(Xt−γ∇ft(Xt))=ΠC(Xt+βGt+1−βXt)=ΠC((1−β)Xt+βGt+1),(6)\begin{aligned} X_{t+1} &:= \Pi_C(X_t - \gamma\nabla f_t(X_t)) \\ &= \Pi_C(X_t + \beta G_{t+1} - \beta X_t) \\ &= \Pi_C\left((1-\beta)X_t + \beta G_{t+1}\right), \tag*{(6)} \end{aligned}

where ΠC(⋅)\Pi_C(\cdot) denotes the Euclidean Projection associated with the convex and compact set CC. The OGD step (6) is consistent with the update of the momentum variable MnM_n in Algorithm 2 when we choose C={X:∥X∥≤D}C = \{X : \lVert X\rVert\le D\}.

Let Regret⁡T(X‾)\operatorname{Regret}_T(\overline{X}) denote the regret of the OGD algorithm with respect to some X‾∈C\overline{X} \in C after TT iterations, defined as:

Regret⁡T(X‾):=∑t=0T−1ft(Xt)−∑t=0T−1ft(X‾).\operatorname{Regret}_T(\overline{X}) := \sum_{t=0}^{T-1} f_t(X_t) - \sum_{t=0}^{T-1} f_t(\overline{X}).

We present the regret analysis of the OGD algorithm as follows.

Lemma B.1. Suppose that β≤1/8\beta\le1/8, then the OGD update (6) applied to the sequence of quadratic functions {ft(X)}t=0T−1\{f_t(X)\}_{t=0}^{T-1} over the convex constraint set CC guarantees that for all T≥1T \ge1 and all X‾∈C\overline{X} \in C:

Regret⁡T(X‾)≤∑t=0T−1(−β8γ∥Xt∥F2+β2γ∥X‾∥F2+β2γ∥Gt+1∥F2)+∥X0∥F2+∥X‾∥F2γ.\operatorname{Regret}_T(\overline{X}) \le\sum_{t=0}^{T-1}\left(-\frac{\beta}{8\gamma}\lVert X_t\rVert_F^2 + \frac{\beta}{2\gamma}\lVert\overline{X}\rVert_F^2 + \frac{\beta^2}{\gamma}\lVert G_{t+1}\rVert_F^2\right) + \frac{\lVert X_0\rVert_F^2 + \lVert\overline{X}\rVert_F^2}{\gamma}.

Proof. Fix any X‾∈C\overline{X} \in C. By the non-expansiveness of the projection operator,

∥Xt+1−X‾∥F2=∥ΠC(Xt−γ∇ft(Xt))−X‾∥F2≤∥Xt−γ∇ft(Xt)−X‾∥F2=∥Xt−X‾∥F2+γ2∥∇ft(Xt)∥F2−2γ⟨∇ft(Xt),Xt−X‾⟩.\begin{aligned} \lVert X_{t+1} - \overline{X}\rVert_F^2 &= \left\lVert\Pi_C(X_t - \gamma\nabla f_t(X_t)) - \overline{X}\right\rVert_F^2 \\ &\le\left\lVert X_t - \gamma\nabla f_t(X_t) - \overline{X}\right\rVert_F^2 \\ &= \lVert X_t - \overline{X}\rVert_F^2 + \gamma^2\lVert\nabla f_t(X_t)\rVert_F^2 - 2\gamma\langle\nabla f_t(X_t), X_t - \overline{X}\rangle. \end{aligned}

Rearranging the terms yields

⟨∇ft(Xt),Xt−X‾⟩≤∥Xt−X‾∥F2−∥Xt+1−X‾∥F22γ+γ∥∇ft(Xt)∥F22.(7)\langle\nabla f_t(X_t), X_t - \overline{X}\rangle\le\frac{\lVert X_t - \overline{X}\rVert_F^2 - \lVert X_{t+1} - \overline{X}\rVert_F^2}{2\gamma} + \frac{\gamma\lVert\nabla f_t(X_t)\rVert_F^2}{2}. \tag*{(7)}

Accordingly, we can show that

Regret⁡T(X‾)=∑t=0T−1ft(Xt)−∑t=0T−1ft(X‾)≤∑t=0T−1(⟨∇ft(Xt),Xt−X‾⟩−β2γ∥Xt−X‾∥F2)≤−β2γ∑t=0T−1∥Xt−X‾∥F2+∥X0−X‾∥F22γ−∥XT−X‾∥F22γ+∑t=0T−1γ∥∇ft(Xt)∥F22≤−β2γ∑t=0T−1∥Xt−X‾∥F2+∥X0∥F2+∥X‾∥F2γ+∑t=0T−1γ2∥−βγGt+1+βγXt∥F2≤−β2γ∑t=0T−1(∥Xt∥F22−∥X‾∥F2)+∥X0∥F2+∥X‾∥F2γ+∑t=0T−1(β2γ∥Gt+1∥F2+β2γ∥Xt∥F2)=∑t=0T−1(βγ(β−14)∥Xt∥F2+β2γ∥X‾∥F2+β2γ∥Gt+1∥F2)+∥X0∥F2+∥X‾∥F2γ.\begin{aligned} \operatorname{Regret}_{T}(\overline{X}) &= \sum_{t=0}^{T-1} f_t(X_t)-\sum_{t=0}^{T-1}f_t(\overline{X})\\ &\le\sum_{t=0}^{T-1}\left(\langle\nabla f_t(X_t),X_t-\overline{X}\rangle-\frac{\beta}{2\gamma}\lVert X_t-\overline{X}\rVert_F^2\right)\\ &\le-\frac{\beta}{2\gamma}\sum_{t=0}^{T-1}\lVert X_t-\overline{X}\rVert_F^2+\frac{\lVert X_0-\overline{X}\rVert_F^2}{2\gamma}-\frac{\lVert X_T-\overline{X}\rVert_F^2}{2\gamma}+\sum_{t=0}^{T-1}\frac{\gamma\lVert\nabla f_t(X_t)\rVert_F^2}{2}\\ &\le-\frac{\beta}{2\gamma}\sum_{t=0}^{T-1}\lVert X_t-\overline{X}\rVert_F^2+\frac{\lVert X_0\rVert_F^2+\lVert\overline{X}\rVert_F^2}{\gamma}+\sum_{t=0}^{T-1}\frac{\gamma}{2}\left\lVert-\frac{\beta}{\gamma}G_{t+1}+\frac{\beta}{\gamma}X_t\right\rVert_F^2\\ &\le-\frac{\beta}{2\gamma}\sum_{t=0}^{T-1}\left(\frac{\lVert X_t\rVert_F^2}{2}-\lVert\overline{X}\rVert_F^2\right)+\frac{\lVert X_0\rVert_F^2+\lVert\overline{X}\rVert_F^2}{\gamma}+\sum_{t=0}^{T-1}\left(\frac{\beta^2}{\gamma}\lVert G_{t+1}\rVert_F^2+\frac{\beta^2}{\gamma}\lVert X_t\rVert_F^2\right)\\ &=\sum_{t=0}^{T-1}\left(\frac{\beta}{\gamma}\left(\beta-\frac14\right)\lVert X_t\rVert_F^2+\frac{\beta}{2\gamma}\lVert\overline{X}\rVert_F^2+\frac{\beta^2}{\gamma}\lVert G_{t+1}\rVert_F^2\right)+\frac{\lVert X_0\rVert_F^2+\lVert\overline{X}\rVert_F^2}{\gamma}. \end{aligned}

The first inequality is due to the β/γ\beta/\gamma-strong convexity of ft(⋅)f_t(\cdot); the second inequality follows from (7); the third inequality follows from Young’s inequality. The last inequality is due to the reverse Young’s inequality: ∥A−B∥F2≥∥A∥F2/2−∥B∥F2\lVert A-B\rVert_F^2\ge\lVert A\rVert_F^2/2-\lVert B\rVert_F^2. Since β≤1/8\beta\le1/8, then we have

Regret⁡T(X‾)≤∑t=0T−1(−β8γ∥Xt∥F2+β2γ∥X‾∥F2+β2γ∥Gt+1∥F2)+∥X0∥F2+∥X‾∥F2γ.\operatorname{Regret}_{T}(\overline{X})\le\sum_{t=0}^{T-1}\left(-\frac{\beta}{8\gamma}\lVert X_t\rVert_F^2+\frac{\beta}{2\gamma}\lVert\overline{X}\rVert_F^2+\frac{\beta^2}{\gamma}\lVert G_{t+1}\rVert_F^2\right)+\frac{\lVert X_0\rVert_F^2+\lVert\overline{X}\rVert_F^2}{\gamma}.

Proof of Lemma 4.2

We first restate Lemma 4.2 as follows.

Lemma B.2. Let γ=β/η\gamma=\beta/\eta and η≤1/ρ\eta\le1/\rho where β≤1/8\beta\le1/8, then for any k∈[K]k\in[K], the sequence {Wt(k)}t=1T\{W_t^{(k)}\}_{t=1}^{T} generated by Algorithm 2 satisfies

E[f(WT(k))−f(W0(k))]≤−E[βDTγ∥H‾(k)∥F+∑t=0T−1β8γ∥Mt(k)∥F2]+βDσTγ+(βTγ+1γ)D2+β2L2Tγ+rD2γ.\mathbb{E}\left[f(W_T^{(k)})-f(W_0^{(k)})\right]\le-\mathbb{E}\left[\frac{\beta DT}{\gamma}\lVert\overline{H}^{(k)}\rVert_F+\sum_{t=0}^{T-1}\frac{\beta}{8\gamma}\lVert M_t^{(k)}\rVert_F^2\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{1}{\gamma}\right)D^2+\frac{\beta^2L^2T}{\gamma}+\frac{rD^2}{\gamma}.

Proof. Let us consider the filtration Fn=σ(G1,G2,…,Gn)\mathcal{F}_n=\sigma(G_1,G_2,\ldots,G_n), where σ(⋅)\sigma(\cdot) denotes the generated σ\sigma-field. From Assumption 3.4, we can infer that

Hn:=E[Gn∣Fn−1]∈∂f(Wn).H_n:=\mathbb{E}[G_n\mid\mathcal{F}_{n-1}]\in\partial f(W_n).

The weak convexity of f(⋅)f(\cdot) implies that for all n≥1n\ge1 and η−1≥ρ\eta^{-1}\ge\rho,

f(Wn+1)−f(Wn)≤⟨Hn+1,Wn+1−Wn⟩+12η∥Wn+1−Wn∥F2=E[⟨Gn+1,Wn+1−Wn⟩+12η∥Wn+1−Wn∥F2∣Fn].\begin{aligned} f(W_{n+1})-f(W_n)\le\langle H_{n+1},W_{n+1}-W_n\rangle+\frac{1}{2\eta}\lVert W_{n+1}-W_n\rVert_F^2 \\ &=\mathbb{E}\left[\left\langle G_{n+1},W_{n+1}-W_n\right\rangle+\frac{1}{2\eta}\lVert W_{n+1}-W_n\rVert_F^2\mathrel{\Big|}\mathcal{F}_n\right]. \end{aligned}

The law of total expectation implies that

E[f(Wn+1)−f(Wn)]≤E[⟨Gn+1,Wn+1−Wn⟩+12η∥Wn+1−Wn∥F2].\mathbb{E}[f(W_{n+1})-f(W_n)]\le\mathbb{E}\left[\left\langle G_{n+1},W_{n+1}-W_n\right\rangle+\frac{1}{2\eta}\lVert W_{n+1}-W_n\rVert_F^2\right].

Fix an arbitrary k∈[K]k \in[K]. Recall that Wt(k)=W(k−1)T+tW_t^{(k)} = W_{(k-1)T+t} where t∈{0}∪[T−1]t \in\{0\} \cup[T-1] and we similarly define the notions of Gt(k)G_t^{(k)}, Ht(k)H_t^{(k)} and Mt(k)M_t^{(k)}. We can express the previous inequality as

E[f(Wt+1(k))−f(Wt(k))]≤E[⟨Gt+1(k),Wt+1(k)−Wt(k)⟩+12η∥Wt+1(k)−Wt(k)∥F2].\mathbb{E}\left[f\left(W_{t+1}^{(k)}\right)-f\left(W_t^{(k)}\right)\right] \leq\mathbb{E}\left[\left\langle G_{t+1}^{(k)},W_{t+1}^{(k)}-W_t^{(k)}\right\rangle+\frac{1}{2\eta}\left\|W_{t+1}^{(k)}-W_t^{(k)}\right\|_{F}^{2}\right].

Summing the above inequality over t=0,…,T−1t=0,\ldots,T-1 yields that

E[f(WT(k))−f(W0(k))]≤E[∑t=0T−1(⟨Gt+1(k),Wt+1(k)−Wt(k)⟩+12η∥Wt+1(k)−Wt(k)∥F2)].(8)\mathbb{E}\left[f\left(W_T^{(k)}\right)-f\left(W_0^{(k)}\right)\right]\leq\mathbb{E}\left[\sum_{t=0}^{T-1}\left(\left\langle G_{t+1}^{(k)},W_{t+1}^{(k)}-W_t^{(k)}\right\rangle+\frac{1}{2\eta}\left\|W_{t+1}^{(k)}-W_t^{(k)}\right\|_{F}^{2}\right)\right]. \tag*{(8)}

From the update rule of Wt+1(k)W_{t+1}^{(k)} (step 14 in Algorithm 2), we have

Mt(k)=Wt(k)−Wt+1(k)η.M_t^{(k)}=\frac{W_t^{(k)}-W_{t+1}^{(k)}}{\eta}.

then we can rewrite the inequality (8) as:

E[f(WT(k))−f(W0(k))]≤E[∑t=0T−1(−η⟨Gt+1(k),Mt(k)⟩+η2∥Mt(k)∥F2)].(9)\mathbb{E}\left[f\left(W_T^{(k)}\right)-f\left(W_0^{(k)}\right)\right]\leq\mathbb{E}\left[\sum_{t=0}^{T-1}\left(-\eta\left\langle G_{t+1}^{(k)},M_t^{(k)}\right\rangle+\frac{\eta}{2}\left\|M_t^{(k)}\right\|_{F}^{2}\right)\right]. \tag*{(9)}

If we choose β=ηγ\beta=\eta\gamma, and we denote the quadratic function

ft(k)(X)=−βγ⟨Gt+1(k),X⟩+β2γ∥X∥F2.(10)f_t^{(k)}(X)=-\frac{\beta}{\gamma}\left\langle G_{t+1}^{(k)},X\right\rangle+\frac{\beta}{2\gamma}\left\|X\right\|_{F}^{2}. \tag*{(10)}

Since β≤1/8\beta\leq1/8, we can apply Lemma B.1 for the regret analysis with respect to the quadratic function ft(k)(X)f_t^{(k)}(X) by taking Xt=Mt(k)X_t=M_t^{(k)} and X‾=M‾(k)\overline{X}=\overline{M}^{(k)}, C={X:∥X∥2≤D}C=\{X:\|X\|_2\leq D\}:

Regret⁡T(M‾):=∑t=0T−1ft(k)(Mt(k))−∑t=0T−1ft(k)(M‾(k))≤∑t=0T−1(−β8γ∥Mt(k)∥F2+β2γ∥M‾(k)∥F2+β2γ∥Gt+1(k)∥F2)+∥M0(k)∥F2+∥M‾(k)∥F2γ.(11)\operatorname{Regret}_T\left(\overline{M}\right) :=\sum_{t=0}^{T-1}f_t^{(k)}\left(M_t^{(k)}\right)-\sum_{t=0}^{T-1}f_t^{(k)}\left(\overline{M}^{(k)}\right) \leq\sum_{t=0}^{T-1}\left(-\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}+\frac{\beta}{2\gamma}\left\|\overline{M}^{(k)}\right\|_{F}^{2}+\frac{\beta^{2}}{\gamma}\left\|G_{t+1}^{(k)}\right\|_{F}^{2}\right)+\frac{\left\|M_0^{(k)}\right\|_{F}^{2}+\left\|\overline{M}^{(k)}\right\|_{F}^{2}}{\gamma}. \tag*{(11)}

Substitute the definition of the quadratic function (10) into (11):

∑t=0T−1(−βγ⟨Gt+1(k),Mt(k)⟩+β2γ∥Mt(k)∥F2)≤∑t=0T−1(−βγ⟨Gt+1(k),M‾(k)⟩+β2γ∥M‾(k)∥F2)+∑t=0T−1(−β8γ∥Mt(k)∥F2+β2γ∥M‾(k)∥F2+β2γ∥Gt+1(k)∥F2)+∥M0(k)∥F2+∥M‾(k)∥F2γ.\begin{aligned} \sum_{t=0}^{T-1}\left(-\frac{\beta}{\gamma}\left\langle G_{t+1}^{(k)},M_t^{(k)}\right\rangle+\frac{\beta}{2\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}\right) \\ &\leq\sum_{t=0}^{T-1}\left(-\frac{\beta}{\gamma}\left\langle G_{t+1}^{(k)},\overline{M}^{(k)}\right\rangle+\frac{\beta}{2\gamma}\left\|\overline{M}^{(k)}\right\|_{F}^{2}\right)+\sum_{t=0}^{T-1}\left(-\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}+\frac{\beta}{2\gamma}\left\|\overline{M}^{(k)}\right\|_{F}^{2}+\frac{\beta^{2}}{\gamma}\left\|G_{t+1}^{(k)}\right\|_{F}^{2}\right)+\frac{\left\|M_0^{(k)}\right\|_{F}^{2}+\left\|\overline{M}^{(k)}\right\|_{F}^{2}}{\gamma}. \end{aligned}

Taking expectations on both sides yields that:

E[∑t=0T−1(−βγ⟨Gt+1(k),Mt(k)⟩+β2γ∥Mt(k)∥F2)]≤E[∑t=0T−1(−βγ⟨Gt+1(k),M‾(k)⟩+β2γ∥M‾(k)∥F2)+∑t=0T−1(−β8γ∥Mt(k)∥F2+βγ∥M‾(k)∥F2+β2γ∥Gt+1(k)∥F2)+∥M0(k)∥F2+∥M‾(k)∥F2γ]=E[−βγ∑t=0T−1⟨Gt+1(k)−Ht+1(k),M‾(k)⟩−βγ∑t=0T−1⟨Ht+1(k),M‾(k)⟩+∑t=0T−1(−β8γ∥Mt(k)∥F2+βγ∥M‾(k)∥F2+β2γ∥Gt+1(k)∥F2)+∥M0(k)∥F2+∥M‾(k)∥F2γ].(12)\begin{aligned} \mathbb{E}\left[\sum_{t=0}^{T-1}\left(-\frac{\beta}{\gamma}\langle G_{t+1}^{(k)},M_t^{(k)}\rangle+\frac{\beta}{2\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}\right)\right] &\leq\mathbb{E}\left[\sum_{t=0}^{T-1}\left(-\frac{\beta}{\gamma}\langle G_{t+1}^{(k)},\overline{M}^{(k)}\rangle+\frac{\beta}{2\gamma}\left\|\overline{M}^{(k)}\right\|_{F}^{2}\right)\right.\\ &\quad\left.+\sum_{t=0}^{T-1}\left(-\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}+\frac{\beta}{\gamma}\left\|\overline{M}^{(k)}\right\|_{F}^{2}+\frac{\beta^{2}}{\gamma}\left\|G_{t+1}^{(k)}\right\|_{F}^{2}\right)+\frac{\left\|M_0^{(k)}\right\|_{F}^{2}+\left\|\overline{M}^{(k)}\right\|_{F}^{2}}{\gamma}\right]\\ &=\mathbb{E}\left[-\frac{\beta}{\gamma}\sum_{t=0}^{T-1}\langle G_{t+1}^{(k)}-H_{t+1}^{(k)},\overline{M}^{(k)}\rangle-\frac{\beta}{\gamma}\sum_{t=0}^{T-1}\langle H_{t+1}^{(k)},\overline{M}^{(k)}\rangle\right.\\ &\quad\left.+\sum_{t=0}^{T-1}\left(-\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}+\frac{\beta}{\gamma}\left\|\overline{M}^{(k)}\right\|_{F}^{2}+\frac{\beta^{2}}{\gamma}\left\|G_{t+1}^{(k)}\right\|_{F}^{2}\right)+\frac{\left\|M_0^{(k)}\right\|_{F}^{2}+\left\|\overline{M}^{(k)}\right\|_{F}^{2}}{\gamma}\right]. \tag*{(12)} \end{aligned}

We choose

M‾(k)=D∑t=1THt(k)∥∑t=1THt(k)∥F,(13)\overline{M}^{(k)}=D\frac{\sum_{t=1}^{T}H_t^{(k)}}{\left\|\sum_{t=1}^{T}H_t^{(k)}\right\|_{F}}, \tag*{(13)}

then we can show that

∥M‾(k)∥2≤∥M‾(k)∥F=D.(14)\left\|\overline{M}^{(k)}\right\|_{2}\leq\left\|\overline{M}^{(k)}\right\|_{F}=D. \tag*{(14)}

In addition, using Jensen’s inequality and the fact that {Gt+1(k)−Ht+1(k)}\{G_{t+1}^{(k)}-H_{t+1}^{(k)}\} is a martingale-difference sequence with variance bounded by σ2\sigma^{2} (Assumption 3.4):

E[−βγ∑t=0T−1⟨Gt+1(k)−Ht+1(k),M‾(k)⟩]≤E[βγ∥∑t=0T−1(Gt+1(k)−Ht+1(k))∥F∥M‾(k)∥F]≤βDσTγ,(15)\begin{aligned} \mathbb{E}\left[-\frac{\beta}{\gamma}\sum_{t=0}^{T-1}\langle G_{t+1}^{(k)}-H_{t+1}^{(k)},\overline{M}^{(k)}\rangle\right] &\leq\mathbb{E}\left[\frac{\beta}{\gamma}\left\|\sum_{t=0}^{T-1}\left(G_{t+1}^{(k)}-H_{t+1}^{(k)}\right)\right\|_{F}\left\|\overline{M}^{(k)}\right\|_{F}\right]\\ &\leq\frac{\beta D\sigma\sqrt{T}}{\gamma}, \tag*{(15)} \end{aligned}

where the last inequality follows from Assumption 3.4. In addition, the definition (13) implies that

E[−βγ∑t=0T−1⟨Ht+1(k),M‾(k)⟩]=−E[βγ⟨∑t=1THt(k),D∑t=1THt(k)∥∑t=1THt(k)∥F⟩]=−E[βDγ∥∑t=1THt(k)∥F].(16)\begin{aligned} \mathbb{E}\left[-\frac{\beta}{\gamma}\sum_{t=0}^{T-1}\langle H_{t+1}^{(k)},\overline{M}^{(k)}\rangle\right] &=-\mathbb{E}\left[\frac{\beta}{\gamma}\left\langle\sum_{t=1}^{T}H_t^{(k)},\frac{D\sum_{t=1}^{T}H_t^{(k)}}{\left\|\sum_{t=1}^{T}H_t^{(k)}\right\|_{F}}\right\rangle\right]\\ &=-\mathbb{E}\left[\frac{\beta D}{\gamma}\left\|\sum_{t=1}^{T}H_t^{(k)}\right\|_{F}\right]. \tag*{(16)} \end{aligned}

Furthermore, Assumption 3.3 implies that ∥Gt+1(k)∥F≤L\left\|G_{t+1}^{(k)}\right\|_{F}\leq L. Step (13) in Algorithm 2 yields that ∥M0(k)∥F≤rD\left\|M_0^{(k)}\right\|_{F}\leq\sqrt{r}D. Consequently, substituting (14), (15), (16) into (12), we have

E[∑t=0T−1(−βγ⟨Gt+1(k),Mt(k)⟩+β2γ∥Mt(k)∥F2)]≤βDσTγ−E[βDγ∥∑t=1THt(k)∥F+∑t=0T−1β8γ∥Mt(k)∥F2]+(βTD2γ+β2L2Tγ)+rD2γ+D2γ=−E[βDTγ∥H‾(k)∥F+∑t=0T−1β8γ∥Mt(k)∥F2]+βDσTγ+(βTγ+1γ)D2+β2L2Tγ+rD2γ.(17)\begin{aligned} \mathbb{E}\left[\sum_{t=0}^{T-1}\left(-\frac{\beta}{\gamma}\langle G_{t+1}^{(k)},M_t^{(k)}\rangle+\frac{\beta}{2\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}\right)\right] &\leq\frac{\beta D\sigma\sqrt{T}}{\gamma}-\mathbb{E}\left[\frac{\beta D}{\gamma}\left\|\sum_{t=1}^{T}H_t^{(k)}\right\|_{F}+\sum_{t=0}^{T-1}\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}\right]\\ &\quad+\left(\frac{\beta T D^{2}}{\gamma}+\frac{\beta^{2}L^{2}T}{\gamma}\right)+\frac{rD^{2}}{\gamma}+\frac{D^{2}}{\gamma}\\ &=-\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|\overline{H}^{(k)}\right\|_{F}+\sum_{t=0}^{T-1}\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_{F}^{2}\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{1}{\gamma}\right)D^{2}+\frac{\beta^{2}L^{2}T}{\gamma}+\frac{rD^{2}}{\gamma}. \tag*{(17)} \end{aligned}

where in the last equality follows from the definition H‾(k)=1T∑t=1THt(k)\overline{H}^{(k)} = \frac{1}{T} \sum_{t=1}^{T} H_t^{(k)}. Recall that β=ηγ\beta= \eta\gamma, then combining (9) and (17) yields that

E[f(WT(k))−f(W0(k))]≤−E[βDTγ∥H‾(k)∥F+∑t=0T−1β8γ∥Mt(k)∥F2]+βDσTγ+(βTγ+1γ)D2+β2L2Tγ+rD2γ.\mathbb{E}\left[f\left(W_T^{(k)}\right)-f\left(W_0^{(k)}\right)\right] \leq-\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|\overline{H}^{(k)}\right\|_F+\sum_{t=0}^{T-1}\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_F^2\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{1}{\gamma}\right)D^2+\frac{\beta^2L^2T}{\gamma}+\frac{rD^2}{\gamma}.

Before proceeding, we establish an auxiliary lemma that will be used to control the deviation of the iterates Wt(k)W_t^{(k)} from their average.

Lemma B.3. Let X1,…,XnX_1,\ldots,X_n be a set of matrices, and let X‾=1n∑i=1nXi\overline{X}=\frac{1}{n}\sum_{i=1}^{n}X_i. Then for all i∈[n]i\in[n],

∥Xi−X‾∥F2≤1n∑i′=1n∥Xi−Xi′∥F2<n∑j=1n∥Δj∥F2,\left\|X_i-\overline{X}\right\|_F^2\leq\frac{1}{n}\sum_{i'=1}^{n}\left\|X_i-X_{i'}\right\|_F^2<n\sum_{j=1}^{n}\left\|\Delta_j\right\|_F^2,

where Δj:=Xj−Xj−1\Delta_j:=X_j-X_{j-1} and X0X_0 can be chosen arbitrarily.

Proof. Fix any i∈[n]i\in[n], we have

∥Xi−X‾∥F2=∥Xi−1n∑i′=1nXi′∥F2≤1n∑i′=1n∥Xi−Xi′∥F2=1n∑i′=1n∥∑j=i∧i′+1i∨i′(Xj−1−Xj)∥F2≤1n∑i′=1n(∑j=i∧i′+1i∨i′∥Δj∥F)2≤(∑j=2n∥Δj∥F)2≤n∑j=1n∥Δj∥F2.(18)\begin{aligned} \left\|X_i-\overline{X}\right\|_F^2=\left\|X_i-\frac{1}{n}\sum_{i'=1}^{n}X_{i'}\right\|_F^2\leq\frac{1}{n}\sum_{i'=1}^{n}\left\|X_i-X_{i'}\right\|_F^2 \\ &=\frac{1}{n}\sum_{i'=1}^{n}\left\|\sum_{j=i\wedge i'+1}^{i\vee i'}(X_{j-1}-X_j)\right\|_F^2 \\ &\leq\frac{1}{n}\sum_{i'=1}^{n}\left(\sum_{j=i\wedge i'+1}^{i\vee i'}\left\|\Delta_j\right\|_F\right)^2 \\ &\leq\left(\sum_{j=2}^{n}\left\|\Delta_j\right\|_F\right)^2\leq n\sum_{j=1}^{n}\left\|\Delta_j\right\|_F^2. \tag*{(18)} \end{aligned}

where the first and the last inequalities are due to the Cauchy–Schwarz inequality; The second inequality follows from the triangle inequality.

Proof of Theorem 4.3

We now provide the proof of the main convergence theorem of the Musec. We first restate Theorem 4.3 as follows:

Theorem B.4. Let γ=β/η\gamma=\beta/\eta and η≤1/ρ\eta\leq1/\rho where β≤1/8\beta\leq1/8, Then for any δ≥ηTDr\delta\geq\eta TD\sqrt{r}, the sequence {W‾(k)}k=1K\{\overline{W}^{(k)}\}_{k=1}^{K} generated by Algorithm 2 satisfies

E[1K∑k=1Kdist⁡(0,∂δf(W‾(k)))]≤σT+(1+2rβT)D+βL2D+γΔfβDTK.\mathbb{E}\left[\frac{1}{K}\sum_{k=1}^{K}\operatorname{dist}\left(0,\partial_{\delta}f\left(\overline{W}^{(k)}\right)\right)\right]\leq\frac{\sigma}{\sqrt{T}}+\left(1+\frac{2r}{\beta T}\right)D+\frac{\beta L^2}{D}+\frac{\gamma\Delta_f}{\beta DTK}.

Proof. For any k∈[K]k\in[K], according to Lemma 4.2, one has

E[f(WT(k))−f(W0(k))]≤−E[βDTγ∥H‾(k)∥F+∑t=0T−1β8γ∥Mt(k)∥F2]+βDσTγ+(βTγ+1γ)D2+β2L2Tγ+rD2γ≤−E[βDTγ∥H‾(k)∥F]+βDσTγ+(βTγ+2rγ)D2+β2L2Tγ.\begin{aligned} \mathbb{E}\left[f\left(W_T^{(k)}\right)-f\left(W_0^{(k)}\right)\right] \leq-\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|\overline{H}^{(k)}\right\|_F+\sum_{t=0}^{T-1}\frac{\beta}{8\gamma}\left\|M_t^{(k)}\right\|_F^2\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma} \\ &+\left(\frac{\beta T}{\gamma}+\frac{1}{\gamma}\right)D^2+\frac{\beta^2L^2T}{\gamma}+\frac{rD^2}{\gamma} \\ &\leq-\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|\overline{H}^{(k)}\right\|_F\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{2r}{\gamma}\right)D^2+\frac{\beta^2L^2T}{\gamma}. \end{aligned}

By the definition that W‾T(k)=W0(k+1)\overline{W}^{(k)}_{T}=W^{(k+1)}_{0}, we obtain

E[f(W0(k+1))−f(W0(k))]≤−E[βDTγ∥H‾(k)∥F]+βDσTγ+(βTγ+2rγ)D2+β2L2Tγ.\mathbb{E}[f(W^{(k+1)}_{0})-f(W^{(k)}_{0})] \le-\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|\overline{H}^{(k)}\right\|_{F}\right]+\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{2r}{\gamma}\right)D^{2}+\frac{\beta^{2}L^{2}T}{\gamma}.

Rearranging the terms on both sides of the inequality, we have

E[βDTγ∥H‾(k)∥F]≤βDσTγ+(βTγ+2rγ)D2+β2L2Tγ+E[f(W0(k))−f(W0(k+1))].\mathbb{E}\left[\frac{\beta DT}{\gamma}\left\|\overline{H}^{(k)}\right\|_{F}\right]\le\frac{\beta D\sigma\sqrt{T}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{2r}{\gamma}\right)D^{2}+\frac{\beta^{2}L^{2}T}{\gamma}+\mathbb{E}[f(W^{(k)}_{0})-f(W^{(k+1)}_{0})].

By telescoping both sides through k∈[K]k\in[K], we have

E[βDTγ∑k=1K∥H‾(k)∥F]≤βDσTKγ+(βTγ+2rγ)D2K+β2L2TKγ+E[f(W0(0))−f(W0(K+1))]≤βDσTKγ+(βTγ+2rγ)D2K+β2L2TKγ+Δf,\begin{aligned} \mathbb{E}\left[\frac{\beta DT}{\gamma}\sum_{k=1}^{K}\left\|\overline{H}^{(k)}\right\|_{F}\right]\le\frac{\beta D\sigma\sqrt{TK}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{2r}{\gamma}\right)D^{2}K+\frac{\beta^{2}L^{2}TK}{\gamma}+\mathbb{E}[f(W^{(0)}_{0})-f(W^{(K+1)}_{0})] \\ &\le\frac{\beta D\sigma\sqrt{TK}}{\gamma}+\left(\frac{\beta T}{\gamma}+\frac{2r}{\gamma}\right)D^{2}K+\frac{\beta^{2}L^{2}TK}{\gamma}+\Delta_f, \end{aligned}

where the last inequality follows from the definition of Δf\Delta_f. Dividing both sides by βDTK/γ\beta DTK/\gamma yields that

E[1K∑k=1K∥H‾(k)∥F]≤σT+(1+2rβT)D+βL2D+γΔfβDTK.\mathbb{E}\left[\frac{1}{K}\sum_{k=1}^{K}\left\|\overline{H}^{(k)}\right\|_{F}\right]\le\frac{\sigma}{\sqrt{T}}+\left(1+\frac{2r}{\beta T}\right)D+\frac{\beta L^{2}}{D}+\frac{\gamma\Delta_f}{\beta DTK}.

To translate the bound on ∥H‾(k)∥F\left\|\overline{H}^{(k)}\right\|_{F} into a Goldstein-stationarity bound at W‾(k)\overline{W}^{(k)}, we need every iterate Wt(k)W^{(k)}_{t} to lie within the δ\delta-ball of W‾(k)\overline{W}^{(k)}. Applying Lemma B.3, for any t∈[T]t\in[T], we can show that

∥Wt(k)−W‾(k)∥F≤T∑t=1T∥Wt(k)−Wt−1(k)∥F2≤Tη2∑t=0T−1∥Mt(k)∥F2≤ηTDr≤δ,\left\|W^{(k)}_{t}-\overline{W}^{(k)}\right\|_{F}\le\sqrt{T\sum_{t=1}^{T}\left\|W^{(k)}_{t}-W^{(k)}_{t-1}\right\|_{F}^{2}}\le\sqrt{T\eta^{2}\sum_{t=0}^{T-1}\left\|M^{(k)}_{t}\right\|_{F}^{2}}\le\eta TD\sqrt{r}\le\delta,

where the second inequality follows from the step (14) in Algorithm 2 and the third inequality is due to ∥Mt(k)∥F2≤rD2\left\|M^{(k)}_{t}\right\|_{F}^{2}\le rD^{2}. It implies that

dist⁡(0,∂δf(W‾(k)))≤∥1T∑t=1THt(k)∥F=∥H‾(k)∥F.\operatorname{dist}(0,\partial_{\delta}f(\overline{W}^{(k)}))\le\left\|\frac{1}{T}\sum_{t=1}^{T}H^{(k)}_{t}\right\|_{F}=\left\|\overline{H}^{(k)}\right\|_{F}.

Consequently, we obtain

E[1K∑k=1Kdist⁡(0,∂δf(W‾(k)))]≤σT+(1+2rβT)D+βL2D+γΔfβDTK.\mathbb{E}\left[\frac{1}{K}\sum_{k=1}^{K}\operatorname{dist}(0,\partial_{\delta}f(\overline{W}^{(k)}))\right]\le\frac{\sigma}{\sqrt{T}}+\left(1+\frac{2r}{\beta T}\right)D+\frac{\beta L^{2}}{D}+\frac{\gamma\Delta_f}{\beta DTK}.

Proof of Corollary 4.4

We restate the complexity bound of Musec as follows.

Corollary B.5. By choosing the parameters as

T=(δN)2/3,K=δ−2/3N1/3,D=(δN)−1/3,T=(\delta N)^{2/3},\qquad K=\delta^{-2/3}N^{1/3},\qquad D=(\delta N)^{-1/3},
β=r1/2(δN)2/3,γ=rδ4/3N1/3,η=δ2/3rN1/3,\beta=\frac{r^{1/2}}{(\delta N)^{2/3}},\qquad\gamma=\frac{r}{\delta^{4/3}N^{1/3}},\qquad\eta=\frac{\delta^{2/3}}{\sqrt{r}N^{1/3}},

then it takes at most

N=O(r3/4δ+δ2ρ3r3/2+r3/2(σ3+L6+Δf3)δϵ3)N=O\left(\frac{r^{3/4}}{\delta}+\frac{\delta^{2}\rho^{3}}{r^{3/2}}+\frac{r^{3/2}(\sigma^{3}+L^{6}+\Delta_f^{3})}{\delta\epsilon^{3}}\right)

to obtain a (δ,ϵ)(\delta,\epsilon)-Goldstein stationary point.

Proof. The theorem imposes four constraints on the parameters:

ηTDr≤δ,β=ηγ,β≤18,η−1≥ρ\eta T D\sqrt{r} \le\delta,\qquad\beta=\eta\gamma,\qquad\beta\le\frac{1}{8},\qquad\eta^{-1}\ge\rho

We first specify the parameters, then verify that each constraint is satisfied under a mild lower bound on NN, and finally translate the theorem’s bound into the stated oracle complexity.

Step 1: Parameter choices. Set

T=(δN)2/3,K=NT=δ−2/3N1/3,D=(δN)−1/3,T=(\delta N)^{2/3},\qquad K=\frac{N}{T}=\delta^{-2/3}N^{1/3},\qquad D=(\delta N)^{-1/3},
β=r1/2(δN)2/3,γ=rδ4/3N1/3,η=δ2/3rN1/3(19)\beta=\frac{r^{1/2}}{(\delta N)^{2/3}},\qquad\gamma=\frac{r}{\delta^{4/3}N^{1/3}},\qquad\eta=\frac{\delta^{2/3}}{\sqrt{r}N^{1/3}} \tag*{(19)}

Step 2: Verifying the constraints. A direct computation gives

ηγ=δ2/3rN1/3⋅rδ4/3N1/3=β,\eta\gamma=\frac{\delta^{2/3}}{\sqrt{r}N^{1/3}}\cdot\frac{r}{\delta^{4/3}N^{1/3}}=\beta,

so β=ηγ\beta=\eta\gamma holds by construction. For the step-size constraint,

ηTDr=δ2/3rN1/3(δN)1/3r≤δ,\eta T D\sqrt{r}=\frac{\delta^{2/3}}{\sqrt{r}N^{1/3}}(\delta N)^{1/3}\sqrt{r}\le\delta,

so ηTDr≤δ\eta T D\sqrt{r}\le\delta also holds. The remaining two constraints β≤18\beta\le\frac{1}{8} and η−1≥ρ\eta^{-1}\ge\rho translate into lower bounds on NN:

N≥O(r3/4δ),N≥ρ3δ2r3/2.N\ge O\left(\frac{r^{3/4}}{\delta}\right),\qquad N\ge\frac{\rho^3\delta^2}{r^{3/2}}.

Step 3: Evaluating the theorem’s bound. By the theorem 4.3 implies that

E[1K∑k=1Kdist⁡(0,∂δf(W‾(k)))]≤σT+(1+2rβT)D+βL2D+ΔfγβDT≤σ(δN)1/3+1(δN)1/3+2r1/2(δN)1/3+r1/2L2(δN)1/3+Δfr1/2(δN)1/3,\begin{aligned} \mathbb{E}\left[\frac{1}{K}\sum_{k=1}^{K}\operatorname{dist}\left(0,\partial_{\delta}f(\overline{W}^{(k)})\right)\right]\le\frac{\sigma}{\sqrt{T}}+\left(1+\frac{2r}{\beta T}\right)D+\frac{\beta L^2}{D}+\frac{\Delta_f\gamma}{\beta DT} \\ &\le\frac{\sigma}{(\delta N)^{1/3}}+\frac{1}{(\delta N)^{1/3}}+\frac{2r^{1/2}}{(\delta N)^{1/3}}+\frac{r^{1/2}L^2}{(\delta N)^{1/3}}+\frac{\Delta_f r^{1/2}}{(\delta N)^{1/3}}, \end{aligned}

where the last inequality follows from the parameter choices in (19). To obtain (δ,ϵ)(\delta,\epsilon)-Goldstein stationary point such that it satisfies

E[1K∑k=1Kdist⁡(0,∂δf(W‾(k)))]≤ϵ,\mathbb{E}\left[\frac{1}{K}\sum_{k=1}^{K}\operatorname{dist}\left(0,\partial_{\delta}f(\overline{W}^{(k)})\right)\right]\le\epsilon,

it takes at most

N=O(r3/4δ+δ2ρ3r3/2+r3/2(σ3+L6+Δf3)δϵ3)N=O\left(\frac{r^{3/4}}{\delta}+\frac{\delta^2\rho^3}{r^{3/2}}+\frac{r^{3/2}(\sigma^3+L^6+\Delta_f^3)}{\delta\epsilon^3}\right)

stochastic gradient oracle queries.

Detailed Algorithm of Soft Musec

In § 5, we introduced Soft Musec, which replaces exact SVD-based spectral clipping with a smooth saturation function approximated via coupled Newton–Schulz iterations. Here we provide the full algorithmic details.

Recall from § 5 that the soft spectral clipping operator is given by

H(M,D)=D(MM⊤+D2I)−1/2M,H(M,D)=D(MM^{\top}+D^2I)^{-1/2}M,

Algorithm 3: Soft Spectral Clipping (SSC)

  1. Input: Matrix M∈Rm×nM \in\mathbb{R}^{m \times n}, clipping threshold D>0D > 0, number of Newton–Schulz iterations KK.

  2. A=MMT+D2IA = MM^{\mathsf{T}} + D^{2}I

  3. α=∥A∥F\alpha= \lVert A\rVert_{\mathrm{F}}

  4. Y0=A/αY_{0} = A/\alpha

  5. Z0=IZ_{0} = I

  6. for k=0,1,…,K−1k = 0,1,\ldots,K-1 do

  7. Tk=12(3I−ZkYk)T_{k} = \frac{1}{2}(3I-Z_{k}Y_{k})

  8. Yk+1=YkTkY_{k+1} = Y_{k}T_{k}

  9. Zk+1=TkZkZ_{k+1} = T_{k}Z_{k}

  10. end

  11. Return: D⋅(ZK/α)⋅MD \cdot(Z_{K}/\sqrt{\alpha}) \cdot M.

Algorithm 4: Soft Musec

  1. Input: Initial point W0W_{0}, momentum parameter β∈[0,1)\beta\in[0,1), learning rate η\eta, clipping threshold D>0D > 0, positive integers KK and TT, number of Newton–Schultz steps KnsK_{\mathrm{ns}}

  2. N=K×TN = K \times T

  3. for n=0,1,…,N−1n = 0,1,\ldots,N-1 do

  4. Sample ξn∼P\xi_{n} \sim\mathcal{P}

  5. Gn=G(Wn;ξn)G_{n} = G(W_{n};\xi_{n})

  6. if n=0n = 0 then

  7. M^0=G0\widehat{M}_{0} = G_{0}

  8. else

  9. M^n=(1−β)Mn−1+βGn\widehat{M}_{n} = (1-\beta)M_{n-1}+\beta G_{n}

  10. end

  11. Mn=SSC⁡(M^n,D,Kns)M_{n} = \operatorname{SSC}(\widehat{M}_{n},D,K_{\mathrm{ns}}) // Algorithm 3

  12. Wn+1=Wn−ηMnW_{n+1} = W_{n}-\eta M_{n}

  13. end

  14. Set W‾(k)=1T∑t=0T−1Wt(k)\overline{W}^{(k)} = \frac{1}{T}\sum_{t=0}^{T-1}W_{t}^{(k)} where Wt(k)=W(k−1)T+tW_{t}^{(k)} = W_{(k-1)T+t} for ∀k∈[K]\forall k \in[K]

  15. Return: W‾T∼Uniform⁡({W‾(k):k∈[K]})\overline{W}_{T} \sim\operatorname{Uniform}(\{\overline{W}^{(k)}: k \in[K]\}).

where M∈Rm×nM \in\mathbb{R}^{m \times n} with m≤nm \le n w.l.o.g. We approximate the matrix inverse square root

(MMT+D2I)−1/2(MM^{\mathsf{T}}+D^{2}I)^{-1/2}

using coupled Newton–Schulz iterations [16 Chapter 6], which involve only matrix–matrix multiplications and are therefore well-suited to GPU computation. The complete procedure is presented in Algorithm 3. The normalization by ∥MMT+D2I∥F\lVert MM^{\mathsf{T}}+D^{2}I\rVert_{\mathrm{F}} ensures that the initial iterate Y0Y_{0} has unit Frobenius norm, placing the eigenvalues in a range where the Newton–Schulz iteration converges. The addition of D2ID^{2}I shifts all eigenvalues away from zero, ensuring numerical stability.

We present the full Soft Musec procedure in Algorithm 4, which integrates the soft spectral clipping subroutine (Algorithm 3) into the Musec framework by replacing the exact SVD and hard clipping in Steps 11–14 of Algorithm 2.

Comparison with SPECTRA

We provide a detailed comparison of the Musec and SPECTRA update rules to clarify their algorithmic differences.

Given a matrix MM with reduced SVD M=USV⊤M = U S V^\top, we define the spectral clipping operator Clip⁡sc(M)=UClip⁡(S,D)V⊤\operatorname{Clip}_{\mathrm{sc}}(M) = U\operatorname{Clip}(S,D)V^\top. Both Musec and SPECTRA employ this operator, but they differ in how the clipped output interacts with the momentum state.

Musec maintains a clipped momentum buffer and computes:

M^n=(1−β)Mn−1+βGn,Mn=Clip⁡sc(M^n,D),Wn+1=Wn−ηClip⁡scMn.\begin{aligned} \widehat{M}_n &= (1-\beta)M_{n-1}+\beta G_n,\\ M_n &= \operatorname{Clip}_{\mathrm{sc}}(\widehat{M}_n,D),\\ W_{n+1} &= W_n-\eta\operatorname{Clip}_{\mathrm{sc}}M_n. \end{aligned}

Crucially, the clipped momentum MnM_n is propagated to the next iteration. This ensures that the momentum state is always spectrally bounded: ∥Mn∥≤D\lVert M_n\rVert\le D at every iteration.

Ignoring weight decay, the SPECTRA update [19 Eq. (4] maintains an unclipped momentum buffer and applies spectral clipping only when computing the parameter update:

Mn=(1−β)Mn−1+βGn,Wn+1=Wn−ηClip⁡sc(Mn,D).\begin{aligned} M_n &= (1-\beta)M_{n-1}+\beta G_n,\\ W_{n+1} &= W_n-\eta\operatorname{Clip}_{\mathrm{sc}}(M_n,D). \end{aligned}

Here, the unclipped momentum MnM_n is carried forward to the next iteration. Although the weight update is spectrally clipped, the momentum state itself is unconstrained.

Key difference. The distinction lies in whether spectral clipping is integrated into the momentum recurrence. In Musec, the momentum state satisfies ∥Mn∥≤D\lVert M_n\rVert\le D at every iteration, so the input to the next EMA step is always spectrally bounded. In SPECTRA, the momentum state is unconstrained: ∥Mn∥\lVert M_n\rVert can grow well beyond DD over successive iterations, as clipping is only applied to the output update and does not feed back into the recurrence. Consequently, SPECTRA’s momentum can retain large spectral components accumulated over many past iterations, even when recent gradients are small in those directions. Musec’s feedback mechanism prevents this accumulation, providing tighter spectral control over the optimization trajectory.

Experimental Details

This section provides the detailed architecture, training, and hyperparameter configurations for our NanoGPT experiments.

Architecture Configurations

In our experiments, we evaluate three model configurations, including NanoGPT-small, NanoGPT-Medium, and NanoGPT-Wide. All three model configurations follow a decoder-only Transformer architecture based on the modded-nanogpt codebase.2 The architecture incorporates several modern modifications on top of the standard GPT-2 backbone, including RMSNorm [48], squared ReLU activations [38], Rotary Position Embeddings [39], sliding-window causal attention via Flash Attention 3 [36], and multi-token prediction as an auxiliary training objective. We refer to the codebase for full architectural details. The three configurations differ primarily in their width scaling. Table 1 summarizes their specifications.

SmallMediumWide
Layers111616
Attention heads6816
Head dimension128128128
Model dimension7681,0242,048
MLP hidden dimension3,0724,0968,192
Max sequence length2,0484,0964,096
Core parameters∼491\sim491M∼613\sim613M∼1.63\sim1.63B

Table 1. Architecture specifications across model scales.

Training Configuration

All models are trained using the GPT-2 BPE tokenizer in bfloat16 precision on NVIDIA H800 GPUs. We train all configurations on FineWeb [31], OpenWebText [13], and C4 [33]. Each configuration employs a multi-phase training schedule that jointly ramps up batch size and learning rate. The learning rate follows a warmup-then-decay schedule. Table 2 summarizes the key training parameters. Full schedule details are available in the modded-nanogpt codebase.

SmallMediumWide
Total steps1,3904,7408,040
Final batch size (tokens)393K524K1,049K
Precisionbfloat16bfloat16bfloat16
HardwareH800H800H800

Table 2. Training configuration across model scales.

Hyperparameters

For all methods, the respective optimizer is applied to attention and MLP projection matrices, while AdamW is used for embeddings, the language-model head, and scalar parameters. AdamW hyperparameters are held fixed across all methods. For each method, model configuration, and learning rate, we tune the weight decay over {0.096,0.3,0.6,1.2}\{0.096, 0.3, 0.6, 1.2\}. For Soft Musec and SPECTRA, we additionally tune the clipping threshold DD over {0.05,0.125,0.25,0.5,0.75,1.0}\{0.05, 0.125, 0.25, 0.5, 0.75, 1.0\}. We report the best validation loss over these sweeps. Table 3, Table 4, and Table 5 list the selected hyperparameters for NanoGPT-Small, NanoGPT-Medium, and NanoGPT-Wide, respectively.

LRMuon λQK\lambda_{\mathrm{QK}}Muon λVO\lambda_{\mathrm{VO}}Muon λMLP\lambda_{\mathrm{MLP}}MuonClip λQK\lambda_{\mathrm{QK}}MuonClip λVO\lambda_{\mathrm{VO}}MuonClip λMLP\lambda_{\mathrm{MLP}}Soft Musec / SPECTRA λQK\lambda_{\mathrm{QK}}Soft Musec / SPECTRA λVO\lambda_{\mathrm{VO}}Soft Musec / SPECTRA λMLP\lambda_{\mathrm{MLP}}DD
0.011.21.20.31.21.20.31.21.20.30.5
0.0231.21.21.21.21.21.21.21.20.30.5
0.051.21.21.21.21.21.21.21.20.30.1
0.11.21.20.31.21.20.31.21.20.30.1
0.21.21.20.31.21.20.31.21.20.30.1
0.51.21.20.31.21.20.31.21.20.30.1

Table 3. Selected weight decay λ\lambda and clipping threshold DD for each method and learning rate on NanoGPT-Small. Each entry corresponds to the best validation loss over the sweep. Soft Musec and SPECTRA share the same hyperparameter space.

LRMuon λQK\lambda_{\mathrm{QK}}Muon λVO\lambda_{\mathrm{VO}}Muon λMLP\lambda_{\mathrm{MLP}}MuonClip λQK\lambda_{\mathrm{QK}}MuonClip λVO\lambda_{\mathrm{VO}}MuonClip λMLP\lambda_{\mathrm{MLP}}Soft Musec / SPECTRA λQK\lambda_{\mathrm{QK}}Soft Musec / SPECTRA λVO\lambda_{\mathrm{VO}}Soft Musec / SPECTRA λMLP\lambda_{\mathrm{MLP}}DD
0.011.21.21.21.21.21.21.21.20.30.25
0.0151.21.21.21.21.21.21.21.20.30.25
0.051.21.21.21.21.21.21.21.20.30.05
0.11.21.20.31.21.21.21.21.20.30.05
0.21.21.20.31.21.21.21.21.20.30.05
0.31.21.20.31.21.20.31.21.20.30.05
0.50.30.30.30.30.30.30.30.30.30.05
0.80.30.30.10.30.30.10.30.30.10.05

Table 4. Selected weight decay λ\lambda and clipping threshold DD for each method and learning rate on NanoGPT-Medium. Each entry corresponds to the best validation loss over the sweep. Soft Musec and SPECTRA share the same hyperparameter space.

LRMuonMuonClipSoft Musec / SPECTRA
λQK\lambda_{\mathrm{QK}}λVO\lambda_{\mathrm{VO}}λMLP\lambda_{\mathrm{MLP}}λQK\lambda_{\mathrm{QK}}λVO\lambda_{\mathrm{VO}}λMLP\lambda_{\mathrm{MLP}}λQK\lambda_{\mathrm{QK}}λVO\lambda_{\mathrm{VO}}λMLP\lambda_{\mathrm{MLP}}DD
0.011.21.21.21.21.21.21.21.20.30.25
0.051.21.21.21.21.21.21.21.20.30.05
0.11.21.20.31.21.21.21.21.20.30.05
0.21.21.20.31.21.21.21.21.20.30.05
0.31.21.20.31.21.21.20.31.21.20.30.05
0.50.30.30.30.30.30.30.30.30.30.05

Table 5. Selected weight decay λ\lambda and clipping threshold DD for each method and learning rate on NanoGPT-Wide. Each entry corresponds to the best validation loss over the sweep. Soft Musec and SPECTRA share the same hyperparameter space.

Additional Experimental Results

This section presents additional experimental results comparing Soft Musec against baseline methods on NanoGPT training.

Learning Rate Sweep

Figure 4–Figure 5 present the complete learning rate sweep results across all model configurations and datasets; runs that diverge during training are omitted. For NanoGPT-Small (Figure 4), all methods achieve comparable validation loss at small learning rates. As the learning rate increases, Muon degrades most rapidly, followed by MuonClip, while Soft Musec and SPECTRA maintain lower validation loss across the full range. For NanoGPT-Medium (Figure 5), the advantage of spectral clipping methods becomes more pronounced: at learning rates η≥0.1\eta\ge0.1, both Soft Musec and SPECTRA substantially outperform Muon and MuonClip, with Soft Musec achieving the best or near-best validation loss at the largest learning rates across all three datasets.

Validation loss versus learning rate for NanoGPT-Small on FineWeb

(a)

Validation loss versus learning rate for NanoGPT-Small on OpenWebText

(b)

Validation loss versus learning rate for NanoGPT-Small on C4

(c) Validation loss versus learning rate for NanoGPT-Small across three datasets.

Figure 4.

Validation loss versus learning rate for NanoGPT-Medium on FineWeb

(a)

Validation loss versus learning rate for NanoGPT-Medium on OpenWebText

(b)

Validation loss versus learning rate for NanoGPT-Medium on C4

(c) Validation loss versus learning rate for NanoGPT-Medium across three datasets.

Figure 5.

Additional Training Dynamics

Figure 6–Figure 8 present training loss curves across all model configurations, datasets, and selected learning rates. At the best-tuned learning rate, all Muon-type optimizers converge to lower validation loss than Adam and AdamW. As the learning rate increases, the stability gap between methods widens, and this effect is amplified at larger model scales. For NanoGPT-Small, instability only manifests at the largest learning rate (η=0.5\eta= 0.5), where Muon and MuonClip diverge on some datasets while Soft Musec and SPECTRA remain stable. For NanoGPT-Medium and NanoGPT-Wide, Muon and MuonClip exhibit increasingly severe instability starting from η=0.1\eta= 0.1, with large loss spikes and sustained oscillations. Soft Musec and SPECTRA both maintain stable convergence across all configurations, with Soft Musec achieving comparable or slightly smoother training dynamics.

Figure 6. Training loss over steps for NanoGPT-Small. Rows: learning rates; columns: datasets. Only learning rates where methods exhibit meaningfully different behavior are shown. NaN values within runs are omitted.

Figure 8. Training loss over steps for NanoGPT-Wide on FineWeb dataset. Only learning rates where methods exhibit meaningfully different behavior are shown. NaN values within runs are omitted.

Effective Rank Analysis

To directly validate our theoretical motivation, we track the effective rank of the update matrices across QK projections, VO projections, and MLP weights during NanoGPT-Medium training on FineWeb at η=0.5\eta= 0.5.

Let us first recall the definition of the effective rank ([35, 11]) of a matrix A∈Rm×nA \in\mathbb{R}^{m \times n} with singular values σ1≥σ2≥⋯≥σr≥0\sigma_1 \ge\sigma_2 \ge\cdots\ge\sigma_r \ge0, where r=min⁡(m,n)r = \min(m,n).

We define the singular value distribution as

pi=σi∑j=1rσj,i∈[r]p_i = \frac{\sigma_i}{\sum_{j=1}^{r} \sigma_j}, \qquad i \in[r]

so that ∑ipi=1\sum_i p_i = 1. We next compute the Shannon entropy of this distribution as

H(p1,…,pr)=−∑i=1rpilog⁡(pi).H(p_1, \ldots, p_r) = -\sum_{i=1}^{r} p_i \log(p_i).

The effective rank of the matrix AA, denoted erank⁡(A)\operatorname{erank}(A), is defined as

erank⁡(A)=exp⁡(H(p1,…,pr)).\operatorname{erank}(A) = \exp(H(p_1, \ldots, p_r)).

The complete results are shown in Figure 9. Muon exhibits near-full effective rank across all components, confirming that its polar step discards all spectral magnitude information. MuonClip does not meaningfully reduce the effective rank of the update, as it targets the weight matrices rather than the update itself. Both SPECTRA and Soft Musec achieve substantially lower effective rank than Muon, consistent with the effect of spectral clipping. Notably, as training progresses, Soft Musec maintains lower effective rank than SPECTRA across all three component types. This is consistent with the momentum feedback mechanism in Musec: by propagating the clipped momentum, spectral components are continuously regulated rather than allowed to accumulate in an unclipped buffer, as discussed in § 4.

Three-panel effective-rank curves for QK projections, VO projections, and MLP

Figure 9. Effective rank of update matrices over training steps for NanoGPT-Medium on FineWeb.

Computational Overhead

We compare the average wall-clock time per training step across all methods on FineWeb, with results shown in Figure 10. Across all three model configurations, Soft Musec introduces negligible computational overhead compared to Muon. For NanoGPT-Small, all methods train within 3% of each other (1021–1049 ms). For NanoGPT-Medium, all Muon-type methods achieve similar wall-clock time (2550–2692 ms), with MuonClip being the slowest. For NanoGPT-Wide, all methods remain within 2% (15645–15977 ms). MuonClip is consistently the slowest method due to its additional weight clipping step. These results confirm that the spectral clipping operation in Soft Musec introduces minimal computational overhead relative to Muon, as both methods rely on Newton–Schulz iterations of similar complexity.

Three bar charts comparing average wall clock time for Muon, MuonClip, SPECTRA, and Soft Musec on NanoGPT-Small, NanoGPT-Medium, and NanoGPT-Wide

Figure 10. Average wall clock time comparison of methods for training FineWeb.

Ablation Studies

In this subsection, we ablate two key hyperparameters of Soft Musec: the clipping threshold DD and the number of Newton–Schulz iterations.

Sensitivity to Clipping Threshold

We study the sensitivity of Soft Musec to the clipping threshold DD on NanoGPT-Medium trained on FineWeb across three learning rates (η∈{0.1,0.2,0.5}\eta\in\{0.1, 0.2, 0.5\}), with results shown in Figure 11.

Figure 11. Effect of clipping threshold on Soft Musec training stability across learning rates.

At moderate learning rates (η=0.1\eta= 0.1 and η=0.2\eta= 0.2), Soft Musec is robust to the choice of DD: all values from D=0.05D = 0.05 to D=1.0D = 1.0 converge to comparable validation loss with similar training dynamics. At the largest learning rate (η=0.5\eta= 0.5), the choice of DD becomes more important. Smaller thresholds (D=0.05D = 0.05 and D=0.25D = 0.25) maintain smooth convergence, while larger thresholds (D=0.75D = 0.75 and D=1.0D = 1.0) exhibit loss spikes in the later stages of training. Notably, even with the largest clipping threshold (D=1.0D = 1.0), Soft Musec still converges — in contrast to Muon and MuonClip, which diverge entirely at this learning rate (Figure 7). This demonstrates that spectral clipping provides a meaningful stability benefit regardless of the threshold, while a well-tuned DD further improves training smoothness.

Figure 7. Training loss over steps for NanoGPT-Medium. Rows: learning rates; columns: datasets. Only learning rates where methods exhibit meaningfully different behavior are shown. NaN values within runs are omitted.

Number of Newton-Schulz Iterations

We study the sensitivity of Soft Musec to the number of Newton–Schulz iterations on NanoGPT-Medium trained on FineWeb across three learning rates (η∈{0.1,0.2,0.5}\eta\in\{0.1, 0.2, 0.5\}), with the clipping threshold fixed at D=0.05D = 0.05. Results are shown in Figure 12.

Figure 12. Effect of Newton–Schulz steps on Soft Musec training stability across learning rates.

Across all learning rates, Soft Musec is largely insensitive to the number of Newton–Schulz iterations. More iterations yield slightly better validation loss, consistent with a more accurate approximation of the spectral clipping operator. However, the differences are marginal, indicating that even a coarse approximation with three iterations provides most of the stability benefit. This robustness stems from the well-conditioned nature of the matrix M~M~⊤+D2I\widetilde{M}\widetilde{M}^{\top} + D^2 I, whose eigenvalues are bounded below by D2D^2, enabling rapid convergence of the iteration. In practice, five iterations offer a good balance between approximation quality and computational cost.

References

  1. [1]Jeremy Bernstein and Laker Newhouse. Old optimizer, new norm: An anthology. arXiv preprint arXiv:2409.20325, 2024.arxiv.org/abs/2409.20325
  2. [2]Jeremy Bernstein, Yu-Xiang Wang, Kamyar Aziz zadenehsheli, and Animashree Anandkumar. signsgd: Compressed optimisation for non-convex problems. In International conference on machine learning, pp. 560–569. PMLR, 2018.arxiv.org/abs/1802.04434
  3. [3]Frank H Clarke. Generalized gradients and applications. Transactions of the American Mathematical Society, 205:247–262, 1975.
  4. [4]Frank H. Clarke. Optimization and Nonsmooth Analysis, volume 5 of Classics in Applied Mathematics. Society for Industrial and Applied Mathematics (SIAM), Philadelphia, 1990.DOI
  5. [5]Ashok Cutkosky, Harsh Mehta, and Francesco Orabona. Optimal stochastic non-smooth non-convex optimization through online-to-non-convex conversion. In International Conference on Machine Learning, pp. 6643–6670. PMLR, 2023.arxiv.org/abs/2302.03775
  6. [8]Damek Davis, Dmitriy Drusvyatskiy, Yin Tat Lee, Swati Padmanabhan, and Guanghao Ye. A gradient sampling method with complexity guarantees for lipschitz functions in high and low dimensions. Advances in neural information processing systems, 35:6692–6703, 2022.
  7. [9]Mostafa Dehghani, Josip Djolonga, Basil Mustafa, Piotr Padlewski, Jonathan Heek, Justin Gilmer, Andreas Peter Steiner, Mathilde Caron, Robert Geirhos, Ibrahim Alabdulmohsin, et al. Scaling vision transformers to 22 billion parameters. In International conference on machine learning, pp. 7480–7512. PMLR, 2023.
  8. [10]John C Duchi and Feng Ruan. Stochastic methods for composite and weakly convex optimization problems. SIAM Journal on Optimization, 28(4):3229–3259, 2018.
  9. [11]Quentin Garrido, Randall Balestriero, Laurent Najman, and Yann Lecun. Rankme: Assessing the downstream performance of pretrained self-supervised representations by their rank. In International conference on machine learning, pp. 10929–10974. PMLR, 2023.
  10. [12]Team Gemma, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118, 2024. Preprint. Under review.
  11. [13]Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/ OpenWebTextCorpus, 2019.
  12. [14]Allen A Goldstein. Optimization of lipschitz continuous functions. Mathematical Programming, 13 (1):14–22, 1977.DOI
  13. [15]Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimiza- tion. In International Conference on Machine Learning, pp. 1842–1850. PMLR, 2018.
  14. [16]Nicholas J. Higham. Functions of Matrices: Theory and Computation. SIAM, 2008.
  15. [17]Fanfan Ji and Xiaotong Yuan. Derandomized online-to-non-convex conversion for stochastic weakly convex optimization. In International Conference on Learning Representations, volume 2026, pp. 125389–125414, 2026.
  16. [18]Ruichen Jiang, Zakaria Mhammedi, Mehryar Mohri, and Aryan Mokhtari. Adaptive matrix online learning through smoothing with guarantees for nonsmooth nonconvex optimization. arXiv preprint arXiv:2602.08232, 2026a.arxiv.org/abs/2602.08232
  17. [19]Xiaowen Jiang, Andrei Semenov, and Sebastian U. Stich. Enhancing llm training via spectral clipping. In Proceedings of the 43rd International Conference on Machine Learning, 2026b.
  18. [20]Keller Jordan, Yuchen Jin, Vlado Boza, You Jiacheng, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024. URL https: //kellerjordan.github.io/posts/muon/.
  19. [21]Michael Jordan, Guy Kornowski, Tianyi Lin, Ohad Shamir, and Manolis Zampetakis. Deterministic nonsmooth nonconvex optimization. In The Thirty Sixth Annual Conference on Learning Theory, pp. 4570–4597. PMLR, 2023.arxiv.org/abs/2302.08300
  20. [22]Team Kimi, Yifan Bai, Yiping Bao, Y Charles, Cheng Chen, Guanduo Chen, Haiting Chen, Huarong Chen, Jiahao Chen, Ningxin Chen, et al. Kimi k2: Open agentic intelligence. arXiv preprint arXiv:2507.20534, 2025.arxiv.org/abs/2507.20534
  21. [23]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.arxiv.org/abs/1412.6980
  22. [24]Guy Kornowski and Ohad Shamir. Oracle complexity in nonsmooth nonconvex optimization. Journal of Machine Learning Research, 23(314):1–44, 2022.arxiv.org/abs/2104.06763
  23. [26]Zichong Li, Liming Liu, Chen Liang, Weizhu Chen, and Tuo Zhao. NorMuon: Making Muon more efficient and scalable. In Proceedings of the 43rd International Conference on Machine Learning, 2026.arxiv.org/abs/2510.05491
  24. [27]Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Deng, Chong Ruan, Damai Dai, Daya Guo, et al. Deepseek-v2: A strong, economical, and efficient mixture-of- experts language model. arXiv preprint arXiv:2405.04434, 2024.arxiv.org/abs/2405.04434
  25. [28]Jingyuan Liu, Jianlin Su, Xingcheng Yao, Zhejun Jiang, Guokun Lai, Yulun Du, Yidao Qin, Weixin Xu, Enzhe Lu, Junjie Yan, et al. Muon is scalable for llm training. arXiv preprint arXiv:2502.16982, 2025.arxiv.org/abs/2502.16982
  26. [29]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Confer- ence on Learning Representations, 2019.
  27. [30]Matteo Pagliardini, Pierre Ablin, and David Grangier. The ademamix optimizer: Better, faster, older. In International Conference on Learning Representations, volume 2025, pp. 64715–64757, 2025.arxiv.org/abs/2409.03137
  28. [31]Guilherme Penedo, Hynek Kydlíček, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, Thomas Wolf, et al. The fineweb datasets: Decanting the web for the finest text data at scale. Advances in Neural Information Processing Systems, 37:30811–30849, 2024. Preprint. Under review.
  29. [32]Thomas Pethick, Wanyun Xie, Kimon Antonakopoulos, Zhenyu Zhu, Antonio Silveti-Falls, and Volkan Cevher. Training deep learning models with norm-constrained LMOs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pp. 49069–49104, 2025.arxiv.org/abs/2502.07529
  30. [33]Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1–67, 2020.arxiv.org/abs/1910.10683
  31. [34]Artem Riabinin, Egor Shulgin, Kaja Gruntkowska, and Peter Richtárik. Gluon: Making muon & scion great again!(bridging theory and practice of lmo-based optimizers for llms). arXiv preprint arXiv:2505.13416, 2025.
  32. [35]Olivier Roy and Martin Vetterli. The effective rank: A measure of effective dimensionality. In 2007 15th European signal processing conference, pp. 606–610. IEEE, 2007.DOI
  33. [36]Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, and Tri Dao. Flashattention-3: Fast and accurate attention with asynchrony and low-precision. Advances in Neural Information Processing Systems, 37:68658–68685, 2024.arxiv.org/abs/2407.08608
  34. [37]Wei Shen, Ruichuan Huang, Minhui Huang, Cong Shen, and Jiawei Zhang. On the convergence analysis of muon. arXiv preprint arXiv:2505.23737, 2025.arxiv.org/abs/2505.23737
  35. [38]David So, Wojciech Mánke, Hanxiao Liu, Zihang Dai, Noam Shazeer, and Quoc V Le. Searching for efficient transformers for language modeling. Advances in neural information processing systems, 34:6010–6022, 2021.
  36. [39]Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024.arxiv.org/abs/2104.09864
  37. [40]Lai Tian, Kaiwen Zhou, and Anthony Man-Cho So. On the finite-time complexity and practical computation of approximate stationarity concepts of lipschitz functions. In International Conference on Machine Learning, pp. 21360–21379. PMLR, 2022.arxiv.org/abs/2112.09002
  38. [41]Nikhil Vyas, Depen Morwani, Rosie Zhao, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham Kakade. Soap: Improving and stabilizing shampoo using adam for language modeling. In International Conference on Learning Representations, volume 2025, pp. 93423–93444, 2025.arxiv.org/abs/2409.11321
  39. [42]Mitchell Wortsman, Peter Liu, Lechao Xiao, Katie Everett, Alexander Alemi, Ben Adlam, John D Co-Reyes, Izzeddin Gur, Abhishek Kumar, Roman Novak, et al. Small-scale proxies for large-scale transformer training instabilities. In International Conference on Learning Representations, volume 2024, pp. 49844–49869, 2024.arxiv.org/abs/2309.14322
  40. [43]Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al. Deepseek-v4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348, 2026.arxiv.org/abs/2606.19348
  41. [44]Yixuan Yang, Yuqing He, and Song Li. Convergence of spectral descent for non-smooth optimization. arXiv preprint arXiv:2605.26977, 2026.arxiv.org/abs/2605.26977
  42. [45]Albert Yi. Mucon: Clipped muon updates for llm training. arXiv preprint arXiv:2605.26459, 2026.arxiv.org/abs/2605.26459
  43. [46]Alexander Yukhimchuk, Mladen Kolar, Martin Takáč, and Sayantan Choudhury. Gradient clipping beyond vector norms: A spectral approach for matrix-valued parameters. arXiv preprint arXiv:2605.11838, 2026.arxiv.org/abs/2605.11838
  44. [47]Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, et al. Glm-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026.arxiv.org/abs/2602.15763
  45. [48]Biao Zhang and Rico Sennrich. Root mean square layer normalization. Advances in neural information processing systems, 32, 2019.
  46. [49]Jingzhao Zhang, Hongzhou Lin, Stefanie Jegelka, Suvrit Sra, and Ali Jadbabaie. Complexity of finding stationary points of nonconvex nonsmooth functions. In International conference on machine learning, pp. 11173–11182. PMLR, 2020.

Paper details

vlnc:W_bge24d9x
Version
v2 · latest
Published
Added
License
CC BY 4.0
Usage

views · 14

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents