Anytime-Valid Conformal Risk Control
Bror Hultberg, Dave Zachariah, Antônio H. Ribeiro
TL;DR
The paper extends conformal prediction by introducing anytime-valid risk control, guaranteeing with probability at least $1-\delta$ that the risk of a sequence of prediction sets remains below a target $\alpha$ for all calibration sizes $n$. It constructs explicit correction terms $\gamma_n$ using functions $h_{B,m,\delta}$ and $f_{B,m,\delta}$, yielding time-uniform bounds and asymptotic tightness. The framework handles distribution shift via importance weighting, with corrected thresholds based on $W_n$ and $m^*$ to maintain $\mathbb{E}_{P^*}[\ell(\mathcal{C}_{\lambda_n}(X),Y)\mid \mathcal{D}_n] \le \alpha$ for all $n$. The authors provide theoretical guarantees, a matching lower bound, and empirical demonstrations in synthetic settings and ImageNet, highlighting practical impact for sequential data and robust uncertainty quantification.
Abstract
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 establish a matching lower bound and show that our guarantees are asymptotically tight. Finally, we demonstrate the practical performance of our methods through both simulations and real-world numerical examples.
