What does the universal approximation theorem say for networks with one hidden layer, what does it not guarantee, and why are deep networks used anyway?
Deep learning, Theory of neural networks
Level L4 Advanced. Length Medium. Nature Th Theoretical.
What's being asked
Whether you can state the theorem with its conditions, and separate existence from learnability, efficiency and generalisation.
Key idea
For any continuous on a compact (closed and bounded) set and any , there is a network with , i.e. the error is below everywhere on . Here is the number of hidden units, and the activation must not be a polynomial (Cybenko 1989 for sigmoids; Leshno et al. 1993 in general).
Steps
- State the theorem with its three conditions: a continuous target, a compact domain and a non-polynomial activation (sigmoid and ReLU both qualify).
- Give the 1-D ReLU intuition. With , is a triangular bump. Sums of bumps build any piecewise-linear approximation.
- Say what it does not tell you: how large must be (it can grow exponentially with ); that gradient descent will find the weights; or that the fitted network generalises from finite data. It is a pure existence result.
- Why depth: some functions need only polynomially many units in a deep network, but exponentially many at a shallower depth (Telgarsky 2016; Eldan and Shamir 2016). Depth also builds features in a hierarchy, which matches the structure of images and language.
Common mistakes
- Saying "neural networks can learn any function". The theorem is about representation, not learning.
- Leaving out compactness or continuity.
- Saying any activation works. A polynomial activation does not.
How long your answer should be
About 3 minutes: the statement, one picture and three limits.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: Why is L2 regularisation not the same as weight decay when training with Adam, and what does AdamW change?
Next in Deep learning: Why can a deterministic autoencoder not generate realistic new images by sampling from its latent space, and how does the VAE’s KL term fix this? What is posterior collapse in VAEs, when does it happen, and how do -VAE and KL annealing address it?