Primers · AI

Watch a CNN See

In 2020, Georgia Tech's Polo Club released CNN Explainer, a web page that lets you upload an image and follow it through a convolutional neural network (CNN): pixels, convolution, rectified linear unit (ReLU), pooling, feature maps, softmax, prediction, with every filter and every multiplication inspectable. This primer rebuilds that idea around a network trained for this page: a small CNN that learned CIFAR-10's ten classes from 50,000 tiny photographs, running entirely in your browser. Upload your own photo and watch its real filters fire.

Researched October 2026AIMath
Ink illustration of a tabby cat followed by three frames: a teal outline of the cat, amber fragments of an ear, an eye, and stripes, and a solid red cat silhouette

The brief

A convolutional neural network classifies an image by passing it through a stack of learned pattern detectors. The first detectors respond to edges and colors. The next combine edges into textures and parts. The last assemble parts into objects, and a softmax turns the final scores into probabilities that sum to one. Nothing in that stack is programmed: every filter is a small grid of numbers the network tuned by gradient descent until its mistakes shrank. That is easy to say and hard to feel, which is why CNN Explainer (Zijie Wang, Fred Hohman, Duen Horng Chau, and colleagues, IEEE Transactions on Visualization and Computer Graphics, 2021) became a standard teaching tool: its Tiny VGG network, trained on ten everyday classes from Tiny ImageNet to 70.8 percent validation accuracy, runs in the browser so students can poke the actual arithmetic.

The network below is ours, trained on this machine for this primer: 81,290 parameters, three convolution stages, 76.9 percent accuracy on CIFAR-10's 10,000 held out test images. It is deliberately small enough to show you everything: every filter it learned, every feature map your image produces, and the exact dot product behind any cell you tap. It is also honestly limited: it has only ever seen 32 by 32 pixel photographs of ten kinds of things, and your uploaded photo will be shrunk to exactly that before it is judged. Watch what it does with the result.

Figure 1: the live network

Pick a test photograph or upload your own. Everything below is computed on your device from the network's real trained weights; your image never leaves this page.

Input, as the network sees it
32 x 32 x 3 (red, green, blue)
Try a CIFAR-10 test photo

Loading the trained weights...

Softmax: the prediction10 scores, exponentiated and normalized

$$p_i = \frac{e^{z_i}}{\sum_j e^{z_j}}, \qquad L = -\ln p_{\text{true}}$$

Softmax turns raw scores (logits) z into probabilities p: exponentiate each score, divide by the sum. Cross-entropy loss L is the negative log of the probability assigned to the true class, the number training minimizes. Worked example, from Stanford's CS231n course: logits cat 3.2, car 5.1, frog minus 1.7 exponentiate to 24.53, 164.02, and 0.18, summing to 188.73, giving probabilities 0.130, 0.869, 0.001. If the truth is car, the loss is minus ln 0.869, about 0.14. If the truth is cat, the same scores cost minus ln 0.130, about 2.04: fifteen times worse, which is exactly the pressure that teaches.

How it works

Six mechanisms: the sliding dot product, why the filters are learned rather than designed, the bend that makes depth trainable, the shrink that builds tolerance, the growing field of view, and the final vote.

Figure 2: where the parameters live

Tap through the layers of this page's network. The convolutions do the seeing; the first fully connected layer does most of the memorizing, which is why modern architectures try to delete it.

Tap the card, swipe, or use the arrows.

Figure 3: six years that ate computer vision

Winning top-5 error on the ImageNet challenge (ILSVRC): the share of test images whose true label was missing from the model's five best guesses. Hand engineered features won in 2010 and 2011; then the curve falls off a cliff.

AlexNet's 15.3 percent in 2012 beat the runner up's 26.2 percent by nearly eleven points, the largest single jump in the challenge's history. ResNet's 3.57 percent in 2015 is an ensemble figure, as reported in its paper; the trend, not any single number, is the story.

The road here

Landmarks only: forty years from a self organizing model of the visual cortex to an argument about whether convolutions should exist at all.

1 / 9

Tap the card, swipe, or use the arrows.

Key voices

The inventor's argument, the teachers' evidence, and the three critiques that still define what a CNN is and is not.

Yann LeCun (Bell Labs, then NYU and Meta)
The architectural argument, from the 1989 and 1998 papers and the 2015 Nature review with Bengio and Hinton

LeCun's papers are the position: build the structure of images into the machine. Local receptive fields, because a feature is a local pattern; shared weights, because the same edge matters everywhere in the frame; subsampling, because exact position matters less as you ascend. Stated as a paraphrase of the published work (no single quotable sentence is verified), the claim is that the right built in bias is worth a great deal of data: the network should not have to learn from scratch that images are spatial. The vision transformer argument below is best read as a direct reply to this paragraph.

