Convolutional neural network (CNN)
Also known as: CNN, ConvNet
A neural network built for pictures - it slides small pattern checks across an image to find edges, then shapes, then whole objects.
Draft - this entry has not been reviewed yet.
Formal
A neural network whose early layers apply the same small set of learned checks at every position of a grid-like input such as an image, so a pattern is found wherever it appears; later layers combine these into larger features.
In plain English
Like sweeping a small magnifying glass over a photo, first spotting lines, then eyes and noses, and finally saying “that is a face”.
In practice
A municipality's roads department fits cameras to its refuse lorries; a CNN picks out potholes and cracks in the images, so the road inspector gets a daily list of spots to repair.
Why it matters
CNNs made computers good at reading images, from phone face unlock to medical scans, and they remain a cheap, fast choice where a transformer would be more than the task needs.
Technical deep dive
A convolutional layer slides a set of learned kernels, typically 3 × 3 or 5 × 5 spatially and spanning all input channels, across the input and computes a dot product at each position, producing one feature map per kernel. Strictly, deep-learning libraries implement cross-correlation rather than flipped convolution, which makes no difference once the weights are learned. The output width follows (W − K + 2P) / S + 1 for input width W, kernel size K, padding P and stride S. Two structural priors make the design efficient: local connectivity (each output depends only on a small receptive field) and weight sharing (the same kernel is used at every position), which gives translation equivariance and cuts the parameter count by orders of magnitude compared with a fully connected layer. Pooling or strided convolution downsamples the maps, adding a limited degree of translation invariance and letting deeper layers see larger regions; stacking two 3 × 3 layers gives a 5 × 5 receptive field with fewer parameters, the insight behind VGG (2014).
The lineage runs from LeCun et al.'s 1989 zip-code reader trained with backpropagation, through LeNet-5 (1998) for cheque reading, to AlexNet (Krizhevsky, Sutskever and Hinton, 2012), which won ILSVRC 2012 with a top-5 error of 15.3 % against 26.2 % for the runner-up, using ReLU activations, dropout and training on two GPUs. ResNet (He et al., 2015) added identity shortcut connections so that networks of 152 layers could be trained without degradation, and batch normalisation (2015) stabilised training. MobileNet-style depthwise separable convolutions reduce cost for phones and embedded devices, and U-Net (2015) introduced the encoder-decoder with skip connections that became standard for medical segmentation and later for the denoising network in many diffusion models.
Since the Vision Transformer (Dosovitskiy et al., 2020), which splits an image into 16 × 16 patches and applies self-attention, the relationship has been one of trade-offs rather than replacement. CNNs build in locality and so learn well from smaller datasets; ViTs have weaker inductive bias, need more data or pretraining, but model global context from the first layer. ConvNeXt (2022) showed that a CNN modernised with transformer-era training recipes is competitive again, and many production systems use hybrids.
Known failure modes include sensitivity to small adversarial perturbations, a documented bias towards texture rather than shape on ImageNet-trained models, and poor transfer when camera, lighting or scanner differs from training data, which matters in medical imaging and road inspection alike. Convolutions are also used in one dimension for audio and time series and in three for volumetric scans, so "CNN" describes the weight-sharing operation, not the image domain.
What to learn first
Everything this builds on, foundations first.
- Neural network
- →Training data
- →Machine learning
- →Loss function
- →Model parameter
- →Gradient descent
- →Backpropagation
- →Convolutional neural network (CNN)
Relationships
- A kind of
- Neural network
- Requires
- Backpropagation
- Don't confuse with
- Transformer
Sources & further reading
Reference works
- LeCun et al. (1989), Backpropagation Applied to Handwritten Zip Code Recognition
- Krizhevsky, Sutskever & Hinton (2012), ImageNet Classification with Deep Convolutional Neural Networks
Textbooks
- Goodfellow, Bengio & Courville, Deep Learning (ch. 9) · MIT Press
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…