Phases of Muoncompanion
Section SJ · SignSGD: drift and volatility
Proved in Lean
Corollary SJ.1 (Row and risk drift)
Under the hypotheses of Theorem SJ.2,
\begin{align} \sum_{i=1}^{\Nout}\Big|\EE\big\langle\Delta^\T u_i,S^\T u_i\big\rangle-L_B\,\mu_i\,\CMscr Q_i(\Delta)\Big|&\le f_+\sqrt{C_*},\tag{SJ.29}\\ \Big|\EE\big\langle\Delta,S\big\rangle_\Sigma-L_B\,\norm{\Lambda D}_\F^2\Big|&\le Lf_+\sqrt{C_*},\tag{SJ.30} \end{align}
and the leading total satisfies \(L_B\norm{\Lambda D}_\F^2\ge d_-\sqrt B\) with \(d_-\defeq2\sqrt{2/\pi}\,c^2f_-^2/(\pi Lf_+)\).
Proof.
Put \(T_U\defeq U^\T M(U)-L_B\Lambda D\). The row pairing given \(U\) is \(\langle D_{i\cdot},(U^\T M)_{i\cdot}\rangle\), because \(u_i^\T\Delta=D_{i\cdot}\) and \(u_i^\T M=(U^\T M)_{i\cdot}\), and \(L_B\mu_i\norm{D_{i\cdot}}^2=\langle D_{i\cdot},(L_B\Lambda D)_{i\cdot}\rangle\). Cauchy–Schwarz in the row sum gives
\[ \sum_i\abs{\langle D_{i\cdot},(T_U)_{i\cdot}\rangle}\le\norm D_\F\norm{T_U}_\F , \]
and \(\EE_U\norm{T_U}_\F\le\sqrt{C_*}\) by Theorem SJ.2. Since \(D\) is deterministic, averaging over \(U\) gives (SJ.29). For (SJ.30), \(\langle\Delta,S\rangle_\Sigma=\langle U\Lambda D,S\rangle_\F\), whose batch mean is \(\langle\Lambda D,U^\T M\rangle_\F\), and \(\norm{\Lambda D}_\F\le Lf_+\). The lower bound uses \(\mathcal N_B\ge\frac2\pi\sqrt B\), \(\norm{\Lambda D}_\F^2\ge c^2f_-^2\) and \(\sqrt{2\cR\bar\mu}\le Lf_+\).

Uses

Used by

Lean

Proved in Lean
Muon.SignSGD.cor_app_sgd_half_pairings source
theorem cor_app_sgd_half_pairings (P : HaarParams) :
    ∃ C : ℝ, 0 ≤ C ∧ ∀ (n m B : ℕ) (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ)
      (ν : Measure (Matrix.orthogonalGroup (Fin n) ℝ)) [IsProbabilityMeasure ν],
      IsOrthHaar ν → def_app_sgd_state_law P n m B μ D → haarKStar P ≤ kOf n m B →
      (∫⁻ U, ENNReal.ofReal (frobNorm (haarDriftErr B μ D U) ^ 2) ∂ν ≤ ENNReal.ofReal C) ∧
      (∑ i, |(∫ x, dotProduct
            (Matrix.mulVec (haarDelta x.1 D)ᵀ (haarCol x.1 i))
            (Matrix.mulVec (haarSign μ D x.1 x.2)ᵀ (haarCol x.1 i))
          ∂(ν.prod (batchLaw n m B)))
          - LB B μ D * μ i * (∑ j, D i j ^ 2)| ≤ P.fMax * Real.sqrt C) ∧
      (|(∫ x, pairIdIn (haarSigmaOut x.1 μ) (haarDelta x.1 D) (haarSign μ D x.1 x.2)
          ∂(ν.prod (batchLaw n m B)))
          - LB B μ D * frobNorm (Matrix.diagonal μ * D) ^ 2| ≤ P.L * P.fMax * Real.sqrt C) ∧
      (haarDminus P * Real.sqrt (B : ℝ) ≤ LB B μ D * frobNorm (Matrix.diagonal μ * D) ^ 2) := by