A practical guide to backpropagation using the chain rule, showing how weight sensitivity to cost is computed layer-by-layer to minimize error via gradient descent.
This video explains how machine learning practitioners apply the chain rule to neural networks, shifting from the typical calculus textbook view to a practical sensitivity-focused approach. Using a minimal network model, it shows how to compute the derivative of the cost with respect to each weight and bias by breaking the change into manageable factors: how a weight affects the neuron's weighted input, how that input affects the activation, and how the activation affects the cost. The key insight is that a weight’s influence is scaled by the previous layer’s activation, illustrating the principle that "neurons that fire together, wire together." The full cost derivative is simply the average of per-example derivatives, and this gradient component guides the network toward minimizing error. By tracking sensitivity backward through layers, the same chain-rule logic can be applied iteratively—this is the core of backpropagation. Extending to multiple neurons per layer only adds indices, not new concepts, since each earlier neuron's total influence is the sum of its contributions through multiple paths. Ultimately, these expressions form the gradient that lets the network step downhill to reduce cost.
Load the full timestamped transcript on demand and click any time to jump in the video.