What is Vanishing gradient?
In Turkish: Kaybolan gradyan · Topic: Models and training
A problem in deep neural networks where the error signal shrinks toward zero as it travels back through the layers during backpropagation. As a result, the early layers learn very slowly or not at all.
How does it work?
During training, the error at the network's output is passed backward through the layers to decide how much each weight should change. If that signal is multiplied by small numbers at every layer, it practically disappears after dozens of layers, much like a message fading in a game of telephone. Squashing activation functions such as the sigmoid can make this worse. Remedies include ReLU-style activations, residual connections, and careful weight initialization. The LSTM was also designed in part to ease this problem in recurrent networks.
Why does it matter?
For a long time this problem made very deep networks hard to train, and overcoming it was one of the hurdles on the way to deep learning's spread. Its solutions are part of why today's large models can be trained with dozens of layers. It is also a key concept for understanding why certain architectures are designed the way they are.
Example
Older recurrent networks processing long sentences struggled to learn from words at the start of the sentence, because the error signal reaching those words faded as it moved backward.
FAQ
What is the difference between vanishing and exploding gradients?
With vanishing gradients, the error signal shrinks and disappears across layers. With exploding gradients, it grows excessively and makes training unstable.
Is this still a problem in today's large models?
Techniques such as residual connections, layer normalization, and suitable activation functions largely keep it under control. It is still considered during design, especially for very deep networks or long sequences.