Probabilistic Conformal Prediction Using Conditional Random Samples

Zhendong Wang, Ruijiang Gao, Mingzhang Yin, Mingyuan Zhou, David M. Blei

Abstract

This paper proposes probabilistic conformal prediction (PCP), a predictive inference algorithm that estimates a target variable by a discontinuous predictive set. Given inputs, PCP constructs the predictive set by leveraging random samples from conditional generative models, providing valid coverage with improved sharpness in multimodal and high-dimensional settings.

Introduction

In many machine learning applications, a single point prediction is insufficient. Decision-makers often require a range of likely outcomes—a predictive set—that carries a statistical guarantee of containing the true value. Conformal Prediction (CP) provides such a framework, ensuring that the true label falls within the predicted set with a user-defined probability (e.g., $1-\alpha = 0.90$).

However, traditional CP methods often struggle with "sharpness." They typically produce continuous intervals that may include low-probability regions. For instance, in predicting taxi drop-off locations in New York City, a passenger might go to Times Square or JFK Airport. A standard continuous interval would encompass the entire path between them, including the East River, where a drop-off is impossible. This paper introduces Probabilistic Conformal Prediction (PCP) to address this by generating discontinuous, high-density predictive sets that tightly wrap around multimodal data.

Methodology

PCP extends the Split Conformal Prediction framework by incorporating conditional generative models (CGMs). The approach consists of three primary steps:

  1. Model Fitting: A CGM is trained to estimate the conditional distribution of the target variable $Y$ given input $X$. PCP is model-agnostic, compatible with both explicit density models (e.g., Mixture Density Networks) and implicit ones (e.g., GANs, VAEs, or Diffusion models).
  2. Calibration: Using a held-out calibration set, the algorithm generates $K$ samples from the CGM for each instance. It computes a nonconformity score based on the distance between the ground truth and the nearest generated sample. The $(1-\alpha)$ quantile of these scores determines a global radius.
  3. Prediction: For a new input, $K$ samples are drawn. The predictive set is defined as the union of $K$ balls centered at these samples, each with the calibrated radius.

The authors also introduce HD-PCP (High Density PCP), which filters out low-density samples before constructing the set, further shrinking the volume and improving interpretability.

Experimental Evaluation

The effectiveness of PCP was evaluated across diverse scenarios:

  • Synthetic Data: Visualizing performance on complex 2D shapes like "S-curves" and "Swiss-rolls."
  • Real-World Regression: Benchmarking on 9 public datasets (e.g., bike-sharing, medical expenditures).
  • Multi-Target & High-Dimensional Tasks: Predicting 2D NYC Taxi drop-off coordinates and performing image completion on the MNIST dataset.

Results and Discussion

The primary advantage of PCP lies in its ability to handle multimodality without requiring explicit density calculations. By using the distance to the nearest sample as a nonconformity measure, the algorithm naturally ignores "voids" between high-probability clusters.

Comparison of predictive sets for NYC Taxi drop-off locations. PCP and HD-PCP (d, e) generate sharp, disjoint sets compared to the overly broad continuous regions produced by baselines like CDSplit and CHR (b, c).

Key findings include:

  • Statistical Validity: PCP is mathematically proven to maintain marginal coverage guarantees.
  • Superior Sharpness: In the NYC Taxi task, PCP identified specific "islands" around popular hubs, whereas baselines produced large, uninformative boxes.
  • Efficiency in High Dimensions: Unlike methods requiring grid searches, PCP's sampling-based nature allows it to scale to high-dimensional problems like image completion, where it successfully captured multiple possible digit completions (e.g., '3' vs '5').

Conclusion and Future Work

PCP offers a flexible, scalable framework for generating sharp predictive sets. While highly effective, its performance is tied to the quality of the underlying generative model. Future research could explore alternative distance metrics for non-Euclidean data types (like text) and adapt the framework for categorical classification tasks.

Summary updated

BibTeX
@inproceedings{wang2023probabilistic,
  author = {Zhendong Wang and Ruijiang Gao and Mingzhang Yin and Mingyuan Zhou and David M. Blei},
  title = {{Probabilistic Conformal Prediction Using Conditional Random Samples}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=mdmJNsAgiq},
}
Figure