Zijie Wang, Fred Hohman, Duen Horng Chau and colleagues (Georgia Tech's Polo Club)
The teachers, CNN Explainer, IEEE VIS 2020 and TVCG 2021

Their claim is about how this gets learned: not from equations alone, but from a unified view where every layer's output is visible at once, formulas that synchronize with the actual numbers under your cursor, and the freedom to feed the network your own image. Their evaluation was a qualitative study of 16 students, who rated the tool easy to use, enjoyable, and helpful, singling out the transitions between the high level structure and the low level arithmetic. The paper reports no numeric learning gain, and this primer cites it as exactly what it is: strong qualitative evidence that seeing the computation beats reading about it.

Robert Geirhos and colleagues (Tuebingen and the Bethge lab)
The texture critique, ICLR 2019

Show a person and a CNN a cue conflict image, the shape of a cat wearing the texture of an elephant's skin, and they answer differently. Across nine psychophysical experiments with 97 human observers, people decide by shape; ImageNet trained CNNs decide by texture. The same paper shows the bias is learned, not fated: train the identical ResNet-50 on Stylized-ImageNet, where textures are scrambled by style transfer, and it shifts toward shape, gaining robustness to distortions in the process. The uncomfortable conclusion for the field: the features that win benchmarks are not necessarily the features a human would call seeing.

Ian Goodfellow (with Jonathon Shlens and Christian Szegedy)
The brittleness brief, ICLR 2015

Take a photograph a network classifies as a panda with high confidence, add a perturbation so small no human can see it (an epsilon of 0.007 in their famous example), and the network now says gibbon, confidently. Goodfellow's explanation cuts at the architecture's strength: the models are vulnerable not because they are too nonlinear but because they are too linear in very high dimensions, so tiny aligned nudges in thousands of dimensions add up to a flipped answer. Adversarial training, deliberately practicing on attacked images, was their proposed partial cure, and the phenomenon remains the cleanest evidence that the network's evidence and ours are different substances.

Alexey Dosovitskiy and colleagues (Google)
The scale argument, the Vision Transformer paper, ICLR 2021

Cut the image into 16 by 16 patches, treat the patches as words, and hand them to a plain transformer with almost none of the CNN's built in image bias. Their paper, "An Image is Worth 16x16 Words", concedes the obvious: trained only on ImageNet, the transformer underperforms comparable ResNets. Then the turn, in the paper's own summary phrase: "large scale training trumps inductive bias". Pretrained on 14 to 300 million images, the bias free model wins, reaching 88.55 percent top-1 on ImageNet. The CNN's advantage, on this account, was never magic; it was a head start that data can buy back.

Zhuang Liu and colleagues (Meta AI and UC Berkeley)
The pushback, ConvNeXt, CVPR 2022

ConvNeXt starts from a ResNet and modernizes it one decision at a time toward the transformer's design and training recipe, and at the end of the road a pure ConvNet remains, no attention anywhere, reaching 87.8 percent ImageNet top-1 and beating Swin transformers on detection and segmentation in the paper's comparisons. Their argument: some of the credit assigned to attention belonged to priors the hierarchical transformers had quietly re-imported from convnets, and to training recipes either family can use. The obituary for convolution, on this evidence, was premature.

Where leaders think this goes

As of October 2026. The mechanism is settled; the argument is over what the mechanism learns and whether it survives the transformer era.

Where they agree
The feature hierarchy is real, and you can watch it form

Zeiler and Fergus showed it in 2014 by projecting activations back to pixels: layer two answers corners and color conjunctions, layer three textures, layer four class specific parts like dog faces and bird legs, layer five whole objects under pose changes. Nobody in the transformer debate disputes the phenomenon; the network in Figure 1 shows the same progression at CIFAR scale, in its first layer's edge and color detectors and the progressively more specific maps after them.

Locality and weight sharing are worth real data

Even the Vision Transformer paper concedes the regime where the CNN's bias wins: modest data. A model that assumes locality from birth needs fewer examples to find edges than a model that must learn that neighboring pixels matter. The disagreement is only about how much that head start is worth once pretraining data reaches hundreds of millions of images, not about whether it exists.

Where they split
Does the universal backbone eat the convnet?
Side A: transformers, at scale (Dosovitskiy and the ViT line)

One architecture for text, images, and everything else, with bias replaced by data. The evidence: state of the art results after very large pretraining, and an ecosystem that has largely standardized on transformer tooling. On this view the CNN becomes a special case the field keeps for small jobs, the way older vision keeps hand engineered features for niche uses.

Side B: convnets persist (Liu and the ConvNeXt line; the efficiency argument)

A modernized pure convnet matches the transformer where they compared them, keeps the simpler implementation, and slides naturally onto the small data and small hardware regimes where most deployed vision actually lives: phones, cameras, embedded sensors. Vision Mamba (ICML 2024) adds a third pressure from state space models, which suggests the backbone question is genuinely open rather than settled for transformers.

What has the network actually learned?
Side A: shapes and parts, close enough to seeing

The hierarchy visualizations, the transfer results (features retrained only at the softmax carry to new datasets), and four decades of benchmark dominance say the features are meaningfully about objects. Texture bias is a correctable training artifact, as Geirhos's own Stylized-ImageNet result demonstrates, not an essence.

Side B: shortcuts, all the way down (Geirhos; Goodfellow; Gary Marcus's data hunger critique, 2018)

The texture verdicts, the invisible perturbations that flip confident answers, and the sheer volume of examples needed compared to a child learning from a handful, all point the same way: the network optimizes for whatever signal separates the training classes cheapest, and that signal is often not the object. Marcus's broader appraisal argues deep learning should be one tool among many rather than a universal solvent, a position the brittleness evidence keeps supplying with ammunition.

Takeaways

A convolutional network is the simplest deep learning idea that ever took over a field: slide a small learned pattern across the picture, record where it matches, bend the negatives to zero, shrink the picture, and repeat until the patterns being matched are ears and wheels instead of edges. Everything since, the residual connections, the transformers, the arguments in the camps above, is a negotiation with that stack's strengths: it is sample efficient, inspectable layer by layer, and prone to confident shortcuts.

Keep exploring

Sources