math.NANov 19, 2026

Full Rank and Stable Sampling of tanh⁡\tanh Networks

Authors: Philipp Grohs, Matěj Trödler

Organizations: Faculty of Mathematics, University of Vienna · RICAM, Austrian Academy of Sciences

Abstract

We study the recovery of feedforward tanh⁡\tanh networks of fixed architecture with PP parameters from finitely many point evaluations. First, we characterize the set of parameters where the differential of the realization map has full rank and show that it coincides with the regular parameters in the sense of Vla{č}i{ć} and B{ö}lcskei (2021). Second, we make use of this characterization to prove that almost every tuple of 2P+12P+1 sampling points yields uniform-norm Lipschitz stability on compact subsets of this parameter set. Third, we prove that for exact observations, projected gradient descent and projected Gauss--Newton converge locally from sufficiently close feasible initial guesses. The same evaluations also determine the realized function for arbitrary parameters and identify parameters in the characterized set up to permutations and sign changes of hidden neurons. Finally, we develop a general framework for real-analytic networks that highlights the role of full rank in stability and local reconstruction.

Figures & tables

Explore similar work

Jun 9, 2026

Limitations of Learning Tanh Neural Networks with Finite Precision

We investigate limitations of learning tanh⁡\tanh neural networks from point evaluations under finite-precision computations and LpL^p accuracy guarantees, building on Berner, Grohs, and Voigtländer (2023). Our approach is based on a novel construction of sharply localized bump functions via iterated tanh⁡\tanh activations. Using this mechanism, we show that, in a finite-precision setting, no adaptive randomized algorithm based on mm samples can achieve a convergence rate higher than the Monte Carlo rate O(m−1/p)O(m^{-1/p}) in the LpL^p norm, unless the sampling budget grows exponentially with the size of the network parameters and architecture. The results reveal fundamental limitations imposed by finite precision on the learnability of classes containing localized bump functions, extending previous results for ReLU networks to the tanh⁡\tanh setting.
Aug 27, 2026

High Probability Derivative Bounds for Random tanh Neural Networks on a Hypercube

We establish high-probability bounds for mixed input derivatives of wide random neural networks whose activation derivatives satisfy a factorial growth bound. Our main result specializes these estimates to tanh⁡\tanh networks with Xavier initialization. A direct deterministic analysis based on Euclidean operator norms of the weight matrices yields derivative bounds that generally grow exponentially with the depth. We show that this growth can be substantially improved for sufficiently wide Gaussian networks by isolating the term that is linear in the highest-order derivative and controlling the corresponding tangent directions by measurable finite nets. For scalar-output tanh⁡\tanh networks with Gaussian weights and Xavier initialization, we prove that there exist constants C,C0,C1>0C,C_0,C_1>0 such that, whenever the common hidden width satisfies n≥C(L3n02(1+log⁡n0)+L2(1+log⁡(L/η)))n \geq C\left(L^3n_0^2(1+\log n_0)+L^2\left(1+\log(L/η)\right)\right), then, with probability at least 1−η1-η, the estimate ∣DuRΦ(L)(x)∣≤C0∣u∣!(C1L)∣u∣−1∏j∈uβj(η,n0)\left|D^u\mathcal{R}_{Φ^{(L)}}(x)\right| \leq C_0 |u|! (C_1L)^{|u|-1}\prod_{j\in u}β_j(η,n_0) holds simultaneously for every non-empty u⊆[n0]u\subseteq[n_0] and every x∈[0,1]n0x\in[0,1]^{n_0}. Thus, the first-order derivative bound is independent of the depth, while a square-free mixed derivative of order ∣u∣|u| grows at most polynomially as L∣u∣−1L^{|u|-1}, apart from the coordinate factors. As consequences, we obtain high-probability bounds for the Euclidean Lipschitz constant and for weighted Sobolev norms of the network realization. The latter connect the derivative estimates to quasi-Monte Carlo integration and indicate how such regularity can enter the analysis of QMC-based training.
Nov 20, 2026

Verifying and Strengthening Neural Tangent Kernel Theory

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⁡σ=\tanh), frozen biases, paired ±1\pm 1 initialisation, and explicit width conditions, gradient flow exists uniquely with probability at least 1−δ1-δ, and ∥r(t)∥2≤∥y∥2e−λ0t/2.\|r(t)\|^2 \leq \|y\|^2 e^{-λ_0 t/2}. The sole data assumption is population NTK non-degeneracy, λ0>0λ_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⁡\tanh that are 3636--53×53\times smaller at (m,d)=(16,8)(m,d)=(16,8) and 9494--121×121\times smaller at (32,16)(32,16). Lean certifies the inequality; the ratios are numerical. Second, the network Hessian has operator norm Θ(p)Θ(\sqrt{p}) on the sup-norm parameter ball (a paper calculation), preventing the expected O(1/p)O(1/\sqrt{p}) linearisation bound via sup-norm Taylor estimates. An L2L^2 parameter geometry resolves this issue. Required widths remain polynomial but far beyond practical scales, limiting applicability.