A feedforward neural network composes layers without directed cycles, passing each layer's activations only to later layers.
Let be the number of active inputs. Four hidden units , , detect successively larger counts. A binary threshold unit with weights on these features and threshold returns one precisely for . Each hidden input weight is one. This computes parity with a single hidden layer, but representability does not guarantee easy learning by backpropagation.
Backpropagation applies the chain rule from a neural network's output toward its input to compute the gradient of a loss with respect to every parameter.
For squared loss , let and . The chain rule gives and . A gradient descent step of size uses and , with every derivative evaluated at the same pre-update weights.
For hidden activations and class probabilities , a one-hot label has log-likelihood . Put and . ThenThese follow from the chain rule and give single-observation stochastic gradient descent updates for the negative log-likelihood.
Articles by others on the same topic
There are currently no matching articles.