Why can't raw Intersection over Union be directly optimized as a loss function?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why Intersection over Union cannot be trained on directly as a loss for segmentation masks and detection boxes, and what is used in its place. Tests understanding of gradients through thresholded outputs, the zero-overlap problem for boxes, and differentiable surrogates such as soft IoU, Dice, Lovasz-Softmax and GIoU.