Why Depth

Features, layer by layer

Depth means stacking layers, so each one can build on the last. In a vision model the first layers tend to find edges. The next layers combine edges into shapes. Later layers combine shapes into objects — an eye, a face, a bicycle. You do not have to hand-write those features. The network learns them, because each layer sees a slightly richer description than the one before.

An everyday picture is a factory line. The first station only cuts edges. The next assembles parts. The last puts the object together. Another is reading: letters, then words, then sentences, then the plot. A single station that tried to do everything at once would have a much harder job.

Depth only helps if the layers can fold the space. If every layer is a straight-line map, stacking ten of them is still one straight-line map: a composition of linear functions is linear. A non-linear activation — ReLU is the usual first choice — breaks that collapse, which is why a deep net is actually deep. The tiny cell below shows the two cases on a small example. Change a weight and run it again.

That is also why ANN: Activation Functions and ANN: Gradient sit next to this page: without a useful non-linearity, and without a gradient that can travel back through the stack, extra layers do not buy you extra features. For how a small MLP is built and trained, see Lab#DL01-4. For how this idea shows up in a CNN, see ANN Types: Convolutional (CNN).

See also

Back to top