What the network should output. Changing these changes the loss.
Target y10.80
Target y20.20
How It Works
Backpropagation applies the chain rule to compute how much each weight contributed to the error. Weights with large gradients contributed more to the mistake.
Backpropagation is the algorithm that makes neural network training possible. After a forward pass produces a prediction, backprop computes how much each weight contributed to the error - by flowing error signals backwards through the chain rule. This visualization shows the real gradient values on every edge of a 3-layer network.
See the forward pass: activations computed left-to-right through each layer
See the backward pass: error gradients flow right-to-left via the chain rule
Gradient magnitudes shown on edges: larger = that weight contributed more to the error
Change target outputs to see how the gradient signals change
Understand vanishing gradients: why deep networks can have near-zero gradients in early layers
The mathematical foundation of SGD, Adam, and every modern neural network optimizer
Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.