TL;DR
This paper introduces PS-W, a novel algorithm for generating "prediction sets" (sets of possible labels) that come with a rigorous mathematical guarantee of correctness, even when the test data distribution differs from the training data (covariate shift). By combining rejection sampling with robust optimization over uncertain importance weights, the authors ensure that models remain "Probably Approximately Correct" (PAC) in real-world, shifting environments.
The Challenge: Uncertainty Under Covariate Shift
In high-stakes fields like robotics or healthcare, a single-label prediction (e.g., "This is a tumor") isn't enough; we need to know the model's uncertainty. A common solution is to produce a prediction set—a list of labels likely to contain the truth. Ideally, we want a guarantee that the true label is in this set a specific percentage of the time (e.g., 90%).
Standard methods for this, such as conformal prediction, rely on a major assumption: the training data and the test data are "exchangeable" (essentially, they come from the same distribution). In the real world, this often fails. Lighting changes, sensors degrade, or we move from a "daytime" training set to a "nighttime" test set. This phenomenon is known as covariate shift. When the distribution shifts, standard uncertainty guarantees evaporate. This paper aims to restore those guarantees without making the prediction sets so large they become useless.
The PS-W Approach
The authors build on the PAC (Probably Approximately Correct) framework. A PAC prediction set guarantees that, with high probability over the choice of training data, the expected error on new test points is below a user-defined threshold ($\epsilon$).
To handle covariate shift, the authors introduce two key innovations:
- Rejection Sampling: They use importance weights (the ratio of the target distribution to the source distribution) to "filter" the training data. This process effectively transforms a labeled source dataset into a proxy for the unlabeled target dataset.
- Robust Clopper-Pearson Bounds: In reality, we don't know the exact importance weights; we have to estimate them. If our estimates are slightly off, the PAC guarantee fails. The authors address this by using confidence intervals for the weights. Their algorithm, PS-W, performs a "greedy" optimization to find the worst-case weights within these intervals, ensuring the error guarantee holds even under estimation uncertainty.
Key Results and Insights
The authors evaluated their approach on several challenging benchmarks, including DomainNet, ImageNet-C (synthetic corruptions), and ImageNet-PGD (adversarial perturbations).
- Reliability Across Shifts: In experiments across DomainNet and ImageNet, PS-W was the only practical method that consistently satisfied the error bound ($\epsilon = 0.1$) across all tested distribution shifts. Standard point-estimate methods frequently violated the safety line.
- Efficiency vs. Safety: There is a fundamental tradeoff between the size of the prediction set and the error rate. While a very conservative baseline could meet safety requirements, it did so by producing massive, uninformative prediction sets. PS-W found the sweet spot, producing the smallest average normalized set size among all methods that actually satisfied the PAC constraint.
- Robustness to Adversaries: Even under adversarial PGD attacks on ImageNet, PS-W maintained its coverage guarantee, whereas standard methods failed significantly.
Limitations and Future Work
While PS-W represents a significant step forward, it relies on hyperparameters like a "smoothness parameter" ($E$) and the number of bins ($K$) used for weight estimation. A more rigorous, automated way to choose these would be beneficial. Additionally, future work could explore incorporating fully probabilistic "Bayesian" uncertainty for the importance weights, potentially leading to even more refined and tighter prediction sets while maintaining rigorous PAC guarantees.
Summary updated