Skip to report
AN INTERACTIVE DEMO

Deconstructing neural networks

Explore how inputs become learned representations and predictions in two different neural networks.

From pixels to representations

Fine-tune a general image classifier to recognize 37 pet breeds, then explore how its predictions and internal representations relate to the images.

Loading saved responses…
Selected image

Final checkpoint · step 552 · fixed evaluation crop
A VIEW OF IMAGE SIMILARITY

Which images have similar representations?

Each image becomes 512 numbers: one spatial average per channel in layer4. UMAP arranges those vectors in two dimensions. Nearby images have similar response patterns, with some distortion from the projection.

1×

◎ Dark rings mark spatial coverage · scroll to zoom · drag to pan

Colors indicate true breed. Click a point, or use the image selector for overlapping points. Axes have no physical units.

Nearest images in the original 512-dimensional space

These neighbours use cosine distance in the full representation, independently of the 2D layout.

INPUT AND BEHAVIOR

One image, a changing prediction

The same evaluation crop is passed through eight saved checkpoints. Follow how the predicted breed and its probability change as the classifier, then the full network, learns.

Fixed input crop

Breed probabilities

Probability of the true breed through training

Teal: this image’s true-breed probability. Gray dashed line: accuracy across all 740 validation images. Click a checkpoint on the curve to inspect it. Lines connect saved measurements.

Full-network fine-tuning starts after step 184. The next saved validation accuracy is lower, followed by recovery. At this transition, training begins to update the feature-producing layers as well as the classifier. What changes during fine-tuning, and how should this dip be interpreted?

This timeline changes predictions only. The image map and spatial feature views show the final checkpoint.

Probabilities compare the model’s breed scores; they are not calibrated certainty. The fixed crop isolates changes in the model from changes in the input.