What is Backpropagation?
In Turkish: Geri yayılım · Topic: Models and training
The algorithm that works out each weight's share of a neural network's prediction error, moving from the output back toward the input, so that the weights can be updated.
How does it work?
First the data passes forward through the network and a prediction comes out. The prediction is compared with the correct answer to measure the error. Then the error is carried backward layer by layer, starting at the output layer, and how much each weight contributed to it is calculated using the chain rule from calculus. This information goes to an optimization method such as gradient descent, which changes the weights slightly in the direction that reduces the error. The cycle is repeated over many examples.
Why does it matter?
Backpropagation makes it possible to tune millions or even billions of weights efficiently, so it is the core training mechanism of modern deep learning. Systems from image recognition models to large language models are trained this way. Its spread in the 1980s revived interest in multilayer networks.
Example
If a network mistakes a handwritten 7 for a 1, backpropagation finds which weights led to the mistake and shifts them so the network recognizes 7 more accurately.
FAQ
Are backpropagation and gradient descent the same thing?
No. Backpropagation calculates how much each weight affects the error, that is, the gradients, while gradient descent uses that information to update the weights.
Does the brain use backpropagation too?
There is no proof that the brain works this way, and the question is debated among scientists. Backpropagation is mainly seen as an engineering method.