Wasserstein-Regularized Conformal Prediction under General Distribution Shift

Rui Xu, Chao Chen, Yue Sun, Parvathinathan Venkitasubramaniam, Sihong Xie

TL;DR

Standard Conformal Prediction (CP) provides reliable uncertainty "safety nets," but these nets often tear when the data distribution shifts between training and testing. This paper introduces WR-CP, a novel framework that uses Wasserstein distance to bound the coverage gap, allowing models to handle both covariate and concept shifts simultaneously. The result is a more robust uncertainty estimate that produces prediction sets 37% smaller than "worst-case" methods while maintaining a tight 3.2% coverage gap.

What Problem Does This Paper Address?

Machine learning models often provide point predictions, but in high-stakes fields like healthcare or autonomous driving, we need to know how uncertain a model is. Conformal Prediction (CP) solves this by generating a prediction set (a range of possible values) that is guaranteed to contain the true answer a certain percentage of the time (e.g., 90%).

However, this guarantee relies on the "i.i.d. assumption"—the idea that your test data looks exactly like your training data. In the real world, distributions shift. This can happen in two ways:

  1. Covariate Shift: The input features ($X$) change (e.g., a self-driving car moves from sunny California to snowy Michigan).
  2. Concept Shift: The relationship between features and targets ($X \to Y$) changes (e.g., a medical model trained pre-COVID trying to predict outcomes during the pandemic).

Prior attempts to fix this used Total Variation (TV) distance to bound the error. The authors argue that TV distance is a "weak indicator" because it only measures the overall difference between distributions without caring where they differ. This leads to overly cautious, massive prediction sets that are useless in practice.

Methods

The authors propose Wasserstein-Regularized Conformal Prediction (WR-CP) to address the limitations of prior methods.

Overview of the WR-CP framework and the advantage of Wasserstein distance over Total Variation distance.

Their approach hinges on three main components:

  • Wasserstein Distance Bounding: Unlike TV distance, Wasserstein distance (the "Earth Mover's distance") accounts for the geometry of the distribution. It measures how much "work" is needed to transform one distribution into another, making it much more sensitive to the specific quantiles used in CP.
  • Pushforward Decomposition: Using a mathematical tool called "probability measure pushforwards," the authors prove that the Wasserstein bound can be split into two independent terms: one representing covariate shift and the other representing concept shift.
Probabilistic graph illustrating the separation of covariate and concept shifts using pushforward distributions.
  • The WR-CP Algorithm:
    • To handle covariate shift, they use importance weighting (re-weighting training samples to look more like the test distribution).
  • To handle concept shift, they introduce a Wasserstein regularization term directly into the model's loss function during training. This encourages the model to learn representations where the "conformal scores" (the errors) stay consistent across different domains.

Datasets

The researchers evaluated WR-CP on six diverse real-world datasets representing "multi-source domain generalization," where the test data is an unknown mixture of various training environments:

  • Airfoil Self-Noise: Aerodynamic data from NASA (modified to induce artificial shifts).
  • Traffic Speed Prediction: Three datasets (Seattle-loop, PeMSD4, PeMSD8) involving sensor data from highways.
  • Epidemic Spread Forecasting: Two datasets (Japan-Prefectures, U.S.-States) predicting influenza-like illness rates.

Key Insights and Ideas

  • TV Distance is Location-Agnostic: The "aha moment" here is that CP cares about specific quantiles (like the 90th percentile). TV distance might stay the same even if the 90th percentile shifts wildly. Wasserstein distance, by contrast, "sees" this shift.
  • Separation of Concerns: By proving that covariate and concept shifts can be treated as additive components of the Wasserstein bound, the authors allow for a "divide and conquer" strategy in algorithm design.
  • Efficiency vs. Robustness: Most robust CP methods are "worst-case," meaning they expand the prediction set to cover the absolute worst possible scenario. WR-CP allows for a controllable balance. By tuning a hyperparameter ($\beta$), users can decide how much they want to trade off set size (efficiency) for coverage accuracy.

Key Results

  • Tighter Coverage: Across all datasets and confidence levels, WR-CP reduced the coverage gap (the difference between the intended 90% and the actual result) to just 3.2%.
  • Smaller Prediction Sets: Compared to the current state-of-the-art "worst-case" approach (WC-CP), WR-CP produced prediction sets that were 37% smaller on average. This makes the uncertainty estimates much more actionable for human decision-makers.
  • Strong Correlation: The authors demonstrated a much stronger monotonic relationship between Wasserstein distance and coverage gaps compared to TV or KL divergence, proving it is the superior metric for optimization.

Limitations and Future Work

  • Density Estimation Bottleneck: The method relies on Kernel Density Estimation (KDE) to calculate importance weights. KDE struggles with high-dimensional data (the "curse of dimensionality") and can be computationally expensive.
  • Sensitivity to Hyperparameters: The performance of WR-CP is tied to the bandwidth selection in KDE and the regularization weight $\beta$. Inaccurate density estimation on small or high-dimensional datasets (like the Airfoil dataset) can lead to suboptimal results.
  • Future Directions: The authors suggest exploring more efficient density estimation techniques (like FastKDE) or developing versions of WR-CP that don't require the calibration set to be a perfect mixture of training distributions.

Summary updated

BibTeX
@inproceedings{xu2025wasserstein,
  author = {Rui Xu and Chao Chen and Yue Sun and Parvathinathan Venkitasubramaniam and Sihong Xie},
  title = {{Wasserstein-Regularized Conformal Prediction under General Distribution Shift}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=aJ3tiX1Tu4},
}
Figure