EN
The White-Box — A Neural Net With Nothing to Hide
Preparing exhibit…
Operate
Step back and Step forward move the calculation in Step Through. Switch to Step Through to use them.
TRAINING SET
1 = has a vertical stroke · 0 = does not
How it works
- The training set contains synthetic 4×4 images. Class 1 has a vertical stroke; class 0 does not. The network is trained to distinguish these two classes.
- Each image supplies 16 pixel-intensity values to the input layer. Sphere brightness represents the corresponding numerical value.
- Each line represents a learned weight: blue is positive, orange is negative, and thickness represents magnitude. The weights begin from a deterministic random initialization.
- During the forward pass, each hidden unit forms a weighted sum of all 16 inputs and a bias. ReLU then computes max(0, z). The inspector lists every term in these two hidden-unit sums.
- The two output logits pass through softmax to produce class probabilities. Cross-entropy loss is −log p(y), where y is the labeled class.
- Backpropagation applies the chain rule to calculate the derivative of the loss with respect to each weight and bias. A gradient is a local sensitivity, not a causal share of the error.
- Gradient descent updates each parameter in the direction that reduces the current example's loss: θ ← θ − η∇θ. Line thickness changes as the weights are updated.
- Run Training repeats this loop over the full data set. Watch the loss curve fall and the weight heat maps organize as a vertical-stroke detector emerges from the arithmetic.
Inspector
Run state
mode—card—class—calculation step—weight updates—epochs—last epoch loss—
- positive weight
- negative weight
thickness = strength
In the current issue
Subscribers open every new exhibit on release day. A free DigiSim account opens this one from {memberDate}; without an account it opens on {anonymousDate}.
Sign in or registerSee plansThe exhibit is unavailable. Playback is paused. Reload to retry.