Gradient Clipping
Definition
Gradient clipping limits to large gradients before the optimizer step.
In standard clipping, the entire gradient is scaled when its norm exceeds a limit; value clipping limits individual values. It treats symptoms of unstable updates.
Simply explained
Too large gradients are limited before the parameter step; the actual step size additionally depends on the optimizer.
Why it matters in practice
Clipping can stabilize training, but does not replace a root cause analysis of learning rate, data or architecture.
Example from business
Hypothetical example: A sequence model logs gradient norms and clips above a validated limit.
Limits and pitfalls
- Adopt limit blindly; hide permanent clipping; mix value and norm clipping; do not examine NaNs.
Origin & history
Pascanu, Mikolov and Bengio described standard clipping against exploding gradients in the preprint of 2012, revised 2013.
Use in mid-sized companies
- Select the limit based on your training diagnostics and examine frequent clipping and NaN levels.
Frequently asked questions
Does it fix vanishing gradients?
No. When does it apply? When the defined threshold is exceeded.
Sources
Source check: 10.10.2026. Definition and documented classification verified; examples describe possible applications.
Editorially reviewed on: