Deep Network Approximation: Achieving Arbitrary Accuracy with Fixed Number of Neurons

Shijun Zhang, Zuowei Shen, Haizhao Yang

TL;DR

Standard universal approximation theorems dictate that neural networks must grow infinitely wide or deep to drive approximation error to zero. This paper overturns that conventional wisdom by proving that a feed-forward network with a fixed architecture—width $36d(2d + 1)$ and depth 11—can approximate any multivariate continuous function to arbitrary precision using a simple, closed-form, and computable activation function called the Elementary Universal Activation Function (EUAF).

What Problem Does This Paper Address?

Classical Universal Approximation Theorems (such as those by Cybenko, Hornik, and Pinkus) guarantee that feed-forward neural networks can approximate any continuous function on a compact domain, provided the network has enough neurons. Consequently, to make the error $\varepsilon \to 0$, standard ReLU or Sigmoid networks require width or depth to scale to infinity.

Previous attempts to achieve universal approximation with a fixed network size typically relied on the Kolmogorov Superposition Theorem (KST). However, those prior constructions suffered from major flaws:

  1. The required activation functions were either uncomputable and defined without closed-form expressions (e.g., Maiorov and Pinkus, 1999).
  2. The network activation functions depended directly on the specific target function.
  3. Multiple complex activations were needed without an explicit characterization of how width and depth scaled with dimension $d$.

The authors set out to determine whether a fixed-size network can achieve arbitrary accuracy using a single, target-independent, computationally efficient, and continuous activation function.

Methods

The authors introduce the Elementary Universal Activation Function (EUAF), $\sigma(x)$, defined as: $$\sigma(x) = \begin{cases} \sigma_1(x) & \text{for } x \in [0, \infty), \\ \sigma_2(x) & \text{for } x \in (-\infty, 0), \end{cases}$$ where $\sigma_1(x) = |x - 2\lfloor\frac{x+1}{2}\rfloor|$ is a periodic triangular wave with period 2, and $\sigma_2(x) = \frac{x}{|x| + 1}$ is the standard softsign function.

Key technical machinery used in the proof includes:

  • Kolmogorov Superposition Theorem (KST): Used to reduce multivariate continuous functions on $[a, b]^d$ into outer and inner univariate functions.
  • Algebraic Reproduction via Softsign: By carefully composing affine transforms with the softsign component on negative intervals, the network exactly constructs $x^2$ locally. Using the polarization identity $xy = \frac{1}{2}((x+y)^2 - x^2 - y^2)$, it reproduces multiplication locally.
  • Dense Windings & Diophantine Approximation: Using transcendental numbers (such as $\pi$) and properties of irrational flows on a torus, the authors prove that a single scalar parameter $w$ can drive the vector $[\sigma_1(\frac{w}{\pi+1}), \dots, \sigma_1(\frac{w}{\pi+K})]^T$ dense in $[0, 1]^K$, enabling point-fitting of arbitrary sequences without changing network architecture.
  • Smoothing & Sigmoidal Extensions: The authors demonstrate that repeated indefinite integration transforms EUAF into arbitrary $C^s$ smooth or strictly sigmoidal universal activation functions.

Datasets

  • Synthetic 2D Regression Benchmark: An oscillatory function $f(x_1, x_2) = 0.6\sin(8x_1) + 0.4\sin(16x_2)$ on $[0, 1]^2$, evaluated with $10^6$ training samples and $10^5$ test samples.
  • Fashion-MNIST: Standard benchmark comprising 60,000 training and 10,000 testing $28 \times 28$ grayscale images across 10 classes.

Key Insights and Ideas

  • Fixed Size Sufficiency: A fixed network with width $36d(2d+1)$, depth 11, and $\mathcal{O}(d^2)$ non-zero parameters ($5437(d+1)(2d+1)$) is dense in $C([a, b]^d)$ and $L^p([a, b]^d)$ for $p \in [1, \infty)$.
  • Zero Error for Classification: Adding just one layer (depth 12) allows the network to exactly represent piecewise-constant classification functions over pairwise-disjoint closed sets, meaning the theoretical minimum approximation error is 0.
  • Periodic Point Encoding: The combination of an irrational scale factor with a periodic wave allows a single parameter to "index" an arbitrary number of function values, collapsing the need for expanding network width.

Key Results

  • Function Fitting: In an 80-neuron, 4-hidden-layer fully connected network (FCNN), replacing ReLU with EUAF reduced the test Mean Squared Error (MSE) from $3.53 \times 10^{-5}$ to $7.56 \times 10^{-6}$, and the Maximum Loss from $3.69 \times 10^{-2}$ to $1.48 \times 10^{-2}$.
  • Image Classification: On Fashion-MNIST, introducing just one EUAF neuron/channel per layer into a small CNN (while keeping the rest as ReLU) outperformed a pure-ReLU baseline, improving best test accuracy from $93.31\%$ to $93.39\%$ and final 100-epoch average accuracy from $93.27\%$ to $93.35\%$.

Limitations and Future Work

  • The "Curse of Memory": While the parameter count is small and fixed, driving approximation error $\varepsilon \to 0$ forces internal parameters to grow arbitrarily large, demanding exponentially high machine precision.
  • Expressivity vs. Trainability: The theoretical construction proves representation capacity, not learnability. Optimization via standard first-order algorithms (e.g., Adam/SGD) on highly oscillatory loss surfaces remains challenging.
  • Generalization Trade-offs: High-capacity activations like EUAF can easily overfit sparse training data; future work must focus on hybrid networks, regularizers, and understanding generalization bounds for non-monotonic, periodic activations.

Summary updated

BibTeX
@article{zhang2022deep,
  author = {Shijun Zhang and Zuowei Shen and Haizhao Yang},
  title = {{Deep Network Approximation: Achieving Arbitrary Accuracy with Fixed Number of Neurons}},
  journal = {J. Mach. Learn. Res.},
  year = {2022},
  url = {https://openreview.net/forum?id=gSdFx2sV6Z},
}
Figure