Optimizing Probabilistic Conformal Prediction with Vectorized Non-Conformity Scores

Minxing Zheng, Shixiang ZhuarXiv 2024 · DOI

Abstract

Conformal Prediction (CP) provides rigorous statistical guarantees for uncertainty sets, yet often suffers from excessive conservatism in high-dimensional or multi-modal settings. We present Generative Conformal Prediction with Vectorized Non-Conformity Scores (GCP-VCR), a framework that enhances efficiency by leveraging generative models and local density ranking. By transitioning from scalar to vectorized non-conformity scores, GCP-VCR enables adaptive uncertainty allocation, resulting in significantly tighter prediction sets. Empirical evaluations across synthetic, MNIST, and real-world datasets demonstrate that GCP-VCR consistently achieves superior efficiency while maintaining target coverage.

Introduction

In high-stakes machine learning applications, quantifying predictive uncertainty is as critical as the prediction itself. Conformal Prediction (CP) has emerged as a robust framework for generating uncertainty sets with finite-sample coverage guarantees. However, traditional CP methods often produce "conservative" sets—regions that are unnecessarily large, especially when dealing with complex, multi-modal data distributions. This inefficiency typically stems from the use of simplistic, scalar non-conformity scores that fail to capture the nuanced geometry of the underlying error distribution.

Methodology: GCP-VCR

The proposed Generative Conformal Prediction with Vectorized Non-Conformity Scores (GCP-VCR) addresses these limitations through a three-stage pipeline:

  1. Generative Sampling: Instead of a point estimate, a generative model draws $K$ samples from the predicted conditional distribution.
  2. Density Ranking: These samples are ranked using an $m$-nearest neighbor approach to estimate local density. This allows the model to distinguish between high-confidence regions and low-probability tails.
  3. Vectorized Scoring and Optimization: Unlike baseline methods like Probabilistic Conformal Prediction (PCP) which reduce multiple samples to a single scalar score (e.g., the minimum distance), GCP-VCR maintains a vector of scores. Each rank is assigned an adaptive quantile level.
Comparison of scoring mechanisms between PCP (scalar) and GCP-VCR (vectorized).

By formulating a constrained optimization problem, the framework minimizes the total volume of the resulting uncertainty balls while ensuring the required coverage probability. An iterative heuristic algorithm is employed to solve this optimization efficiently in linear time.

Experimental Evaluation

The researchers evaluated GCP-VCR against five state-of-the-art baselines, including CQR, CHR, and PCP, across a variety of datasets:

  • Synthetic Data: Complex geometries such as spirals and multi-modal Gaussian mixtures.
  • MNIST: Testing in the latent embedding space of a Variational Autoencoder (VAE).
  • Real-world Data: Blog feedback, Facebook comment volumes, and New York City bike-sharing data.

Key Results

GCP-VCR consistently outperformed baselines in "efficiency" (the size of the prediction set) while strictly maintaining the 90% coverage guarantee. On the MNIST digit generation task, the uncertainty sets produced by GCP-VCR were more semantically aligned with target digits than those of PCP.

In real-world spatial data, such as the NYC Bike dataset, the advantage of GCP-VCR's localized uncertainty allocation is evident. While traditional methods like CHR or R2CCP produce large, coarse bounding boxes, GCP-VCR generates tight, disjoint regions that better reflect the actual likely locations.

Comparison of prediction regions on the NYC Bike dataset. GCP-VCR produces significantly tighter and more informative sets than baselines.

Conclusion

GCP-VCR represents a significant step forward in making conformal prediction practical for complex data. By replacing global scalar scores with localized vectorized ones, it allows for a more intelligent "budgeting" of uncertainty. Future work will focus on reducing sensitivity to the number of samples $K$ and further refining the optimization heuristics to ensure global optimality.

Summary updated

BibTeX
@misc{zheng2024optimizing,
  author = {Minxing Zheng and Shixiang Zhu},
  title = {{Optimizing Probabilistic Conformal Prediction with Vectorized Non-Conformity Scores}},
  year = {2024},
  eprint = {2410.13735},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13735},
}
Figure