arXiv:2609.35628cs.LGSep 2026

Manuscript Offprint

arXiv:2609.35628

Arbitrary-Accuracy Neural Approximation with Optimal Neuron Count and Near-Optimal Bit Complexity

Zilan Cheng, Li-Lian Wang, Zhongjian Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

We study the minimum number of hidden neurons required for arbitrary-accuracy approximation of multivariate Hölder-continuous functions on [0,1]d[0,1]^d and the associated encoding complexity. For d≥2d \geq 2, we construct a fixed, explicitly defined activation function for which a closed-form network with two hidden layers of widths dd and 1 achieves arbitrary accuracy in the uniform norm. We prove that d+1d+1 is the exact minimum total number of hidden neurons among standard feedforward networks with locally integrable activations and affine outputs. We further give a simpler construction using a single elementary activation that combines the floor and exponential functions. This construction requires three hidden layers of widths dd, 1, and 2, only two neurons above the minimum. If a skip connection is allowed, widths dd, 1, and 1 suffice. These constructions use explicit grid addressing and integer encoding of quantized function values. For a bounded α\alpha-Hölder class, they require O(ε−d/αlog⁡(1/ε))O(\varepsilon^{-d/\alpha} \log(1/\varepsilon)) bits, matching the metric-entropy lower bound up to a logarithmic factor.

1 Introduction

Universal approximation theorems [1, 5, 4, 9] state that feedforward networks with suitable nonpolynomial activations are dense in C([0,1]d)C([0,1]^d). In all classical statements, and in the quantitative theory that followed for ReLU networks [16, 17, 12, 15], the number of neurons grows without an explicit bound as the prescribed accuracy ε\varepsilon tends to zero. A different regime was opened by [11]: there is an analytic sigmoidal activation for which a two-hidden-layer network with widths 3d3d and 6d+36d+3 approximates every f∈C([0,1]d)f \in C([0,1]^d) to arbitrary accuracy, with the architecture fixed and only the parameters depending on ff and ε\varepsilon. Such fixed-size universal approximators have since been constructed with progressively fewer neurons and progressively more explicit activations [6, 3, 18, 14, 19]. In what follows, we list two questions that are left open by this line of work and will be answered here.

How few neurons suffice? The smallest known count is 3d+23d+2 hidden neurons, in two hidden layers of widths dd and 2d+22d+2, obtained by [6], whose activation is a specially constructed C∞C^\infty sigmoidal function whose existence is proved theoretically; [3] attain the same count and give an algorithmically computable construction. If different activations and skip connections are allowed, [18] obtained a smaller construction with d+2d+2 hidden neurons. No lower bound on the total number of hidden neurons was known beyond the trivial observation that the first layer must see the whole input. We construct and prove that the exact answer is d+1d+1: a

*Division of Mathematical Sciences, School of Physical and Mathematical Sciences, Nanyang Technological University, 637371, Singapore. Email: zilan001@e.ntu.edu.sg.

†^{\dagger}Division of Mathematical Sciences, School of Physical and Mathematical Sciences, Nanyang Technological University, 637371, Singapore. Email: lilian@ntu.edu.sg.

‡^{\ddagger}Corresponding author. Division of Mathematical Sciences, School of Physical and Mathematical Sciences, Nanyang Technological University, 637371, Singapore. Email: zhongjian.wang@ntu.edu.sg.

Table 1: Comparison of fixed-size universal approximators on [0,1]d[0,1]^d. Unless “two” is indicated, a single activation is used. *Optimal among all locally integrable activations for d≥2d\ge 2 (Theorem 3.4).

ReferenceNeuronsDepthActivationParameters
[11]9d+39d+322analytic sigmoidalexistence
[6]3d+23d+222C∞C^\infty sigmoidalexistence
[3]3d+23d+222computable C∞C^\infty sigmoidalexistence
[18]d+2d+2 (skip)33two: floor and analytic, elementaryexistence
O(d2)O(d^2)O(1)O(1)two: sin and arcsin, elementaryexistence
O(d2)O(d^2)O(1)O(1)C1C^1 sigmoidal, elementaryexistence
[19]≤396d(2d+1)\leq 396d(2d+1)1111C0C^0 triangular wave-softsign, elementaryexistence
Theorem 3.1d+1d+1 (optimal*)22explicit piecewise constantclosed-form
Theorem 4.1d+3d+333floor-exponential, elementaryclosed-form
Theorem 4.1d+2d+2 (skip)33floor-exponential, elementaryclosed-form

