Why is Dice loss preferred over standard pixel-wise cross-entropy for imbalanced segmentation tasks?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why segmentation models with a tiny foreground are often trained with Dice loss instead of plain pixel-wise cross-entropy, and what the drawbacks are. Tests understanding of class imbalance in dense prediction, the Dice formula and its gradient, and combined Dice and cross-entropy losses.