Phases of Muoncompanion
Section SJ · SignSGD: drift and volatility · top-level result
Proved in Lean
Proposition SJ.8 (Half-anisotropic SignSGD recursion)
In the Haar model of Definition SJ.3 with \(k\ge k_*\), let \(\lr\ge0\) be deterministic and \(\Delta^+=\Delta-\lr S\). Then, with \(\mathfrak d_i\defeq\mu_i\mathcal N_B/\sqrt{\pi\bar\mu}\), there are real numbers \(E_1,\dots,E_{\Nout}\) such that
\begin{equation}\tag{SJ.48} \EE\,\CMscr Q_i(\Delta^+)=\CMscr Q_i(\Delta)-\frac{2\lr\,\mathfrak d_i}{\sqrt\cR}\,\CMscr Q_i(\Delta)+\lr^2\,\mathfrak v_i^{\rm corr}+E_i,\qquad \sum_i\abs{E_i}\le2\lr f_+\sqrt{C_*}+\lr^2C_{\rm row}\,\frac{\Nout\Nin}{\sqrt k}. \end{equation}
The risk satisfies
\begin{equation}\tag{SJ.49} \EE\,\cR(\Delta^+)=\cR-\lr\sum_i\frac{\mu_i\,\mathfrak d_i}{\sqrt\cR}\,\CMscr Q_i(\Delta)+\frac{\lr^2}2\sum_i\mu_i\,\mathfrak v_i^{\text{s-SGD}}+\mathcal E_\lr, \end{equation}
with \(\mathcal E_\lr\) bounded as in Corollary SJ.2.
Proof.
Given \(U\), the state is fixed and the whitened batch is independent of \(U\), so (SJ.3) applies given \(U\). Averaging over \(U\) gives
\[ \EE\,\CMscr Q_i(\Delta^+)=\CMscr Q_i(\Delta)-2\lr\,\EE\langle\Delta^\T u_i,S^\T u_i\rangle+\lr^2\volraw_i . \]
The identity \(L_B\mu_i=\mathfrak d_i/\sqrt\cR\) holds by the definition of \(L_B\). Define \(E_i\) as \(-2\lr\) times the error in (SJ.29) plus \(\lr^2(\volraw_i-\mathfrak v_i^{\rm corr})\). Corollary SJ.1 and Theorem SJ.4 bound the sum of their absolute values. The risk identity is Corollary SJ.2, since \(L_B\norm{\Lambda D}_\F^2=\sum_iL_B\mu_i^2\norm{D_{i\cdot}}^2\) and \(\mathcal Q_{\rm print}=\sum_i\mu_i\mathfrak v_i^{\text{s-SGD}}\).

Uses

Lean

Proved in Lean
Muon.SignSGD.prop_signsgd_recursion_anisotropic source
theorem prop_signsgd_recursion_anisotropic (P : HaarParams) :
    ∃ Cstar Crow Cvol : ℝ, 0 ≤ Cstar ∧ 0 ≤ Crow ∧ 0 ≤ Cvol ∧
      ∀ (n m B : ℕ) (μ : Fin n → ℝ) (D : Matrix (Fin n) (Fin m) ℝ)
        (ν : Measure (Matrix.orthogonalGroup (Fin n) ℝ)),
        Muon.Foundations.IsOrthHaar ν → def_app_sgd_state_law P n m B μ D →
        haarKStar P ≤ kOf n m B → ∀ η : ℝ, 0 ≤ η →
          -- row recursion: the residuals `E_i` are the differences of the displayed identity
          (∀ i : Fin n,
            Integrable (fun p => sgdRowEnergy
                (def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) (haarCol p.1 i))
              (ν.prod (batchLaw n m B))) ∧
          (∑ i, |(∫ p, sgdRowEnergy
                (def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) (haarCol p.1 i)
                ∂(ν.prod (batchLaw n m B)))
              - ((∑ j, D i j ^ 2)
                  - 2 * η * (haarDcoef B μ i / Real.sqrt (twoR μ D / 2)) * (∑ j, D i j ^ 2)
                  + η ^ 2 * vCorr n m B μ D i)|
            ≤ 2 * η * P.fMax * Real.sqrt Cstar
              + η ^ 2 * Crow * ((n : ℝ) * (m : ℝ)) / Real.sqrt (kOf n m B : ℝ)) ∧
          -- risk: `E_η` is the difference of the displayed risk identity
          Integrable (fun p => riskTwo (haarSigmaOut p.1 μ)
              (def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) / 2)
            (ν.prod (batchLaw n m B)) ∧
          |(∫ p, riskTwo (haarSigmaOut p.1 μ)
                (def_app_sgd_update η (haarDelta p.1 D) (haarBatch μ p.1 p.2)) / 2
              ∂(ν.prod (batchLaw n m B)))
            - (twoR μ D / 2
                - η * (∑ i, μ i * (haarDcoef B μ i / Real.sqrt (twoR μ D / 2)) * (∑ j, D i j ^ 2))
                + η ^ 2 / 2 * (∑ i, μ i * vSgd n m μ i))|
            ≤ η * (P.L * P.fMax) * Real.sqrt Cstar
              + η ^ 2 / 2 * Cvol * ((n : ℝ) * (m : ℝ)) / Real.sqrt (kOf n m B : ℝ) := by