Phases of Muoncompanion
Section SA · Setup: model, momentum, regularized SignSVD, normalization
Proved in Lean
Proposition SA.4 (Conditional recursion of the projected risks)
In Definition SA.1, fix \(t\ge0\), let \(\Dt\) be the state at step \(t\) with \(\EE\norm{\Dt}_\F^2<\infty\), let \({\mathsf S}\) be a random matrix in \(\R^{\Nout\times\Nin}\) with \(\EE\norm {\mathsf S}_\F^2<\infty\) (the update, determined by the past and the batch of step \(t\)), let \(\lr_t\ge0\) be deterministic, and put \(\Delta_{t+1}\defeq\Dt-\lr_t{\mathsf S}\). Define
\begin{equation}\tag{SA.19} \cD_{ij}(t)\defeq(u_i^\T\Dt v_j)\,\EE_t\big[u_i^\T {\mathsf S}v_j\big],\qquad \cV_{ij}(t)\defeq\EE_t\big[(u_i^\T {\mathsf S}v_j)^2\big]. \end{equation}
Then
\begin{align} \EE_t\big[\CMscr Q_{ij}(\Delta_{t+1})\big]&=\CMscr Q_{ij}(\Dt)-2\lr_t\,\cD_{ij}(t)+\lr_t^2\,\cV_{ij}(t),\tag{SA.20}\\ \EE_t\big[\CMscr Q_{i}(\Delta_{t+1})\big]&=\CMscr Q_{i}(\Dt)-2\lr_t\sum_j\cD_{ij}(t)+\lr_t^2\sum_j\cV_{ij}(t),\tag{SA.21}\\ \EE_t\big[\tfrac12\norm{\Delta_{t+1}}_\Sigma^2\big]&=\tfrac12\norm{\Dt}_\Sigma^2-\lr_t\sum_{i,j}\mu_i\lambda_j\cD_{ij}(t)+\frac{\lr_t^2}2\sum_{i,j}\mu_i\lambda_j\cV_{ij}(t),\tag{SA.22} \end{align}
with the contractions in the last line equal to
\begin{equation}\tag{SA.23} \sum_{i,j}\mu_i\lambda_j\cD_{ij}(t)=\big\langle\Dt,\EE_t{\mathsf S}\big\rangle_\Sigma,\qquad \sum_{i,j}\mu_i\lambda_j\cV_{ij}(t)=\EE_t\norm{{\mathsf S}}_\Sigma^2 . \end{equation}
Proof.
Write \(a_{ij}\defeq u_i^\T\Dt v_j\) and \(b_{ij}\defeq u_i^\T {\mathsf S}v_j\); the coefficient \(a_{ij}\) is determined by the past. The mode identity is the expansion of a square. Pointwise,
\[ \CMscr Q_{ij}(\Delta_{t+1})=(a_{ij}-\lr_tb_{ij})^2=a_{ij}^2-2\lr_ta_{ij}b_{ij}+\lr_t^2b_{ij}^2 , \]
and taking \(\EE_t\) term by term gives (SA.20).
The row and total identities are finite weighted sums of the mode identity. Summing (SA.20) over \(j\) with weight \(1\), and over \((i,j)\) with weight \(\mu_i\lambda_j/2\), and applying Lemma SA.1 to \(\Delta_{t+1}\) and to \(\Dt\), gives (SA.21) and (SA.22).
The contraction identities are the eigenexpansion of the pairing. For any \(V,W\in\R^{\Nout\times\Nin}\),
\[ \langle V,W\rangle_\Sigma=\sum_{i,j}\mu_i\lambda_j\,(u_i^\T Vv_j)(u_i^\T Wv_j), \]
by the computation in the proof of Lemma SA.1 with \(V\) and \(W\) in the two slots. Taking \((V,W)=(\Dt,{\mathsf S})\) and \(({\mathsf S},{\mathsf S})\) and applying \(\EE_t\) gives (SA.23).

Uses

Used by

Lean

