CMU Introduction To Deep Learning 11-785, Fall 2026: Lecture 9
Overview
The Carnegie Mellon 11-785 lecture derives convolutional neural networks from the need for shift-invariant pattern recognition: scanning audio or images with a shared-weight MLP makes a detector respond wherever a pattern appears. It then shows how the scan can be reordered and distributed across layers, yielding convolutional feature maps, hierarchical receptive fields, and substantial reductions in parameters and computation, before introducing filters, stride, flattening, and pooling.
Key takeaways
- A conventional MLP is location-sensitive because a pattern shifted by even one input position activates different dimensions; shared weights let the same detector scan every location.
- For a shared parameter used at multiple scan positions, backpropagation adds the gradients from all copies, rather than averaging them.
- Reordering computation lets each layer scan the previous layer’s feature maps, preserving the result of a full MLP scan while enabling efficient convolutional implementation.
- Distributing a large pattern across layers lets early filters detect local features such as petals and deeper layers combine them into larger structures with expanding receptive fields.
- Shared filters reduce unique parameter counts, and overlapping feature-map computations can be reused as the scan advances, lowering compute as well as supporting generalization.
- Pooling takes the maximum activation within a local window, providing tolerance to small shifts in components such as petals.
Chapters
- The lecture opens by connecting the upcoming homework to convolutional neural networks.
- Class attendance is checked using randomly called Pokémon names.
- A conventional MLP can classify a one-second speech segment from spectrogram features, but its weights are tied to specific input positions.
- A recording with “welcome” at a new time location can occupy a different input subspace and escape a detector trained on its original location.
- A flower in the top-left of an image and the same flower elsewhere activate different input dimensions for a conventional MLP.
- Shift invariance means detecting whether a pattern is present regardless of its location, as with flowers in images or words in audio.
- A small MLP can inspect a window roughly the size of “welcome” and slide across the audio signal.
- The window-level scores can be combined with a maximum, which implements an OR-like decision: any strong match makes the recording positive.
- The same approach scans an image for a flower-sized region and aggregates local scores into an image-level decision.
- A sliding-window detector is equivalent to one large MLP whose repeated subnets have identical parameters.
- Sharing weights forces the same pattern detector to operate at every time or image position, rather than learning a separate detector for each location.
- The shared structure supplies shift invariance without requiring training examples at every possible position.
- The network computes each layer across all scan positions before computing the next layer, rather than processing each window through the full MLP one at a time.
- Each column in the unfolded network represents an identical shared-parameter computation at a different input location.
- A full arrow denotes connections from every neuron in one layer to every neuron in the next.
- Training labels can describe whether a recording contains “welcome” or an image contains a flower; they need not mark the pattern’s position.
- When multiple network edges represent one shared weight, its gradient is the sum of the gradients from every copy.
- Backpropagation computes the contribution from each location because each shared-weight copy receives different input values.
- The computation can be reorganized from scanning each window through all layers to computing a layer across the input before moving upward.
- Changing the order of the outer loops over time and network layers preserves the output because each position’s layer computations remain intact.
- This reordering is the key step that lets individual neurons and layers scan maps instead of repeatedly running a complete MLP on every window.
- Each first-layer neuron scans the input and produces a map of where its learned pattern appears.
- A later-layer neuron combines values from the maps of multiple earlier neurons at corresponding positions.
- The final score at a location remains equivalent to passing that input region through the original MLP.
- Instead of making first-layer neurons detect flower-sized regions, the network can assign them smaller patterns such as petals or other local components.
- Later neurons inspect windows in earlier feature maps, combining local detections into larger patterns.
- This distributes pattern recognition across layers while preserving the overall operation of scanning the input with an MLP.
- A neuron that scans a window of an earlier layer’s maps indirectly sees the combined input regions that produced those map values.
- Stacking local scanning layers expands the input region represented by deeper neurons, allowing them to recognize increasingly complex patterns.
- The same arrangement reuses the small set of shared weights at many positions instead of learning independent flower detectors.
- Scanning a window with a dot product is the operation commonly called convolution, though the lecture notes that the operation is technically often cross-correlation.
- A scanning weight set is called a filter, and stacking feature maps gives the local computations a tensor structure.
- The one-dimensional version for sequences is also known historically as a time-delay neural network, or TDNN.
- Hierarchical representations let lower layers detect localized features and higher layers combine them into complex patterns.
- The lecture links depth to compact representations: complex decision boundaries can require far fewer neurons across multiple layers than in a single hidden layer.
- Shared local features can generalize across image locations and reduce the amount of training data needed compared with location-specific detectors.
- For an input window of eight D-dimensional vectors, a non-distributed first layer with 4N1 neurons performs 8D × 4N1 first-layer operations per position.
- When the same effective pattern is distributed across layers, first-layer filters can process two vectors at a time, requiring 2D × N1 operations at that layer.
- As the scan advances by two positions, overlapping intermediate results can be reused instead of recomputed.
- The distributed network uses fewer unique parameters because weights are shared across locations and local scanning layers.
- Overlapping windows allow later positions to reuse previously computed feature-map values, reducing total scan computation beyond the per-position savings.
- The restricted shared-weight model is not equally expressive as an unconstrained MLP, but its stronger structure can improve generalization and reduce data demands.
- The lecture summarizes CNN computation as scanning with shared subnets, then scanning feature maps jointly in successive layers.
- A neuron’s receptive field is the input region it can inspect, and it grows as deeper layers combine local features.
- Flattening converts the final spatial map into a vector for a classifier; using a stride greater than one produces smaller maps.
- A flower remains a flower when a petal shifts slightly, so recognition should tolerate small changes in subpattern location.
- Pooling examines a local window and selects its largest activation, allowing small spatial jitters without discarding a detected feature.
- The lecture closes by identifying convolution, feature maps, receptive fields, stride, flattening, and pooling as components of a convolutional neural network.
Transcript excerpt
4:14 homework has to do with convolutional neural neural networks. So uh this is a topic you're going to be intimately familiar with uh very brief very shortly. So at [snorts] 8:05 I will begin calling out Pokemon names quite randomly regardless of whether I actually have a question or not. So uh and if you don't respond saying here I'm going to mark you absent. That's simply because today I've decided that this is my week for being evil. So the evil we will be. Right. Everybody agree with me on that? >> Perfect. Right. So I have a majority vote in class. Okay. Uh so guys here we begin. Uh here's where we we are. We've seen so far in the very
5:02 first week that MLPS multi-layer perceptrons are universal approximators which meant of course that uh they could model pretty much any function that you wanted to. So if you guys are done with your poll can you shut your laptops? Yeah. All right. And we saw in the subsequent weeks that they can be trained through variance of gradient descent where the gradients themselves were computed using back propagation. And the kind of model we've seen so far is this one a feed forward multi-layer perceptron. Now the good news for today is that we have 273 slides that we're going to go through in 80 minutes. >> Oh my god. >> So uh I'm going to speak very fast. You better pay attention.
5:52 Now, here's a problem. Suppose I give you 1 second segments of speed signal and I ask you, does this recording contain the word hello? How would we do it? The first thing we do, of course, we're going to convert it into a feature representation like a spectrogram, which is just a sequence of
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Carnegie Mellon University Deep Learning.