Why do convolutional neural networks suit image data better than fully connected MLPs, and what is the difference between translation equivariance and translation invariance?
Deep learning, Convolutional networks
Level L2 Elementary. Length Short. Nature Th Theoretical.
What's being asked
Whether you understand the two inductive biases of convolution (locality and weight sharing) and can distinguish equivariance from invariance.
Key idea
A convolutional layer applies the same small filter at every spatial location. This gives sparse local connectivity and weight sharing, cutting parameter count dramatically, while ensuring translation equivariance: shifting the input shifts the feature map by the same amount, , where is a spatial shift.
Steps
- Explain why an MLP fails to scale on images: connecting a RGB image ( input values) to just hidden units needs over million weights in the first layer alone, ignoring 2-D spatial structure.
- State the two convolutional priors: local connectivity (each neuron reads only a small patch, where is the filter width, matching local edges and textures) and parameter sharing (the same kernel slides across the whole image, so the parameter count does not depend on image resolution).
- Define translation equivariance for a convolution layer : shifting the input by pixels shifts the output feature map by pixels, .
- Define translation invariance for a classifier : shifting the input leaves the final output unchanged, . Explain that pooling (and global average pooling at the top) converts equivariant feature maps into approximate invariance to small shifts.
Common mistakes
- Saying convolutional layers themselves are translation invariant; they are equivariant, and pooling or global pooling creates invariance.
- Forgetting that strided convolutions and padding boundary effects slightly break exact equivariance.
How long your answer should be
4–5 sentences; 2 minutes.
Read this
Previous in Deep learning: In dropout with keep probability , why are the kept activations divided by during training (inverted dropout), and what goes wrong at test time if you do not scale?
Next in Deep learning: Given the single-channel input and filter with bias , stride 1 and no padding, what is the output after cross-correlation, ReLU activation and max pooling with stride 1?