← All papers
First page of Verifying and Strengthening Neural Tangent Kernel Theory

Verifying and Strengthening Neural Tangent Kernel Theory

Hao Zhu

cs.LG Nov 20, 2026 · v1 stat.ML
Formalizes end-to-end NTK lazy-training convergence for two-layer networks in Lean 4 with Mathlib, including matrix Bernstein and gradient-flow existence and uniqueness.
Writing Neural tangent kernel (NTK) theory explains why very wide neural networks trained by gradient methods converge in the lazy-training regime. Its standard proof combines matrix concentration, random Gram matrices, continuous-time dynamics, spectral perturbation, and a bootstrap argument, but has lacked machine-checked verification. We present a Lean\ 4 formalisation for two-layer networks, proving an end-to-end theorem: for a smooth bounded activation (instantiated with $σ=\tanh$), frozen biases, paired $\pm 1$ initialisation, and explicit width conditions, gradient flow exists uniquely with probability at least $1-δ$, and $$ \|r(t)\|^2 \leq \|y\|^2 e^{-λ_0 t/2}. $$ The sole data assumption is population NTK non-degeneracy, $λ_0>0$. Initial coercivity, kernel drift, the movement bootstrap, the residual ODE, and flow existence and uniqueness are formally proved. The formalisation also sharpens the standard analysis in two ways. First, replacing the conventional matrix-Bernstein variance proxy with the classical row-covariance proxy yields estimated concentration-width certificates for $\tanh$ that are $36$–$53\times$ smaller at $(m,d)=(16,8)$ and $94$–$121\times$ smaller at $(32,16)$. Lean certifies the inequality; the ratios are numerical. Second, the network Hessian has operator norm $Θ(\sqrt{p})$ on the sup-norm parameter ball (a paper calculation), preventing the expected $O(1/\sqrt{p})$ linearisation bound via sup-norm Taylor estimates. An $L^2$ parameter geometry resolves this issue. Required widths remain polynomial but far beyond practical scales, limiting applicability.

Neural tangent kernel theory explains why wide networks trained by gradient flow converge in the lazy regime. Its standard proof chains matrix concentration, random Gram matrices, ODE dynamics, spectral perturbation and a bootstrap argument, and it had not been machine-checked.

A sorry-free Lean 4 formalisation covers two-layer networks with smooth bounded activation (instantiated for tanh), frozen biases and paired ±1 initialisation. It proves matrix Bernstein from Lieb's concavity via Tropp's argument, initial coercivity with high probability, kernel drift, the movement bootstrap, the residual ODE, and existence and uniqueness of the flow. The Bernstein statement takes its variance proxy as an explicit argument, which allows the classical row-covariance proxy to be used. A paper-only calculation shows the sup-norm Hessian obstruction and motivates an L² parameter geometry.

With probability at least 1−δ, under explicit width conditions and λ₀>0, gradient flow exists uniquely and ‖r(t)‖² ≤ ‖y‖² e^{−λ₀t/2}. The row-covariance proxy gives estimated concentration-width certificates 36–53× smaller at (m,d)=(16,8) and 94–121× smaller at (32,16); Lean certifies the inequality, while the ratios are numerical. The required widths remain far beyond practical scales.