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.

Not startedJump to quiz

Layer by layer

LayerEach unit computesRegion it can describe
1st hidden layerA line (hyperplane) testA 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
one half-planethe other
Layer 1: each unit draws one line.
convex
Layer 2: AND of three lines gives a triangle.
two pieces
Layer 3: OR of two triangles gives a disconnected region.

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

Layer 1: half-planes. Layer 2 (AND): convex regions. Layer 3 (OR): unions, so non-convex or disconnected regions.

See every cheatsheet by category →

Check your understanding

Score 75% or more to master this lesson and earn XP. Answer first, then check.

Q1conceptWith threshold units, what region can a single first-layer unit describe?
Q2conceptAn AND-like unit in the second layer combines several half-plane tests. What shape can it carve out?
Q3applyYou need to classify points that fall in either of two separate triangles. How many layers of threshold units does the construction need?
Q4interpretWhat is the general lesson of the half-plane → convex → union construction?
Q5conceptWhy does the geometric construction come with a warning not to overstate it?