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

Weijia Han, Lisha QuarXiv 2026

TL;DR

A classifier can hit 90% overall accuracy with its prediction sets while quietly failing on one specific class—a dangerous blind spot when that missed class is a critical medical diagnosis or a manufacturing defect. pcpbench is a new benchmark that evaluates how well conformal prediction methods protect the least-covered class under distribution shift. Crucially, it separates genuine coverage failures from normal finite-sample statistical noise, while tracking whether "fixes" actually help or just dump nearly every label into the prediction set.

What Problem Does This Paper Address?

When a machine learning model is uncertain, conformal prediction turns its raw confidence scores into a prediction set—a shortlist of plausible labels guaranteed (under standard assumptions) to contain the true label, say, 90% of the time.

The catch is that standard conformal prediction only guarantees marginal coverage (90% on average across all examples). Imagine a factory camera inspecting parts for ten equally common defects. If nine defects are covered 95% of the time and one—say, a dangerous crack—is covered only 45% of the time, the overall average is still 90%. Under distribution shift (like changes in lighting, blur, or camera sensors), this problem gets worse, as shifts can hit some classes much harder than others.

Measuring the worst-class coverage sounds like an obvious fix, but there is a statistical trap: as you add more classes or have fewer test examples per class, the lowest observed coverage naturally drops just due to random sampling variation. Without a baseline for what "normal" randomness looks like, you can't tell if a low number means the method is broken or if you just rolled unlucky dice across 100 classes.

Methods

To solve this, pcpbench introduces a matched reference: the expected worst-class coverage of a valid per-class calibrator given the exact same number of classes and per-class sample sizes, computed via a beta-binomial distribution. Comparing a method's worst-class coverage against this reference yields the worst-class coverage gap.

Figure 1: Benchmark workflow. The train example is illustrative. The reference histogram shows worst-class coverage under valid per-class calibration with matched sample sizes. Leaderboard rows use CIFAR-100 contrast severity three with 50 target labels per class. A flag of one marks a large prediction set.

Using cached scores from frozen backbones, the benchmark compares six calibration methods that differ in whether they use shared or per-class thresholds, and whether they access target labels:

  • Split (shared threshold, source labels only)
  • Source-Mondrian (per-class thresholds, source labels only)
  • Weighted (shared threshold, reweights source examples using unlabeled target scores)
  • PPI (Prediction-Powered Inference adaptation; per-class thresholds using pseudo-labels, plus target labels when available)
  • ACP (Audited Conformal Prediction; shared threshold with an audited APS score using labeled target data)
  • Target oracle (per-class calibration on labeled target data, serving as an empirical check on the matched reference)

Because a method can trivially boost coverage by returning huge prediction sets, pcpbench also tracks prediction-set size and flags rows that rely on overly large sets.

Datasets

The benchmark's main leaderboard spans 82 shift conditions:

  • CIFAR-10-C and CIFAR-100-C (80 conditions): 8 image corruptions across 5 severity levels (regenerated using stronger ImageNet-C severity settings), evaluated with zero-shot OpenCLIP ViT-B/32.
  • Skeleton Action Recognition (2 conditions): Evaluated with CTR-GCN on NTU-60 (disjoint subjects) and NTU-60 to Northwestern-UCLA (transferring across different sensors and action datasets).

The authors also run a CIFAR-100 class-count study ($K = 10, 25, 50, 100$ classes) across both ViT-B/32 and ViT-L/14 (80 condition–backbone pairs), and a large-scale ImageNet-1k study ($K = 1000$, 10 condition–backbone pairs).

Key Insights and Ideas

  • The matched reference works: Across all 9 no-shift settings, Source-Mondrian stays right inside the reference band. Under shift, the Target oracle closely tracks the matched reference—even on ImageNet-1k where the expected worst-class minimum is just 0.558.
  • Source thresholds break under shift: Transferring per-class source thresholds (Source-Mondrian) to shifted data causes genuine class-conditional coverage loss, not just sampling noise.
  • High coverage can be uselessly wide: Changing the scoring rule (e.g., from LAC to APS) or using methods like ACP can rescue worst-class coverage, but often by stuffing the prediction set with most of the possible labels—defeating the purpose of a helpful shortlist.
  • Adding classes widens the gap: On selected conditions where coverage is nonzero, adding more classes widens Source-Mondrian's coverage gap beyond what the matched reference predicts, largely because the newly added classes include ones the transferred thresholds frequently miss.

Key Results

  • CIFAR-100-C ($K = 100$): Source-Mondrian's worst-class coverage falls below the matched reference band in 77 of 80 condition–backbone pairs (compared to 0/9 without shift). Split and zero-label PPI fall below in 80/80 pairs, while Target oracle only dips below in 3/80.
Figure 2: Worst-class coverage gaps and prediction-set size across the full CIFAR-100 corruption grid. Each backbone column averages its 40 conditions. Each point averages five per-seed means. The top panels use percentage points. The dashed zero line is the matched reference. PPI uses zero target labels.
  • ImageNet-1k ($K = 1000$): The matched reference is $r = 0.558$, and Target oracle achieves $W = 0.559$ with a mean set size of $S = 34.0$ labels. Split leaves at least one class completely uncovered ($W = 0.000$) in all 10 pairs despite 83.8% marginal coverage. ACP hits $W = 0.592$, but requires an average of 794.2 labels per prediction set.
  • Leaderboard Trade-offs: Out of 492 leaderboard rows, 87 are flagged for producing overly large prediction sets. Among the remaining 405 unflagged rows, low marginal coverage ($M < 0.80$) is the most common failure mode.
  • Skeleton Transfer (NTU-60 $\to$ N-UCLA): Split, Source-Mondrian, and Weighted all leave the exact same action class completely uncovered on every seed ($W = 0.000$), whereas Target oracle hits $W = 0.848$ (matching the 0.848 reference).

Limitations and Future Work

The authors note that their target-label budget experiment—which tested 0, 10, 25, and 50 target labels per class—was only conducted on a single corruption condition (CIFAR-100 contrast severity three). They suggest two main directions for future work:

  1. Broader label-budget sweeps: Testing target-label requirements across diverse shift types (noise, blur, contrast, compression) and backbones to see when target calibration helps and where additional labels hit diminishing returns.
  2. Size-matched comparisons: Plotting worst-class coverage against mean prediction-set size at fixed label budgets, so practitioners can see which methods best protect the least-covered classes when human review effort is held constant.

Summary updated

BibTeX
@misc{han2026pcpbench,
  author = {Weijia Han and Lisha Qu},
  title = {{pcpbench: A Benchmark for Per-Class Conformal Coverage under Distribution Shift}},
  year = {2026},
  eprint = {2612.00905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.00905},
}
Figure