Section SJ · SignSGD: drift and volatility
Proved in Lean
Lemma SJ.10 (Column moments)
There are admissible constants \(V_0\), \(A_4\), \(A_8\) such that, for every column \(j\),
\begin{align}
\EE X&=m_j,\qquad V_j\defeq\EE[Z\tensor Z]=(2\cR+2C_j)\Lambda+2T_D+3\,m_j\tensor m_j,\tag{SJ.32}\\
\EE[h_j\tensor h_j]&=\frac{2\cR+2C_j}B\,\Lambda+\frac2B\,T_D+\Big(1+\frac3B\Big)m_j\tensor m_j,\tag{SJ.33}\\
\EE[HH^\T]&=\frac{2\cR\,(\Nin+2)}B\,\Lambda+\Big(1+\frac{2\Nin+3}B\Big)T_D,\tag{SJ.34}
\end{align}
with \(C_j=D_{\cdot j}^\T\Lambda D_{\cdot j}\), and
\begin{gather}
V_j\succeq2\cR\,\Lambda,\qquad \norm{V_j}\le V_0,\qquad \norm{m_j}^2\le\frac{L^2C_{\rm col}}k,\tag{SJ.35}\\
\EE\abs{a^\T Z}^4\le A_4\norm a^4,\quad \EE\abs{a^\T Z}^8\le A_8\norm a^8\quad(a\in\R^{\Nout}),\tag{SJ.36}\\
\EE\norm Z^4\le A_4\Nout^2,\quad \EE\norm Z^8\le A_8\Nout^4 .\tag{SJ.37}
\end{gather}
Every column \(h_j\) is nonzero almost surely.
Proof.
Mean and covariance. Put \(y=\Lambda^{1/2}z\). Integrating \(w\) first with the Gaussian identities \(\EE[(y^\T Dw)w_j]=y^\T D_{\cdot j}\) and \(\EE[(y^\T Dw)^2w_j^2]=y^\T DD^\T y+2(y^\T D_{\cdot j})^2\), and then \(z\) with the pairing identity \(\EE[y\tensor y\,(y^\T My)]=\Tr(\Lambda M)\Lambda+2\Lambda M\Lambda\) for symmetric \(M\) [89], gives
\[
\EE X=\Lambda D_{\cdot j},\qquad \EE[X\tensor X]=(2\cR+2C_j)\Lambda+2T_D+4\,m_j\tensor m_j .
\]
Subtracting \(m_j\tensor m_j\) gives (SJ.32). Averaging \(B\) independent copies gives (SJ.33), and summing over \(j\) with \(\sum_jC_j=2\cR\) and \(\sum_jm_j\tensor m_j=T_D\) gives (SJ.34).
Bounds. All terms of \(V_j\) are positive semidefinite, so \(V_j\succeq2\cR\Lambda\). With \(C_j\le LC_{\rm col}/k\), \(\norm{m_j}^2\le L^2C_{\rm col}/k\) and \(\norm{T_D}\le\Tr T_D\le H_0\),
\[
\norm{V_j}\le V_0\defeq LP_++2H_0+5L^2C_{\rm col}.
\]
Higher moments. Put \(r=z^\T Aw\). Conditionally on \(w\), \(r\) is Gaussian with variance \(\norm{Aw}^2\), and the convexity argument of Lemma SJ.3 gives \(\EE r^{2q}\le((2q-1)!!)^2(2\cR)^q\). For \(p=4,8\), Hölder’s inequality on the three dependent factors of \(a^\T X\) gives
\[
\EE\abs{a^\T X}^p\le\big(\EE\abs r^{3p}\,\EE\abs{w_j}^{3p}\,\EE\abs{a^\T\Lambda^{1/2}z}^{3p}\big)^{1/3}\le\big((3p-1)!!\big)^2P_+^{p/2}L^{p/2}\norm a^p .
\]
Centering costs a factor \(2^p\), which gives the directional bounds with \(A_4\defeq16(11!!)^2P_+^2L^2\) and \(A_8\defeq256(23!!)^2P_+^4L^4\). The inequalities \((\sum_lZ_l^2)^2\le\Nout\sum_lZ_l^4\) and \((\sum_lZ_l^2)^4\le\Nout^3\sum_lZ_l^8\) give the vector bounds.
Nonvanishing. Some coordinate of \(h_j\) is a polynomial in the batch that is not identically zero. Indeed choose \(w=e_j\) if \(D_{\cdot j}\ne0\) and \(w=e_j+e_l\) with \(D_{\cdot l}\ne0\) otherwise, so that \(w_j=1\) and \(Aw\ne0\). Taking \(z=Aw\) in the first sample and all other samples zero makes \(h_j\) a nonzero multiple of \(\Lambda^{1/2}Aw\ne0\). The batch has a Gaussian density, so this coordinate is nonzero almost surely [91].
Uses
- Lemma SJ.3 Moments of one coordinate
Used by
- Proposition SJ.7 Quadratic forms of a column
- Lemma SJ.11 Haar reduction
- Lemma SJ.12 Fourth moments of sums
- Lemma SJ.13 Column norms
- Theorem SJ.4 Corrected row volatility
Lean
Proved in Lean
Muon.SignSGD.lem_app_sgd_column_i source
theorem lem_app_sgd_column_i (P : HaarParams) {n m B : ℕ} (μ : Fin n → ℝ)
(D : Matrix (Fin n) (Fin m) ℝ) (hP : def_app_sgd_state_law P n m B μ D) (j : Fin m) :
(∀ i, ∫ p, colSample μ D j p i ∂(gaussBatch n m) = colMeanVec μ D j i) ∧
∀ i k, colCov μ D j i k = (twoR μ D + 2 * colC μ D j) * Matrix.diagonal μ i k
+ 2 * TD μ D i k + 3 * (colMeanVec μ D j i * colMeanVec μ D j k) := byMuon.SignSGD.lem_app_sgd_column_ii source
theorem lem_app_sgd_column_ii (P : HaarParams) {n m B : ℕ} (μ : Fin n → ℝ)
(D : Matrix (Fin n) (Fin m) ℝ) (hP : def_app_sgd_state_law P n m B μ D) (j : Fin m) :
∀ i k, ∫ β, hCol μ D β j i * hCol μ D β j k ∂(batchLaw n m B) =
(twoR μ D + 2 * colC μ D j) / (B : ℝ) * Matrix.diagonal μ i k
+ 2 / (B : ℝ) * TD μ D i k
+ (1 + 3 / (B : ℝ)) * (colMeanVec μ D j i * colMeanVec μ D j k) := byMuon.SignSGD.lem_app_sgd_column_iii source
theorem lem_app_sgd_column_iii (P : HaarParams) {n m B : ℕ} (μ : Fin n → ℝ)
(D : Matrix (Fin n) (Fin m) ℝ) (hP : def_app_sgd_state_law P n m B μ D) :
∀ i k, ∫ β, (hMatrix μ D β * (hMatrix μ D β)ᵀ) i k ∂(batchLaw n m B) =
twoR μ D * ((m : ℝ) + 2) / (B : ℝ) * Matrix.diagonal μ i k
+ (1 + (2 * (m : ℝ) + 3) / (B : ℝ)) * TD μ D i k := byMuon.SignSGD.lem_app_sgd_column_iv source
theorem lem_app_sgd_column_iv (P : HaarParams) {n m B : ℕ} (μ : Fin n → ℝ)
(D : Matrix (Fin n) (Fin m) ℝ) (hP : def_app_sgd_state_law P n m B μ D) (j : Fin m) :
∀ᵐ β ∂(batchLaw n m B), hCol μ D β j ≠ 0 := byMuon.SignSGD.lem_app_sgd_column_v source
theorem lem_app_sgd_column_v (P : HaarParams) :
∃ V0 A4 A8 : ℝ, 0 ≤ V0 ∧ 0 ≤ A4 ∧ 0 ≤ A8 ∧
∀ (n m B : ℕ) (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ),
def_app_sgd_state_law P n m B μ D → ∀ j : Fin m,
(colCov μ D j - twoR μ D • Matrix.diagonal μ).PosSemidef ∧
Muon.External.matOpNorm (colCov μ D j) ≤ V0 ∧
∑ i, colMeanVec μ D j i ^ 2 ≤ P.L ^ 2 * P.Ccol / (kOf n m B : ℝ) ∧
(∀ a : Fin n → ℝ,
∫⁻ p, ENNReal.ofReal ((a ⬝ᵥ colZ μ D j p) ^ 4) ∂(gaussBatch n m)
≤ ENNReal.ofReal (A4 * (∑ i, a i ^ 2) ^ 2) ∧
∫⁻ p, ENNReal.ofReal ((a ⬝ᵥ colZ μ D j p) ^ 8) ∂(gaussBatch n m)
≤ ENNReal.ofReal (A8 * (∑ i, a i ^ 2) ^ 4)) ∧
∫⁻ p, ENNReal.ofReal ((∑ i, colZ μ D j p i ^ 2) ^ 2) ∂(gaussBatch n m)
≤ ENNReal.ofReal (A4 * (n : ℝ) ^ 2) ∧
∫⁻ p, ENNReal.ofReal ((∑ i, colZ μ D j p i ^ 2) ^ 4) ∂(gaussBatch n m)
≤ ENNReal.ofReal (A8 * (n : ℝ) ^ 4) := by