Phases of Muoncompanion
The isotropic case · cited in the main text
Proved in LeanTheorem numbering in the paper: Theorem K.4
The threshold aspect ratio is \(\gamma^\circ_\bmom\defeq2+1/(1-\bmom^2)\), and \(\mathsf K^\pm_\bmom\) are explicit constants that depend only on \(\bmom\).
Theorem SF.11 (Zero ridge, large aspect ratios)
Let \(\bmom\in(0,1)\) and \(\gin,\gout>0\), put \(\iota\defeq\gamma_\wedge/\gamma_\vee\in(0,1]\) and
\[ \mathsf F(\iota)\defeq\frac1\iota\int_0^\iota\sqrt{(1-x)(\iota-x)}\,\dif x . \]
  1. (i)
    The zero-ridge constant satisfies
    \[ \Big|C_\bmom(\gin,\gout)-\frac{\mathsf F(\iota)}{\sqrt\pi}\Big|\le\frac{2.32}{(1-\bmom)\sqrt{\gin\gout}}, \]
    where \(\mathsf F(1)=\frac12\) and, for \(\iota<1\),
    \[ \mathsf F(\iota)=\frac1\iota\Big[\frac{(1+\iota)\sqrt\iota}4+\frac{(1-\iota)^2}8\log\frac{1-\sqrt\iota}{1+\sqrt\iota}\Big]. \]
    In particular, in the square case,
    \[ \Big|C_\bmom(\gamma)-\frac1{2\sqrt\pi}\Big|\le\frac{2.32}{(1-\bmom)\gamma}\qquad(\gamma>0). \]
  2. (ii)
    Let \(\Nin=\Nout=N\) and \(\gamma=N/B\ge\gamma^\circ_\bmom\). The zero-ridge volatility of Definition SF.1 satisfies, with \(\mathsf K^\pm_\bmom\) of (SF.57),
    \[ \frac{1-2\mathsf K^-_\bmom}\gamma\le\frac{\mathfrak v_{\mathrm{iso},\bmom}}{N\gamma}-\frac12\le\frac{1+2\mathsf K^+_\bmom}\gamma . \]
    In particular \(\mathfrak v_{\mathrm{iso},\bmom}=\frac{N^2}{2B}\big(1+O_\bmom(B/N)\big)\), and \(\mathfrak v_{\mathrm{iso},\bmom}/(N\gamma)\to\frac12\) as \(\gamma\to\infty\) at every fixed \(\bmom\in(0,1)\).

Definitions and assumptions used