two-hidden-layer network of widths (d,1)(d,1) with a single explicit piecewise-constant activation and without any skip connection approximates every function in the Hölder class Hλ,Rα([0,1]d)\mathcal{H}_{\lambda,R}^{\alpha}([0,1]^d) (see (2)) to arbitrary L∞L^{\infty} accuracy (Theorem 3.1), and no feedforward network with at most dd hidden neurons can do so, whatever its depth and whatever locally integrable activation it uses (Theorem 3.4). The lower bound combines a rank argument for the first hidden layer with the fact, going back to [10, 11, 13], that sums of a fixed number of ridge functions are not dense; we give a direct proof valid for arbitrary locally integrable activations.

What does a small network cost? Fixed-size constructions pay for accuracy with the magnitude and precision of their parameters, a phenomenon [19] call the curse of memory but do not quantify. We therefore define the bit complexity of a network as the total binary length of its (rational) parameters and show that our constructions have worst-case bit complexity Θ(ε−d/αlog⁡(1/ε))\Theta(\varepsilon^{-d/\alpha}\log(1/\varepsilon)) over the Hölder class (Theorem 5.1). On the other hand, the classical Kolmogorov–Tikhomirov ε\varepsilon-entropy estimate [8] implies that, for any fixed architecture and activation, any family of rational-parameter networks approximating the entire class to accuracy ε\varepsilon must have worst-case bit complexity Ω(ε−d/α)\Omega(\varepsilon^{-d/\alpha}) (Proposition 5.2). Thus, our constructions are information-theoretically near-optimal, up to a logarithmic factor. For fixed-size networks, bit complexity therefore provides a natural measure of representational cost.

Elementary activations The activation attaining d+1d+1 neurons is explicit but intricate: it is a piecewise-constant function that lists, block by block, the digits of every integer in every base (see (10)). We therefore also consider a floor-exponential activation

σ(t)={2t−1,t<0,⌊t⌋,t≥0.(1)\sigma(t)=\begin{cases}2^{t}-1,& t<0,\\\left\lfloor t\right\rfloor,& t\geq0.\end{cases} \tag{1}

We call an activation elementary if it is given by a finite formula in finitely many standard functions; σ\sigma is elementary in this sense. Using σ\sigma as the single shared activation, we give an explicit three-hidden-layer network of widths (d,1,2)(d,1,2), hence d+3d+3 hidden neurons, and a variant of widths (d,1,1)(d,1,1) with one skip connection, hence d+2d+2 hidden neurons (Theorem 4.1). All parameters of both networks are rational and given in closed form, which allows exact-arithmetic verification (Section 6); to our knowledge, no earlier fixed-size construction has this property. Elementary activations have appeared in fixed-size constructions recently [18, 19], but there the function-dependent weights are obtained from the density of an irrational winding on the torus and are not given in closed form; [18] notes that computing the weight is practically infeasible even for small problems. Moreover, those earlier constructions need O(d2)O(d^2) neurons when a single elementary activation is used. Table 1 summarizes the results.

We summarize our main contributions as follows.

  1. Optimal neuron count. We construct a network of widths (d,1)(d,1) with a single explicit activation ϱ\varrho in (10) and rational, closed-form parameters that approximates every f∈Hλ,Rα([0,1]d)f \in \mathcal{H}_{\lambda,R}^{\alpha}([0,1]^{d}) to arbitrary L∞L^{\infty} accuracy (Theorem 3.1), and we verify it in exact arithmetic (Section 6). We prove that d+1d+1 is the exact minimum neuron count, at any depth and for any locally integrable activation (Theorem 3.4). We further show that, at least for d=2d=2, no continuous activation attains this count in L∞L^{\infty} (Proposition E.1), whereas under the weaker LpL^{p} criterion, 1≤p<∞1 \leq p < \infty, a continuous modification of ϱ\varrho that we construct attains it for every d≥2d \geq 2 (Theorem E.3).

  2. Elementary activation. For the single elementary activation in (1), we give an explicit construction with d+3d+3 hidden neurons and no skip connections, together with a d+2d+2-neuron variant using one skip connection (Theorem 4.1). All parameters are rational and given in closed form, again permitting exact-arithmetic evaluation.

  3. Near-optimal storage complexity. We develop the bit complexity, defined as the total binary length of the rational network parameters, to quantify the information stored in a fixed-size network. Our constructions have worst-case bit complexity Θ(ε−d/αlog⁡(1/ε))\Theta(\varepsilon^{-d/\alpha}\log(1/\varepsilon)) (Theorem 5.1), which is information-theoretically optimal up to a logarithmic factor.

The rest of the paper is organized as follows: Section 2 introduces the main concepts and notation. Section 3 establishes the optimal hidden-neuron count by proving both sufficiency and necessity. Section 4 presents the constructions based on the elementary floor-exponential activation. Section 5 analyzes the bit complexity of the proposed networks. Section 6 provides exact-arithmetic numerical verification, and Section 7 discusses limitations and open problems. Additional proofs, extensions, numerical results, and figures are provided in the appendices.

References (30)