the.ai

Optimization / Training

verified

Backpropagation

To improve, a model needs to know how much each of its millions of parameters contributed to being wrong. Backpropagation computes that by running the chain rule backwards through the network, reusing each layer's result for the layer before it. Without the reuse the calculation would be hopeless; with it, one backward pass costs about what the forward pass did.

Viz primitive · update-spectrumdepth = 12 · bars = 8

8 values. The left group decays steeply; the right group is 70% of the way to flat, and reads flatter than the left.

Gradient magnitude arriving at each layer, at the output and back at the input. Drag the depth to watch the signal attenuate as it travels.

12

Reviewed by opendroid · 2026-08-04