Dynamics: from the algorithm to the deterministic recursion · cited in the main text
Proved in LeanTheorem numbering in the paper: Theorem H.1
Theorem SE.1 (Dynamical comparison)
Fix \(\macrostep>0\), \(\ridge>0\), \(\bmom\in[0,1)\), \(\gamma_\star<\infty\), \(C_\Sigma\ge1\), \(E_\star<\infty\), \(c_M<\infty\) and \(0<r_0\le r_1<\infty\). Along a sequence of dimensions with \(B\to\infty\) assume:
- (H1)Assumption S1 and Assumption S2 hold with deterministic covariances, \(\max(\Nin,\Nout)\le\gamma_\star B\) and \(\norm{\Sigmain},\norm{\Sigmaout}\le C_\Sigma\);
- (H2)the algorithm of Definition SA.2 is run with momentum \(\bmom\), normalized ridge \(\ridge\) and step \(\lr_t=\macrostep/B\);
- (H3)\(W_0\) is deterministic, \(\norm{\Delta_0}_\F^2\le E_\star\), \(r_0\le\cR(0)\le r_1\), and \(\norm{\widehat A_0}\to0\);
- (H4)the initial buffer \(M^\circ_{-1}\) is independent of all batches and \(\EE\norm{M^\circ_{-1}}_\F^2\le c_MB\).
Let \(T_\star\) be given by (SE.10) and let \((\fQ_{ij})\) be the solution of (SE.7) of Proposition SE.1. Then the following hold.
- (i)With probability tending to one,\[ t_{\rm stop}>BT_\star,\qquad \inf_{t\le BT_\star}\cR(t)\ge r_0/2,\qquad \sup_{t\le BT_\star}\norm{\Dt}_\F^2\le E_\star+1. \]
- (ii)\(\sup_{\macrotime\le T_\star}\norm{\chi^{\mathrm{act}}(\macrotime)-\chi^{\mathrm{ode}}(\macrotime)}_\BL\to0\) in probability.
- (iii)\(\sup_{\macrotime\le T_\star}\norm{\mu\lambda\,(\chi^{\mathrm{act}}(\macrotime)-\chi^{\mathrm{ode}}(\macrotime))}_\BL\to0\) and \(\sup_{\macrotime\le T_\star}\abs{\cR(\lfloor B\macrotime\rfloor)-\fRisk(\macrotime)}\to0\) in probability.
- (iv)On the event of (i), \(\sup_{t\le BT_\star}\norm{\Ahat}\to0\) in probability.
Definitions and assumptions used
Assumption S1 (Data-target normalization)
Assumption S1 (Data-target normalization)
The input and output features are independent and Gaussian, \(\Xin\sim\mathcal N(0,\Sigmain)\) and \(\Xout\sim\mathcal N(0,\Sigmaout)\), with positive semidefinite covariances \(\Sigmain\in\R^{\Nin\times\Nin}\) and \(\Sigmaout\in\R^{\Nout\times\Nout}\). They are represented in whitened form as \(\Xin=\Sigmain^{1/2}w\) and \(\Xout=\Sigmaout^{1/2}z\) with \(w\sim\mathcal N(0,\Id_{\Nin})\) and \(z\sim\mathcal N(0,\Id_{\Nout})\) independent; the whitened columns of a batch are written \((w_a,z_a)_{a\le B}\).
Assumption S2 (Proportional regime)
Assumption S2 (Proportional regime)
The dimensions \(\Nin\), \(\Nout\), \(B\) tend to infinity jointly, with aspect ratios converging to constants:
\[
\frac{\Nin}{B} \to \gin \in (0,\infty), \qquad
\frac{\Nout}{B} \to \gout \in (0,\infty).
\]
The covariance operator norms remain uniformly bounded: there exists a constant \(C > 0\), independent of \(\Nin\) and \(\Nout\), such that
\[
\|\Sigmain\|_{\mathrm{op}} \;\leq\; C, \qquad
\|\Sigmaout\|_{\mathrm{op}} \;\leq\; C.
\]
We refer to the joint limit as the proportional regime.
Definition SA.2 (The algorithm)
Definition SA.2 (The algorithm)
Fix a momentum \(\bmom\in[0,1)\), a normalized ridge \(\ridge>0\), a deterministic step sequence \((\lr_t)_{t\ge0}\) with \(\lr_t\ge0\), an initial parameter \(W_0\) and an initial buffer \(M_{-1}^\circ\in\R^{\Nout\times\Nin}\), both given before the first batch is drawn (the default is \(M_{-1}^\circ=0\)). Let \(t_{\mathrm{stop}}\defeq\inf\{t\ge0:\cR(t)=0\}\in\{0,1,\dots\}\cup\{\infty\}\). The algorithm is, for \(t\ge0\),
\begin{equation}\tag{SA.15}
\begin{gathered}
M_t^\circ=\bmom\,M_{t-1}^\circ+(1-\bmom)\,\Gt^\circ,\qquad
W_{t+1}=\Wt-\lr_t\,\Gtilde^\circ,\\
\Gtilde^\circ\defeq\begin{cases}\Qridge{\ridgephys_t}(M_t^\circ),&t<t_{\mathrm{stop}},\\ 0,&t\ge t_{\mathrm{stop}},\end{cases}
\qquad \ridgephys_t\defeq2\cR(t)\,\ridge .
\end{gathered}
\end{equation}
This theorem is the precise form of Theorem 2.1. At the step \(\lr=\macrostep/B\), the projected risks \(\CMscr Q_{ij}\) follow, in aggregate, the recursion (6) with the drift kernel of Corollary SC.1 and the volatility coefficient of Proposition SD.3; the equations (SE.7) are that recursion in the macroscopic time \(\macrotime=t/B\). “In aggregate” refers to the spectral energy measures \(\chi^{\mathrm{act}}\) and \(\chi^{\mathrm{ode}}\) defined at the start of this section, which place the projected risks at the points \((\mu_i,\lambda_j)\). The risk is half the integral of \(\mu\lambda\) against such a measure, so (iii) is the risk statement of the main text. Nothing is claimed about a single mode.
The kernels are computed in the frozen-state model of Definition SA.3, in which the momentum buffer is a stationary average of independent batches, all evaluated at one fixed state. That computation assumes the state is diffuse: the normalized error \(\widehat A_t\) has vanishing operator norm, so no single singular direction carries a fixed fraction of the risk. Part (iv) says that this property, assumed at time zero in {{(H3)}}, persists along the trajectory. This is what allows the frozen-state kernels to be used there.
Proof sketch.
The algorithm is compared, over blocks of \(L=\lfloor B^{1/8}\rfloor\) steps, with the frozen-state model at the state reached at the start of the block. Over a block the state moves by at most a constant times \(L/\sqrt B\) in Frobenius norm (Lemma SE.14), so we hold it at its block-start value \(D\). We run the same batches at the fixed state \(D\), with the momentum buffer started from an independent stationary past. The resulting updates \(V_r\), \(r<L\), are those of the frozen-state model at \(D\) (Lemma SE.2), and \(\overline V\) denotes their common mean. The spectral energy measure is tested by \(X(\Delta)=\int f\tensor g\,\dif\chi(\Delta)\) for bounded \(f,g\). This is a quadratic form in \(\Delta\), so the expected change of \(X\) over a block has an exact expansion. Write \(\mathcal WX=f(\Sigmaout)\,X\,g(\Sigmain)\), let \({\mathsf S}_{t+r}\) be the actual updates of the block starting at step \(t\), and put
\[
X(\Delta)=\langle\Delta,\mathcal W\Delta\rangle,\qquad
S=\sum_{r<L}V_r,\qquad
\mathcal E=\sum_{r<L}{\mathsf S}_{t+r}-S .
\]
Then, exactly ((SE.28)),
\[
\begin{aligned}
\EE_t\big[X(\Delta_{t+L})-X(D)\big]
={}&-2\lr\Big\langle\mathcal WD,\sum_{r<L}\EE_t{\mathsf S}_{t+r}\Big\rangle
+\lr^2L^2\langle\overline V,\mathcal W\overline V\rangle\\
&+\lr^2LB\int f\tensor g\,\dif\mathfrak F_L(D)
+\lr^2\,\EE_t\big[2\langle S,\mathcal W\mathcal E\rangle+\langle\mathcal E,\mathcal W\mathcal E\rangle\big],
\end{aligned}
\]
where \(\mathfrak F_L(D)\) is the covariance measure of the sum of \(L\) consecutive updates of the frozen-state model (Theorem SD.8(iv)).
The two leading terms of this expansion are the drift and the volatility of the main text. Replace \(\EE_t{\mathsf S}_{t+r}\) by \(\overline V\) in the first term. The deterministic equivalent of Corollary SC.1 gives \(u_i^\T\overline Vv_j=\mathfrak d_{ij}\,u_i^\T Dv_j/\sqrt{\cR(D)}\) up to an error of vanishing Frobenius norm. The first term is therefore \(-2\lr L\,\cR(D)^{-1/2}\int f\tensor g\,\mathfrak d\,\dif\chi(D)\) up to \(o(L/B)\). The third term carries the covariance of a sum of \(L\) consecutive updates. Momentum correlates these updates, and because the block is long the correlations are summed in full: \(\mathfrak F_L(D)\) is within \(O(\bmom^L+L^{-1})\) in total variation of the integrated lag covariance. That covariance is close to the forcing measure \(\zeta\), which carries the mass \(\mathfrak v_{ij}/B\) at \((\mu_i,\lambda_j)\) (Theorem SD.8(iii),(iv), Proposition SD.3). The third term is therefore \((L/B)\,\macrostep^2\int f\tensor g\,\dif\zeta\) up to \(o(L/B)\). The second term, the square of the mean step, is only \(O(L^2/B^2)\). Over a block, then, the expected change of \(X\) is \(L/B\) times the test of the measure \(\mathsf F_B(\chi(D))\) below. Summed over the blocks, this reproduces the deterministic equations, which in measure form read exactly ((SE.9))
\[
\chi^{\mathrm{ode}}(\macrotime)=\chi^{\mathrm{ode}}(0)+\int_0^\macrotime\mathsf F_B\big(\chi^{\mathrm{ode}}(\sigma)\big)\,\dif\sigma,\qquad
\mathsf F_B(\chi)=-\frac{2\macrostep}{\sqrt{\fRisk(\chi)}}\,\mathfrak d\,\chi+\macrostep^2\zeta,
\]
with \(\fRisk(\chi)\) half the integral of \(\mu\lambda\) against \(\chi\), and \(\mathfrak d\,\chi\) the measure with density \(\mathfrak d\) with respect to \(\chi\).
The motion of the state within a block does not change the expected update at leading order, because the error is diffuse. Apart from the effect of the batches carried in the buffer from before the block, replacing \(\EE_t{\mathsf S}_{t+r}\) by \(\overline V\) neglects, to first order in \(\lr\), the response \(\lr\,\EE\dot V_r\). Here \(\dot V_r\) is the derivative of the frozen-state update with respect to the step size, at step size zero (Lemma SE.8). This derivative is causal: in \(\dot V_r\) the batch of step \(t+j\) acts only on the updates \(V_k\), \(k<j\), which are built from earlier batches and are independent of it. Removing each sample of the acting batch from the buffer and integrating it out by Stein’s identity (Proposition SE.2) leaves mean products of the projections \(\langle\Sigmaout D\Sigmain,V_k\rangle\) with scalars of the reduced buffer. The product of their means is bounded without diffuseness (Lemma SE.7). Their covariance is bounded through the change caused by a single sample, which for such a projection is \(O(\delta(D))\) in \(L^2\), where \(\delta(D)=\norm{\widehat A(D)}\) is the operator norm of the normalized error (Proposition SE.3). The ridge also moves with the risk, and its contribution to \(\dot V_r\) is bounded in the same way (Lemma SE.13). For a test matrix \(\Pi\) of bounded Frobenius norm the result is (Proposition SE.4)
\[
\lr\,\big|\EE\langle\Pi,\dot V_r\rangle\big|\le C\Big\{\frac{r}{\sqrt B}+\frac1B+\delta(D)\big(\norm\Pi+\delta(D)\big)\Big\}.
\]
The relevant test is \(\Pi=\mathcal WD\), whose operator norm is bounded but not small, so the response vanishes only because \(\delta(D)\to0\).
The error stays diffuse, by a drift bound and a matrix martingale for the weighted state \(Y_b=\Sigmaout^{1/2}\Delta_{t_b}\Sigmain^{1/2}\) at the start \(t_b\) of block \(b\). The drift is controlled by an operator-norm bound on the mean update that holds at every state of bounded risk, diffuse or not, so the argument is not circular (Lemma SE.7(iv)):
\[
\norm{\Sigmaout^{1/2}\overline V\,\Sigmain^{1/2}}\le C\norm{\Sigmaout^{1/2}D\,\Sigmain^{1/2}}+Cr_B,\qquad r_B\to0 .
\]
The centered increments of \(Y_b\) have operator norm \(O(L/B)\) in dimension \(O(B)\), so their partial sums vanish by a matrix martingale inequality (Lemma SE.23). A discrete Gronwall inequality then bounds \(\max_b\norm{Y_b}\) by \(e^{C\macrostep(T+1)}(\norm{Y_0}+o_B)\), with \(o_B\to0\) in probability, and \(\norm{Y_0}\to0\) by {{(H3)}}.
The remaining errors are routine, with two exceptions. During the first \(\lceil C_0\log(2B)\rceil\) steps of a block, the momentum buffer still remembers the previous block, so these updates are not close to the stationary model. They are compared with the model started that many steps earlier, and their total cost is of order \(\log^2(2B)/L\) (Lemma SE.21). The deterministic equivalents for the drift and the volatility come without a rate. They are made uniform over diffuse states by a subsequence argument (Lemma SE.25), and this is one reason the theorem gives no rate. The fluctuations of the block increments form a martingale whose maximum vanishes (Lemma SE.20). Energy and risk then move at bounded rates, so they stay close to their initial values up to \(T_\star\) (Lemma SE.27), which is (i). Gronwall’s inequality, with the Lipschitz continuity of \(\mathsf F_B\) (Lemma SE.1), and routine estimates give (ii) and (iii).
Read the full proofOpens over this page; close it to come back here.
Lean
Proved in Lean
Compare this theorem with its Lean statements ↗
Muon.Dynamics.thm_app_dyn_main_i source
theorem thm_app_dyn_main_i
(cert : Muon.External.GaussianOpNorm) (certOp : Muon.External.GaussianOpNormL6)
(certP : Muon.External.GaussianPoincare) (certQ : Muon.External.GaussianQuadFormLp)
-- (H1)–(H4) along a sequence of dimensions with `B → ∞`
(hB : Tendsto (fun k : ℕ => B k) atTop atTop)
(F : ∀ k : ℕ, FrozenParams (m k) (n k) (B k))
(hyp : DynHyp p P m n B (fun k => (F k).C))
(S : ∀ k : ℕ, SpectralData (F k).C)
(c : ∀ k : ℕ, DynCoeff p (S k) (B k))
(hc : ∀ k : ℕ, IsActualCoeff cert (F k) (S k) (c k)) :
Tendsto (fun k : ℕ => P (mainEvent hyp k)) atTop (𝓝 1) := byMuon.Dynamics.thm_app_dyn_main_ii source
theorem thm_app_dyn_main_ii
(cert : Muon.External.GaussianOpNorm) (certOp : Muon.External.GaussianOpNormL6)
(certP : Muon.External.GaussianPoincare) (certQ : Muon.External.GaussianQuadFormLp)
(hB : Tendsto (fun k : ℕ => B k) atTop atTop)
(F : ∀ k : ℕ, FrozenParams (m k) (n k) (B k))
(hyp : DynHyp p P m n B (fun k => (F k).C))
(S : ∀ k : ℕ, SpectralData (F k).C)
(c : ∀ k : ℕ, DynCoeff p (S k) (B k))
(hc : ∀ k : ℕ, IsActualCoeff cert (F k) (S k) (c k))
(e : ∀ k : ℕ, ℝ → Fin (m k) → Fin (n k) → ℝ)
(he : ∀ k : ℕ, def_app_dyn_ode p (S k) (c k) (dev0 hyp k) (Tstar p) (e k)) :
(∀ k : ℕ, ∀ ω : Ω, ∀ τ ∈ Icc (0 : ℝ) (Tstar p), ∀ φ ∈ blTest p.CSig,
Integrable φ (actMeas hyp S k ω τ) ∧
Integrable φ (odeMeasure (B k : ℝ) (S k).μ (S k).lam (e k τ))) ∧
∀ ε : ℝ, 0 < ε → Tendsto (fun k : ℕ => P {ω | ENNReal.ofReal ε <
⨆ τ ∈ Icc (0 : ℝ) (Tstar p), ENNReal.ofReal
(blDist p.CSig (actMeas hyp S k ω τ) (odeMeasure (B k : ℝ) (S k).μ (S k).lam (e k τ)))})
atTop (𝓝 0) := byMuon.Dynamics.thm_app_dyn_main_iii source
theorem thm_app_dyn_main_iii
(cert : Muon.External.GaussianOpNorm) (certOp : Muon.External.GaussianOpNormL6)
(certP : Muon.External.GaussianPoincare) (certQ : Muon.External.GaussianQuadFormLp)
(hB : Tendsto (fun k : ℕ => B k) atTop atTop)
(F : ∀ k : ℕ, FrozenParams (m k) (n k) (B k))
(hyp : DynHyp p P m n B (fun k => (F k).C))
(S : ∀ k : ℕ, SpectralData (F k).C)
(c : ∀ k : ℕ, DynCoeff p (S k) (B k))
(hc : ∀ k : ℕ, IsActualCoeff cert (F k) (S k) (c k))
(e : ∀ k : ℕ, ℝ → Fin (m k) → Fin (n k) → ℝ)
(he : ∀ k : ℕ, def_app_dyn_ode p (S k) (c k) (dev0 hyp k) (Tstar p) (e k)) :
(∀ k : ℕ, ∀ ω : Ω, ∀ τ ∈ Icc (0 : ℝ) (Tstar p), ∀ φ ∈ blTest p.CSig,
Integrable (fun x => x.1 * x.2 * φ x) (actMeas hyp S k ω τ) ∧
Integrable (fun x => x.1 * x.2 * φ x) (odeMeasure (B k : ℝ) (S k).μ (S k).lam (e k τ))) ∧
(∀ ε : ℝ, 0 < ε → Tendsto (fun k : ℕ => P {ω | ENNReal.ofReal ε <
⨆ τ ∈ Icc (0 : ℝ) (Tstar p), ENNReal.ofReal
(blDistLam p.CSig (actMeas hyp S k ω τ) (odeMeasure (B k : ℝ) (S k).μ (S k).lam (e k τ)))})
atTop (𝓝 0)) ∧
(∀ ε : ℝ, 0 < ε → Tendsto (fun k : ℕ => P {ω | ENNReal.ofReal ε <
⨆ τ ∈ Icc (0 : ℝ) (Tstar p), ENNReal.ofReal
|riskSigma (F k).C (errPath hyp k ⌊(B k : ℝ) * τ⌋₊ ω) - odeRisk (S k).μ (S k).lam (B k : ℝ) (e k τ)|})
atTop (𝓝 0)) := byMuon.Dynamics.thm_app_dyn_main_iv source
theorem thm_app_dyn_main_iv
(cert : Muon.External.GaussianOpNorm) (certOp : Muon.External.GaussianOpNormL6)
(certP : Muon.External.GaussianPoincare) (certQ : Muon.External.GaussianQuadFormLp)
(hB : Tendsto (fun k : ℕ => B k) atTop atTop)
(F : ∀ k : ℕ, FrozenParams (m k) (n k) (B k))
(hyp : DynHyp p P m n B (fun k => (F k).C))
(S : ∀ k : ℕ, SpectralData (F k).C)
(c : ∀ k : ℕ, DynCoeff p (S k) (B k))
(hc : ∀ k : ℕ, IsActualCoeff cert (F k) (S k) (c k)) :
∀ ε : ℝ, 0 < ε → Tendsto (fun k : ℕ => P (mainEvent hyp k ∩ {ω | ENNReal.ofReal ε <
⨆ (t : ℕ) (_ : (t : ℝ) ≤ (B k : ℝ) * Tstar p),
ENNReal.ofReal (opNorm (normState (F k).C (errPath hyp k t ω)))}))
atTop (𝓝 0) := byMuon.Dynamics.mainEvent source
def mainEvent (hyp : DynHyp p P m n B C) (k : ℕ) : Set Ω :=
Muon.Dynamics.blDistLam source
def blDistLam (Cs : ℝ) (μ ν : Measure (ℝ × ℝ)) : ℝ :=
Uses proved foundation results:
GaussianOpNorm, GaussianOpNormL6, GaussianPoincare, GaussianQuadFormLp.