Md. Asif Uddin
I.3.X07

Why the theorem says non-polynomial

counterexample▲▲△

The second assumption of this chapter is that the activation is non-polynomial — the exact hypothesis of I.3.T2. Show that a polynomial activation fails universal approximation, by identifying precisely what such a network can compute. Then state the smallest change that restores universality.

Hint

What is a polynomial of a polynomial?

Solution

The claim. Let φ\varphi be a polynomial of degree kk. Then a network of depth LL with activation φ\varphi computes a polynomial of degree at most kLk^{L} in its inputs — and only polynomials of that bounded degree.

Proof. Induct on depth. A linear layer applied to a polynomial of degree mm gives a polynomial of degree mm, since it is a linear combination. Applying φ\varphi, of degree kk, to a polynomial of degree mm gives degree kmkm. Starting from degree 11 at the input, after LL layers the degree is at most kLk^{L}. \blacksquare

Why that defeats universality. The set of polynomials of degree kL\le k^{L} is a finite-dimensional vector space — for dd inputs its dimension is (kL+dd)\binom{k^L + d}{d}, a finite number. But the continuous functions on a compact set form an infinite-dimensional space. A finite-dimensional subspace is closed and nowhere dense in it, so there are continuous functions at a bounded positive distance from everything the network can compute, no matter how many units it has.

Concretely. With φ(z)=z2\varphi(z) = z^2 and L=2L = 2, the network computes only polynomials of degree 4\le 4. Ask it to approximate sin(10x)\sin(10x) on [0,2π][0, 2\pi] to within 0.10.1: impossible, because the best degree-4 polynomial approximation to sin(10x)\sin(10x) on that interval has error close to 11. Adding a million hidden units does not help — width increases the number of degree-4 polynomials available, not the degree.

Contrast with a non-polynomial. ReLU is piecewise linear, and by I.3.X03 a ReLU network is piecewise linear with a number of pieces growing exponentially in depth. Piecewise-linear functions are dense in the continuous functions on a compact set, so the obstruction disappears. Sigmoid, tanh and GELU are all non-polynomial too — indeed all three are transcendental.

The smallest change that restores universality. Add a single non-polynomial element. Even one layer of ReLU somewhere in an otherwise-polynomial network breaks the degree argument, because the induction requires every layer to be polynomial. This is the same structural point as I.3.B05’s Where this breaks: these collapse theorems are chains, and one non-conforming link is enough.

Why the hypothesis is stated the way it is. Hornik’s 1991 result is often quoted as needing a “sigmoidal” activation, which is what Cybenko proved in 1989. The sharper statement — non-polynomial is necessary and sufficient — is Leshno, Lin, Pinkus and Schocken (1993). It is worth knowing the sharp version, because it explains why ReLU works despite being neither bounded nor sigmoidal.

Draws on