Weight histogram

Weights · lens

A bar chart of how a layer’s weights are spread: how many are near zero, how many are large, and whether they lean positive or negative.

Also called Weight distribution, Parameter histogram

How the weights of one layer of the real plant classifier are spread: each bar counts the weights in one of 41 equal bins between minus and plus the largest absolute weight. Kernels only, as stored in the checkpoint; the batch normalization that follows each convolution, and the biases, are left out.

−1.4901.4924,196
Weights
65,536
Mean
−0.0051
Spread (std)
0.0912
Largest |w|
1.494
Below 1% of largest
10,542 (16%)

Most weights sit close to zero and a few are large: the usual bell shape of a trained layer. A histogram shows that shape, not which weights matter.

Figure 1. Every number is computed in your browser.

What it shows

A layer can hold thousands or millions of weights, far too many to draw one by one. A histogram counts them in bins, so the whole layer fits in one picture. Trained layers usually show a peak near zero with thin tails; a layer whose histogram never changes during training is not learning, and one whose tails keep growing may be blowing up. Training dashboards draw one per layer, step by step.

How to read it

Bar height
How many weights fall in that range.
Peak at zero
Many weights that barely matter: candidates for pruning.
Width (spread)
How large the weights typically are; compare layers of the same kind.
Long tail
A few large weights, which often do much of the work.

What it does not tell you

It throws away where each weight sits: a histogram cannot say which weights are large or what they connect, and a targeted edit of four numbers barely changes it. Layers of different kinds are scaled differently (here the depthwise kernels are rescaled by batch normalization afterwards), so compare like with like.

Monitoring training, checking initialization, spotting dead or exploding layers, and deciding how far a model can be pruned or quantized.

In WeightSpace

The figure bins every convolution kernel of the plant classifier’s MobileNet, 28 layers read from the shipped checkpoint, and the ticket router’s 67 numbers before and after its archived edit: 61 zeros before, 57 after. No workbench draws histograms 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, Support ticket router