Section SJ · SignSGD: drift and volatility
Proved in Lean
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 .
\]
Used by
- Theorem SJ.2 Half-anisotropic drift
- Theorem SJ.3 Half-anisotropic weighted volatility
- Theorem SJ.4 Corrected row volatility
- Proposition SJ.8 Half-anisotropic SignSGD recursion
Lean
Proved in Lean
Muon.SignSGD.def_app_sgd_state_law source
def def_app_sgd_state_law (P : HaarParams) (Nout Nin B : ℕ) (μ : Fin Nout → ℝ)
(D : Matrix (Fin Nout) (Fin Nin) ℝ) : Prop :=Muon.SignSGD.HaarParams source
structure HaarParams where
Muon.SignSGD.haarDelta source
def haarDelta {n m : ℕ} (U : Matrix.orthogonalGroup (Fin n) ℝ)
(D : Matrix (Fin n) (Fin m) ℝ) : Matrix (Fin n) (Fin m) ℝ :=Muon.SignSGD.haarSigmaOut source
def haarSigmaOut {n : ℕ} (U : Matrix.orthogonalGroup (Fin n) ℝ) (μ : Fin n → ℝ) :
Matrix (Fin n) (Fin n) ℝ :=Muon.SignSGD.twoR source
def twoR {n m : ℕ} (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ) : ℝ :=Muon.SignSGD.muBar source
noncomputable def muBar {n : ℕ} (μ : Fin n → ℝ) : ℝ :=Muon.SignSGD.TD source
noncomputable def TD {n m : ℕ} (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ) :
Matrix (Fin n) (Fin n) ℝ :=Muon.SignSGD.LB source
noncomputable def LB (B : ℕ) {n m : ℕ} (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ) :
ℝ :=Muon.SignSGD.haarPminus source
noncomputable def haarPminus (P : HaarParams) : ℝ := P.c * P.fMin ^ 2
Muon.SignSGD.haarPplus source
noncomputable def haarPplus (P : HaarParams) : ℝ := P.L * P.fMax ^ 2
Muon.SignSGD.haarH0 source
noncomputable def haarH0 (P : HaarParams) : ℝ := P.L ^ 2 * P.fMax ^ 2
Muon.SignSGD.haarA0 source
noncomputable def haarA0 (P : HaarParams) : ℝ := haarH0 P / P.c
Muon.SignSGD.haarA1 source
noncomputable def haarA1 (P : HaarParams) : ℝ := P.L ^ 2 * P.Ccol / P.c
Muon.SignSGD.haarA2 source
noncomputable def haarA2 (P : HaarParams) : ℝ := P.L * P.Ccol
Muon.SignSGD.haar_bounds source
theorem haar_bounds (P : HaarParams) (Nout Nin B : ℕ) (μ : Fin Nout → ℝ)
(D : Matrix (Fin Nout) (Fin Nin) ℝ) (h : def_app_sgd_state_law P Nout Nin B μ D) :
haarPminus P ≤ twoR μ D ∧ twoR μ D ≤ haarPplus P ∧
(TD μ D).trace ≤ haarH0 P ∧ P.c ≤ muBar μ ∧ muBar μ ≤ P.L := by