2.1 CNN Architectural Overview & Motivation (Why Not Standard MLPs?)
1. What is a CNN?
A Convolutional Neural Network (CNN / ConvNet) is a specialized deep neural network for processing data with a known grid-like topology (1D audio/time-series, 2D images, 3D video volumes) that employs mathematical convolution in place of general dense matrix multiplication in at least one layer.
2. Why CNNs Beat Traditional MLPs on Images (3 Core Motivations)
- Eliminates Parameter Explosion:
- A modest
224 ร 224 ร 3RGB image contains150,528input values. Connecting it directly to just100dense hidden neurons requires15,052,800weights in a single layer! That causes extreme memory footprint, huge computation latency, and slow convergence. - CNNs solve this via sparse local connectivity and parameter sharing.
- A modest
- Automatic Hierarchical Feature Extraction: Eliminates manual hand-engineered features (Sobel/SIFT/HOG) by learning a natural hierarchy automatically:
Raw Pixels โ Low-level Edges/Blobs โ Mid-level Textures/Parts โ High-level Object Shapes โ Class Label. - Built-in Shift Invariance & Overfitting Control: Spatial weight reuse + pooling drastically shrink parameter count so models generalize from realistic datasets instead of memorizing pixel noise.