1 Historical Background

1.1 Pioneering work in the 1980s

The roots of the universal approximation theorem lie in the mid‑1980s, when researchers began to rigorously analyse the expressive capacity of multi‑layer perceptrons. Prior to this, neural networks were primarily studied from a connectionist perspective, with limited formal understanding of their representational power. The emergence of backpropagation and the revival of interest in feedforward architectures spurred a series of theoretical breakthroughs that demonstrated the surprising ability of shallow networks to approximate arbitrary continuous functions.

1.2 Key contributors: Cybenko, Hornik, Stinchcombe, White

George Cybenko (1989) published the first widely cited proof for sigmoidal activation functions, using functional analysis and the Hahn–Banach theorem. Independently, Kurt Hornik, Maxwell Stinchcombe, and Halbert White (1989, 1990) provided more general results, showing that multilayer feedforward networks with a single hidden layer can approximate any continuous function to arbitrary accuracy as long as the activation function is non‑constant, bounded, and continuous. Their work established that the approximation property is not tied to a specific activation shape but to broad functional classes.

1.3 Relationship to Kolmogorov–Arnold representation theorem

A precursor to neural network universality is the Kolmogorov–Arnold representation theorem (1957), which states that any continuous function of several variables can be expressed as a superposition of continuous functions of one variable and addition. While this theorem involves a two‑layer structure, it requires non‑smooth inner functions and is not directly implementable by practical neural networks. Nevertheless, it inspired early discussions about the minimal depth needed for universal representation and highlighted the conceptual link between function composition and network architectures.

2 Statement of the Theorem

2.1 Formal definition for single‑hidden‑layer networks

Let \( \phi: \mathbb{R} \to \mathbb{R} \) be an activation function. A feedforward neural network with one hidden layer containing \( N \) neurons computes functions of the form \[ f_N(x) = \sum_{i=1}^{N} a_i \, \phi(w_i \cdot x + b_i), \] where \( x \in \mathbb{R}^d \), \( w_i \in \mathbb{R}^d \) are weight vectors, \( b_i \in \mathbb{R} \) biases, and \( a_i \in \mathbb{R} \) output weights. The universal approximation theorem asserts that for any continuous function \( g \) defined on a compact subset \( K \subset \mathbb{R}^d \) and for any \( \varepsilon > 0 \), there exists a network of this form (with finite \( N \)) such that \[

\sup_{x \in K}f_N(x) - g(x)< \varepsilon.

\]

2.2 Activation function conditions

2.2.1 Continuous sigmoidal activation

A continuous sigmoidal activation function is defined as a function \( \sigma: \mathbb{R} \to \mathbb{R} \) that is non‑decreasing, satisfies \( \lim_{t \to -\infty} \sigma(t) = 0 \) and \( \lim_{t \to +\infty} \sigma(t) = 1 \), and is continuous. Cybenko’s original proof covered such sigmoids (e.g., the logistic function or the hyperbolic tangent with appropriate scaling).

2.2.2 Bounded and discriminatory activation

Hornik et al. showed that the essential conditions for universality are that the activation function be non‑constant, bounded, and continuous. A broader condition used in later analyses is that the activation be *discriminatory*: for a finite signed Borel measure \( \mu \) on \( \mathbb{R}^d \), if \[ \int \phi(w \cdot x + b) \, d\mu(x) = 0 \quad \text{for all } w, b, \] then \( \mu = 0 \). Any bounded, continuous, non‑constant activation satisfies this property, as does the sigmoid.

2.2.3 Non‑polynomial activation for ReLU variants

The rectified linear unit (ReLU), defined as \( \phi(t) = \max(0, t) \), is unbounded and not discriminatory in the above sense. Nevertheless, variants of the universal approximation theorem hold for ReLU networks, often requiring the activation to be *non‑polynomial* (and continuous). For example, with ReLU activations, a single hidden layer can approximate any continuous function on a compact set, provided the network is allowed to use biased connections and sufficiently many neurons.

2.3 Compact domain assumptions

The theorem requires the domain to be a compact subset of \( \mathbb{R}^d \), typically a closed and bounded set (e.g., a hypercube or a ball). This assumption is crucial because uniform approximation on non‑compact sets may require infinitely many neurons. Compactness ensures that the function is uniformly continuous and that the network’s parameters can be adjusted to cover the entire region of interest.

2.4 Approximation in the supremum norm

The metric used is the supremum (or uniform) norm \( \| f - g \|_\infty = \sup_{x \in K}f(x) - g(x)\). This is a strong notion of approximation: the network must be within \( \varepsilon \) of the target at *every* point of the compact set. The theorem guarantees existence but offers no bound on the required number of neurons.

3 Proofs and Techniques

3.1 Hahn–Banach and Riesz representation approach (Cybenko)

Cybenko’s proof proceeds by contradiction. Assume the set of functions computable by a single‑hidden‑layer network with sigmoidal activation is not dense in \( C(K) \). Then, by the Hahn–Banach theorem, there exists a non‑zero bounded linear functional that vanishes on the network’s function class. The Riesz representation theorem identifies such a functional with a signed measure. Cybenko then shows that if this measure annihilates all ridge functions of the form \( \sigma(w \cdot x + b) \), the discriminatory property of the sigmoid forces the measure to be zero, a contradiction.

3.2 Algebraic and density arguments (Hornik)

