NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Provably Reliable Conformal Prediction Sets in the Presence of Data Poisoning

Yan Scholten, Stephan Günnemann · DOI

Introduction

Conformal Prediction (CP) has emerged as a robust framework for quantifying uncertainty in machine learning. Unlike standard point predictions, CP generates prediction sets that are guaranteed to contain the true label with a user-specified probability (e.g., 95%). This property is essential for high-stakes applications like autonomous driving or medical diagnostics. However, the mathematical guarantees of CP rely on the assumption that data is clean and exchangeable. In adversarial settings where a malicious actor can "poison" the training or calibration datasets, these guarantees often collapse, leading to either dangerously small or uselessly large prediction sets.

Reliable Conformal Prediction (RPS)

To address this vulnerability, this work introduces Reliable Conformal Prediction (RPS), a framework designed to provide provable reliability guarantees even under data poisoning. The core strategy involves limiting the influence of any single poisoned data point through deterministic partitioning and robust aggregation.

Overview of the RPS framework showing (i) training partitioning for smoothed score functions and (ii) calibration partitioning for majority prediction sets.

1. Reliable Training via Smoothed Score Functions

In standard CP, a single model is trained on the entire dataset. A single poisoned point can thus corrupt the entire model's scoring logic. RPS mitigates this by partitioning the training data into $k_t$ disjoint sets and training an independent classifier $f_i$ on each. The system then employs a "smoothed score function" that aggregates the outputs of these classifiers. Because any poisoned point is confined to exactly one partition, its impact on the final aggregate score is strictly bounded.

2. Reliable Calibration via Majority Prediction Sets

Similarly, the calibration dataset is divided into $k_c$ disjoint subsets. A separate prediction set $\mathcal{C}_i(x)$ is computed for each subset. The final output, the Majority Prediction Set, only includes a class if it appears in a majority of the individual partition-based sets. This voting mechanism ensures that a small number of poisoned calibration points cannot unilaterally force a class into or out of the final prediction set.

Key Insights

  • Pointwise Reliability: While standard CP offers marginal guarantees (average performance over the dataset), RPS provides pointwise reliability. This means the system can certify that the prediction for a specific input image remains robust against a defined budget of adversarial interference.
  • The Utility-Reliability Trade-off: Partitioning data naturally reduces the amount of information available to each individual model, which can lead to slightly larger (more conservative) prediction sets. The framework allows practitioners to tune the number of partitions to find an optimal balance between safety and utility.
  • Deterministic Stability: By using a hash-based deterministic partitioning scheme, RPS ensures that the assignment of data points to partitions remains stable, preventing adversaries from manipulating the system by reordering data.

Experimental Evaluation

The authors evaluated RPS on standard benchmarks including CIFAR-10, CIFAR-100, and SVHN using ResNet architectures.

  • Coverage Preservation: On clean data, RPS successfully maintains the target coverage levels (e.g., 90%).
  • Robustness to Poisoning: On CIFAR-10, RPS can guarantee that over 93% of test points remain "coverage reliable" even if 4 points in the calibration set are poisoned. Training poisoning is more challenging, but with 100 partitions, RPS maintains reliability for 34% of test points under a similar attack budget.
  • Computational Efficiency: The certification process is highly efficient, with majority set certificates calculated in less than a second, making the framework viable for real-time deployment.

Conclusion and Future Work

RPS represents a significant step toward making conformal prediction practical for adversarial environments. By combining data partitioning with robust aggregation, it transforms CP into a provably reliable tool for safety-critical machine learning. While partitioning leads to a slight drop in predictive power, future research into incorporating "trusted" pre-trained weights (e.g., from ImageNet) may further bridge the gap between utility and robustness.

Summary updated

BibTeX
@inproceedings{scholten2025provably,
  author = {Yan Scholten and Stephan Günnemann},
  title = {{Provably Reliable Conformal Prediction Sets in the Presence of Data Poisoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ofuLWn8DFZ},
}
Figure