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.

Not startedJump to quiz

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

1320
4215
0132
2611
→

Max pool

45
63
or

Average pool

2.52
2.251.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

Max or average over windows (e.g. 2×2, stride 2). No weights. Shrinks maps, adds tolerance to small shifts.

See every cheatsheet by category →

Check your understanding

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

Q1calculateMax pooling (2×2) is applied to the window . What is the output?
Q2calculateAverage pooling (2×2) is applied to the window . What is the output?
Q3calculate2×2 pooling with stride 2 is applied to a 16×16 feature map. What size is the output?
Q4conceptHow many learned parameters does a max-pooling layer have?
Q5interpretA feature shifts by one pixel within a 2×2 pooling window. Why does max pooling's output often stay the same?