Applied Walkthrough
1
A network is shown a training image of a dog and predicts "85% cat" — a bad guess.
2
The loss function compares "85% cat" to the true label "dog" and produces a high error value.
3
Backpropagation traces that error backward through every layer, calculating each weight's share of the blame.
4
The optimizer updates the weights slightly to reduce that error next time, and the entire GUESS → GRADE → BLAME → FIX cycle repeats with the next training image — over and over, often millions of times, until the loss gets small.
Exam Application
Exam questions often ask you to put the steps of training in the correct order, or to identify which step a description matches. Forward pass always comes first (producing a prediction), loss calculation is always second (comparing to truth), backpropagation is always third (assigning blame backward through the network), and the weight update is always last (actually changing the weights). Memorize this order — it never changes.
⚠ Common Trap
The most common trap is confusing backpropagation with the weight update itself. Backpropagation only CALCULATES how much each weight contributed to the error (the gradients) — it does not change any weights by itself. The optimizer (gradient descent or a variant) is the separate step that actually uses those calculated gradients to update the weights. Many students merge these into one step and lose points for imprecision.
✓ Quick Self-Check
1. What happens during the forward pass?
Input data flows through the network's layers and produces a prediction — the network's current "guess."
Tap to reveal / hide
2. What does the loss function measure?
How wrong the network's prediction was compared to the true, correct answer — expressed as a single error number.
Tap to reveal / hide
3. Does backpropagation change the network's weights directly?
No. Backpropagation only calculates how much each weight contributed to the error (the gradients); the optimizer uses those gradients to actually update the weights.
Tap to reveal / hide
4. What is the correct order of the four training loop steps?
Forward pass (guess), loss calculation (grade), backpropagation (blame), weight update (fix) — always in that order.
Tap to reveal / hide
5. Roughly how many times does this training loop cycle repeat during training?
Thousands to millions of times, depending on the dataset size and number of training epochs.
Tap to reveal / hide