Math 2.0

Approximations and expansions Density theorems Theorem

Universal approximation theorem

Builds on Uniform approximationDense setCompact setContinuous function

Statement

Let σ ⁣:ℝ→ℝ\sigma \colon \R \to \R be continuous, and let n≥1n \ge 1. Let 𝒩σ\mathcal{N}_\sigma be the set of all functions g ⁣:ℝn→ℝg \colon \R^n \to \R of the form g(x)=∑i=1Nci σ(wi⋅x+bi).g(x) = \sum_{i=1}^{N} c_i \, \sigma(w_i \cdot x + b_i). Here N≥1N \ge 1, ci,bi∈ℝc_i, b_i \in \R and wi∈ℝnw_i \in \R^n. These are the functions computed by a neural network with one hidden layer and activation σ\sigma. Then the following are equivalent.

  1. For every compact set K⊆ℝnK \subseteq \R^n, the restrictions of the functions in 𝒩σ\mathcal{N}_\sigma to KK are dense in C(K)C(K) with the supremum norm.
  2. σ\sigma is not a polynomial.

Remarks

The idea of the proof: if σ\sigma is a polynomial of degree dd, every g∈𝒩σg \in \mathcal{N}_\sigma is a polynomial of degree at most dd. These polynomials do not form a dense set. Conversely, by smoothing one may assume σ\sigma is smooth; then difference quotients in the weight show that t↦tkσ(k)(wt+b)t \mapsto t^k \sigma^{(k)}(w t + b) is a limit of elements of 𝒩σ\mathcal{N}_\sigma in one variable. Since σ\sigma is not a polynomial, for each kk there is a bb with σ(k)(b)≠0\sigma^{(k)}(b) \ne 0, so all monomials tkt^k are limits, and the Weierstrass theorem applies in one variable. The case of nn variables reduces to one variable because the ridge functions h(w⋅x)h(w \cdot x) span a dense set in C(K)C(K).

Example: the logistic sigmoid σ(t)=1/(1+e−t)\sigma(t) = 1 / (1 + e^{-t}) and the rectifier σ(t)=max⁡(0,t)\sigma(t) = \max(0, t) are not polynomials. So networks with one hidden layer and either activation give uniform approximations of every continuous function on every compact set.

The theorem says nothing about how large NN must be for a given accuracy, and it does not say how to find the weights. The sigmoid case was proved by George Cybenko in 1989, and the characterization for continuous σ\sigma by Moshe Leshno, Vladimir Lin, Allan Pinkus and Shimon Schocken in 1993.

Going deeper

For a student

This is a density theorem in the same family as the Weierstrass and Stone–Weierstrass theorems, with ridge functions σ(w⋅x+b)\sigma(w \cdot x + b) as building blocks. It justifies neural networks as a flexible class of approximants but gives no rates. Rates depend on the smoothness of the target and on the dimension, as in classical approximation theory. Related results treat deep networks of bounded width and approximation in LpL^p norms.

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Compact set concept
  2. Continuous function concept
  3. Dense set concept
  4. Uniform approximation concept
  5. Universal approximation theorem statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Universal_approximation_theorem
About this page
TagHSRNND3TG5
URIm2://HSRNND3TG5
Kindstatement, theorem
WritingW0 stub
MSC41A30, 68T07, 41A63
StatusThis copy of the site has no build data. Run m2 status HSRNND3TG5.
AboutUniform approximation
UsesUniform approximation, Dense set, Compact set, Continuous function
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.