Proved in Lean
Muon.Setup.prop_app_setup_risk_recursion_mode source
theorem prop_app_setup_risk_recursion_mode {Ω : Type*} [mΩ : MeasurableSpace Ω]
    (P : Measure Ω) [IsProbabilityMeasure P] {C : Covariances m n} (S : SpectralData C)
    (𝒢 : MeasurableSpace Ω) (h𝒢 : 𝒢 ≤ mΩ) (Δ U : Ω → Mat m n) (η : ℝ) (hη : 0 ≤ η)
    (hΔm : ∀ i j, Measurable[𝒢] fun ω => Δ ω i j)
    (hΔ : ∀ i j, MemLp (fun ω => Δ ω i j) 2 P)
    (hU : ∀ i j, MemLp (fun ω => U ω i j) 2 P) (i : Fin m) (j : Fin n) :
    condExp 𝒢 P (fun ω => modeQ S (Δ ω - η • U ω) i j)
      =ᵐ[P] fun ω => modeQ S (Δ ω) i j
        - 2 * η * condDrift P 𝒢 S Δ U i j ω + η ^ 2 * condVol P 𝒢 S U i j ω := by
Muon.Setup.prop_app_setup_risk_recursion_row source
theorem prop_app_setup_risk_recursion_row {Ω : Type*} [mΩ : MeasurableSpace Ω]
    (P : Measure Ω) [IsProbabilityMeasure P] {C : Covariances m n} (S : SpectralData C)
    (𝒢 : MeasurableSpace Ω) (h𝒢 : 𝒢 ≤ mΩ) (Δ U : Ω → Mat m n) (η : ℝ) (hη : 0 ≤ η)
    (hΔm : ∀ i j, Measurable[𝒢] fun ω => Δ ω i j)
    (hΔ : ∀ i j, MemLp (fun ω => Δ ω i j) 2 P)
    (hU : ∀ i j, MemLp (fun ω => U ω i j) 2 P) (i : Fin m) :
    condExp 𝒢 P (fun ω => rowQ S (Δ ω - η • U ω) i)
      =ᵐ[P] fun ω => rowQ S (Δ ω) i
        - 2 * η * (∑ j, condDrift P 𝒢 S Δ U i j ω)
        + η ^ 2 * (∑ j, condVol P 𝒢 S U i j ω) := by
Muon.Setup.prop_app_setup_risk_recursion_total source
theorem prop_app_setup_risk_recursion_total {Ω : Type*} [mΩ : MeasurableSpace Ω]
    (P : Measure Ω) [IsProbabilityMeasure P] {C : Covariances m n} (S : SpectralData C)
    (𝒢 : MeasurableSpace Ω) (h𝒢 : 𝒢 ≤ mΩ) (Δ U : Ω → Mat m n) (η : ℝ) (hη : 0 ≤ η)
    (hΔm : ∀ i j, Measurable[𝒢] fun ω => Δ ω i j)
    (hΔ : ∀ i j, MemLp (fun ω => Δ ω i j) 2 P)
    (hU : ∀ i j, MemLp (fun ω => U ω i j) 2 P) :
    condExp 𝒢 P (fun ω => riskSigma C (Δ ω - η • U ω))
      =ᵐ[P] fun ω => riskSigma C (Δ ω)
        - η * (∑ i, ∑ j, S.μ i * S.lam j * condDrift P 𝒢 S Δ U i j ω)
        + η ^ 2 / 2 * (∑ i, ∑ j, S.μ i * S.lam j * condVol P 𝒢 S U i j ω) := by
Muon.Setup.prop_app_setup_risk_recursion_contractions source
theorem prop_app_setup_risk_recursion_contractions {Ω : Type*} [mΩ : MeasurableSpace Ω]
    (P : Measure Ω) [IsProbabilityMeasure P] {C : Covariances m n} (S : SpectralData C)
    (𝒢 : MeasurableSpace Ω) (h𝒢 : 𝒢 ≤ mΩ) (Δ U : Ω → Mat m n)
    (hΔm : ∀ i j, Measurable[𝒢] fun ω => Δ ω i j)
    (hΔ : ∀ i j, MemLp (fun ω => Δ ω i j) 2 P)
    (hU : ∀ i j, MemLp (fun ω => U ω i j) 2 P) :
    (∀ᵐ ω ∂P, ∑ i, ∑ j, S.μ i * S.lam j * condDrift P 𝒢 S Δ U i j ω
        = pairSigma C (Δ ω) (Matrix.of fun a b => condExp 𝒢 P (fun ω' => U ω' a b) ω))
      ∧ (∀ᵐ ω ∂P, ∑ i, ∑ j, S.μ i * S.lam j * condVol P 𝒢 S U i j ω
        = condExp 𝒢 P (fun ω' => pairSigma C (U ω') (U ω')) ω) := by