Hornik and colleagues used the Stone–Weierstrass theorem indirectly. They first proved that the set of networks with a single hidden layer forms an algebra (closed under multiplication) if the activation function is continuous, bounded, and non‑constant. Then, by showing that this algebra separates points and contains constant functions, they invoked the Stone–Weierstrass theorem to conclude density in \( C(K) \). This approach requires the activation to be such that the network’s function class is indeed an algebra, which holds for many common activations.

3.3 Stone–Weierstrass theorem for neural networks

A direct application of the Stone–Weierstrass theorem is possible when the activation function can generate a family of functions that forms a unital subalgebra. For example, with a continuous sigmoidal activation, one can construct neural networks that approximate both addition and multiplication, but the algebra property is not automatic. Hornik’s work explicitly verified that the closure of the network outputs under pointwise addition and multiplication holds because the activation can be scaled and shifted to produce constant functions and to combine features. More recent proofs for ReLU networks often rely on piecewise linear interpolation arguments rather than pure algebra.

4 Extensions and Variants

4.1 Multi‑layer architectures

The theorem extends naturally to networks with more than one hidden layer. In fact, deeper architectures can achieve the same approximation guarantee with potentially fewer total parameters. For instance, a two‑hidden‑layer network with a ReLU activation can represent any piecewise linear function, and by increasing depth one can improve approximation efficiency for certain function classes (e.g., compositional functions).

4.2 Bounded depth versus bounded width

A dual line of research asks: if depth is fixed (e.g., one hidden layer), how many neurons are necessary for approximation? And conversely, if the width is bounded (e.g., a fixed number of neurons per layer), what depth is needed? Works in the 2010s show that a network with bounded width (at least \( d+1 \) neurons per layer) can approximate any continuous function if depth is allowed to grow arbitrarily. This is sometimes called the “depth‑width trade‑off”.

4.3 Approximation for measurable functions

While the classical theorem covers continuous functions, extensions exist for measurable functions (under appropriate topology). For example, a feedforward network can approximate any Borel measurable function in measure or in \( L^p \) norm, provided the activation function is non‑constant and bounded. This result uses the fact that continuous functions are dense in \( L^p \), combined with the universal approximation of continuous functions.

4.4 Rates of approximation and width requirements

4.4.1 Exponential width for ReLU networks

For ReLU activations with a single hidden layer, the number of neurons required to achieve an \( \varepsilon \)‑approximation can grow exponentially in the input dimension. This negative result highlights the curse of dimensionality: shallow networks need exponentially many parameters to approximate high‑dimensional functions to a given accuracy.

4.4.2 Polynomial width for deep networks

In contrast, deep ReLU networks (with depth growing polynomially in \( 1/\varepsilon \)) can sometimes approximate smooth functions with a polynomial number of parameters. For example, functions with compositional structure can be efficiently represented by deep networks, avoiding the exponential blow‑up seen in shallow networks. These results rely on theoretical constructions that mimic numerical schemes like finite elements or wavelet expansions.

5 Implications in Applied Mathematics

5.1 Justification for neural network‑based function approximation

The universal approximation theorem provides a foundational reason to believe that neural networks are capable of approximating any reasonable function, given sufficient capacity. This reassurance underpins the widespread use of neural networks in regression, classification, and function estimation tasks, where the target relationship is assumed to be continuous but unknown.

5.2 Application in solving differential equations (PINNs)

Physics‑informed neural networks (PINNs) leverage the approximation theorem to solve partial differential equations. By parameterising the solution as a neural network and incorporating the residual of the PDE and boundary conditions into the loss function, one can find approximate solutions. The theorem guarantees that a minimal configuration exists, although practical training may require careful tuning.

5.3 Relation to statistical learning and nonparametric regression

In nonparametric statistics, the universal approximation theorem shows that neural networks are a valid class of function estimators with the property of being dense in \( C(K) \). Coupled with regularisation or early stopping, neural networks can achieve consistency (as the sample size grows) in regression problems, similar to kernels or splines but with the ability to automatically learn relevant features.

6 Limitations and Open Problems

6.1 Practical trade‑offs: approximation vs. generalization

The theorem is non‑constructive and assumes infinite precision. In practice, a network that is wide enough to approximate a function perfectly may overfit the training data, harming generalisation. A key open question is how to balance approximation power (large capacity) with statistical efficiency (small capacity) in a principled way.

6.2 The curse of dimensionality

While the theorem asserts *existence* of a network for any continuous function on a compact set, the required number of neurons may grow exponentially with the input dimension unless the target function has special structure (e.g., low intrinsic dimensionality, smoothness, or compositionality). Overcoming the curse of dimensionality remains a central challenge.

6.3 Non‑constructive nature of the theorem

The existence proof does not describe how to find the weights and biases. Training neural networks involves non‑convex optimisation, and the theorem offers no guarantees that gradient‑based methods will converge to a near‑optimal approximator. Understanding when and why optimisation succeeds is an active area of research.

6.4 Optimal network width and depth

The exact minimal number of neurons or layers needed to approximate a given function class is still not fully understood. For example, while lower bounds exist for ReLU networks approximating continuous functions, tight upper bounds for specific function classes (e.g., Lipschitz, smooth) are often incomplete. Determining the optimal architecture for a given approximation problem is an open problem with both theoretical and practical significance.