What properties must a custom loss function have to be usable for gradient-based training?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks which properties a custom loss function needs before a neural network can be trained on it with gradient descent. Tests your understanding of autograd, differentiability, numerical stability, and how to design losses whose minimum matches the behavior you want.