Skip to content
BIASED

Convolution

Block 1 of 7~2 min

Why convolution

The topic Optimizing deep networks closed the training loop: a stable loss, normalization, and an optimizer that takes useful steps. Every network there was fully connected and read an image as a flat vector of pixels. That works for tiny digits and collapses for photographs. This topic introduces the layer that replaced it in vision: the convolution, which looks at small neighbourhoods and uses the same weights at every position.

A fully connected layer on a 224×224224 \times 224 colour image that maps to a 224×224×64224 \times 224 \times 64 feature map needs about 4.8⋅10114.8 \cdot 10^{11} weights — roughly two terabytes in float32. It also has a separate weight for every pixel, so an edge detector learned in one corner says nothing about an edge in the centre, and permuting all pixels the same way would leave training equally easy. Images have the opposite structure: what matters is local, and a cat is a cat wherever it stands.

A convolution is that dense layer with two constraints. Each output looks only at a small window (locality), and every window is processed with the same weights (weight sharing). Locality cuts the parameters from the size of the image to the size of the window; sharing makes the layer translation-equivariant: a pattern is detected wherever it appears.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • Convolution output size and parametersoptional

    H′ formula and NumPy cross-correlation on the topic example; ResNet stem parameter count. Self-check in the notebook.

    ~20 min · easier on a computer · The Convolution topic read.

    Self-check in the notebook — not part of mastery or the certificate.