Class-Conditional Conformal Prediction with Many Classes

Tiffany Ding, Anastasios N. Angelopoulos, Stephen Bates, Michael I. Jordan, Ryan J. Tibshirani
6/15/2023
stat.MLcs.CVcs.LG

No official code found. Best implementation: tiffanyding/class-conditional-conformal (22 stars, last commit 2025-08-14).

Abstract

Standard conformal prediction methods provide a marginal coverage guarantee, which means that for a random test point, the conformal prediction set contains the true label with a user-specified probability. In many classification problems, we would like to obtain a stronger guarantee--that for test points of a specific class, the prediction set contains the true label with the same user-chosen probability. For the latter goal, existing conformal prediction methods do not work well when there is a limited amount of labeled data per class, as is often the case in real applications where the number of classes is large. We propose a method called clustered conformal prediction that clusters together classes having "similar" conformal scores and performs conformal prediction at the cluster level. Based on empirical evaluation across four image data sets with many (up to 1000) classes, we find that clustered conformal typically outperforms existing methods in terms of class-conditional coverage and set size metrics.

View on arXivView PDF

Code Implementations(1)

227Shell, PythonJan 27, 20231 years ago

Similar Papers

Cite this paper

@article{ding2023classconditional,
  title  = {Class-Conditional Conformal Prediction with Many Classes},
  author = {Tiffany Ding and Anastasios N. Angelopoulos and Stephen Bates and Michael I. Jordan and Ryan J. Tibshirani},
  year   = {2023},
  eprint = {2306.09335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.09335v2},
  journal = {NEURIPS 2023 2023}
}

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/2306.09335.svg)](https://codeofpaper.com/paper/2306.09335)

Discussion