Backpropagation: The Heart of Neural Network Learning
What is Backpropagation?
Backpropagation computes gradients for neural network training. It calculates how much each weight contributed to the error.
The Chain Rule
∂L/∂w = ∂L/∂y × ∂y/∂z × ∂z/∂w
We propagate gradients backward through the network.
Gradient Descent
w_new = w_old - learning_rate × ∂L/∂w
Variants:
Advanced Optimizers
Adam - Most popular, combines momentum with adaptive learning rates AdamW - Adam with weight decay, used in transformers