ML Model and Foundation Model (FM) Development
During recurrent neural network training, gradient norms suddenly increase by several orders of magnitude and the loss becomes NaN. Which change MOST directly limits the unstable updates?
Show the answer
Correct answerC. Apply gradient norm clipping
AWhy not this: Reducing weight decay weakens regularization but does not directly bound gradient magnitude.
BWhy not this: A classification threshold changes predicted classes after inference, not gradients during training.
CWhy this is right: Clipping bounds gradient magnitude and helps prevent excessively large parameter updates.
DWhy not this: Additional epochs do not constrain exploding gradients or prevent numerical instability.
Gradient norm clipping limits excessively large gradients before parameter updates, directly addressing exploding gradients. More training epochs do not correct unstable updates and can prolong the failure.