Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M6285

Exploding Gradient

Exploding Gradient
TechnicalmediumNeuroscience
Included
account_tree

Updated 2026-08-09

Loading revision record…

Summary

Exploding gradients occur when repeated multiplication of large derivatives during backpropagation makes updates grow without bound, so training diverges.

Definition

In training deep neural networks, the gradient of the loss with respect to early layers is computed by multiplying many terms along the chain of layers. When those terms are consistently greater than one, the product grows exponentially with depth, producing enormous updates and numeric overflow. The model then fails to converge, often showing NaN losses. Gradient clipping, careful initialization and normalization are the standard countermeasures.

How to use

- Check the chain: ask whether small per-step exaggerations compound along a long chain of handoffs. - Clip at each node: normalize the signal before passing it on so it cannot grow without bound. - Distinguish the failure: separate amplification from attenuation, since the two require different remedies.

Mechanism

Backpropagation multiplies one derivative per layer, so the total gradient scales with the product of all of them. A product of many factors slightly above one grows exponentially with depth, and the parameter update becomes so large that it overshoots the minimum and destroys the learned state. Clipping bounds the norm of the update, which stops the amplification from compounding.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Recurrent networks trained on long sequences commonly show exploding gradients when clipping is not applied.
  • A rumor passed through many tellers picks up a small exaggeration at each step until it is unrecognizable.

Common pitfalls

  • Confusing exploding with vanishing gradients, when the two failures require different remedies.
  • Clipping the gradient without investigating the root cause, which masks a deeper numerical or architectural problem.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Vanishing_gradient_problemZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS