Skip to content

pcpbench: A Benchmark for Per-Class Conformal Coverage under Distribution Shift

Weijia Han, Lisha Qu

cs.LG

Abstract

A classifier can include the correct label in 90% of its prediction sets while frequently leaving out one true class. Under distribution shift, these misses can matter even when overall coverage looks adequate. Yet the lowest observed class coverage also depends on the number of classes and the number of examples per class. We introduce pcpbench, a benchmark that compares six calibration methods across 82 shift conditions. It compares worst-class coverage with a matched reference for the same class count and per-class sample sizes and reports prediction-set size alongside coverage. Source-Mondrian calibrates a separate threshold for each class on source data and stays within the reference band across all 9 settings without shift. Applying these source thresholds to shifted CIFAR-100 data at 100 classes places its worst-class coverage below the band in 77 of 80 condition-backbone pairs. This comparison supports a loss of class-conditional coverage when source thresholds are transferred to shifted data. The score comparison further shows that higher coverage can come with prediction sets containing a large share of the labels. pcpbench evaluates these coverage gains alongside set size and target-label access to assess how much they help narrow down plausible labels.

Create a lesson

Metadata

Categories
cs.LG, stat.ML
Comments
Accepted at KDD 2027 (Datasets and Benchmarks Track). 11 pages, 6 figures