Section SE · From the algorithm to the deterministic dynamics
Proved in Lean
Lemma SE.19 (Projection variance)
Let \(D\) be deterministic with \(r_-\le\cR(D)\le r_+\), consider the stationary chain at \((t,D)\), and let \(T\in\R^{\Nout\times\Nin}\) be deterministic. Then
\[
\Var\langle T,V_r\rangle\le C\log^2(2B)\norm T_\F^2,\qquad
\Var\Big\langle T,\sum_{r<L}V_r\Big\rangle\le CL^2\log^2(2B)\norm T_\F^2 .
\]
No bound on \(\norm T\) and no diffuseness of \(D\) is assumed.
Proof.
First keep only the batches of the relative times \(r-J,\dots,r\), auxiliary batches included. The resulting update is a smooth function \(f\) of finitely many independent standard Gaussian coordinates, namely the whitened samples, and the Gaussian Poincaré inequality [84, Theorem 3.20] gives \(\Var f\le\EE\norm{\nabla f}^2\).
The gradient is computed by the chain rule. Write \(A_D\defeq\Sigmaout^{1/2}D\Sigmain^{1/2}\), so \(\norm{A_D}_\F^2=2\cR(D)\le2r_+\), and let \(\mathsf C\defeq D\Qridge\ell(N)^*[T]\) be the adjoint of the derivative of the filter applied to \(T\), at \(\ell=\ridgephys(D)\); by Lemma SE.5(i), \(\norm{\mathsf C}_\F\le\ell^{-1/2}\norm T_\F\) pointwise. A sample \((z,w)\) of a batch of weight \(\varpi\) enters the buffer as \(\varpi B^{-1}(z^\T A_Dw)\Sigmaout^{1/2}(z\tensor w)\Sigmain^{1/2}\), so with \(\mathsf q_a\defeq z_a^\T\Sigmaout^{1/2}\mathsf C\,\Sigmain^{1/2}w_a\) and \(d_a=z_a^\T A_Dw_a\),
\[
\begin{gathered}
\nabla_{z_a}f=\frac\varpi B\big[(A_Dw_a)\,\mathsf q_a+d_a\,\Sigmaout^{1/2}\mathsf C\,\Sigmain^{1/2}w_a\big],\\
\nabla_{w_a}f=\frac\varpi B\big[(A_D^\T z_a)\,\mathsf q_a+d_a\,\Sigmain^{1/2}\mathsf C^\T\Sigmaout^{1/2}z_a\big].
\end{gathered}
\]
With \(Y\defeq\Sigmaout^{1/2}[z_1\cdots z_B]\) and \(X\defeq\Sigmain^{1/2}[w_1\cdots w_B]\), pointwise matrix inequalities give
\[
\begin{gathered}
\sum_a\mathsf q_a^2\le\max_a\norm{\Sigmain^{1/2}w_a}^2\,\norm{\mathsf C}_\F^2\norm Y^2,\\
\sum_ad_a^2\norm{\Sigmaout^{1/2}\mathsf C\,\Sigmain^{1/2}w_a}^2\le C_\Sigma\max_ad_a^2\,\norm{\mathsf C}_\F^2\norm X^2,
\end{gathered}
\]
and the transposed bounds. Hence the squared gradient over one batch is at most
\[
\begin{aligned}
\frac{C\varpi^2}{B^2}\norm{\mathsf C}_\F^2\Big[&\max_a\norm{A_Dw_a}^2\max_a\norm{w_a}^2\norm Y^2+\max_a\norm{A_D^\T z_a}^2\max_a\norm{z_a}^2\norm X^2\\
&+\max_ad_a^2\big(\norm X^2+\norm Y^2\big)\Big].
\end{aligned}
\]
In every fixed \(L^p\) norm, \(\max_a\norm{A_Dw_a}^2\) and \(\max_a\norm{A_D^\T z_a}^2\) are at most \(C_p\log(2B)\), \(\max_a\norm{w_a}^2\), \(\max_a\norm{z_a}^2\), \(\norm X^2\) and \(\norm Y^2\) are at most \(C_pB\), and \(\max_ad_a^2\) is at most \(C_p\log^2(2B)\). These follow from \(\norm{\norm{A_Dw}^2}_q\le\sum_ks_k(A_D)^2\norm{g^2}_q\le Cq\norm{A_D}_\F^2\) (a diagonalization and Minkowski’s inequality), from \(\norm{\norm w^2}_q\le C(\Nin+q)\), from the maximum over \(B\) samples taken with \(q\asymp\log(2B)\) as in the proof of Lemma SE.3(ii), and from the operator norm moments there. Hölder’s inequality, with no independence between \(\mathsf C\) and the samples, bounds the expected squared gradient over the batch by \(C\varpi^2\log^2(2B)\norm T_\F^2\). Summing over the batches with \(\sum_j\emaw j^2\le1\) gives the first bound for the truncated update. As \(J\to\infty\) the truncated update converges to \(V_r\) in \(L^2\), by Lemma SA.6(ii), so the bound passes to \(V_r\).
The second bound is the Cauchy–Schwarz inequality \(\Var\sum_{r<L}Y_r\le L\sum_{r<L}\Var Y_r\).
Uses
- Lemma SE.5 Second-order filter estimates
- Lemma SE.3 Moments of one batch
- Lemma SA.6 History truncation and sample sensitivity
Used by
- Lemma SE.20 Block martingale
- Lemma SE.21 Delayed projections and prefixes
Lean
Proved in Lean
Muon.Dynamics.lem_app_dyn_poincare_i source
theorem lem_app_dyn_poincare_i (p : DynParams) (rlo rhi : ℝ) (hrlo : 0 < rlo) (hle : rlo ≤ rhi)
(cert : Muon.External.GaussianPoincare) (certOp : Muon.External.GaussianOpNormL6) :
∃ K : ℝ, ∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(m n B : ℕ) (S : DynSetup p P m n B) (t r : ℕ) (D T : Mat m n),
rlo ≤ riskSigma S.C D → riskSigma S.C D ≤ rhi →
MemLp (fun ω => frobIP T (stationaryV p S.C S.cs t D r ω)) 2 P ∧
variance (fun ω => frobIP T (stationaryV p S.C S.cs t D r ω)) P ≤
K * Real.log (2 * (B : ℝ)) ^ 2 * fro T ^ 2 := byMuon.Dynamics.lem_app_dyn_poincare_ii source
theorem lem_app_dyn_poincare_ii (p : DynParams) (rlo rhi : ℝ) (hrlo : 0 < rlo) (hle : rlo ≤ rhi)
(cert : Muon.External.GaussianPoincare) (certOp : Muon.External.GaussianOpNormL6) :
∃ K : ℝ, ∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(m n B : ℕ) (S : DynSetup p P m n B) (t : ℕ) (D T : Mat m n),
rlo ≤ riskSigma S.C D → riskSigma S.C D ≤ rhi →
MemLp (fun ω => frobIP T (∑ r ∈ Finset.range (blockLen B), stationaryV p S.C S.cs t D r ω)) 2 P ∧
variance (fun ω => frobIP T (∑ r ∈ Finset.range (blockLen B), stationaryV p S.C S.cs t D r ω)) P ≤
K * (blockLen B : ℝ) ^ 2 * Real.log (2 * (B : ℝ)) ^ 2 * fro T ^ 2 := byUses proved foundation results:
GaussianPoincare.