A Closer Look at AUROC and AUPRC under Class Imbalance

Matthew B. A. McDermott, Lasse Hyldig Hansen, Haoran Zhang, Giovanni Angelotti, Jack Gallifant
2/3/2026

No official code found. Best implementation: mmcdermott/AUC_is_all_you_need (17 stars, last commit 2024-01-20). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

Analyzing different ML model comparison metrics

173Jupyter NotebookOct 8, 20232 years ago
hzhang0/auc_biasCommunity100%

Code for the paper "A Closer Look at AUROC and AUPRC under Class Imbalance" [NeurIPS 2024]

60Python, Jupyter NotebookOct 31, 20241 years ago

Similar Papers

Cite this paper

@article{mcdermott2026closer,
  title  = {A Closer Look at AUROC and AUPRC under Class Imbalance},
  author = {Matthew B. A. McDermott and Lasse Hyldig Hansen and Haoran Zhang and Giovanni Angelotti and Jack Gallifant},
  year   = {2026},
  eprint = {2401.06091},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2401.06091},
  url    = {https://arxiv.org/abs/2401.06091},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.06091.svg)](https://codeofpaper.com/paper/2401.06091)

Discussion