A convolutional neural network (CNN) is a neural network architecture that learns spatial features from images using convolutional filters, making it the long-standing workhorse of computer vision for classification, detection, and segmentation. It exploits the local, translation-invariant structure of visual data.
| Architecture | Core idea | Strength |
|---|---|---|
| CNN | Local convolutional filters | Efficient on images, strong spatial priors |
| Vision transformer (ViT) | Global self-attention over image patches | Scales with data, fewer built-in assumptions |
| MLP | Fully connected layers | General, but ignores spatial structure |
