Lesson 3.3 · 7 min read · about 50 min to master at a very slow pace
Why Depth Helps: Composing Regions
With threshold neurons, the first layer cuts the space into half-planes, the next combines them into convex regions, and the next into unions of regions. That is the geometric picture of what depth adds.
Layer by layer
| Layer | Each unit computes | Region it can describe |
|---|---|---|
| 1st hidden layer | A line (hyperplane) test | A half-plane |
| 2nd layer, AND-like unit | "All of these half-plane tests are true" | An intersection of half-planes: a convex region (triangle, polygon) |
| 3rd layer, OR-like unit | "Any of these convex regions" | A union of convex regions: non-convex or even disconnected shapes |
The general lesson: composition
Later layers build on what earlier layers detect. In images the same idea appears as edges → textures and parts → objects (Section 10). Depth lets a network express structured, complicated functions by combining simple pieces, often with far fewer units than a single wide layer would need.
Don't overstate it
This geometric picture uses idealised threshold units. Real networks use smooth activations, and depth also makes training harder (vanishing gradients, Section 4). Section 11 weighs depth against width.
Stuck? Common doubts
Questions real learners asked while studying this lesson. They stay closed so they don't spoil your own thinking: open only the ones you need.
Going deeperCan a single hidden layer not also describe a triangle?
A single hidden layer of threshold units followed by one output unit can combine half-planes with a weighted vote, so with the right weights it can carve out a convex region. What needs another layer is combining regions, such as the union of two separate triangles. With smooth activations and enough units, one hidden layer can approximate any continuous function (Section 5), but it may need vastly more units than a deeper network.
Cheatsheet
What depth adds
Check your understanding
Score 75% or more to master this lesson and earn XP. Answer first, then check.