Abstract
In many real-world machine learning applications, uncertainty quantification is only required for a subset of "interesting" data points selected via a specific rule. However, this "cherry-picking" introduces selection bias, causing standard conformal prediction guarantees to fail. We introduce CAP (Calibration after Adaptive Pick), a general framework for online selective conformal prediction. CAP addresses selection bias and temporal multiplicity in streaming data by adaptively selecting a calibration set that restores exchangeability. Experiments on drug discovery, stock volatility, and aerodynamic datasets demonstrate that CAP provides tight False Coverage-statement Rate (FCR) control and produces narrower prediction intervals compared to existing baselines, even under distribution shifts.
1. Introduction
Standard Conformal Prediction (CP) is a popular tool for generating distribution-free uncertainty intervals with guaranteed coverage. However, CP typically assumes that predictions are made for every incoming data point. In practice, users often employ a "selection rule" to decide which points merit a reported interval—for instance, a drug researcher might only care about compounds with high predicted binding affinity, or a trader might focus on high-volatility days.
This Selective Predictive Inference introduces two primary challenges:
- Selection Bias: Selected data points are no longer representative of the overall population, violating the exchangeability assumption required for standard CP.
- Temporal Multiplicity: In online settings, selection rules may evolve based on past observations, complicating the control of the False Coverage-statement Rate (FCR)—the average miscoverage rate among selected points.
Existing solutions like LORD-CI tend to be over-conservative, producing intervals so wide they offer little practical guidance.
2. The CAP Framework
The proposed CAP (Calibration after Adaptive Pick) algorithm addresses these issues through a three-step sequential process whenever a new data point $X_t$ is encountered.
2.1 Selection
For each new feature $X_t$, a selection rule $\Pi_t$ determines if the point is "interesting" ($S_t = 1$). This rule can be decision-driven (e.g., based on a threshold) or symmetric (e.g., based on the empirical distribution of historical scores).
2.2 Adaptive Pick
The core innovation of CAP is the "Adaptive Pick" step. Instead of using the entire historical holdout set for calibration, CAP identifies a subset of historical points that would have been selected if they had appeared at the current time step $t$. By "swapping" the current point with historical ones to verify selection status, CAP restores the mathematical property of exchangeability, which is the bedrock of valid conformal inference.
2.3 Calibration
Finally, the algorithm calculates the prediction interval $I_t^{CAP}$ using residuals from the adaptively picked calibration set. This ensures the interval is tailored to the specific characteristics of the selected data rather than the general population.
To handle non-stationary environments where data properties change over time, CAP can be integrated into a dynamic framework called DtACI, which automatically tunes the learning rate to keep the FCR on target.
3. Experimental Evaluation
The authors evaluated CAP using synthetic simulations and three real-world datasets: drug discovery (DAVIS), stock volatility (NVIDIA), and airfoil self-noise (NASA).
3.1 Key Results
- Tight FCR Control: In drug discovery simulations, CAP maintained an FCR of approximately 10.01%, hitting the 10% target accurately. In contrast, Ordinary Conformal Prediction (OCP) failed significantly, with a 20.95% error rate because it ignored selection bias.
- Interval Efficiency: CAP consistently produced the narrowest intervals among all valid methods. While LORD-CI maintained FCR control, its intervals were often excessively wide, limiting their utility for practical decision-making.
- Robustness to Shift: In the stock volatility and airfoil tasks, the CAP-DtACI variant successfully tracked the target error rate even as physical or market conditions evolved, whereas static methods saw their error rates spike.
4. Conclusion and Future Work
CAP provides a robust and efficient framework for online selective inference. By restoring exchangeability through an adaptive picking mechanism, it overcomes the selection bias inherent in "cherry-picked" data. While the paper covers broad classes of selection rules, future work includes developing universal adaptive pick rules for arbitrary selection logic and investigating the interaction between CAP and online model retraining.
Summary updated