This lesson breaks down the gradient descent update for the output layer of a neural network by decomposing the error into local factors using the chain rule.
(a) Setup
Define the network layers: pre-activation z, sigmoid activation a, and the loss L.
(b) Chain Rule
Expand the derivative of the loss with respect to output weights using the chain rule.
(c) Component derivatives
Calculate individual gradients: loss to output, output to pre-activation, and pre-activation to weights.
(d) Final Rule
Combine components into the delta term and form the weight update rule.
Original question
Derive the backpropagation weight update rule for the output layer of a 2-layer neural network with sigmoid activation and a mean squared error loss.
Ask me anything about this lesson — I'll answer using what we just covered.