DL
advanced
Vanishing & Exploding Gradients
Deep networks were mostly abandoned in the early 2000s because of this. A real forward and backward pass through real weight matrices, measuring what the gradient actually does on the way down — sigmoid loses eight orders of magnitude across twelve layers, ReLU with He initialization loses none.
algorithms.live
Measured through a real forward and backward pass
12 layers
Layer
Activation std
Gradient std
Saturated
1
2.1e-1
2.3e-8
0%
2
1.3e-1
1.1e-7
0%
3
1.2e-1
4.5e-7
0%
4
1.1e-1
2.0e-6
0%
5
1.2e-1
8.7e-6
0%
6
1.0e-1
3.5e-5
0%
7
1.3e-1
1.4e-4
0%
8
1.1e-1
6.3e-4
0%
9
1.4e-1
2.7e-3
0%
10
1.3e-1
1.2e-2
0%
11
1.3e-1
5.4e-2
0%
12
1.2e-1
2.3e-1
0%
Bars are on a log scale spanning eight orders of magnitude, because a linear axis cannot show a gradient that has fallen by a factor of 106.
Vanishing gradients
Gradient standard deviation at the first layer is 2.32e-8 against 2.34e-1 at the last. The lower layers receive almost nothing, so they barely move during training — which is exactly the failure that stalled deep networks in the early 2000s.
Vanishing or exploding?
Sort
Sort each symptom and each fix.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Vanishing
Drop items hereExploding
Drop items here6 pieces left to place
Test your knowledge
20 questions
Question 1 of 20
Score: 0
The vanishing gradients problem means that during backpropagation:
Learn these first
Interview Questions
Google
Meta
Anthropic
NVIDIA
Google
NVIDIA
Meta
OpenAI
Google
Meta
Anthropic
Tesla
Google
NVIDIA
Meta
Apple
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required