Convolution

A useful image pattern can appear anywhere in a picture. Convolution applies the same small set of weights at different positions, producing a map of where that pattern receives a response.

15 sections · 15 questions · 4 coding challenges

1 / 15

Should an Edge Need a Different Detector in Every Corner?

BOTIE

An edge can appear on the left or right of an image. If a model treats every pixel position as unrelated, it must learn the same useful pattern repeatedly. We would like a detector learned in one region to be usable elsewhere.

Convolution already had a long history in mathematics and signal processing. In neural image recognition, LeCun and colleagues' 1989 handwritten zip-code work used local connections and shared weights so that feature detection did not have to be relearned independently at every location.

A small array of weights examines one neighbourhood of pixels, then the same weights examine the next neighbourhood. The resulting map records where that local pattern produced a response. Sharing the weights reduces the number of parameters and expresses a useful assumption about images. The operation used in many neural libraries is technically cross-correlation, with no filter reversal; the lesson states the convention used here.

Sources for this history