Proposition 1I.3.P0110 of 76 in the corpus
Non-linearity is what makes depth worth having.
Without an activation between them, stacked layers collapse into one. The activation is not a detail of the architecture — it is the reason the architecture has layers.
Demonstration
Proposition 1 showed that affine maps compose into affine maps. Insert any non-linear function between them and the collapse stops:
h = σ(W₁x + b₁)
y = W₂h + b₂
There is no W′ for which this equals W′x + b′, and the reason is worth
seeing geometrically rather than algebraically. Take the rectifier, relu(z) = max(0, z). Each unit divides input space with a hyperplane and zeroes
everything on one side of it. A layer of k units draws k hyperplanes, and
the space is carved into regions; inside each region the network is affine, and
the pieces are stitched together at the boundaries.
Depth compounds this. A second layer draws its hyperplanes in the space the first has already folded, so the regions multiply rather than add. This is the sense in which depth is efficient: some functions need exponentially more units to express with one hidden layer than with several.
The universal approximation theorem is often quoted here and usually overinterpreted. It says a single hidden layer of sufficient width can approximate any continuous function on a compact set. It says nothing about how wide, nothing about whether gradient descent will find the weights, and nothing about how many examples the fitting would need. It establishes that the family is rich enough. Everything of practical interest lies in the parts it does not address.
Corollary
The choice of activation matters less than its presence, but it is not free.
relu is cheap and its gradient is exactly one where it is non-zero, which is
kind to deep stacks; the cost is that a unit pushed permanently negative stops
receiving gradient at all. gelu and silu smooth the corner and are what
transformers generally use. Sigmoids saturate at both ends and are the reason
deep networks were once thought untrainable.
Sources
Depends on
Used by
Problems using this
- I.3.B01 — Five activations at five pointsnumeric▲△△
- I.3.B02 — Three identities that make the arithmetic disappearsymbolic▲▲△
- I.3.B05 — Depth without curvature is one layerproof▲▲▲
- I.3.B06 — The GELU derivative, and the kink that is not theregradient▲▲△
- I.3.B07 — What activations cost, in memory and in arithmeticcomplexity▲▲△
- I.3.X01 — Sigmoid and tanh, and the identity between themnumeric▲△△
- I.3.X02 — Softplus and its derivativesymbolic▲△△
- I.3.X03 — A ReLU network is piecewise linearproof▲▲△
- I.3.X06 — What an elementwise function does to a shapeshape▲△△
- I.3.X07 — Why the theorem says non-polynomialcounterexample▲▲△
- I.3.X08 — The diagonal Jacobian, and what breaks without itgradient▲▲△
- I.3.X09 — SiLU, and a derivative that exceeds onesymbolic▲▲△
- I.3.X10 — Why there is no best activationproof▲▲▲