Glossary term
Glossary term
Foundations
The algorithm that implements gradient descent in neural networks.
Training a neural network involves many iterations of the following two-pass cycle:
During the forward pass, the system processes a batch of examples to yield prediction(s). The system compares each prediction to each label value. The difference between the prediction and the label value is the loss for that example. The system aggregates the losses for all the examples to compute the total loss for the current batch.
During the backward pass (backpropagation), the system reduces loss by adjusting the weights of all the neurons in all the hidden layer(s).
Neural networks often contain many neurons across many hidden layers. Each of those neurons contribute to the overall loss in different ways. Backpropagation determines whether to increase or decrease the weights applied to particular neurons.
The learning rate is a multiplier that controls the degree to which each backward pass increases or decreases each weight. A large learning rate will increase or decrease each weight more than a small learning rate.
In calculus terms, backpropagation implements the chain rule. from calculus. That is, backpropagation calculates the partial derivative of the error with respect to each parameter.
Years ago, ML practitioners had to write code to implement backpropagation. Modern ML APIs like Keras now implement backpropagation for you. Phew!
See Neural networks in Machine Learning Crash Course for more information.
Created for this library
A computer vision team retrains its detection model with backpropagation each week on freshly labeled images from production.
A speech recognition vendor enables mixed-precision backpropagation in JAX to cut training time on its largest acoustic model.
A startup's ML platform team monitors gradient norms during backpropagation to catch exploding gradients early in long training runs.
Definition source: Google for Developers Machine Learning Glossary | Creative Commons Attribution 4.0 License