Section SJ · SignSGD: drift and volatility · top-level result
Proved in Lean
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}
Proof.
The row volatility. By Lemma SJ.11,
\[
\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}.
\]
\[
\frac2\pi\,\Nout\Nin\Big(\frac{C_{\rm good}}{k^{3/2}}+\frac{C_{\rm bad}}{k^2}\Big)\le C_{\rm row}\frac{\Nin}{\sqrt k},\qquad C_{\rm row}\defeq\frac2\pi K(C_{\rm good}+C_{\rm bad}).
\]
The replaced sum is \(\sum_j\EE(h_j)_i^2/x_0=(\EE HH^\T)_{ii}/x_0\), and (SJ.34) with \(x_0=2\cR\Tr\Lambda/B\) identifies it:
\[
\frac{(\EE HH^\T)_{ii}}{x_0}=\frac{(\Nin+2)\mu_i}{\Tr\Lambda}+\frac{(B+2\Nin+3)(T_D)_{ii}}{2\cR\Tr\Lambda}.
\]
This proves the first bound in (SJ.45). The relative bound follows from \(\mathfrak v_i^{\rm corr}\ge\Nin(1-2/\pi)\).
Totals. By Lemma SJ.11, \(\norm S_\F^2=\Nout\Nin\), and \(\sum_i\norm{S^\T u_i}^2=\norm S_\F^2\) by orthogonality. Summing (SJ.44) over \(i\) gives the identity in (SJ.46). Its bracket is positive, and \(\Tr T_D\le2\cR L\), \(\Tr\Lambda\ge c\Nout\) and \(B+2\Nin+3\le(3K+3)\Nout\) give the upper bound.
Uses
- Lemma SJ.11 Haar reduction
- Lemma SJ.13 Column norms
- Lemma SJ.10 Column moments
- Definition SJ.3 Haar state law
Used by
- Remark SI.4 The adopted SignSGD array and the corrected modes
- Proposition SJ.8 Half-anisotropic SignSGD recursion
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