SignSGD · cited in the main text
Proved in LeanTheorem numbering in the paper: Proposition N.2
In the next proposition constants \(K\ge1\), \(0<f_-\le f_+\) and \(C_\Delta>0\) are fixed, and a state \(\Delta\) with batch size \(B\) is in the isotropic regime of Definition SJ.2 if, with \(k\defeq\min\{\Nout,\Nin,B\}\),
\[
\max\{\Nout,\Nin,B\}\le Kk,\qquad f_-\le\norm\Delta_\F\le f_+,\qquad \max_{i,j}\abs{\Delta_{ij}}\le\frac{C_\Delta}k .
\]
The threshold is \(k_0=\max\{4,8KC_\Delta^2/f_-^2\}\), \(C_2\) is the universal constant of the sign comparison Lemma SJ.5, and \(C_r\) depends only on \(K,f_-,C_\Delta\).
Proposition SJ.4 (Isotropic SignSGD recursion)
Let \(\Sigmain=\Idin\) and \(\Sigmaout=\Idout\), and let \(\Dt\) be the state at step \(t\). Suppose that, almost surely, \(\Dt\) with the batch size \(B\) is in the isotropic regime of Definition SJ.2 and \(k\ge k_0\). Then the SignSGD step satisfies
\begin{equation}\tag{SJ.18}
\EE_t\big[\cR(t+1)\big]=\cR(t)-\lr\,\mathcal N_B\sqrt{\frac{4\cR(t)}\pi}+\frac{\lr^2}2\,\Nin\Nout+E_t,\qquad
\abs{E_t}\le\lr\,K\sqrt{2\cR(t)}\,\Big(C_2+\frac{C_r}{\sqrt k}\Big),
\end{equation}
with \(C_2\) universal and \(C_r\) from Theorem SJ.1. The error is at most \(\pi K(C_2+C_r)/(2\sqrt{2/\pi}\sqrt k)\) times the drift term.
Definitions and assumptions used
Definition SJ.2 (Isotropic regime)
Definition SJ.2 (Isotropic regime)
Fix \(K\ge1\), \(0<f_-\le f_+\) and \(C_\Delta>0\). A deterministic state \(\Delta\) with batch size \(B\) is in the isotropic regime if, with \(k\defeq\min\{\Nout,\Nin,B\}\),
\begin{equation}\tag{SJ.15}
\max\{\Nout,\Nin,B\}\le Kk,\qquad f_-\le\norm\Delta_\F\le f_+,\qquad \max_{i,j}\abs{\Delta_{ij}}\le\frac{C_\Delta}k .
\end{equation}
This is the SignSGD case of the scalar recursion (8), with drift \(\mathfrak d=\mathcal N_B/\sqrt\pi\) and volatility \(\mathfrak v=\Nin\Nout\) (\(N^2\) in the square case). It holds one step at a time, from any state in the isotropic regime, whose entries are all of order \(1/k\), with no hypothesis on its rank or operator norm. The volatility is exact, and the drift carries a relative error of order \(k^{-1/2}\).
Proof sketch.
The volatility is exact. With identity covariances \(\norm S_\Sigma=\norm S_\F\), and every entry of \(G^\circ\) is a polynomial in the Gaussian batch that is not identically zero, hence nonzero almost surely. So \(\norm S_\F^2=\Nin\Nout\) (Proposition SJ.2), and the risk identity reads \(\EE_t[\cR(t+1)]=\cR(t)-\lr\,\mathsf D+\frac{\lr^2}2\Nin\Nout\) with \(\mathsf D=\langle\Dt,\EE_tS\rangle_\F\).
Each expected sign is compared with that of a shifted Gaussian. With \(F=\norm\Delta_\F\), the entry \(BG^\circ_{ij}\) is a sum of \(B\) independent copies of \(X=(z^\T\Delta w)z_iw_j\), of mean \(\Delta_{ij}\) and variance \(s^2=F^2+O(1/k)\) (Lemma SJ.3). Writing the sign as a limit of \(\frac2\pi\int_0^\infty e^{-\varepsilon u}\sin(uv)\,\dif u/u\) compares expected signs through the characteristic function \(\phi_Y\) of the standardized coordinate \(Y\), uniformly in the shift \(x=\sqrt B\Delta_{ij}/s\) and with universal \(C_1,C_2\) (Lemma SJ.5):
\[
\Big|\EE\sign\Big(\frac1{\sqrt B}\sum_{a=1}^BY_a+x\Big)-\EE\sign(g+x)\Big|\le\frac{C_1\abs{\EE Y^3}}{\sqrt B}+\frac{C_2}B .
\]
This needs \(\abs{\phi_Y(t)}\) to decay like \(\abs t^{-1/2}\), and that is where small entries enter. Given the other coordinates, \(X\) is Gaussian in the coordinates of \(z\) other than \(z_i\), with a variance controlled by the block \(\bar\Delta\) of \(\Delta\) without row \(i\) and column \(j\); every row and column of \(\Delta\) has squared norm at most \(KC_\Delta^2/k\), so \(\norm{\bar\Delta}_\F^2\ge\frac34F^2\) for \(k\ge k_0\) (Theorem SJ.1), more than the \(\norm{\bar\Delta}_\F\ge F/2\) that Lemma SJ.4 needs. The third cumulant \(\EE Y^3\) is \(O(1/k)\) as well. With \(\EE\sign(g+x)=\sqrt{2/\pi}\,x+O(\abs x^3)\) and \(\abs{\sqrt B-\mathcal N_B}\le4/\sqrt B\) (Proposition SJ.1), every entry satisfies (Theorem SJ.1)
\[
\Big|\EE\sign(G^\circ_{ij})-\sqrt{\frac2\pi}\,\mathcal N_B\frac{\Delta_{ij}}F\Big|\le\frac{C_2}B+\frac{C_r}{k^{3/2}} .
\]
The sum over entries costs the \(\ell^1\) norm of the state, which is why the error is relative of order \(k^{-1/2}\). Since \(\sum_{ij}\Delta_{ij}^2/F=F\), the leading terms add up to \(\mathsf D_0=\sqrt{2/\pi}\,\mathcal N_BF=\mathcal N_B\sqrt{4\cR/\pi}\ge(2/\pi)^{3/2}\sqrt kF\), while \(\sum_{ij}\abs{\Delta_{ij}}\le\sqrt{\Nout\Nin}\,F\le KkF\) bounds the summed errors by \(KF(C_2+C_r/\sqrt k)\), which is of order one.
Read the full proofOpens over this page; close it to come back here.
Lean
Proved in Lean
Muon.SignSGD.prop_app_sgd_iso_filtered source
theorem prop_app_sgd_iso_filtered :
∃ C₂ : ℝ, 0 ≤ C₂ ∧ ∀ K fMin Cdelta : ℝ, 1 ≤ K → 0 < fMin → 0 < Cdelta →
∃ Cr : ℝ, 0 ≤ Cr ∧ ∀ P : IsoParams, P.K = K → P.fMin = fMin → P.Cdelta = Cdelta →
∀ (Nout Nin B : ℕ) (η : ℝ), 0 ≤ η → isoK0 P ≤ (kOf Nout Nin B : ℝ) →
∀ (Ω : Type) [mΩ : MeasurableSpace Ω] (Pr : Measure Ω) [IsProbabilityMeasure Pr]
(C : Covariances Nout Nin) (hSout : C.Sout = 1) (hSin : C.Sin = 1)
(ν : Measure (Vec Nout × Vec Nin)) (hν : Muon.Setup.assum_data_target C ν)
(x : Ω → Muon.Setup.Batch Nout Nin B) (hxm : Measurable x)
(hid : Muon.Setup.IIDBatch Pr ν (fun a ω => x ω a))
(G : MeasurableSpace Ω) (hG : G ≤ mΩ)
(Dt : Ω → Matrix (Fin Nout) (Fin Nin) ℝ)
(hDt : ∀ i j, Measurable[G] fun ω => Dt ω i j)
(hind : ProbabilityTheory.Indep G (MeasurableSpace.comap x inferInstance) Pr)
(hreg : ∀ᵐ ω ∂Pr, def_app_sgd_iso_regime P Nout Nin B (Dt ω)),
(∀ᵐ ω ∂Pr,
|condExp G Pr (fun w => Muon.Setup.riskSigma C
(def_app_sgd_update η (Dt w) (toSignBatch (x w)))) ω
- (Muon.Setup.riskSigma C (Dt ω)
- η * batchConst B * Real.sqrt (4 * Muon.Setup.riskSigma C (Dt ω) / Real.pi)
+ η ^ 2 / 2 * ((Nin : ℝ) * (Nout : ℝ)))|
≤ η * P.K * Real.sqrt (2 * Muon.Setup.riskSigma C (Dt ω))
* (C₂ + Cr / Real.sqrt (kOf Nout Nin B : ℝ)))
∧ (∀ᵐ ω ∂Pr,
|condExp G Pr (fun w => Muon.Setup.riskSigma C
(def_app_sgd_update η (Dt w) (toSignBatch (x w)))) ω
- (Muon.Setup.riskSigma C (Dt ω)
- η * batchConst B * Real.sqrt (4 * Muon.Setup.riskSigma C (Dt ω) / Real.pi)
+ η ^ 2 / 2 * ((Nin : ℝ) * (Nout : ℝ)))|
≤ Real.pi * P.K * (C₂ + Cr)
/ (2 * Real.sqrt (2 / Real.pi) * Real.sqrt (kOf Nout Nin B : ℝ))
* (η * batchConst B * Real.sqrt (4 * Muon.Setup.riskSigma C (Dt ω) / Real.pi))) := byMuon.SignSGD.prop_app_sgd_iso_frozen source
theorem prop_app_sgd_iso_frozen :
∃ C₂ : ℝ, 0 ≤ C₂ ∧ ∀ K fMin Cdelta : ℝ, 1 ≤ K → 0 < fMin → 0 < Cdelta →
∃ Cr : ℝ, 0 ≤ Cr ∧ ∀ P : IsoParams, P.K = K → P.fMin = fMin → P.Cdelta = Cdelta →
∀ (Nout Nin B : ℕ) (η : ℝ), 0 ≤ η → ∀ (Δ : Matrix (Fin Nout) (Fin Nin) ℝ),
def_app_sgd_iso_regime P Nout Nin B Δ →
isoK0 P ≤ (kOf Nout Nin B : ℝ) →
∀ (Ω : Type) [MeasurableSpace Ω] (Pr : Measure Ω) [IsProbabilityMeasure Pr]
(C : Covariances Nout Nin) (hSout : C.Sout = 1) (hSin : C.Sin = 1)
(ν : Measure (Vec Nout × Vec Nin)) (hν : Muon.Setup.assum_data_target C ν)
(β : Ω → Batch Nout Nin B)
(hβ : Muon.Setup.IIDBatch Pr ν (fun a ω => ((β ω).xout a, (β ω).xin a))),
|∫ ω, Muon.Setup.riskSigma C (def_app_sgd_update η Δ (β ω)) ∂Pr
- (Muon.Setup.riskSigma C Δ
- η * batchConst B * Real.sqrt (4 * Muon.Setup.riskSigma C Δ / Real.pi)
+ η ^ 2 / 2 * ((Nin : ℝ) * (Nout : ℝ)))|
≤ η * P.K * Real.sqrt (2 * Muon.Setup.riskSigma C Δ)
* (C₂ + Cr / Real.sqrt (kOf Nout Nin B : ℝ))
∧ |∫ ω, Muon.Setup.riskSigma C (def_app_sgd_update η Δ (β ω)) ∂Pr
- (Muon.Setup.riskSigma C Δ
- η * batchConst B * Real.sqrt (4 * Muon.Setup.riskSigma C Δ / Real.pi)
+ η ^ 2 / 2 * ((Nin : ℝ) * (Nout : ℝ)))|
≤ Real.pi * P.K * (C₂ + Cr)
/ (2 * Real.sqrt (2 / Real.pi) * Real.sqrt (kOf Nout Nin B : ℝ))
* (η * batchConst B * Real.sqrt (4 * Muon.Setup.riskSigma C Δ / Real.pi)) := by