ArticleslgStudy

mathematics

Universal approximation theorem

Universal approximation theorem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Universal approximation theorem rather than just read about it. In short: In the field of machine learning, the universal approximation theorems (UATs) state that neural networks with a certain structure can, in principle, approximate any continuous function to any desired degree of accuracy. These theorems provide a mathematical justification for using neural networks, assuring researchers that a sufficiently large or deep network can model the complex, non-linear relationships often fou…

Key takeaways

  • Universal approximation theorem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Universal approximation theorem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Universal approximation theorem from memory before moving on to harder problems.

Reference excerpt

In the field of machine learning, the universal approximation theorems (UATs) state that neural networks with a certain structure can, in principle, approximate any continuous function to any desired degree of accuracy. These theorems provide a mathematical justification for using neural networks, assuring researchers that a sufficiently large or deep network can model the complex, non-linear relationships often found in real-world data. The best-known version of the theorem applies to feedforward networks with a single hidden layer. It states that if the layer's activation function is non-polynomial (which is true for common choices like the sigmoid function or ReLU), then the network can act as a "universal approximator". Universality is achieved by increasing the number of neurons in the hidden layer, making the network "wider". Other versions of the theorem show that universality can also be achieved by keeping the network's width fixed but increasing its number of layers, making it "deeper". These are existence theorems. They guarantee that a network with the correct structure exists, but they do not provide a method for finding the network's parameters (training it), nor do they specify exactly how large the network must be for a given function. Finding a suitable network remains a practical challenge that is typically addressed with optimization algorithms like backpropagation.

Setup Artificial neural networks are combinations of multiple simple mathematical functions that implement more complicated functions from (typically) real-valued vectors to real-valued vectors. The spaces of multivariate functions that can be implemented by a network are determined by the structure of the network, the set of simple functions, and its multiplicative parameters. A great deal of theoretical work has gone into characterizing these function spaces. Most universal approximation theorems are in one of two classes. The first quantifies the approximation capabilities of neural networks with an arbitrary number of artificial neurons ("arbitrary width" case) and the second focuses on the case with an arbitrary number of hidden layers, each containing a limited number of artificial neurons ("arbitrary depth" case). In addition to these two classes, there are also universal approximation theorems for neural networks with bounded number of hidden layers and a limited number of neurons in each layer ("bounded depth and bounded width" case).

History

Arbitrary width The first results concerned the arbitrary width case. In March 1988, George Cybenko gave a rigorous mathematical proof of the approximation properties of sigmoidal networks. Later that year in May 1988, Ken-ichi Funahashi published the ATR Technical Report "On the Approximate Realization of Continuous Mappings by Neural Networks". In this report, he reinterpreted the Kolmogorov–Arnold–Sprecher theorem from the perspective of neural networks and showed that the four-layer neural network proposed by Rumelhart, Hinton, and Williams, with sigmoid activation functions in its hidden layers, can approximate arbitrary continuous mappings to any desired degree of accuracy. He further introduced the concept of sigmoid-like functions, a generalization of sigmoid activation functions, and proved that the same approximation property holds for this broader class. The result was also extended to multi-output mappings. The report additionally cited the speech-recognition work of Waibel et al. as a contemporary application of neural networks. In May 1989, starting from the integral representation formula proposed by Irie and Miyake, Funahashi proved that a three-layer feedforward neural network (i.e., a network with a single hidden layer), using sigmoid activation functions in the hidden layer and linear activation functions in the input and output layers, can approximate arbitrary continuous mappings with arbitrary accuracy in the topology of uniform convergence. He further proved by mathematical induction that the same approximation property holds for arbitrary k-layer feedforward neural networks with k≥3. He also noted that, although a single hidden layer is theoretically sufficient for universal approximation, deeper networks may realize the same mappings with fewer hidden units, identifying this as an important topic for future investigation. In July 1989, Kurt Hornik, Maxwell Stinchcombe, and Halbert White generalized the class of activation functions considered by Funahashi to include unbounded, non-monotonic, discontinuous, and measurable activation functions, and presented an alternative proof based on the Stone–Weierstrass theorem. In December 1989, George Cybenko referred to the works of Funahashi and Hornik and presented a general proof based on the Hahn–Banach theorem and the Riesz representation theorem. He also introduced the concept of a discriminatory function, providing a broader theoretical framework for sigmoid-type activation functions. Collectively, these results established the universal approximation capability of feedforward neural networks. Hornik also showed in 1991 that it is not the specific choice of the activation function but rather the multilayer feed-forward architecture itself that gives neural networks the potential of being universal approximators. Moshe Leshno et al. in 1993 and later Allan Pinkus in 1999 showed that the universal approximation property is equivalent to having a nonpolynomial activation function.

Arbitrary depth The arbitrary depth case was also studied by a number of authors such as Gustaf Gripenberg in 2003, Dmitry Yarotsky, Zhou Lu et al in 2017, Boris Hanin and Mark Sellke in 2018 who focused on neural networks with ReLU activation function. In 2020, Patrick Kidger and Terry Lyons extended those results to neural networks with general activation functions such, e.g. tanh or GeLU. One special case of arbitrary depth is that each composition component comes from a finite set of mappings. In 2024, Cai constructed a finite set of mappings, named a vocabulary, such that any continuous function can be approximated by compositing a sequence from the vocabulary. This is similar to the concept of compositionality in linguistics, which is the idea that a finite vocabulary of basic elements can be combined via grammar to express an infinite range of meanings.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Universal approximation theorem

Start with the simplest possible case. Write down what Universal approximation theorem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Universal approximation theorem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Universal approximation theorem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Universal approximation theorem

In research
Universal approximation theorem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Universal approximation theorem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Universal approximation theorem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Approximation theory, Artificial neural networks, Network architecture, so understanding it makes those chapters shorter.
In everyday life
Look for Universal approximation theorem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Universal approximation theorem” →

How to study Universal approximation theorem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Universal approximation theorem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Universal approximation theorem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Universal approximation theorem in simple terms?

In the field of machine learning, the universal approximation theorems (UATs) state that neural networks with a certain structure can, in principle, approximate any continuous function to any desired degree of accuracy. These theorems provide a mathematical justification for using neural networks…

Why does Universal approximation theorem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Universal approximation theorem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Universal approximation theorem.

Tags

  • Approximation theory
  • Artificial neural networks
  • Network architecture
  • Networks
  • Theorems in mathematical analysis

Keep exploring