Split Conformal Prediction under Data Contamination

Jason Clarkson, Wenkai Xu, Mihai Cucuringu, Gesine Reinert · DOI

Introduction

Conformal Prediction (CP) has emerged as a powerful framework for uncertainty quantification, offering rigorous mathematical guarantees that the true outcome will fall within a predicted set with a user-defined probability (e.g., 90%). However, these guarantees typically rest on the assumption of exchangeability—the requirement that calibration data and future test data are drawn from the same distribution. In practice, data is often "contaminated" by outliers or noisy labels, violating this core assumption and causing standard CP methods to produce unreliable or inefficient prediction sets.

The Impact of Data Contamination

When the calibration set is messy but the test set is clean, standard CP often becomes "over-conservative." Instead of providing the requested 90% coverage, it might produce massive, low-utility prediction sets that cover 99% of cases. While this might seem "safe," it renders the uncertainty quantification useless for practical decision-making. Conversely, subtle label noise can sometimes lead to under-coverage, providing a false sense of security.

Gaussian Linear Regression under contamination showing how mean coverage deviates from the 0.900 target as noise strength (σ₂) and proportion (ε) increase.

As shown in the figure above, as either the strength of the contamination (σ₂) or the proportion of contaminated samples (ε) increases, the mean coverage of standard CP drifts significantly above the target 0.900 threshold. This "over-coverage" is a direct consequence of the algorithm attempting to account for extreme outliers that are not present in the clean test distribution.

Contamination Robust Conformal Prediction (CRCP)

To address these failures, the authors introduce Contamination Robust Conformal Prediction (CRCP). This method mathematically "undoes" the effect of contamination by adjusting the quantile threshold used to form prediction sets.

The CRCP approach involves three key steps:

  1. Estimating the Distributional Gap: Using statistical distances like Kolmogorov-Smirnov, the method estimates the difference between the observed contaminated distribution and the latent clean distribution.
  2. Threshold Adjustment: Instead of the standard (1-α) quantile, CRCP shifts the threshold based on a finite-sample upper bound C(n, ε) derived from the contamination proportion ε.
  3. Set Refinement: By ignoring the statistical weight of the noise, CRCP produces prediction sets that are significantly tighter while remaining much closer to the target coverage level.

Experimental Evaluation

The researchers tested CRCP against synthetic datasets and the CIFAR-10N dataset, which contains real-world noisy labels from human annotators.

On the "Worst-case" noise setting of CIFAR-10N, standard CP produced a coverage of 99% for a 90% target, with an average prediction set size of 5.47 classes. In contrast, CRCP achieved 91.7% coverage with a much more efficient set size of 2.18. Across various tests, CRCP consistently outperformed state-of-the-art methods like Noise-Aware Conformal Prediction (NACP) in terms of both coverage precision and set efficiency.

Key Insights

  • Inbuilt Robustness to Extremes: Interestingly, CP is naturally robust to very large outliers; it simply over-covers. The greater danger lies in "small" or subtle noise that can lead to under-coverage.
  • Efficiency as a Metric: The study emphasizes that over-coverage is a failure of utility. A prediction set that is too large is as problematic as one that is too small for real-world applications.
  • Recovering Clean Behavior: If the noise level ε can be estimated or upper-bounded, it is possible to recover the behavior of a model trained on clean data through mathematical adjustment.

Conclusion

Data contamination is a pervasive issue in modern machine learning. By quantifying the coverage gap and introducing robust threshold adjustments, CRCP provides a path forward for reliable uncertainty quantification in imperfect environments. Future work will focus on extending these robust adjustments to complex regression tasks and developing methods to estimate the contamination proportion ε directly from data.

Summary updated

BibTeX
@misc{clarkson2024split,
  author = {Jason Clarkson and Wenkai Xu and Mihai Cucuringu and Gesine Reinert},
  title = {{Split Conformal Prediction under Data Contamination}},
  year = {2024},
  eprint = {2407.07700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.07700},
}
Figure