- The paper proves that any adaptive randomized learner for finite-precision tanh networks faces an L^p error lower bound of order m^{-1/p}, with exponentially large admissible sample budgets as network depth and width increase.
- The authors construct effectively localized bumps by iterating scaled tanh functions toward nonzero fixed points, using quantization to make exponentially small tails indistinguishable from zero.
- For L^∞ recovery, the lower bound can remain a positive constant regardless of sample count; in one example, even 10^71 samples leave worst-case error at least 0.49, demonstrating severe instability.
Context and motivation
The paper studies the sampling complexity of learning classes of feedforward neural networks with the hyperbolic tangent activation σ=tanh from noiseless point evaluations, under the assumption that all computations are performed in finite-precision arithmetic. The work extends a line of research initiated by Berner, Grohs, and Voigtländer for ReLU networks (2606.11104), where it was shown that learning error decays only at the Monte Carlo rate m−1/p in Lp norm while growing exponentially with network size — implying that even computationally unbounded algorithms cannot learn such classes efficiently from samples alone.
The extension to tanh is nontrivial for two structural reasons. First, unlike ReLU, tanh lacks positive homogeneity (ρ(λx)=λρ(x)), which was a key tool in prior analyses. Second, tanh is real-analytic and strictly nonzero away from isolated points, so networks cannot vanish exactly on sets of positive measure; compactly supported bump constructions are unavailable in exact form. The authors overcome both obstacles by introducing finite precision as an essential modeling ingredient rather than a nuisance: values below a machine threshold ϵp>0 are quantized to zero, which permits "effective" compact support.
Main result
The central theorem states that if U contains all tanh networks of input dimension m−1/p0, depth m−1/p1, width m−1/p2, and coefficient bound m−1/p3 in m−1/p4 norm (with m−1/p5, m−1/p6), then under any quantizer mapping values below m−1/p7 to zero, every adaptive randomized algorithm using m−1/p8 samples incurs worst-case m−1/p9 error at least
Lp0
The bound holds for arbitrary Lp1, with Lp2 an effective dimension parameter and Lp3 a depth budget allocated to maximizing the admissible sample count. Three qualitative features deserve emphasis:
- Monte Carlo rate barrier: no algorithm can beat Lp4, regardless of adaptivity or randomization.
- Exponential sample requirement: the admissible Lp5 grows exponentially in architecture parameters, so efficient learning is impossible as network size increases.
- Intrinsic instability: for Lp6 the lower bound stays bounded below by a positive constant independent of Lp7. In a concrete instance (Lp8, Lp9, tanh0, tanh1, tanh2, tanh3), even tanh4 samples leave worst-case error tanh5, and there exist pairs of networks whose sampled values differ by only tanh6 while their tanh7 distance remains about tanh8. Unlike analytic interpolation, where node choice (e.g., Chebyshev points) can restore stability, here no placement of sample points yields simultaneously accurate and stable reconstruction within the stated regime.
The result applies to any finite-precision scheme with the threshold property, including IEEE 754 arithmetic; moreover, when tanh9 one can shift the reference level so that the relevant precision is relative (tanh0), making the infeasibility substantially more severe. An interactive application accompanies the paper for numerically verifying the full bound's assumptions.
Technical mechanism: fixed-point-driven bump construction
The proof rests on a novel construction of sharply localized bumps via iterated tanh1 activations, exploiting the fixed-point structure of tanh2 for tanh3. For tanh4, tanh5 has nontrivial fixed points tanh6 beyond tanh7, and its iterates converge pointwise to the step-like limit tanh8. The analysis quantifies this convergence: defining the critical point tanh9 and a jump scale ρ(λx)=λρ(x)0 with ρ(λx)=λρ(x)1, the authors establish exit-time bounds into the basin of attraction and exponential attraction estimates showing that after ρ(λx)=λρ(x)2 iterations, all inputs above a shrinking threshold ρ(λx)=λρ(x)3 land within ρ(λx)=λρ(x)4 of the fixed point.
The bump network itself is built layer by layer: the first layer forms shifted sign-flipped ρ(λx)=λρ(x)5 pairs centered at a grid point ρ(λx)=λρ(x)6; the second averages these coordinate-wise primitives and thresholds via a bias, producing a coarse bump positive on ρ(λx)=λρ(x)7 and negative outside ρ(λx)=λρ(x)8; middle layers apply ρ(λx)=λρ(x)9, sharpening the profile toward a step function; the final layer selects one coordinate and shifts by tanh0. The resulting network satisfies tanh1 on a cube of width tanh2 while decaying like tanh3 outside — fast enough that, given sufficient depth tanh4, the tail falls below tanh5 and becomes indistinguishable from zero.
The lower bound then follows a packing argument: choosing tanh6 and placing bump centers on a grid dense in tanh7 selected coordinates, a pigeonhole argument shows at least half the bumps avoid all sample points entirely; for those, the algorithm receives exactly the same quantized data as for the zero function despite positive tanh8 mass. A Markov-type reduction extends the argument from deterministic to adaptive randomized algorithms. A useful refinement is the effective dimension reduction: restricting the packing grid to an tanh9-dimensional active subspace improves the constant by a factor involving ϵp>00, so smaller ϵp>01 strengthens the bound.
Comparison with the ReLU setting
For ϵp>02, the analogous ReLU bound contains the factor ϵp>03. Two structural differences emerge. First, the characteristic factor ϵp>04 (here ϵp>05) present in the ReLU estimate does not appear in the ϵp>06 bound. Second, whereas the ReLU bound grows exponentially in architecture parameters — reflecting ReLU's value amplification through composition — the ϵp>07 bound remains uniformly bounded since ϵp>08; only the exponential dependence of the admissible sample budget on architecture persists. In particular, for ϵp>09 the ReLU bound still decays with U0, while the U1 bound does not, yielding the stronger instability phenomenon described above. Non-asymptotic comparison requires the full statement, as the remaining factors trade off in either direction depending on parameters.
Limitations and open questions
The paper concedes several restrictions. The choice of first-layer bias U2 introduces an undesirable dependence on U3 in the final bound; an alternative scaling U4 could remove this dependence but leads to more involved estimates and is explicitly deferred to future work. Additionally, the intermediate slope U5 may fall below one, increasing the threshold required to enter the basin of attraction of U6, which weakens the constants. The quantitative guarantees also require technical inequalities among U7, U8, U9, depth allocation tanh0, and tanh1 to hold; whether the bounds are sharp, or extend to other sigmoidal activations (GELU, logistic) or to noisy samples, remains open.
Conclusion
This paper establishes that finite-precision sampling complexity limitations previously known for ReLU networks persist for tanh2 networks: under finite-precision arithmetic, no adaptive randomized algorithm based on polynomially many samples can achieve better than Monte Carlo rate accuracy, and uniform recovery is unstable regardless of sample placement. The key methodological contribution is a fixed-point-based mechanism for constructing effectively localized bumps from real-analytic activations, demonstrating that finite precision can substitute exactly for the compact support and homogeneity properties unavailable in the sigmoidal setting.