NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Class-Conditional Conformal Prediction for Imbalanced Data via Top-$k$ Classes

Yuanjie Shi, Subhankar Ghosh, Taha Belkhouja, Jana Doppa, Yan YanOpenReview 2024 · Submission to ICLR 2024 · Rejected

Abstract

Classification tasks where data contains skewed class proportions (aka {\em imbalanced data}) arises in many real-world applications including medical diagnosis. Safe deployment of classifiers for imbalanced data settings require theoretically-sound uncertainty quantification. Conformal prediction (CP) is a promising framework for producing prediction sets from black-box classifiers with a user-specified coverage (i.e., true class is contained with high probability). Existing class-conditional CP (CCP) method employs a black-box classifier to find one threshold for each class during calibration and then includes every class label that meets the corresponding threshold for testing inputs, leading to large prediction sets. This paper studies the problem of how to develop provable CP methods with small prediction sets for the class-conditional coverage setting and makes several contributions. First, we theoretically show that marginal CP can perform arbitrarily poorly and cannot provide coverage guarantee for minority classes. Second, we propose a principled algorithm referred to as {\em $k$-Class-conditional CP ($k$-CCP)}. The key idea behind $k$-CCP is to restrict the candidate labels for the prediction set of a testing input to only top-$k$ labels based on the classifier scores (in contrast to all labels in CCP). Third, we prove that $k$-CCP provides class-conditional coverage and produces smaller prediction sets over the CCP method. Our experiments on benchmark datasets demonstrate that $k$-CCP achieves class-conditional coverage and produces smaller prediction sets over baseline methods.
BibTeX
@misc{shi2024class,
  author = {Yuanjie Shi and SUBHANKAR GHOSH and Taha Belkhouja and Jana Doppa and Yan Yan},
  title = {{Class-Conditional Conformal Prediction for Imbalanced Data via Top-$k$ Classes}},
  year = {2024},
  url = {https://openreview.net/forum?id=Dtxc7mlKRg},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}

Loading related content...

Figure