Probabilistic Conformal Prediction with Approximate Conditional Validity

Vincent Plassier, Alexander Fishkov, Mohsen Guizani, Maxim Panov, Eric Moulines · DOI

Abstract: We develop a new method for generating prediction sets that combines the flexibility of conformal methods with an estimate of the conditional distribution $P_{Y \mid X}$. Existing methods, such as conformalized quantile regression and probabilistic conformal prediction, usually provide only a marginal coverage guarantee. In contrast, our approach extends these frameworks to achieve approximately conditional coverage, which is crucial for many practical applications. Our prediction sets adapt to the behavior of the predictive distribution, making them effective even under high heteroscedasticity. While exact conditional guarantees are infeasible without assumptions on the underlying data distribution, we derive non-asymptotic bounds that depend on the total variation distance of the conditional distribution and its estimate. Using extensive simulations, we show that our method consistently outperforms existing approaches in terms of conditional coverage, leading to more reliable statistical inference in a variety of applications.

Introduction: The Need for Conditional Validity

Conformal Prediction (CP) has emerged as a robust framework for providing rigorous uncertainty bounds for machine learning models. By design, standard CP guarantees marginal validity: if a 90% confidence level is requested, the true value will fall within the prediction set 90% of the time on average across the entire dataset. However, this global guarantee often masks significant local failures. In regions of the input space with high noise or complex distributions, the actual coverage may drop precipitously, while in quieter regions, it may be unnecessarily conservative.

This lack of conditional validity—the guarantee that coverage holds for any specific input $x$—is a major hurdle for safety-critical applications. In heteroscedastic settings where variance fluctuates, a fixed-width prediction interval is fundamentally inadequate.

Comparison of marginal CP (pink) vs. adaptive CP² (green) on heteroscedastic data.

As shown in the figure above, standard CP (pink) produces a constant-width band that fails to capture the increasing variance of the data. In contrast, the proposed $\text{CP}^2$ method (green) dynamically adjusts its width to maintain consistent coverage across the entire input range.

The $\text{CP}^2$ Framework

To address these limitations, we introduce $\text{CP}^2$ (Probabilistic Conformal Prediction with Approximate Conditional Validity). Our method bridges the gap between the theoretical rigor of conformal prediction and the flexibility of conditional density estimation. By leveraging pre-trained models like Mixture Density Networks (MDNs) or generative models, $\text{CP}^2$ constructs prediction sets that are locally adaptive.

The core innovation is a localized calibration function. Instead of a one-size-fits-all threshold, $\text{CP}^2$ calculates a local parameter $\tau_x$ based on the estimated conditional distribution $P_{Y|X}$. This ensures that the prediction set is tailored to the specific uncertainty of each input. We propose two primary implementations:

  1. $\text{CP}^2$-HPD: This variant utilizes explicit conditional density estimators to identify Highest Predictive Density (HPD) regions. It is particularly effective for multimodal data where the output might reside in several disjoint regions.
  2. $\text{CP}^2$-PCP: Designed for implicit generative models, this variant constructs prediction sets as unions of spheres around sampled points. It dynamically adjusts the radii of these spheres to account for local variability, overcoming the under-coverage issues seen in traditional Probabilistic Conformal Prediction (PCP).

Experimental Evaluation

We evaluated $\text{CP}^2$ against state-of-the-art baselines, including Conformalized Quantile Regression (CQR) and standard PCP, across synthetic and real-world benchmarks.

Synthetic Multimodal Data

To test the ability to handle complex distributions, we used a synthetic dataset featuring four Gaussian clusters. Standard interval-based methods like CQR are forced to create large, inefficient boxes that cover the empty space between clusters. $\text{CP}^2$, however, naturally identifies the disjoint regions of high density.

Evaluation of CP² on multimodal synthetic data: (a) MDN estimate, (b) conditional coverage, and (c) prediction set length.

As illustrated in the results above, $\text{CP}^2$-HPD maintains a stable conditional coverage near the 90% target (red dashed line) across the input space $X$. Other methods like CP and PCP show significant fluctuations, either severely under-covering or over-covering. Furthermore, $\text{CP}^2$ achieves this coverage with significantly smaller prediction set lengths in many regions compared to CQR.

Real-World Performance

On real-world datasets ranging from UCI regression tasks to multi-dimensional target problems (e.g., bike, blog, temp), $\text{CP}^2$ consistently outperformed competitors. In "worst-slab coverage" tests—which measure the lowest coverage found in any local slice of the data—$\text{CP}^2$ remained near the 90% nominal level, while baselines often plummeted to 75% or lower. In multi-dimensional settings, $\text{CP}^2$ scaled elegantly, providing tight, reliable sets without the over-conservatism typical of Bonferroni-corrected quantile methods.

Conclusion and Future Directions

While achieving perfect conditional validity in finite samples is mathematically impossible without strong assumptions, $\text{CP}^2$ demonstrates that approximate conditional validity is both achievable and highly effective. By deriving non-asymptotic bounds linked to the Total Variation distance between true and estimated distributions, we provide a theoretical foundation for this approach.

Future work will focus on the design of optimized adjustment functions and reducing the dependency on the quality of the initial density estimator. $\text{CP}^2$ represents a significant step toward making conformal prediction truly reliable for complex, real-world decision-making.

Summary updated

BibTeX
@inproceedings{plassier2025probabilistic,
  author = {Vincent Plassier and Alexander Fishkov and Mohsen Guizani and Maxim Panov and Eric Moulines},
  title = {{Probabilistic Conformal Prediction with Approximate Conditional Validity}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Nfd7z9d6Bb},
}
Figure