A Closer Look at AUROC and AUPRC under Class Imbalance
Matthew B. A. McDermott, Haoran Zhang, Lasse Hyldig Hansen, Giovanni Angelotti, Jack Gallifant
TL;DR
This work challenges the widespread belief that AUPRC universally outperforms AUROC under class imbalance. Through theoretical theorems and empirical validation on synthetic and real-world fairness datasets, the authors show that AUPRC weights high-score errors more heavily, can amplify disparities across subpopulations, and is not universally advantageous for model evaluation or deployment. They also reveal extensive misattribution in the literature linking AUPRC to superior performance in imbalanced settings. The paper provides context-aware guidance for metric selection and warns against unchecked generalizations, highlighting ethical considerations in fairness-sensitive applications. Overall, it advances the technical understanding of AUROC vs AUPRC and advocates for careful, deployment-aware metric reporting in ML practice.
Abstract
In machine learning (ML), a widespread claim is that the area under the precision-recall curve (AUPRC) is a superior metric for model comparison to the area under the receiver operating characteristic (AUROC) for tasks with class imbalance. This paper refutes this notion on two fronts. First, we theoretically characterize the behavior of AUROC and AUPRC in the presence of model mistakes, establishing clearly that AUPRC is not generally superior in cases of class imbalance. We further show that AUPRC can be a harmful metric as it can unduly favor model improvements in subpopulations with more frequent positive labels, heightening algorithmic disparities. Next, we empirically support our theory using experiments on both semi-synthetic and real-world fairness datasets. Prompted by these insights, we conduct a review of over 1.5 million scientific papers to understand the origin of this invalid claim, finding that it is often made without citation, misattributed to papers that do not argue this point, and aggressively over-generalized from source arguments. Our findings represent a dual contribution: a significant technical advancement in understanding the relationship between AUROC and AUPRC and a stark warning about unchecked assumptions in the ML community.
