Jargonautica
How the Machinery Works

Vanishing and Exploding Gradients

Also called: Vanishing Gradients, Exploding Gradients

When error signals shrink to nothing or blow up to infinity as they travel back through many layers. Either way the network stops learning properly. This was the practical barrier that kept networks shallow for years, and solving it was what made deep learning possible.

Technical view

Repeated multiplication of Jacobians during backpropagation causes gradient magnitudes to decay or grow exponentially with depth. Mitigations include non-saturating activations such as ReLU, careful initialisation, normalisation layers, residual connections and gradient clipping. Recurrent networks suffered worst because the same weights are reapplied at every timestep, which is what gating mechanisms in LSTMs were designed to address.


Part of AI Terminology Index, section: How the Machinery Works.

How it connects

Vanishing and Exploding Gradients links to 9 other terms. The faint lines are links between those terms. See it in the full graph.

Recurrent Neural NetworkRecurrent Neural Ne…GradientGradientLong Short-Term MemoryLong Short-Term Mem…Gradient ClippingGradient ClippingResidual ConnectionResidual ConnectionActivation FunctionActivation FunctionQuantum Machine LearningQuantum Machine Lea…Batch NormalisationBatch NormalisationWeight InitialisationWeight Initialisati…Vanishing and Exploding Gradients