Gradient Clipping
Category: Foundations of ML/AI
A technique that limits gradient magnitudes during training to prevent the exploding gradient problem.
Full Explanation
Gradient clipping rescales or caps gradients when their norm exceeds a specified threshold, preventing excessively large updates that can destabilize training. Two common variants are norm clipping, which rescales the entire gradient vector to have a maximum norm, and value clipping, which caps individual gradient components. Gradient clipping is standard practice when training recurrent neural networks and transformers, where long-range dependencies can cause gradient magnitudes to vary dramatically. The clipping threshold is a hyperparameter, typically set between 0.5 and 5.0 depending on the model. While gradient clipping does not solve the root cause of exploding gradients, it provides a reliable practical safeguard. Most modern deep learning frameworks include gradient clipping as a built-in optimizer option.
Related Terms
More in Foundations of ML/AI
Explore More
- AI Tools Library — Discover AI tools related to Gradient Clipping
- AI Education — Courses to learn about Foundations of ML/AI
- AI News — Latest news and updates