Section SJ · SignSGD: drift and volatility · top-level result
Proved in Lean
Proposition SJ.1 (The batch constant)
\begin{equation}\tag{SJ.7}
\max\Big\{\frac2\pi\sqrt B,\ \sqrt B-\frac4{\sqrt B}\Big\}\le\mathcal N_B\le\sqrt B,\qquad
0\le1-\frac{\mathcal N_B}{\sqrt B}\le\frac4B .
\end{equation}
In particular \(\mathcal N_B/\sqrt B\to1\) as \(B\to\infty\).
Proof.
Put \(T_B\defeq\sum_bx_b^2y_b^2\), so that \(\mathcal N_B=\EE\sqrt{T_B}\). A standard Gaussian \(g\) has \(\EE\abs g=\sqrt{2/\pi}\), and independence gives
\[
\mathcal N_1=\EE\abs{x_1}\,\EE\abs{y_1}=\frac2\pi .
\]
The normalized sum \(T_B/B\) has mean \(1\) and variance \(8/B\). Indeed the summands \(x_b^2y_b^2\) are independent with mean \(1\) and second moment \((\EE x_b^4)(\EE y_b^4)=9\), so
\[
\EE\frac{T_B}B=1,\qquad \EE\Big(\frac{T_B}B-1\Big)^2=\frac{9-1}B=\frac8B .
\]
The upper bound is Jensen’s inequality: \(\mathcal N_B\le(\EE T_B)^{1/2}=\sqrt B\).
The Jensen deficit is at most half the variance. For every \(s\ge0\), rationalizing \(\sqrt s-1\) gives the identity
\[
\sqrt s=1+\frac{s-1}2-\frac{(s-1)^2}{2(\sqrt s+1)^2}.
\]
The last term lies between \(0\) and \((s-1)^2/2\). Take \(s=T_B/B\) and expectations; the linear term has mean zero, so
\[
0\le1-\EE\sqrt{T_B/B}\le\frac12\cdot\frac8B=\frac4B ,
\]
which is the second part of (SJ.7) and gives \(\mathcal N_B\ge\sqrt B-4/\sqrt B\).
The remaining lower bound compares the Euclidean and the \(\ell^1\) norms. For real \(z_1,\dots,z_B\),
\[
\Big(\sum_bz_b^2\Big)^{1/2}\ge\frac1{\sqrt B}\sum_b\abs{z_b}.
\]
With \(z_b=x_by_b\) and expectations, \(\mathcal N_B\ge B^{-1/2}\cdot B\cdot\frac2\pi=\frac2\pi\sqrt B\).
Used by
- Proposition SJ.3 Drift of one coordinate
- Theorem SJ.1 Isotropic drift
- Theorem SJ.2 Half-anisotropic drift
Lean
Proved in Lean
Muon.SignSGD.prop_app_sgd_batch_coefficient_i source
theorem prop_app_sgd_batch_coefficient_i : batchConst 1 = 2 / Real.pi := by
Muon.SignSGD.prop_app_sgd_batch_coefficient_ii source
theorem prop_app_sgd_batch_coefficient_ii (B : ℕ) (hB : 1 ≤ B) :
max ((2 / Real.pi) * Real.sqrt (B : ℝ)) (Real.sqrt (B : ℝ) - 4 / Real.sqrt (B : ℝ))
≤ batchConst B ∧
batchConst B ≤ Real.sqrt (B : ℝ) :=Muon.SignSGD.prop_app_sgd_batch_coefficient_iii source
theorem prop_app_sgd_batch_coefficient_iii (B : ℕ) (hB : 1 ≤ B) :
0 ≤ 1 - batchConst B / Real.sqrt (B : ℝ) ∧
1 - batchConst B / Real.sqrt (B : ℝ) ≤ 4 / (B : ℝ) := byMuon.SignSGD.prop_app_sgd_batch_coefficient_iv source
theorem prop_app_sgd_batch_coefficient_iv :
Tendsto (fun B : ℕ => batchConst B / Real.sqrt (B : ℝ)) atTop (𝓝 1) := by