🧠 Deep LearningID:
gradient-clipping-ampGradient Clipping
梯度裁剪
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of Gradient Clipping.
Use Cases
In production engineering, what are the primary use cases for Gradient Clipping and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Write the global-norm clipping formula: compute , and when apply ; why does uniform scaling preserve the direction and bound the step norm at ?
2
Per-parameter clipping vs global-norm clipping: drawbacks of each (direction distortion, uncontrollable global norm), and when to use which.
3
When does clipping happen in DDP (after gradient All-Reduce, before the step)? Why clip only after synchronization? Why clip the FP32 gradients in mixed precision?
4
Full loss-spike (NaN/Inf) handling: why must steps with NaN gradients be skipped, halving the AMP loss scale () with step replay, and the ordering of checkpoint rollback and LR reduction.
5
Effects of being too small / too large? How can monitoring tell you that clipping is too frequent (the ratio persistently far below 1) and the LR is too large?
📖 In-depth Guide:📄 optimizer-and-initialization →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "Gradient Clipping"
Single choice pitfall questions with instant feedback and mistake tracking.