Conformal Prediction for Long-Tailed Classification

Tiffany Ding, Jean-Baptiste Fermanian, Joseph Salmon
7/9/2025
stat.MLcs.CVcs.LG

No official code found. Best implementation: tiffanyding/long-tail-conformal (6 stars, last commit 2025-11-26).

Abstract

Many real-world classification problems, such as plant identification, have extremely long-tailed class distributions. In order for prediction sets to be useful in such settings, they should (i) provide good class-conditional coverage, ensuring that rare classes are not systematically omitted from the prediction sets, and (ii) be a reasonable size, allowing users to easily verify candidate labels. Unfortunately, existing conformal prediction methods, when applied to the long-tailed setting, force practitioners to make a binary choice between small sets with poor class-conditional coverage or sets with very good class-conditional coverage but that are extremely large. We propose methods with guaranteed marginal coverage that smoothly trade off between set size and class-conditional coverage. First, we introduce a new conformal score function called prevalence-adjusted softmax that targets macro-coverage, a relaxed notion of class-conditional coverage. Second, we propose a new procedure that interpolates between marginal and class-conditional conformal prediction by linearly interpolating their conformal score thresholds. We demonstrate our methods on Pl@ntNet-300K and iNaturalist-2018, two long-tailed image datasets with 1,081 and 8,142 classes, respectively.

View on arXivView PDF

Code Implementations(1)

Code release for "Conformal Prediction for Long-Tailed Classification"

61Shell, PythonMay 19, 202510 months ago

Similar Papers

Cite this paper

@article{ding2025conformal,
  title  = {Conformal Prediction for Long-Tailed Classification},
  author = {Tiffany Ding and Jean-Baptiste Fermanian and Joseph Salmon},
  year   = {2025},
  eprint = {2507.06867},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.06867v2}
}

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

Discussion