Authors: Bror Hultberg, Dave Zachariah, Antônio H. Ribeiro
Organizations: Division of Systems and Control, Department of Information Technology, Uppsala University, Sweden · Science for Life Laboratory, Uppsala, Sweden
Prediction sets provide a means of quantifying the uncertainty in predictive tasks. Using held out calibration data, conformal prediction and risk control can produce prediction sets that exhibit statistically valid error control in a computationally efficient manner. However, in the standard formulations, the error is only controlled on average over many possible calibration datasets of fixed size. In this paper, we extend the control to remain valid with high probability over a cumulatively growing calibration dataset at any time point. We derive such guarantees using quantile-based arguments and illustrate the applicability of the proposed framework to settings involving distribution shift. We further show that our guarantees are asymptotically tight, in the sense that the risks converge to the target level from below, and that the rate of our correction cannot be improved. Finally, we demonstrate the practical performance of our methods through both simulations and real-world numerical examples.
Figures & tables
Figure 1: Miscoverage rates of prediction sets {Cn(X)} versus calibration sample size n . Each line corresponds to a particular draw of calibration data and the miscoverage rates are evaluated conditional on this data at each n . A green line indicates that all the rates fall below α=5% , while red indicates a failure. Details are given in Section 5 .
Figure 2: Correction term γn in ( 6 ) versus n . Using ( 7 ), ( 8 ), and ( 10 ), guarantees marginal, fixed-time and anytime validity, respectively.
Figure 3: Average prediction set sizes across methods.
Figure 4: Miscoverage rates of prediction sets {Cn(X)} versus calibration sample size n , with α=10% , δ=10% .
Figure 5: Comparison of anytime-valid conformal prediction using Corollary 4.2 , the fixed-time method ( 8 ), and marginal conformal prediction ( 7 ) for ImageNet-1K classification with α=10% and δ=10% .
Figure 6: FNR of prediction sets versus calibration sample size n , for the synthetic multilabel classification experiment with α=10% , δ=10% .
Figure 7: Comparison of anytime-valid risk control using Theorem 4.1 , fixed-time valid risk control using the method of Bates et al. (2021) , and marginal risk control for multilabel image classification with α=10% , δ=10% .