PAC Prediction Sets Under Label Shift

Wenwen Si, Sangdon Park, Insup Lee, Edgar Dobriban, Osbert Bastani
10/1/2023

No official code found. Best implementation: averysi224/pac-ps-label-shift (5 stars, last commit 2024-02-25).

Abstract

Prediction sets capture uncertainty by predicting sets of labels rather than individual labels, enabling downstream decisions to conservatively account for all plausible outcomes. Conformal inference algorithms construct prediction sets guaranteed to contain the true label with high probability. These guarantees fail to hold in the face of distribution shift, which is precisely when reliable uncertainty quantification can be most useful. We propose a novel algorithm for constructing prediction sets with PAC guarantees in the label shift setting. This method estimates the predicted probabilities of the classes in a target domain, as well as the confusion matrix, then propagates uncertainty in these estimates through a Gaussian elimination algorithm to compute confidence intervals for importance weights. Finally, it uses these intervals to construct prediction sets. We evaluate our approach on five datasets: the CIFAR-10, ChestX-Ray and Entity-13 image datasets, the tabular CDC Heart dataset, and the AGNews text dataset. Our algorithm satisfies the PAC guarantee while producing smaller, more informative, prediction sets compared to several baselines.

View on arXivView PDF

Code Implementations(1)

52Shell, PythonOct 18, 20232 years ago

Similar Papers

Cite this paper

@article{si2023prediction,
  title  = {PAC Prediction Sets Under Label Shift},
  author = {Wenwen Si and Sangdon Park and Insup Lee and Edgar Dobriban and Osbert Bastani},
  year   = {2023},
  eprint = {2310.12964},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.12964},
  journal = {ICLR 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/2310.12964.svg)](https://codeofpaper.com/paper/2310.12964)

Discussion