Phases of Muoncompanion
Section SJ · SignSGD: drift and volatility
Proved in Lean
Theorem SJ.1 (Isotropic drift)
There is a constant \(C_r\) depending only on \(K,f_-,C_\Delta\) such that, for every state in the isotropic regime with \(k\ge k_0\defeq\max\{4,8KC_\Delta^2/f_-^2\}\),
\begin{equation}\tag{SJ.16} \Big|\EE\sign(G^\circ_{ij})-\sqrt{\frac2\pi}\,\mathcal N_B\frac{\Delta_{ij}}F\Big|\le e_k\defeq\frac{C_2}B+\frac{C_r}{k^{3/2}}\qquad\text{for all }(i,j). \end{equation}
With \(\mathsf D\defeq\langle\Delta,\EE S\rangle_\F\) and \(\mathsf D_0\defeq\sqrt{2/\pi}\,\mathcal N_BF=\mathcal N_B\sqrt{4\cR(\Delta)/\pi}\),
\begin{equation}\tag{SJ.17} \abs{\mathsf D-\mathsf D_0}\le KF\Big(C_2+\frac{C_r}{\sqrt k}\Big),\qquad \Big|\frac{\mathsf D}{\mathsf D_0}-1\Big|\le\frac{K(C_2+C_r/\sqrt k)}{\sqrt{2/\pi}\,\mathcal N_B}\le\frac{\pi K(C_2+C_r)}{2\sqrt{2/\pi}\,\sqrt k}. \end{equation}
No hypothesis is made on the operator norm or the rank of \(\Delta\).
Proof.
The entry bound makes the deleted block large. Every row and column has squared norm at most \(KkC_\Delta^2/k^2=KC_\Delta^2/k\), so for \(k\ge k_0\)
\[ \norm{\bar\Delta}_\F^2\ge F^2-\frac{2KC_\Delta^2}k\ge\frac34F^2 , \]
and Proposition SJ.3 applies to every entry.
The four non-batch terms of (SJ.14) are of order \(k^{-3/2}\). With \(V\defeq(4K+3)C_\Delta^2\) and \(K_3\defeq200C_\Delta/f_-+54KC_\Delta^2/f_-^2\), Lemma SJ.3 gives
\[ 0\le s^2-F^2\le\frac Vk,\qquad \frac{\abs{m_3}}{s^3}\le\frac{K_3}k . \]
Insert these, \(k\le B\le Kk\), \(\abs{\Delta_{ij}}\le C_\Delta/k\) and \(s\ge F\ge f_-\) into (SJ.14). The result is (SJ.16) with
\[ C_r\defeq C_1K_3+\frac{K^{3/2}C_\Delta^3}{3\sqrt{2\pi}\,f_-^3}+\sqrt{\frac2\pi}\,\frac{\sqrt K\,C_\Delta V}{2f_-^3}+\sqrt{\frac2\pi}\,\frac{4C_\Delta}{f_-}. \]
The sum over entries costs the \(\ell^1\) norm of \(\Delta\). Since \(\sum_{ij}\Delta_{ij}^2/F=F\),
\[ \abs{\mathsf D-\mathsf D_0}\le\sum_{i,j}\abs{\Delta_{ij}}\,e_k\le\sqrt{\Nout\Nin}\,F\,e_k\le KkF\Big(\frac{C_2}k+\frac{C_r}{k^{3/2}}\Big). \]
Dividing by \(\mathsf D_0\) and using \(\mathcal N_B\ge\frac2\pi\sqrt B\ge\frac2\pi\sqrt k\) from Proposition SJ.1 gives the relative bound.

Uses

Used by

Lean

Proved in Lean
Muon.SignSGD.thm_app_sgd_iso_drift source
theorem thm_app_sgd_iso_drift :
    ∃ C₂ : ℝ, 0 ≤ C₂ ∧ ∀ K fMin Cdelta : ℝ, 1 ≤ K → 0 < fMin → 0 < Cdelta →
      ∃ Cr : ℝ, 0 ≤ Cr ∧ ∀ P : IsoParams, P.K = K → P.fMin = fMin → P.Cdelta = Cdelta →
        ∀ (Nout Nin B : ℕ) (Δ : Matrix (Fin Nout) (Fin Nin) ℝ),
          def_app_sgd_iso_regime P Nout Nin B Δ →
          isoK0 P ≤ (kOf Nout Nin B : ℝ) →
          (∀ i j, |expSignEntry Nout Nin B Δ i j
              - Real.sqrt (2 / Real.pi) * batchConst B * Δ i j / frobNorm Δ|
              ≤ C₂ / (B : ℝ) + Cr / (kOf Nout Nin B : ℝ) ^ (3 / 2 : ℝ))
          ∧ |∑ i, ∑ j, Δ i j * expSignEntry Nout Nin B Δ i j
              - Real.sqrt (2 / Real.pi) * batchConst B * frobNorm Δ|
              ≤ P.K * frobNorm Δ * (C₂ + Cr / Real.sqrt (kOf Nout Nin B : ℝ))
          ∧ |(∑ i, ∑ j, Δ i j * expSignEntry Nout Nin B Δ i j)
                / (Real.sqrt (2 / Real.pi) * batchConst B * frobNorm Δ) - 1|
              ≤ P.K * (C₂ + Cr / Real.sqrt (kOf Nout Nin B : ℝ))
                  / (Real.sqrt (2 / Real.pi) * batchConst B)
          ∧ P.K * (C₂ + Cr / Real.sqrt (kOf Nout Nin B : ℝ))
                  / (Real.sqrt (2 / Real.pi) * batchConst B)
              ≤ Real.pi * P.K * (C₂ + Cr)
                  / (2 * Real.sqrt (2 / Real.pi) * Real.sqrt (kOf Nout Nin B : ℝ)) := by