What does backpropagation do when a neural network trains?
- Exam domain
- Deep learning foundations
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
It sends the error back to update each weight
After the forward pass, the loss measures the error. Backpropagation computes how much each weight contributed to that error, and gradient descent adjusts the weights to reduce it.
Remember: Backpropagation: error flows back, weights update.
In detail
- Forward pass: make a prediction.
- Backpropagation: compute gradients and update the weights.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It splits the data into training and test sets before trainingWrong
Splitting data is a step before training, not part of it.
B. It adds more layers until the accuracy stops improvingWrong
Choosing the number of layers is design, not backpropagation.
C. It runs the input through the network to get a predictionWrong
That is the forward pass, which comes first.
D. It sends the error back to update each weightRight
Backpropagation: error flows back, weights update.
Use case
An illustrative scenario, not a real incident.
Illustrative: each batch of training images nudges millions of weights a little, so the error falls over many epochs.
See it in different ways
flowchart LR S0["Input layer"] --> S1["Hidden layers"] --> S2["Output"] --> S3["Loss"] --> S4["Backpropagation updates weights"]
How to read this chart
- Read it in order: Input layer, then Hidden layers, then Output, then Loss, then Backpropagation updates weights.
sequenceDiagram participant P0 as Input participant P1 as Network participant P2 as Loss P0->>P1: Forward pass P1->>P2: Prediction P2-->>P1: Gradients update weights
How to read this chart
- 1. Input sends "Forward pass" to Network.
- 2. Network sends "Prediction" to Loss.
- 3. Network gets a reply from Loss: "Gradients update weights".