What it shows
A layer’s weights form a matrix, one row per input and one column per output unit. A Hinton diagram draws every entry as a square in its cell, sized so the area is proportional to the absolute value, light for positive and dark for negative. Because size carries the magnitude, the eye finds the few large weights at once while small ones fade into the background. A colour heatmap does this less well: two shades are hard to compare, two squares are not. It is named after Geoffrey Hinton, who popularised it for showing the weights of small networks.
How to read it
- Square area
- How large the weight is. Twice the area, twice the weight.
- Light square
- A positive weight: the input pushes the unit up.
- Dark (grey blue) square
- A negative weight: the input pushes the unit down.
- Row and column
- Which input feeds which unit. In WeightSpace the last row of a block is the bias.
- Empty cell
- A weight close to zero: that input barely reaches that unit.
What it does not tell you
It shows weights, not behaviour: a big weight on an input that is always zero changes nothing, and a small weight on a large activation can matter a lot. Squares are scaled to the largest weight in the block, so compare squares within one diagram, not across two. Real layers are too big to draw whole, so a picture of a real network is a crop.
Inspecting small networks and single layers in textbooks and papers, comparing a layer before and after training or pruning, spotting dead units (an empty column) and dominant inputs (a row of big squares).
In WeightSpace
The home page’s first screen is a Hinton diagram of the plant classifier’s real weights: crops of MobileNet’s last five pointwise convolutions and the whole three-class head, left to right. The archived edit that fixes a low-light Pothos photo changes a single square, the Pothos bias at the bottom of the head.