What does it mean that a convolutional layer "shares" one small filter across the whole image, and why does that suit images? How many weights does one 3×3 filter need, compared with one fully connected neuron looking at a 28×28 greyscale image?

Deep learning, Convolutional networks
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you understand weight sharing in plain words: the same small pattern detector is reused at every position.

Key idea

A convolutional filter is a small grid of weights, here 3×3. The same filter slides over every position of the image, so the same pattern (an edge, say) is detected wherever it appears, with very few weights.

Steps

  1. Picture a filter as a small stamp that looks for one pattern, like a vertical edge. We slide the stamp over the whole image and record how strongly it matches at each position.
  2. Sharing means that the same weights are used at every position. Because of this, an edge in the top-left is detected in exactly the same way as an edge in the bottom-right.
  3. Counting weights: one 3×3 filter has 3×3=9 weights. One fully connected neuron looking at a 28×28 image has a separate weight for each pixel, 28×28=784.
  4. So a convolutional layer needs far fewer weights, which makes it faster and less likely to overfit, and it matches how images behave: an object is the same object wherever it sits in the picture.

Common mistakes

How long your answer should be

4–5 sentences, about 1–2 minutes.

Read this

Previous in Deep learning: What does batch normalisation do to the values a layer produces, and why does it help training? What are the new values if a feature takes the values 2 and 4 in a mini-batch?
Next in Deep learning: What is a "dead" ReLU unit?