CNNs · Deep Learning
CNN SEES — Convolutional layers detect features, Pooling shrinks size, FC layer classifies
Early layers detect low-level features. Deep layers detect high-level concepts. This hierarchy is learned from data.
C
Convolutional layers — detecting local features
Filters slide across the image detecting local features like edges, textures, and simple shapes, using the same filter applied everywhere (parameter sharing), which means far fewer parameters than an equivalent dense network.
Example: an early convolutional filter might specifically activate on diagonal edges, wherever they appear anywhere in the image.
P
Pooling — shrinking spatial dimensions
Max pooling reduces the spatial dimensions of the feature maps, which also provides translation invariance — meaning the network still recognizes a feature even if it shifts slightly in position.
Example: max pooling taking the maximum value in each small 2x2 region, shrinking the feature map's size while keeping the most important activations.
F
Fully Connected — the final classification step
The final fully connected layer flattens the accumulated feature representations and uses them to classify the image into its final predicted category.
Example: after several convolution and pooling layers, a fully connected layer combines all the learned features to output "87% confident this is a cat."
1
An image classifier's early convolutional layers are examined and found to respond mainly to simple edges and color gradients.
2
Moving deeper into the network, middle layers are found to respond to more complex shapes and textures, combining the earlier edge detections.
3
The deepest layers are found to respond to entire recognizable objects and faces, built up from the shape combinations detected in earlier layers.
4
This edges-to-shapes-to-objects hierarchy is not hand-designed by engineers — it emerges automatically as a learned consequence of stacking convolutional and pooling layers and training on data.

Exams test whether you understand the specific role of each CNN component (convolution detects local features, pooling shrinks dimensions and adds translation invariance, fully connected layers classify) and whether you know WHY parameter sharing in convolutional layers dramatically reduces the total number of parameters compared to a fully dense network.

The most common trap is assuming the edges-to-objects feature hierarchy is manually programmed by engineers. In reality, this hierarchy emerges automatically from training — no one explicitly tells early layers to detect edges; it's simply what the network discovers is useful for solving the task.

1. What do convolutional layers detect?
Local features like edges, textures, and shapes, using filters that slide across the image.
Tap to reveal / hide
2. What does max pooling accomplish?
Reduces spatial dimensions and provides translation invariance, so the network still recognizes shifted features.
Tap to reveal / hide
3. What does parameter sharing mean in a convolutional layer?
The same filter is applied everywhere across the image, resulting in far fewer parameters than a dense network would need.
Tap to reveal / hide
4. What kind of features do early CNN layers typically detect, versus deep layers?
Early layers detect low-level features like edges; deep layers detect high-level concepts like objects and faces.
Tap to reveal / hide
5. Is this edges-to-objects feature hierarchy manually programmed, or learned?
Learned automatically from training data, not manually programmed by engineers.
Tap to reveal / hide