Lesson 10.3 · 5 min read · about 40 min to master at a very slow pace
Pooling
Pooling shrinks feature maps by summarising small regions. Max and average pooling worked out by hand, and what pooling buys: less computation and tolerance to small shifts.
Max and average pooling
Pooling slides a window (often 2×2, stride 2) over a feature map and keeps one number per window: the maximum or the average. It has no learned weights.
Worked example: 2×2 pooling, stride 2
Feature map
| 1 | 3 | 2 | 0 |
| 4 | 2 | 1 | 5 |
| 0 | 1 | 3 | 2 |
| 2 | 6 | 1 | 1 |
Max pool
| 4 | 5 |
| 6 | 3 |
Average pool
| 2.5 | 2 |
| 2.25 | 1.75 |
Top-left window : max 4, average 2.5. Top-right : max 5, average 2. Bottom-left : max 6, average 2.25. Bottom-right : max 3, average 1.75. The highlighted cells are the maxima.
What it buys
- Smaller maps: 2×2 pooling quarters the number of values, cutting computation in later layers.
- Tolerance to small shifts: if a feature moves by a pixel within a window, the max is unchanged. This gives a degree of translation invariance.
- Later units see a larger region of the original image, which helps them detect bigger structures.
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.
First passDoes max pooling throw information away?
Yes, deliberately: it keeps whether a feature was detected strongly somewhere in the window and discards exactly where. For recognising objects that's usually what you want. For tasks needing precise positions (such as segmentation), architectures use less pooling or recover the detail later.
Cheatsheet
Pooling
Check your understanding
Score 75% or more to master this lesson and earn XP. Answer first, then check.