Introduction
Conformal Prediction (CP) has emerged as a powerful, model-agnostic tool for uncertainty quantification. Instead of outputting a single class prediction, CP generates a prediction set guaranteed to contain the ground truth with a user-specified probability (e.g., 95%). This rigorous measure of uncertainty is essential for safety-critical applications like medical diagnosis and autonomous driving.
However, standard CP relies heavily on the assumption that the underlying data is clean and exchangeable. In adversarial settings, this "glass jaw" is exposed: an attacker can perform data poisoning by adding, deleting, or modifying a small fraction of the training or calibration data. Such manipulation can completely break the uncertainty quantification, forcing the model to output uselessly large sets (destroying utility) or empty sets (destroying coverage). Until now, there has been a lack of efficient methods to provide formal reliability guarantees against these poisoning attacks.
Methods: Reliable Prediction Sets (RPS)
To address this vulnerability, researchers have developed Reliable Prediction Sets (RPS), the first efficient framework designed to make Conformal Prediction robust against data poisoning. RPS achieves this through data partitioning and majority-vote aggregations, providing provable guarantees that prediction sets remain stable even under adversarial manipulation.
The RPS framework tackles poisoning through two primary mechanisms:
1. Mitigating Training Poisoning via Smoothed Score Functions Instead of training a single model on the entire dataset, the training data is partitioned into $k_t$ disjoint subsets, with a separate classifier trained on each. The framework then employs a "smoothed score function" that aggregates the predictions from these individual classifiers. Because a single poisoned data point can only reside in one partition—and thus affect only one classifier—its influence on the final aggregated score is strictly bounded.
2. Mitigating Calibration Poisoning via Majority Prediction Sets Similarly, the calibration data is partitioned into $k_c$ subsets. The system generates a separate conformal prediction set for each calibration subset. To form the final output, these individual sets are merged into a majority prediction set: a class is included in the final set only if it appears in a sufficient majority of the individual subset predictions.
3. Provable Certificates The core theoretical contribution of RPS is a mathematical framework for calculating "certificates." Given a specific "poisoning radius" (the maximum number of points an attacker can manipulate), the framework can mathematically prove whether a specific class will definitively remain inside or outside the prediction set, regardless of the attacker's specific strategy.
Key Insights
- Influence Limiting via Partitioning: The fundamental insight of RPS is that data partitioning acts as a powerful defense mechanism. By isolating data points into distinct buckets, the framework prevents a single malicious sample from propagating its influence across the entire model or calibration pipeline.
- Majority Voting Preserves Coverage: A surprising and crucial theoretical result is that merging individual prediction sets via a majority vote does not merely add robustness; it provably maintains the original marginal coverage guarantees on clean data.
- Pointwise vs. Marginal Reliability: While standard CP guarantees coverage on average across an entire dataset (marginal), this research highlights the necessity of pointwise reliability—ensuring that for any specific test input, the prediction set does not fluctuate wildly due to a handful of poisoned training samples.
Experimental Results
The RPS method was rigorously evaluated using standard image classification benchmarks, including SVHN, CIFAR-10, and CIFAR-100, across various ResNet architectures (ResNet18, ResNet50, ResNet101).
- Strong Reliability: The framework demonstrates exceptional robustness. On CIFAR-10, even when up to 4 calibration points are poisoned, RPS guarantees that over 93% of prediction sets remain reliable against coverage attacks.
- Computational Efficiency: Unlike many robust machine learning methods that introduce massive computational overhead, RPS remains highly efficient. Computing robustness certificates for an entire test set takes less than a second for majority sets and approximately a minute for general poisoning scenarios.
- Maintained Utility on Clean Data: RPS successfully preserves the desired coverage levels (e.g., 90%) on clean data while keeping the average prediction set size small (often < 1 for simpler tasks, and around 3-4 for more complex ones). This confirms that adversarial robustness does not come at the cost of practical utility.
Limitations and Future Directions
While RPS provides a significant step forward, it does present some trade-offs. Training classifiers on smaller data partitions naturally leads to a drop in base model accuracy, particularly on complex datasets like CIFAR-100, which can result in larger, less informative prediction sets. Additionally, to maintain the finite-sample corrections required for CP, each partition needs a minimum number of samples, necessitating a reasonably large calibration set to support high robustness (many partitions).
Future work will explore better base learners and pre-training strategies to recover the accuracy lost during partitioning. Furthermore, extending these provable guarantees to other types of uncertainty quantification beyond classification remains an exciting open challenge.
Summary updated