SignSGD · cited in the main text
Proved in LeanTheorem numbering in the paper: Proposition N.3
In the next proposition the Haar model and its notation are those set before Theorem SJ.4. The threshold is \(k_*=\max\{4,\lceil4LC_{\rm col}/(cf_-^2)\rceil\}\), \(C_*\) is the admissible constant of the half-anisotropic drift Theorem SJ.2, and \(C_{\rm row}\) is the constant of Theorem SJ.4.
Proposition SJ.8 (Half-anisotropic SignSGD recursion)
In the Haar model of Definition SJ.3 with \(k\ge k_*\), let \(\lr\ge0\) be deterministic and \(\Delta^+=\Delta-\lr S\). Then, with \(\mathfrak d_i\defeq\mu_i\mathcal N_B/\sqrt{\pi\bar\mu}\), there are real numbers \(E_1,\dots,E_{\Nout}\) such that
\begin{equation}\tag{SJ.48}
\EE\,\CMscr Q_i(\Delta^+)=\CMscr Q_i(\Delta)-\frac{2\lr\,\mathfrak d_i}{\sqrt\cR}\,\CMscr Q_i(\Delta)+\lr^2\,\mathfrak v_i^{\rm corr}+E_i,\qquad
\sum_i\abs{E_i}\le2\lr f_+\sqrt{C_*}+\lr^2C_{\rm row}\,\frac{\Nout\Nin}{\sqrt k}.
\end{equation}
The risk satisfies
\begin{equation}\tag{SJ.49}
\EE\,\cR(\Delta^+)=\cR-\lr\sum_i\frac{\mu_i\,\mathfrak d_i}{\sqrt\cR}\,\CMscr Q_i(\Delta)+\frac{\lr^2}2\sum_i\mu_i\,\mathfrak v_i^{\text{s-SGD}}+\mathcal E_\lr,
\end{equation}
with \(\mathcal E_\lr\) bounded as in Corollary SJ.2.
Definitions and assumptions used
Definition SJ.3 (Haar state law)
Definition SJ.3 (Haar state law)
Fix \(K\ge1\), \(0<c\le L\), \(0<f_-\le f_+\) and \(C_{\rm col}>0\). Let \(\Nout,\Nin,B\) be positive integers with \(k\defeq\min\{\Nout,\Nin,B\}\ge2\) and \(\max\{\Nout,\Nin,B\}\le Kk\). Let \(\Lambda=\diag(\mu_1,\dots,\mu_{\Nout})\) and \(D\in\R^{\Nout\times\Nin}\) be deterministic with
\begin{equation}\tag{SJ.19}
c\,\Idout\preceq\Lambda\preceq L\,\Idout,\qquad f_-\le\norm D_\F\le f_+,\qquad \max_j\norm{D_{\cdot j}}^2\le\frac{C_{\rm col}}k .
\end{equation}
Let \(U\) be Haar distributed on the orthogonal group \(O(\Nout)\) and independent of the whitened batch \((z_b,w_b)_{b\le B}\). The half-anisotropic Haar model is
\[
\Sigmaout=U\Lambda U^\T,\qquad \Sigmain=\Idin,\qquad \Delta=UD,\qquad
\Xout^{(b)}=U\Lambda^{1/2}z_b,\qquad \Xin^{(b)}=w_b .
\]
This is the one-step row recursion (14) for SignSGD on a Haar eigenbasis, which the main text cites for the claim that SignSGD admits the same row recursion as Muon. The drift \(\mathfrak d_i=\mu_i\mathcal N_B/\sqrt{\pi\bar\mu}\) is the tabulated \(\mu_i\sqrt{B/(\pi\bar\mu)}\) of Table 1 with \(\sqrt B\) replaced by \(\mathcal N_B\). The per-row volatility is the state-dependent \(\mathfrak v_i^{\rm corr}\) of Theorem SJ.4, and the main text’s array \(\mathfrak v_i^{\text{s-SGD}}\) is correct in the covariance-weighted total, the risk identity (SJ.49). The hypotheses of the Haar model, among them a covariance bounded below and a state independent of the eigenbasis, are not shown to persist after the step.
Proof sketch.
The whitened batch is independent of \(U\), so the row identity of the chapter introduction holds given \(U\); averaged over \(U\), its quadratic term is \(\lr^2\volraw_i\), which Theorem SJ.4 replaces by \(\lr^2\mathfrak v_i^{\rm corr}\). It remains to compute the mean update \(M(U)=\EE[S\mid U]\).
Each entry of \(M(U)\) is an isotropic coordinate drift for a whitened state with small entries. Rotating the output feature so that its \(p\)th coordinate becomes a multiple of the first shows that \(\sign(G^\circ_{pj})\) has the law of an entry of the isotropic gradient of a state of Frobenius norm \(\sqrt{2\cR}\) whose entry is \(\mu_{pj}=(\Sigmaout\Delta)_{pj}/\sqrt{v_p}\), with \(v_p=(\Sigmaout)_{pp}\) (Lemma SJ.8). The coordinate estimate of the isotropic case (Proposition SJ.3) then gives \(\sqrt{2/\pi}\,\mathcal N_B\mu_{pj}/\sqrt{2\cR}\). Its hypothesis, a row and a column that carry a small part of the risk, is supplied by the rotation: with \(\omega_p\) the \(p\)th row of \(U\), a uniform unit vector, \(\mu_{pj}=\omega_p^\T\Lambda D_{\cdot j}/\sqrt{v_p}\) has \(\EE\abs{\mu_{pj}}^{2q}=O((\Nout k)^{-q})\), and the row is heavy only with probability \(O(\Nout^{-4})\) (Lemma SJ.9). The coordinate errors are squared and summed before averaging over \(U\), and their total stays bounded (Proposition SJ.6).
The diagonal of the covariance concentrates, \(\EE(v_p-\bar\mu)^4\le60L^4/\Nout^2\) (Lemma SJ.6), and replacing \(v_p\) by \(\bar\mu\) gives (Theorem SJ.2)
\[
\EE_U\big\|U^\T M(U)-L_B\,\Lambda D\big\|_\F^2\le C_*,\qquad L_B=\frac{\mathcal N_B}{\sqrt{\pi\cR\,\bar\mu}},\qquad
\norm{L_B\Lambda D}_\F^2\asymp B .
\]
The row pairing given \(U\) is \(\langle D_{i\cdot},(U^\T M)_{i\cdot}\rangle\), so the Cauchy–Schwarz inequality bounds the summed row errors by \(\norm D_\F\sqrt{C_*}\le f_+\sqrt{C_*}\), against a total of order \(\sqrt B\) (Corollary SJ.1), and \(L_B\mu_i=\mathfrak d_i/\sqrt\cR\). For the risk, the Haar sign matrix (Lemma SJ.11) reduces the weighted volatility to \(\Nin(1-\frac2\pi)\Tr\Lambda+\frac2\pi\Nout\sum_j\EE[h_j^\T\Lambda h_j/\norm{h_j}^2]\), with \(h_j=U^\T G^\circ_{\cdot j}\), and the mean of each ratio is \(\Tr\Lambda^2/\Tr\Lambda\) up to \(O(k^{-1/2})\) by concentration of quadratic forms of a column, which gives \(\sum_i\mu_i\mathfrak v_i^{\text{s-SGD}}\) (Theorem SJ.3 and Corollary SJ.2).
Read the full proofOpens over this page; close it to come back here.
Lean
Proved in Lean
Muon.SignSGD.prop_signsgd_recursion_anisotropic source
theorem prop_signsgd_recursion_anisotropic (P : HaarParams) :
∃ Cstar Crow Cvol : ℝ, 0 ≤ Cstar ∧ 0 ≤ Crow ∧ 0 ≤ Cvol ∧
∀ (n m B : ℕ) (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ)
(ν : Measure (Matrix.orthogonalGroup (Fin n) ℝ)),
Muon.Foundations.IsOrthHaar ν → def_app_sgd_state_law P n m B μ D →
haarKStar P ≤ kOf n m B → ∀ η : ℝ, 0 ≤ η →
-- row recursion: the residuals `E_i` are the differences of the displayed identity
(∀ i : Fin n,
Integrable (fun p => sgdRowEnergy
(def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) (haarCol p.1 i))
(ν.prod (batchLaw n m B))) ∧
(∑ i, |(∫ p, sgdRowEnergy
(def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) (haarCol p.1 i)
∂(ν.prod (batchLaw n m B)))
- ((∑ j, D i j ^ 2)
- 2 * η * (haarDcoef B μ i / Real.sqrt (twoR μ D / 2)) * (∑ j, D i j ^ 2)
+ η ^ 2 * vCorr n m B μ D i)|
≤ 2 * η * P.fMax * Real.sqrt Cstar
+ η ^ 2 * Crow * ((n : ℝ) * (m : ℝ)) / Real.sqrt (kOf n m B : ℝ)) ∧
-- risk: `E_η` is the difference of the displayed risk identity
Integrable (fun p => riskTwo (haarSigmaOut p.1 μ)
(def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) / 2)
(ν.prod (batchLaw n m B)) ∧
|(∫ p, riskTwo (haarSigmaOut p.1 μ)
(def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) / 2
∂(ν.prod (batchLaw n m B)))
- (twoR μ D / 2
- η * (∑ i, μ i * (haarDcoef B μ i / Real.sqrt (twoR μ D / 2)) * (∑ j, D i j ^ 2))
+ η ^ 2 / 2 * (∑ i, μ i * vSgd n m μ i))|
≤ η * (P.L * P.fMax) * Real.sqrt Cstar
+ η ^ 2 / 2 * Cvol * ((n : ℝ) * (m : ℝ)) / Real.sqrt (kOf n m B : ℝ) := by