Chapter 11 I.11
Convolutional Neural Networks
A convolution applies one small filter at every position, because a feature's meaning does not depend on where it sits.
Weight sharing plus locality: one small detector slid everywhere.
How this chapter is built
M3Load-bearing
The content is mathematics. Understanding is demonstrated by computation, not recall.
Five strands, not one. Mathematics is the spine; the other four are the body. A chapter cannot pay its way out of teaching with problems, nor out of problems with teaching.
Before you start
The problem
A fully connected layer over a 224x224 image has fifty million parameters per unit and learns each corner of the image separately. Locality and weight sharing remove both problems at once, and the derivation is identical for any signal with a grid.
What this chapter covers
- kernels
- convolution
- padding
- stride
- pooling
- feature maps
- CNN architectures
- LeNet
- AlexNet
- VGG
- ResNet
- EfficientNet
Apparatus
The mathematics this chapter leans on, held in Book 0 so it can be assumed here without being taught here. Not a gate — follow a link when a step stops making sense.
The chain rule 0.MC.03 · The chain rule for matrix products 0.MC.07 · Inner products, norms and cosine similarity 0.LA.03
Notation
- HSpatial height in pixels
- W (spatial)Spatial width in pixels
- CChannels in vision; compute in FLOPs in the scaling chapters
- WA weight matrix
- ∇Gradient operator
- JA Jacobian matrix
Propositions
- Prop. 1A convolution is one small filter applied at every position.The same weights are used at every location, so the parameter count depends on the kernel and not on the image. That reuse is the locality prior, welded into the layer rather than learned.
- Prop. 2Padding and stride decide the output size, and nothing else does.One formula gives the spatial size of every convolution's output. Most shape errors in a vision pipeline are that formula applied without being read.
- Prop. 3A convolutional network buys range with depth.One layer sees a small window. Stacking layers widens it by a fixed amount each time, so how far a unit can see is a fact about the architecture, computable before any training.
- Prop. 4Pooling keeps the answer and throws away the address.Taking a maximum over a neighbourhood makes the response survive a small shift and destroys the record of where it was. Both halves of that trade are real, and one of them has to be undone for dense tasks.
Worked problems
0/5 problems0/4 variants0/10 exercisesowes 15 more
Not yet written. At M3 this chapter owes 5 worked problems across 4 distinct variants, and 10 exercises, every one with a published solution. The build enforces that from the day the chapter is marked published.