A Universal Uniform Approximation Theorem for Neural Networks

Olivier Bournez, Johanne Cohen, Adrian WurmMFCS 2025

TL;DR

This paper introduces a single, fixed neural network architecture capable of uniformly approximating any computable function with arbitrary precision. This is achieved by bridging computability theory and neural network approximation, demonstrating a universal approximator that is also "effective" and works for all computable functions, not just continuous ones.

What Problem Does This Paper Address?

The field of deep learning has long relied on the Universal Approximation Theorem, which states that a neural network with a single hidden layer and a non-polynomial activation function can approximate any continuous function on a compact domain to any desired precision. However, this theorem has limitations: it doesn't guarantee that the same network can approximate all such functions (it's not universal in that sense), nor does it address the approximation of computable functions, which are a broader class than continuous functions. Furthermore, the "effectiveness" or "computability" of the approximation process itself has been a separate concern. This paper tackles these gaps by proving the existence of a single, fixed neural network architecture that can uniformly approximate any computable function, and importantly, this approximation is itself "effective" or computable.

Methods

The core of the paper's contribution lies in its constructive proof that a specific, fixed neural network architecture (a recurrent network with ReLU activations) can act as a universal approximator for computable functions. The key technical innovation involves developing a method to encode arbitrary computable functions into a format that a neural network can process, and then decode the network's output back into a function value. This is achieved by:

  • Bridging Computability and Neural Networks: The authors leverage existing results on simulating Turing machines with piecewise affine functions and then implement these simulations using ReLU networks.
  • Encoding Functions: A crucial step is the development of a method to encode a function's description (its "name") and its input into a format suitable for neural network processing. This involves using "1,3-quadradics," a specific type of number representation that allows for robust encoding and decoding.
  • Recurrent Network Construction: A fixed recurrent neural network architecture is designed. This network takes the encoded function description and the input value, and through repeated application (recurrences), produces an approximation of the function's output.
  • Uniformity in Computability: The network's design ensures that the approximation is not only precise (uniform norm sense) but also "effective" or "computable," meaning the process of approximation itself can be carried out algorithmically. The number of recurrences needed is related to the computational complexity of the function being approximated.

Datasets

Not discussed in the paper. The paper focuses on theoretical results about function approximation and computability, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • A Single Network for All Computable Functions: The most striking insight is the existence of a single, fixed neural network architecture that can uniformly approximate any computable function. This is a significant step beyond traditional universal approximation theorems.
  • Bridging the Gap: The paper successfully connects the abstract world of computability theory (Turing machines, computable functions) with the practical domain of neural network approximation, showing how these seemingly disparate fields are deeply intertwined.
  • Effective Approximation: The theorem guarantees not just approximation, but effective approximation, meaning the process itself is computable. This addresses a crucial aspect of theoretical computer science.
  • Complexity-Aware Approximation: The number of network recurrences required for approximation is shown to be polynomially related to the complexity of the function being approximated, providing a direct link between network depth and function complexity.
  • ReLU Networks as Universal Simulators: The work reinforces the idea that ReLU networks, when used in a recurrent or deep manner, are powerful computational primitives capable of simulating complex algorithms.

Key Results

  • Theorem 2 & 3: Establishes the existence of a fixed ReLU neural network (with a width of at most 12) that can uniformly approximate any CPAF (continuous piecewise affine with rational coefficients) function and any continuous function, respectively, with arbitrary precision. The number of recurrences ($T$) is polynomially related to the complexity of the function and the precision parameter.
  • Theorem 4: Extends this to show that for $t$-computable CPAF functions, the number of recurrences ($T$) is polynomially related to $t$ and the precision parameter, directly linking network depth to computational complexity.
  • Width Efficiency: The paper demonstrates that simulating Turing machines can be achieved with a ReLU network of width 3 (Theorem 23), although the overall universal construction requires a larger width (12) due to encoding/decoding mechanisms.

Limitations and Future Work

  • Width Minimality: While the paper achieves universality with a fixed architecture, the width of 12 for the universal construction is not claimed to be minimal. The authors pose the question of whether universality can be achieved with a smaller width, specifically width 2, which remains an open problem.
  • Activation Functions: The results are primarily focused on ReLU activation functions. The paper briefly discusses that other "piecewise linear" activation functions might also work, but a broader investigation into other activation functions is suggested.
  • Practical Applicability: The authors acknowledge that these results are theoretical and may not directly translate into practical tools for training very deep networks or large language models, which would require a different focus.
  • Encoding/Decoding Bottleneck: The encoding and decoding mechanisms currently require a width of 12, which is larger than the width needed for the Turing machine simulation itself (width 3). Finding a more efficient encoding/decoding mechanism is a natural direction for future work.

Summary updated

BibTeX
@inproceedings{bournez2025universal,
  author = {Olivier Bournez and Johanne Cohen and Adrian Wurm},
  title = {{A Universal Uniform Approximation Theorem for Neural Networks}},
  booktitle = {MFCS},
  year = {2025},
  doi = {10.4230/lipics.mfcs.2025.29},
}
Figure