Optimizing for ROC Curves on Class-Imbalanced Data by Training over a Family of Loss Functions
Kelsey Lieberman, Shuai Yuan, Swarna Kamlam Ravindran, Carlo Tomasi
TL;DR
This work targets binary classification under severe class imbalance by focusing on ROC optimization rather than overall accuracy. It analyzes the base Vector Scaling (VS) loss, showing large ROC variance across hyperparameters at high imbalance and proposing Loss Conditional Training (LCT) to train a single model over a family of losses, thereby approximating ROC tradeoffs. Through FiLM-conditioned LCT and sampling of loss parameters (notably $\tau$), the approach yields more robust ROC curves and reduced sensitivity to hyperparameter choices across CIFAR, CIFAR-100, and Kaggle melanoma datasets, outperforming standard VS loss especially at large $\beta$. The results suggest practical benefits for imbalanced binary tasks and point to future work extending LCT to multi-class and regression settings, with code available at the provided repository.
Abstract
Although binary classification is a well-studied problem in computer vision, training reliable classifiers under severe class imbalance remains a challenging problem. Recent work has proposed techniques that mitigate the effects of training under imbalance by modifying the loss functions or optimization methods. While this work has led to significant improvements in the overall accuracy in the multi-class case, we observe that slight changes in hyperparameter values of these methods can result in highly variable performance in terms of Receiver Operating Characteristic (ROC) curves on binary problems with severe imbalance. To reduce the sensitivity to hyperparameter choices and train more general models, we propose training over a family of loss functions, instead of a single loss function. We develop a method for applying Loss Conditional Training (LCT) to an imbalanced classification problem. Extensive experiment results, on both CIFAR and Kaggle competition datasets, show that our method improves model performance and is more robust to hyperparameter choices. Code is available at https://github.com/klieberman/roc_lct.
