Apply the chain rule to the squared loss, using the same pre-update weights throughout a forward and backward pass. At the output, and . ThereforeFor a gradient descent step of size , define . This gives .
A hidden activation affects all output units to which it connects. ThusandThe learning rate is already contained in and hence in ; do not multiply by it a second time. For a sigmoid function, . Thresholds can be treated as negative biases with an extra constant input and updated by the same derivative rule.
This is squared-error backpropagation. The forward pass computes activations, while the backward pass transports output-loss derivatives through the outgoing weights and the derivatives of the activation functions, yielding an error signal for every hidden unit. That reverse flow of derivatives explains the name backpropagation.
Articles by others on the same topic
There are currently no matching articles.