Skip to main content
QUICK REVIEW

[Paper Review] PAC Prediction Sets Under Covariate Shift

Sangdon Park, Edgar Dobriban|arXiv (Cornell University)|Jun 17, 2021
Adversarial Robustness in Machine LearningComputer Science44 references5 citations
TL;DR

This paper proposes PAC prediction sets under covariate shift by leveraging importance weights to maintain valid uncertainty quantification when test data distribution differs from training. It introduces PS-W, a robust algorithm that uses rejection sampling with confidence intervals on importance weights, achieving the smallest average normalized prediction set size while satisfying the PAC constraint across multiple domain shifts on ImageNet and DomainNet.

ABSTRACT

An important challenge facing modern machine learning is how to rigorously quantify the uncertainty of model predictions. Conveying uncertainty is especially important when there are changes to the underlying data distribution that might invalidate the predictive model. Yet, most existing uncertainty quantification algorithms break down in the presence of such shifts. We propose a novel approach that addresses this challenge by constructing \emph{probably approximately correct (PAC)} prediction sets in the presence of covariate shift. Our approach focuses on the setting where there is a covariate shift from the source distribution (where we have labeled training examples) to the target distribution (for which we want to quantify uncertainty). Our algorithm assumes given importance weights that encode how the probabilities of the training examples change under the covariate shift. In practice, importance weights typically need to be estimated; thus, we extend our algorithm to the setting where we are given confidence intervals for the importance weights. We demonstrate the effectiveness of our approach on covariate shifts based on DomainNet and ImageNet. Our algorithm satisfies the PAC constraint, and gives prediction sets with the smallest average normalized size among approaches that always satisfy the PAC constraint.

Motivation & Objective

  • To address the failure of existing uncertainty quantification methods under covariate shift, where test data distribution differs from training.
  • To develop a method that maintains probably approximately correct (PAC) prediction sets when the input distribution shifts but the conditional label distribution remains unchanged.
  • To handle uncertainty in importance weights by incorporating confidence intervals, making the approach robust to estimation errors.
  • To achieve minimal average normalized prediction set size among methods that always satisfy the PAC constraint.

Proposed method

  • Uses importance weights to model how training example likelihoods change under covariate shift from source to target domain.
  • Employs rejection sampling to construct PAC prediction sets when importance weights are known.
  • Extends the method to handle confidence intervals around importance weights, ensuring robustness to estimation error.
  • Applies inductive conformal prediction with a calibration set to maintain valid coverage under distribution shift.
  • Optimizes prediction set size by tuning a threshold τ that controls set size while maintaining PAC coverage.
  • Uses a two-stage process: train a model on source data, then calibrate prediction sets on a held-out calibration set using weighted importance sampling.

Experimental results

Research questions

  • RQ1Can PAC prediction sets be reliably maintained under covariate shift when the input distribution changes?
  • RQ2How can uncertainty in importance weights be incorporated into prediction set construction to ensure robustness?
  • RQ3What is the trade-off between prediction set size and coverage error under covariate shift?
  • RQ4How does the proposed method compare to existing approaches in terms of size and validity of prediction sets across diverse domain shifts?

Key findings

  • PS-W satisfies the PAC constraint across nine covariate shifts on DomainNet and ImageNet, while existing methods like PS and WSCI fail to meet the error bound.
  • The proposed method achieves the smallest average normalized prediction set size among all approaches that guarantee the PAC constraint.
  • On rate shifts (e.g., daytime to nighttime), PS-W constructs valid prediction sets where existing approaches fail.
  • In support shifts (e.g., ImageNet to ImageNet-C and ImageNet-PGD), PS-W maintains coverage with minimal set size, outperforming PS and WSCI.
  • Visualization in Figures 9–11 confirms that PS-W includes the true label more reliably than PS, especially in challenging shifts.
  • The method is robust to estimation error in importance weights, as demonstrated by its performance under confidence interval uncertainty.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.