What loss-formulation issues commonly cause a model's loss to become NaN?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks which ways of writing a loss function make training produce NaN values. Tests numerical stability of the loss in both the forward and backward pass, how to rewrite a loss so it stays finite, and how to find the operation that produced the first NaN.