One Sample is Enough to Make Conformal Prediction Robust
Soroush H. Zargarbashi, Mohammad Sadegh Akhondzadeh, Aleksandar Bojchevski
TL;DR
This paper addresses the fragility of conformal prediction under worst-case perturbations by introducing Robust CP with One Sample (RCP1), which certifies robustness using a single noise-augmented forward pass and a convex binary certificate. By reframing robustness around the CP procedure itself, the method achieves reliable coverage without extensive Monte Carlo sampling and extends to various smoothing schemes and to conformal risk control. The key contributions include the RCP1 algorithm, generalization to all smoothing shapes/sizes, a smoothing-based conformal risk control extension, and strong empirical results showing small, robust prediction sets with significantly reduced computational cost. This approach enables robust, efficient conformal predictions for large models and diverse tasks, broadening practical applicability.
Abstract
For any black-box model, conformal prediction (CP) returns prediction sets guaranteed to include the true label with high adjustable probability. Robust CP (RCP) extends the guarantee to the worst case noise up to a pre-defined magnitude. For RCP, a well-established approach is to use randomized smoothing since it is applicable to any black-box model and provides smaller sets compared to deterministic methods. However, smoothing-based robustness requires many model forward passes per each input which is computationally expensive. We show that conformal prediction attains some robustness even with a single forward pass on a randomly perturbed input. Using any binary certificate we propose a single sample robust CP (RCP1). Our approach returns robust sets with smaller average set size compared to SOTA methods which use many (e.g. 100) passes per input. Our key insight is to certify the conformal procedure itself rather than individual conformity scores. Our approach is agnostic to the task (classification and regression). We further extend our approach to smoothing-based robust conformal risk control.
