Conformal Prediction (CP) offers a statistical "safety net" for machine learning models by providing prediction sets that are mathematically guaranteed to contain the true label with a user-specified probability. However, these guarantees rely heavily on the assumption of exchangeability—that the test data comes from the same distribution as the calibration data. When this assumption collapses under adversarial attacks, so do the CP guarantees.
This paper introduces CAS (CDF-Aware smoothed prediction Sets), a novel framework that provides tighter, provably robust guarantees against both test-time evasion and calibration-time poisoning attacks. By leveraging the full distribution of smoothed scores rather than just the mean, CAS produces significantly smaller, more efficient prediction sets for both continuous and discrete data.
The Vulnerability of Standard Conformal Prediction
Adversaries can break the exchangeability assumption of standard CP in two primary ways:
- Evasion (Test-Time): Perturbing a test input so the model's confidence drops, causing the CP algorithm to exclude the correct label from the final prediction set.
- Poisoning (Calibration-Time): Manipulating the calibration data (either features or labels) to artificially shift the model's confidence thresholds, effectively "breaking" the statistical coverage guarantee for future predictions.
While previous work, such as Robust Smoothed Conformal Prediction (RSCP), attempted to mitigate these issues using randomized smoothing, it suffered from several major flaws. RSCP produced unnecessarily large prediction sets because it only bounded the mean of the scores. Furthermore, it did not handle poisoning attacks, was limited to continuous data ($L_2$ norm bounds), and ignored the inevitable errors stemming from finite Monte-Carlo sampling.
The CAS Framework: Tighter Bounds and Broader Defenses
The authors propose CAS to address these limitations, improving upon the state-of-the-art through several key innovations:
- CDF-Aware Bounds: The core insight of CAS is that the mean is a blunt instrument. Instead of just looking at the expected value of a model's score under noise, CAS uses the entire Cumulative Distribution Function (CDF). This provides a much tighter mathematical bound on how much a score can change under perturbation, directly translating to smaller, more efficient prediction sets that remain just as safe.
- Poisoning Robustness via MILP: This is the first work to provide formal certificates for CP against data poisoning. To handle corrupted calibration sets, the authors frame the search for a robust threshold as an optimization problem. They use Mixed-Integer Linear Programs (MILPs) to find the most conservative threshold that remains valid even if $k$ calibration points are maliciously altered.
- Discrete Smoothing: CAS extends robustness certificates to discrete and sparse data (such as graphs) by utilizing specialized smoothing schemes that flip bits or categories, rather than adding standard Gaussian noise.
- Finite Sample Correction: The framework incorporates concentration inequalities (like the DKW inequality) to ensure certificates remain strictly valid even when scores are estimated using a finite number of Monte-Carlo samples.
Experimental Validation and Key Results
The authors evaluated CAS across three distinct domains: standard image classification (CIFAR-10), large-scale image classification (ImageNet), and graph node classification (Cora-ML).
Higher Efficiency and Provable Coverage
CAS consistently produces smaller prediction sets than previous methods while maintaining strict coverage guarantees. In experiments using strong adversarial attacks like PGD, CAS maintained the user-specified coverage (e.g., 90%), whereas vanilla CP failed entirely. Furthermore, for large perturbation radii on ImageNet and Cora-ML, CAS prediction sets were often 2x to 3x smaller than those produced by RSCP, demonstrating vastly superior efficiency.
Speed and Real-Time Viability
Randomized smoothing is notoriously slow at inference time. To combat this, the authors introduced a "calibration-time" variant of CAS that shifts the heavy computation to the calibration phase. This optimization reduced the total test-time runtime on CIFAR-10 from 3.08 seconds to just 0.94 seconds, making robust CP much more viable for real-world deployment.
Robustness "For Free"
The authors also identified a "maximum size-preserving radius"—a perturbation distance within which a model can achieve a robustness certificate without the prediction sets becoming any larger than standard, non-robust CP sets. As shown in the evaluations, CAS consistently achieves a higher "for free" radius compared to baseline methods across various target coverage levels.
Limitations and Future Work
While CAS represents a significant step forward, challenges remain. Like most CP methods, the guarantee provided is "marginal," meaning it holds on average across the dataset rather than conditionally for every specific individual input. Achieving tight conditional coverage remains an open problem.
Additionally, while the calibration-time variant improves speed, randomized smoothing still requires numerous model forward passes per prediction, which can be computationally expensive for massive architectures. Finally, the paper assumes the attacker's primary goal is to break coverage (force the true label out of the set). Future research could explore defenses against attackers whose objective is to "bloat" the prediction sets, rendering the model's output safe but practically useless.
Summary updated