SignSGD · cited in the main text
Proved in LeanTheorem numbering in the paper: Theorem N.1
The Haar model of Definition SJ.3 fixes \(K\ge1\), \(0<c\le L\), \(0<f_-\le f_+\) and \(C_{\rm col}>0\), dimensions with \(k\defeq\min\{\Nout,\Nin,B\}\ge2\) and \(\max\{\Nout,\Nin,B\}\le Kk\), and deterministic \(\Lambda=\diag(\mu_1,\dots,\mu_{\Nout})\) and \(D\in\R^{\Nout\times\Nin}\) with
\[
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 .
\]
With \(U\) Haar distributed on \(O(\Nout)\) and independent of the whitened batch \((z_b,w_b)_{b\le B}\), it sets \(\Sigmaout=U\Lambda U^\T\), \(\Sigmain=\Idin\), \(\Delta=UD\), \(\Xout^{(b)}=U\Lambda^{1/2}z_b\) and \(\Xin^{(b)}=w_b\). Then \(u_i=Ue_i\), \(\CMscr Q_i(\Delta)=\norm{D_{i\cdot}}^2\), the risk \(2\cR=\Tr(\Lambda DD^\T)\) is deterministic, \(\bar\mu=\Tr\Lambda/\Nout\) and \(T_D=\Lambda DD^\T\Lambda\). Expectations integrate the batch and \(U\), a constant is admissible if it depends only on \(K,c,L,f_\pm,C_{\rm col}\), and the main text’s row volatility is \(\mathfrak v_i^{\text{s-SGD}}=\Nin\big[1+\frac2\pi\big(\frac{\mu_i}{\bar\mu}-1\big)\big]\).
Theorem SJ.4 (Corrected row volatility)
In the Haar model of Definition SJ.3, define the raw annealed row volatility of the update and the corrected array
\begin{align}
\volraw_i&\defeq\EE\norm{S^\T u_i}^2,\tag{SJ.43}\\
\mathfrak v_i^{\rm corr}&\defeq\Nin\Big(1-\frac2\pi\Big)+\frac2\pi\,\Nout\Big[\frac{(\Nin+2)\,\mu_i}{\Tr\Lambda}+\frac{(B+2\Nin+3)\,(T_D)_{ii}}{2\cR\,\Tr\Lambda}\Big].\tag{SJ.44}
\end{align}
There is an admissible constant \(C_{\rm row}\) such that, for every \(i\),
\begin{equation}\tag{SJ.45}
\abs{\volraw_i-\mathfrak v_i^{\rm corr}}\le C_{\rm row}\,\frac{\Nin}{\sqrt k},\qquad
\Big|\frac{\volraw_i}{\mathfrak v_i^{\rm corr}}-1\Big|\le\frac{C_{\rm row}}{(1-2/\pi)\sqrt k}.
\end{equation}
The actual total is exact, \(\sum_i\volraw_i=\Nout\Nin\), while
\begin{equation}\tag{SJ.46}
\sum_i\mathfrak v_i^{\rm corr}-\Nout\Nin=\frac2\pi\,\Nout\Big[2+\frac{(B+2\Nin+3)\Tr T_D}{2\cR\,\Tr\Lambda}\Big]\in\Big(0,\ \frac2\pi\Nout\big[2+(3K+3)L/c\big]\Big].
\end{equation}
The corrected array exceeds the main text’s array row by row:
\begin{equation}\tag{SJ.47}
\mathfrak v_i^{\rm corr}-\mathfrak v_i^{\text{s-SGD}}=\frac2\pi\,\Nout\Big[\frac{2\mu_i}{\Tr\Sigmaout}+\frac{(B+2\Nin+3)\,(\Lambda DD^\T\Lambda)_{ii}}{2\cR\,\Tr\Sigmaout}\Big]\ge0 .
\end{equation}
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 .
\]
The theorem computes the SignSGD row volatility \(\mathfrak v_i\) of (14) on a Haar eigenbasis and is the source of the footnote of Section 4: the actual row volatility is the corrected array \(\mathfrak v_i^{\rm corr}\) up to a relative error of order \(k^{-1/2}\), and this array exceeds the main text’s \(\mathfrak v_i^{\text{s-SGD}}\) by a nonnegative term that depends on the state through \((T_D)_{ii}\). In total the excess is of order \(\Nout\) against \(\Nout\Nin\), but for a single row it can be of the same order as \(\mathfrak v_i^{\text{s-SGD}}\): for \(\Lambda=\Id\), \(B=N\) and \(D=e_1\tensor\mathbf 1/\sqrt N\) the first row has \(\mathfrak v_1^{\rm corr}=(1+\frac6\pi)N+\frac{10}\pi\), whereas \(\mathfrak v_1^{\text{s-SGD}}=N\).
Proof sketch.
Averaging over the eigenbasis reduces the row volatility exactly to the column directions of a matrix that does not involve \(U\). The residuals do not involve \(U\), so \(G^\circ=UH\) with \(H=\frac1B\sum_b(z_b^\T\Lambda^{1/2}Dw_b)\,\Lambda^{1/2}z_b\tensor w_b\) independent of \(U\), and the \(j\)th column of \(U^\T S\) is \(U^\T\sign(Uh_j)\). For a fixed nonzero \(a\in\R^n\) and \(Y=U^\T\sign(Ua)\), invariance under the rotations that fix \(a\) leaves two unknown numbers in \(\EE_U[Y\tensor Y]\); the trace is \(\norm Y^2=n\), and \(a^\T Y/\norm a\) is the \(\ell^1\) norm of a uniform unit vector, whose second moment is \(1+2(n-1)/\pi\). This gives (Lemma SJ.7 and Lemma SJ.11)
\[
\EE_U\big[Y\tensor Y\big]=\Big(1-\frac2\pi\Big)\Id+\frac{2n}\pi\,\frac{a\tensor a}{\norm a^2},\qquad
\volraw_i=\Nin\Big(1-\frac2\pi\Big)+\frac2\pi\,\Nout\sum_{j=1}^{\Nin}\EE\frac{(h_j)_i^2}{\norm{h_j}^2}.
\]
Every entry of \(UH\) is nonzero almost surely, so \(\norm S_\F^2=\Nout\Nin\) and the total \(\sum_i\volraw_i=\norm S_\F^2\) is exact.
The random column norm can be replaced by \(x_0=2\cR\Tr\Lambda/B\). The column \(h_j\) is the mean of \(B\) independent vectors of mean \(m_j=\Lambda D_{\cdot j}\), so \(\norm{h_j}^2\) differs from \(x_0\) by a bias of order \(1/k\) and a fluctuation whose fourth moment is of order \(k^{-2}\) (a fourth-moment count over the samples), so \(\EE\abs{(h_j)_i^2/\norm{h_j}^2-(h_j)_i^2/x_0}=O(k^{-3/2})\) (Lemma SJ.13), and summed over the \(\Nin\) columns with the factor \(\frac2\pi\Nout\le\frac2\pi Kk\) this is the error \(C_{\rm row}\Nin/\sqrt k\).
The replaced sum is an exact Gaussian moment, and the mean of the columns produces the state term. Gaussian pairings give ((SJ.34))
\[
\sum_j\EE\big[h_j\tensor h_j\big]=\EE\big[HH^\T\big]=\frac{2\cR\,(\Nin+2)}B\,\Lambda+\Big(1+\frac{2\Nin+3}B\Big)T_D,
\]
where \(T_D=\sum_jm_j\tensor m_j\) collects the squared column means. The \((i,i)\) entry of \(\EE[HH^\T]\) divided by \(x_0\) is the bracket of (SJ.44). Summing over \(i\) and subtracting the main text’s array give (SJ.46) and (SJ.47), with \(\Tr T_D\le2\cR L\) and \(\Tr\Lambda\ge c\Nout\) for the upper bound.
Read the full proofOpens over this page; close it to come back here.
Lean
Proved in Lean
Muon.SignSGD.thm_app_sgd_modes_i source
theorem thm_app_sgd_modes_i (P : HaarParams) :
∃ Crow : ℝ, 0 ≤ Crow ∧
∀ (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 → ∀ i : Fin n,
Integrable (fun p => sgdRowEnergy (haarSign μ D p.1 p.2) (haarCol p.1 i))
(ν.prod (batchLaw n m B)) ∧
0 < vCorr n m B μ D i ∧
|haarRawRow B ν μ D i - vCorr n m B μ D i|
≤ Crow * (m : ℝ) / Real.sqrt (kOf n m B : ℝ) ∧
|haarRawRow B ν μ D i / vCorr n m B μ D i - 1|
≤ Crow / ((1 - 2 / Real.pi) * Real.sqrt (kOf n m B : ℝ)) := byMuon.SignSGD.thm_app_sgd_modes_ii source
theorem thm_app_sgd_modes_ii (P : HaarParams) :
∀ (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 →
∑ i, haarRawRow B ν μ D i = (n : ℝ) * (m : ℝ) := byMuon.SignSGD.thm_app_sgd_modes_iii source
theorem thm_app_sgd_modes_iii (P : HaarParams) :
∀ (n m B : ℕ) (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ),
def_app_sgd_state_law P n m B μ D →
(∑ i, vCorr n m B μ D i - (n : ℝ) * (m : ℝ)
= 2 / Real.pi * (n : ℝ) * (2 + ((B : ℝ) + 2 * (m : ℝ) + 3) * (TD μ D).trace
/ (twoR μ D * ∑ k, μ k))) ∧
0 < 2 / Real.pi * (n : ℝ) * (2 + ((B : ℝ) + 2 * (m : ℝ) + 3) * (TD μ D).trace
/ (twoR μ D * ∑ k, μ k)) ∧
2 / Real.pi * (n : ℝ) * (2 + ((B : ℝ) + 2 * (m : ℝ) + 3) * (TD μ D).trace
/ (twoR μ D * ∑ k, μ k))
≤ 2 / Real.pi * (n : ℝ) * (2 + (3 * P.K + 3) * P.L / P.c) := byMuon.SignSGD.thm_app_sgd_modes_iv source
theorem thm_app_sgd_modes_iv (P : HaarParams) :
∀ (n m B : ℕ) (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ),
def_app_sgd_state_law P n m B μ D → ∀ i : Fin n,
vCorr n m B μ D i - vSgd n m μ i
= 2 / Real.pi * (n : ℝ) * (2 * μ i / (∑ k, μ k)
+ ((B : ℝ) + 2 * (m : ℝ) + 3) * TD μ D i i / (twoR μ D * ∑ k, μ k)) ∧
0 ≤ 2 / Real.pi * (n : ℝ) * (2 * μ i / (∑ k, μ k)
+ ((B : ℝ) + 2 * (m : ℝ) + 3) * TD μ D i i / (twoR μ D * ∑ k, μ k)) := by