Embedding projection

Activations · lens

A scatter plot of the vectors a network computes for many inputs, squeezed from hundreds of dimensions down to two so similar inputs land near each other.

Also called Feature space plot, PCA plot, t-SNE plot, UMAP plot

Each dot is one photo as the plant head sees it: the 256 numbers MobileNet hands to the head, squeezed onto the two directions along which these 48 vectors vary most (principal component analysis). Twelve sample photos, each at full light and dimmed to 50%, 25% and 15%. Colour is the true plant; a ring in another colour means the head gets it wrong. The dots are real; the two axes are a choice, and they keep only 44% of the variation.
Axis 1 · 29% of variationAxis 2 · 15%testtesttest
  • Monstera
  • Snake Plant
  • Pothos
  • Large, solid dot: full light. Small, faint dot: 15% light.
  • Ring: the colour of the plant the head answers, when it is wrong.
  • “test”: one of the three photos not used to train the head.

1 of 48 wrong with the original head (pothos-3 at 15% light, the photo the archived edit was made for). Dimming moves the dots down axis 2: on average from 0.34 at full light to −0.42 at 15%. The bias edit does not move a single dot, because it acts after the features: it moves the boundary the head draws between the plants, so only dots near that boundary can change answer. Distances in two axes are not distances in 256: two dots that look close here can be far apart in the features.

Figure 1. Every number is computed in your browser.

What it shows

Inside a network every input becomes a long vector of numbers, its embedding. Inputs the network treats alike get similar vectors. To see this, the vectors are projected onto a flat plane: principal component analysis keeps the two directions of greatest variation, while t-SNE and UMAP bend space to keep neighbours together. Clusters, outliers and drifting groups then show at a glance.

How to read it

Dot
One input, as the network represents it at that layer.
Colour
Usually the true label, so you can see whether classes separate.
Cluster
Inputs the network represents alike.
Axis
For PCA, a direction in the original space, with the share of variation it keeps. t-SNE and UMAP axes mean nothing.

What it does not tell you

Two dimensions drop most of the information: dots that look close can be far apart in the real space, and the reverse. t-SNE and UMAP distort distances and cluster sizes on purpose and change from run to run. Editing the layer after the embedding, such as a classifier head, moves no dots at all; it moves the boundary between them.

Inspecting what a model groups together, finding mislabelled or unusual examples, watching representations change during training, and exploring word and image embeddings.

In WeightSpace

The figure projects the 256 features the plant head reads, for its 12 sample photos at four light levels, computed from the shipped checkpoint. Dimming moves the photos down the second axis; the original head gets one dot wrong (pothos-3 at 15% light) and the archived bias edit changes its answer without moving it. No workbench draws projections yet.

Where to see it

No workbench draws this yet: the figure at the top of this page is the only place in WeightSpace for now.

Model structures: Identify houseplants