Eqs. (13)–(14): deep networks converge to the NNGP (simultaneous infinite-width limit)
OpenLesHouchesWidth.nngp_limit_deepLet be continuous with a linear envelope, . Fix a depth , input width , output width and inputs . Consider the network with all hidden widths equal to and Gaussian initialization (, ). As the vector converges in distribution to the centered Gaussian with covariance
where is the NNGP kernel recursion (13)–(14). That is, for every bounded continuous , .
This extends Result 1 to finite depth in the simultaneous limit.
Formalization Note The notes do not state conditions on . The continuity and linear-envelope condition is taken from Matthews et al. (2018).
import Mathlib import Definitions.Def_LesHouchesWidth_GaussianMLP
namespace LesHouchesWidth
open MeasureTheory ProbabilityTheory
theorem nngp_limit_deep (σb σw : ℝ) (φ : ℝ → ℝ) (hφ : Continuous φ)
(hφ_env : ∃ c M : ℝ, ∀ u, |φ u| ≤ c + M * |u|)
(L n0 nOut m : ℕ) (xs : Fin m → Fin n0 → ℝ)
(g : BoundedContinuousFunction (EuclideanSpace ℝ (Fin nOut × Fin m)) ℝ) :
Filter.Tendsto
(fun N : ℕ => ∫ θ, g (outputVector (σb ^ 2) (σw ^ 2) φ
(uniformWidths_last n0 nOut L N) xs θ)
∂(stdGaussianParams (uniformWidths n0 nOut L N) L))
Filter.atTop
(nhds (∫ v, g v ∂(multivariateGaussian 0
(blockDiagCov (k := nOut) fun a b => nngpKernel (σb ^ 2) (σw ^ 2) φ (L + 1) (xs a) (xs b))))) := by sorry
end LesHouchesWidthRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as drafter
Non-blind read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source and of the intended meaning. It is not independent testimony and should not be treated as a blind audit; an independent read-back is still recommended before launch.
Let , and let be continuous with constants such that for all . Let be arbitrary (including ), let , and let be any bounded continuous real function on the Euclidean space indexed by pairs , , . For each , take the network with widths at layer , at layer and elsewhere, with biases and weights ( i.i.d. standard normal). Let be the expectation of applied to the vector . The theorem asserts that as along the natural numbers. Here if and otherwise, and is nngpKernel with , . For the hidden layers are empty, which does not affect the limit. If were not positive semidefinite, Mathlib's multivariateGaussian would be the point mass at .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.