LearnBenchStart learning →

AI Research Scientist · Deep Network Training Basics

Vanishing and exploding gradients

Real lesson card · Page 1 of 4

Vanishing and exploding gradients

Vanishing and exploding gradients

During backprop, the gradient reaching an early layer is the product of many per-layer (or per-timestep) local gradient factors. If those factors are consistently below 1, the product shrinks exponentially toward zero — vanishing. If consistently above 1, it grows exponentially — exploding.
Example
In a 50-layer network with each factor averaging 0.9, the gradient reaching layer 1 scales by 0.9500.0050.9^{50}\approx 0.005: the signal is nearly gone.

Recall check from the same lesson

In a very long recurrent sequence model, adding LayerNorm at each timestep is enough to fully prevent gradient decay across all time steps, without needing a gating mechanism.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Deep Network Training Basics questions