Definition SF.1 (Zero-ridge isotropic volatility)
Definition SF.1 (Zero-ridge isotropic volatility)
Let \(\bmom\in[0,1)\) and let \(\mathfrak v_{\mathrm{iso}}(\ridge)\) be the number of Theorem SF.2(ii) at momentum \(\bmom\). The zero-ridge isotropic volatility at momentum \(\bmom\) is
\[ \mathfrak v_{\mathrm{iso},\bmom}\defeq\lim_{\ridge\downarrow0}\mathfrak v_{\mathrm{iso}}(\ridge), \]
the limit being taken at this fixed \(\bmom\), whenever it exists.
The theorem gives the isotropic kernels of Muon with momentum at large aspect ratio \(\gamma=N/B\). The drift does not decay: in the square case \(C_\bmom(\gamma)\to1/(2\sqrt\pi)\), with no logarithm and no dependence on \(\bmom\), whereas without momentum \(C_0(\gamma)\sim1/(\sqrt\pi\gamma)\) (Theorem SF.5). The volatility grows linearly, \(\mathfrak v_{\mathrm{iso},\bmom}=\frac{N^2}{2B}(1+O_\bmom(B/N))\). The two kernels give the limit \(1/(2\sqrt\pi)\) of Figure 4 and, inserted in (11), the learning-rate ratio \(\sqrt\pi N^2\mathfrak d_\bmom/(\sqrt B\,\mathfrak v_\bmom)=\sqrt B\,(1+O_\bmom(B/N))\). Both kernels are deterministic limits as \(\ridge\downarrow0\) at fixed \(\bmom\); nothing is claimed for the algorithm at zero ridge.
Proof sketch.
With momentum, the update approaches full rank as \(\ridge\downarrow0\). In the scalar equation of the introduction to Section K, each term \(\Phi(\emaw j^2q)\) of \(r_\bmom(q)\) lies in \((0,1)\) and is close to one when \(\emaw j^2q\gg1\). Hence \(r_\bmom(q)\) counts the past batches in the buffer, of age \(j\) and weight \(\emaw j\), that the normalized update whitens, and the scalar equation keeps this count below \(\gamma_\wedge\). With momentum the count grows without bound in \(q\): for \((1-\bmom)^2q\ge1\) (Lemma SF.6(i)),
\[ r_\bmom(q)=\frac{\log\big((1-\bmom)^2q\big)}{2\log(1/\bmom)}+O\Big(\frac1{1-\bmom}\Big). \]
As \(\ridge\downarrow0\) the root grows, so the participation level \(\psi\) tends to its ceiling \(\gamma_\wedge\). We write \(\psi(0)=\gamma_\wedge\), and the squared Frobenius norm \(B\psi\) of the update tends to the full rank \(\min\{\Nin,\Nout\}\) (Proposition SF.3(i)). Without momentum there is one age, \(r_0=\Phi<1\), and \(\psi(\ridge)\to\min\{1,\gamma_\wedge\}\); then \(B\psi\) tends to \(\min\{B,\Nin,\Nout\}\), the rank of one gradient (Proposition SF.2).
The drift is, up to an error of order \(1/((1-\bmom)\sqrt{\gin\gout})\), an explicit function of the level. The drift (SF.10) is an integral of \(q\Lw(q)\) along the root. Let \(Q_m\) be the root at level \(m\). The scalar equation inverts exactly as (Lemma SF.8)
\[ s=\frac{\mathsf W(m)^2}{Q_m},\qquad \mathsf W(m)\defeq\sqrt{(\gin-m)(\gout-m)}, \]
so the integral can be taken over the level \(m\in(0,\psi(\ridge))\) instead of the spectral parameter. After one integration by parts the integrand contains \(\Lambda_\bmom(Q_m)\), where \(\Lambda_\bmom(q)\defeq\int_0^qx^{-1/2}\Lw(x)\,\dif x\). Every whitened age contributes the same amount to \(\Lambda_\bmom\), and the error comes from the few ages near the threshold \(\emaw j^2q\approx1\) (Lemma SF.4(iv), Lemma SF.7):
\[ \int_0^\infty y^{-1/2}\Jfun(y)\,\dif y=\sqrt{2\pi},\qquad \Lambda_\bmom(Q_m)=\sqrt{2\pi}\,m+O\Big(\frac1{1-\bmom}\Big). \]
This gives the master estimate (Theorem SF.3),
\[ \Big|\mathfrak d_{\mathrm{iso}}(\ridge)-\frac1{\sqrt\pi\,\gin\gout}\int_0^{\psi(\ridge)}\mathsf W(m)\,\dif m\Big| <\frac{2.32}{(1-\bmom)\sqrt{\gin\gout}} . \]
At \(\ridge=0\) the drift is \(C_\bmom\) and the level is \(\gamma_\wedge\), and the substitution \(m=\gamma_\vee x\) evaluates the main term exactly as \(\mathsf F(\iota)/\sqrt\pi\); in the square case \(\mathsf F(1)=\frac12\). This is part (i). The drift stays of order one because the integral runs over all \(\gamma_\wedge\) directions.
With momentum the volatility is a sum over lags, and each lag coefficient is an exact average over the level. Successive updates are correlated, and the zero-ridge volatility is (Proposition SF.3(ii))
\[ \mathfrak v_{\mathrm{iso},\bmom}=N\Big(1+2\sum_{\ell\ge1}\overline C_{1,\ell}(0)\Big), \]
where \(\overline C_{1,\ell}(0)\) is the correlation of two updates \(\ell\) steps apart, a double integral of the closed-form kernel of the lag-\(\ell\) covariance (Lemma SF.11). Part (ii) says that the lag sum is \(\gamma/4\) up to \(O_\bmom(1)\) (Theorem SF.9). To see this, write the double integral in the two roots \(y\) and \(z_\ell\defeq\bmom^{-2\ell}z\); multiplying a root by \(\bmom^{-2\ell}\) shifts every age of the buffer by \(\ell\) places. Let \(\mathsf A(y)\defeq\gamma-r_\bmom(y)\) be the residual count, the directions not yet whitened at the root \(y\), and \(\mathsf j(y)\defeq\mathsf A(y)+2y\,r_\bmom'(y)\). Averaging over the intermediate level \(\eta\) between \(y\) and \(z\) gives the exact identity (Proposition SF.10, Lemma SF.16 and (SF.58))
\[ \begin{gathered} \sum_{\ell\ge1}\overline C_{1,\ell}(0)=\frac1\gamma\int_0^\gamma\EE_\star\big[\Psi(y,z)\big]\,\dif\eta,\\ \Psi(y,z)=\mathbf 1\{y<Q_\gamma\}\,\frac{\mathsf j(y)\,\mathsf T(z)}{\gamma^2\widehat\Delta(y,z)},\qquad \mathsf T(z)=\sum_{\ell\ge1}\mathbf 1\{z_\ell<Q_\gamma\}\,\mathsf j(z_\ell). \end{gathered} \]
Here \(\widehat\Delta\) is the determinant that appears in that closed-form kernel, and \(\EE_\star\) averages over how far \(y\) and \(z\) sit from the root at level \(\eta\), on a logarithmic scale, under a fixed probability law with density proportional to \(1/\sinh\) of half the total offset.
At level \(\eta\) the summed integrand is approximately half the residual count, \((\gamma-\eta)/2\), whose average over \(\eta\in(0,\gamma)\) is \(\gamma/4\). On the diagonal \(\gamma^2\widehat\Delta(y,y)=\mathsf A(y)\,\mathsf j(y)\) ((SF.54)), so the first factor of \(\Psi\) is \(1/\mathsf A(y)\). A shift by \(\ell\) ages raises the count by about \(\ell\), so the lag \(\ell\) contributes about \(\mathsf A(z)-\ell\) to \(\mathsf T(z)\) while \(\ell\) is below the residual count, and nothing beyond it (Lemma SF.14). Precisely, with \(\mathsf A_\vee\) the larger of the two residual counts, \(E_z\) the error of the counting formula at \(z\), and \(\bar{\mathsf e}_\bmom\) a bound on the slope \(y\,r_\bmom'(y)\) ((SF.59), (SF.60) and Lemma SF.13),
\[ \frac{(\mathsf A(z)-1)_+^2}2\le\mathsf T(z)\le\frac{(\mathsf A_\vee+E_z)^2}2+2\bar{\mathsf e}_\bmom(\mathsf A_\vee+E_z). \]
The correction in (ii) is of relative order \(B/N\), with a constant that is bounded but not identified, because these errors do not vanish. The integrand differs from \((\gamma-\eta)/2\) by terms linear or quadratic in the logarithmic offset and in \(E_z\), and these terms have bounded averages. The lag sum is therefore \(\gamma/4+O_\bmom(1)\), and the relative error is \(O_\bmom(1/\gamma)=O_\bmom(B/N)\) (proof of Theorem SF.9, Lemma SF.17). The hypothesis \(\gamma\ge\gamma^\circ_\bmom\) keeps the residual count at least \(\Phi(1)\) wherever \(\Psi>0\), and hence \(\widehat\Delta\) away from zero there (Lemma SF.14(v), Lemma SF.15(v)).
Read the full proofOpens over this page; close it to come back here.

Proof engines

none

Depth

28 levels, 106 statements below it.

Lean

Proved in Lean
Muon.Isotropic.thm_app_iso_zero_ridge_i source
theorem thm_app_iso_zero_ridge_i {β γin γout : ℝ} (hβ0 : 0 < β) (hβ1 : β < 1)
    (hγin : 0 < γin) (hγout : 0 < γout) :
    |Cbeta β γin γout - isoFiota (min γin γout / max γin γout) / Real.sqrt Real.pi|
        ≤ 2.32 / ((1 - β) * Real.sqrt (γin * γout)) ∧
    isoFiota 1 = 1 / 2 ∧
    (∀ ι : ℝ, 0 < ι → ι < 1 →
      isoFiota ι = 1 / ι * ((1 + ι) * Real.sqrt ι / 4
        + (1 - ι) ^ 2 / 8 * Real.log ((1 - Real.sqrt ι) / (1 + Real.sqrt ι)))) ∧
    (∀ γ : ℝ, 0 < γ →
      |Cbeta β γ γ - 1 / (2 * Real.sqrt Real.pi)| ≤ 2.32 / ((1 - β) * γ)) := by
Muon.Isotropic.thm_app_iso_zero_ridge_ii source
theorem thm_app_iso_zero_ridge_ii (cert : Muon.External.GaussianOpNorm) (γstar CSig : ℝ)
    {N B : ℕ} (hB : 0 < B) (hN : 0 < N) {β : ℝ} (hβ0 : 0 < β) (hβ1 : β < 1)
    (hγ : Muon.PowerLaw.gammaOf N B ≤ γstar) (hC1 : 1 ≤ CSig)
    (hγβ : isoGammaCirc β ≤ Muon.PowerLaw.gammaOf N B) :
    hasIsoZeroRidgeVol cert γstar CSig β N N B (def_app_iso_vol_zero cert γstar CSig β N N B) ∧
    (1 - 2 * isoKminus β) / Muon.PowerLaw.gammaOf N B
        ≤ def_app_iso_vol_zero cert γstar CSig β N N B / ((N : ℝ) * Muon.PowerLaw.gammaOf N B) - 1 / 2 ∧
    def_app_iso_vol_zero cert γstar CSig β N N B / ((N : ℝ) * Muon.PowerLaw.gammaOf N B) - 1 / 2
        ≤ (1 + 2 * isoKplus β) / Muon.PowerLaw.gammaOf N B := by
Muon.Isotropic.thm_app_iso_zero_ridge_ii_consequences source
theorem thm_app_iso_zero_ridge_ii_consequences (cert : Muon.External.GaussianOpNorm)
    {β : ℝ} (hβ0 : 0 < β) (hβ1 : β < 1) :
    (∃ C : ℝ, ∀ (γstar CSig : ℝ), 1 ≤ CSig → ∀ N B : ℕ, 0 < B → 0 < N →
        Muon.PowerLaw.gammaOf N B ≤ γstar → isoGammaCirc β ≤ Muon.PowerLaw.gammaOf N B →
        |2 * (B : ℝ) * def_app_iso_vol_zero cert γstar CSig β N N B / (N : ℝ) ^ 2 - 1|
          ≤ C * ((B : ℝ) / (N : ℝ))) ∧
    (∀ CSig : ℝ, 1 ≤ CSig → ∀ (Nk Bk : ℕ → ℕ) (gs : ℕ → ℝ), (∀ k, 0 < Bk k) → (∀ k, 0 < Nk k) →
        (∀ k, Muon.PowerLaw.gammaOf (Nk k) (Bk k) ≤ gs k) →
        Tendsto (fun k => Muon.PowerLaw.gammaOf (Nk k) (Bk k)) atTop atTop →
        Tendsto (fun k => def_app_iso_vol_zero cert (gs k) CSig β (Nk k) (Nk k) (Bk k) /
            ((Nk k : ℝ) * Muon.PowerLaw.gammaOf (Nk k) (Bk k))) atTop (𝓝 (1 / 2))) := by
Uses proved foundation results: GaussianOpNorm.