Phases of Muoncompanion
Section SJ · SignSGD: drift and volatility
Proved in Lean
Lemma SJ.12 (Fourth moments of sums)
Let \(Z\in\R^{\Nout}\) be centered with covariance \(V\) and satisfy (SJ.36) and (SJ.37), let \(Z_1,\dots,Z_B\) be independent copies, and put \(S_s\defeq\sum_{b\le s}Z_b\),
\[ \mathcal W\defeq\sum_{b\ne b'}\langle Z_b,Z_{b'}\rangle,\qquad \mathcal D_B\defeq\sum_{b=1}^B\big(\norm{Z_b}^2-\Tr V\big). \]
Then, for \(0\le s\le B\) and \(a\in\R^{\Nout}\),
\begin{gather*} \EE\norm{S_s}^4\le3A_4s^2\Nout^2,\qquad \EE(a^\T S_s)^4\le3A_4s^2\norm a^4,\\ \EE\mathcal W^4\le144A_4^2B^4\Nout^2,\qquad \EE\mathcal D_B^4\le(16A_8+3A_4^2)B^2\Nout^4 . \end{gather*}
Proof.
Sums. In the expansion of \(\norm{S_s}^4\), a term in which some sample index occurs once has mean zero. The remaining terms give
\[ \EE\norm{S_s}^4=s\,\EE\norm Z^4+s(s-1)\big[(\Tr V)^2+2\Tr V^2\big]. \]
With \(\Tr V\le\Nout\sqrt{A_4}\) and \(\Tr V^2\le\Nout A_4\), which follow from \(a^\T Va\le(\EE\abs{a^\T Z}^4)^{1/2}\), this is at most \(3A_4s^2\Nout^2\). The scalar case is \(s\,\EE(a^\T Z)^4+3s(s-1)(a^\T Va)^2\le3A_4s^2\norm a^4\).
The off-diagonal sum. A random partition splits \(\mathcal W\) into independent sums. Let \(\epsilon_1,\dots,\epsilon_B\) be independent fair Bernoulli selectors, independent of the \(Z_b\). For fixed vectors,
\[ \mathcal W=4\,\EE_\epsilon\Big\langle\sum_b\epsilon_bZ_b,\ \sum_{b'}(1-\epsilon_{b'})Z_{b'}\Big\rangle , \]
because diagonal coefficients vanish and each ordered off-diagonal pair has coefficient \(\frac14\) in mean. Jensen’s inequality gives a factor \(4^4\). For a fixed partition into \(s\) and \(s'\) samples the two sums are independent; conditioning on the second and applying the two bounds above gives
\[ \EE\abs{\langle S_s,S'_{s'}\rangle}^4\le3A_4s^2\,\EE\norm{S'_{s'}}^4\le9A_4^2s^2s'^2\Nout^2 . \]
With \(ss'\le B^2/4\), the constant is \(4^4\cdot9/16=144\).
The diagonal sum. For \(Y\defeq\norm Z^2-\Tr V\), Jensen’s inequality gives \(\EE Y^4\le16\,\EE\norm Z^8\le16A_8\Nout^4\) and \(\EE Y^2\le\EE\norm Z^4\le A_4\Nout^2\), and for independent centered summands \(\EE\mathcal D_B^4=B\,\EE Y^4+3B(B-1)(\EE Y^2)^2\).

Uses

Used by

Lean

Proved in Lean
Muon.SignSGD.lem_app_sgd_partition source
theorem lem_app_sgd_partition {Ω : Type} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (n B : ℕ) (V : Matrix (Fin n) (Fin n) ℝ) (A4 A8 : ℝ)
    (hA4 : 0 ≤ A4) (hA8 : 0 ≤ A8)
    (Z : Ω → (Fin n → ℝ)) (hZ : Measurable Z)
    (hcent : ∀ i, ∫ ω, Z ω i ∂P = 0)
    (hcov : ∀ i k, ∫ ω, Z ω i * Z ω k ∂P = V i k)
    (hdir4 : ∀ a : Fin n → ℝ,
      ∫⁻ ω, ENNReal.ofReal ((a ⬝ᵥ Z ω) ^ 4) ∂P ≤ ENNReal.ofReal (A4 * (∑ i, a i ^ 2) ^ 2))
    (hdir8 : ∀ a : Fin n → ℝ,
      ∫⁻ ω, ENNReal.ofReal ((a ⬝ᵥ Z ω) ^ 8) ∂P ≤ ENNReal.ofReal (A8 * (∑ i, a i ^ 2) ^ 4))
    (hvec4 : ∫⁻ ω, ENNReal.ofReal ((∑ i, Z ω i ^ 2) ^ 2) ∂P ≤ ENNReal.ofReal (A4 * (n : ℝ) ^ 2))
    (hvec8 : ∫⁻ ω, ENNReal.ofReal ((∑ i, Z ω i ^ 2) ^ 4) ∂P ≤ ENNReal.ofReal (A8 * (n : ℝ) ^ 4))
    (Zs : Fin B → Ω → (Fin n → ℝ)) (hZs : ∀ b, Measurable (Zs b))
    (hind : iIndepFun Zs P) (hid : ∀ b, IdentDistrib (Zs b) Z P P) :
    (∀ s : ℕ, s ≤ B →
      (∫⁻ ω, ENNReal.ofReal ((∑ i, partSum Zs s ω i ^ 2) ^ 2) ∂P
          ≤ ENNReal.ofReal (3 * A4 * (s : ℝ) ^ 2 * (n : ℝ) ^ 2)) ∧
      ∀ a : Fin n → ℝ,
        ∫⁻ ω, ENNReal.ofReal ((a ⬝ᵥ partSum Zs s ω) ^ 4) ∂P
          ≤ ENNReal.ofReal (3 * A4 * (s : ℝ) ^ 2 * (∑ i, a i ^ 2) ^ 2)) ∧
    (∫⁻ ω, ENNReal.ofReal (offDiagSum Zs ω ^ 4) ∂P
      ≤ ENNReal.ofReal (144 * A4 ^ 2 * (B : ℝ) ^ 4 * (n : ℝ) ^ 2)) ∧
    (∫⁻ ω, ENNReal.ofReal (diagDevSum V Zs ω ^ 4) ∂P
      ≤ ENNReal.ofReal ((16 * A8 + 3 * A4 ^ 2) * (B : ℝ) ^ 2 * (n : ℝ) ^ 4)) := by