NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Online Conformal Prediction with Semi-Bandit Feedback

Haosen Ge, Hamsa Bastani, Osbert Bastani · DOI

Abstract

Conformal Prediction (CP) provides rigorous uncertainty quantification by outputting prediction sets with guaranteed coverage. However, standard online CP assumes full feedback, where the true label is always observed. In many real-world applications, such as document retrieval or auctions, feedback is semi-bandit: the ground truth is only revealed if it is included in the prediction set. This paper introduces the Semi-bandit Prediction Set (SPS) algorithm, which leverages the Dvoretzky–Kiefer–Wolfowitz (DKW) inequality to maintain high-probability bounds on miscoverage. We prove that SPS achieves sublinear cumulative regret and demonstrate its effectiveness across ImageNet, SQuAD, and auction datasets, showing it maintains target coverage where traditional methods fail due to selection bias.

Introduction

Conformal Prediction (CP) is a powerful framework for uncertainty quantification. Instead of a single point prediction, it outputs a set of labels guaranteed to contain the true label with a user-defined probability (e.g., 90%). Traditionally, CP requires a large, labeled "calibration" dataset. Online CP moves this to a streaming setting where data arrives sequentially. However, most existing online CP methods assume "full feedback"—meaning the algorithm sees the true label at every step, regardless of its prediction.

In many real-world applications, this is unrealistic. For instance, in a search engine, if the relevant document isn't in the top-K results shown, the system may never observe the "correct" label. This is known as semi-bandit feedback. If an algorithm only updates its model when it sees a label, it develops a "selection bias" that causes it to underestimate uncertainty and fail to provide the promised coverage.

The SPS Algorithm

The authors propose the Semi-bandit Prediction Set (SPS) algorithm to address the challenge of estimating the distribution of non-conformity scores when some scores are missing. Key components include:

  • Conservative Thresholding: SPS maintains a threshold $\tau_t$ that is guaranteed to be less than or equal to the optimal threshold $\tau^*$ with high probability, ensuring prediction sets are large enough to capture the true label.
  • DKW Inequality: The algorithm uses the Dvoretzky–Kiefer–Wolfowitz inequality to construct a high-confidence upper bound on the cumulative distribution function (CDF) of the scores, handling the uncertainty of the empirical distribution.
  • Handling Missing Data: When the true label is not in the prediction set, SPS uses the current threshold $\tau_t$ as a proxy for the missing score. Since $\tau_t \leq \tau^*$, this substitution prevents the feedback loop that leads to bias.
  • Monotonicity: The algorithm enforces $\tau_{t+1} \geq \tau_t$ to prevent "backsliding" due to noise in semi-bandit observations.

Experimental Evaluation

SPS was evaluated across three distinct tasks:

  1. Image Classification: ImageNet dataset (1,000 classes) with a Vision Transformer (ViT) model.
  2. Document Retrieval: SQuAD question-answering dataset using a Dense Passage Retriever (DPR).
  3. Second-Price Auctions: A synthetic dataset adapted from eBay auction data to set reservation prices.

Results and Discussion

The authors prove that SPS achieves a cumulative regret of $\tilde{O}(\sqrt{T})$, meaning the gap between its performance and the optimal (but unknown) conformal predictor shrinks over time. Unlike gradient-descent-based methods like DLR, SPS does not require hyperparameter tuning, making it robust across different scoring functions.

Log expected cumulative regret across ImageNet, SQuAD, and Auction datasets. SPS achieves sublinear regret and converges faster than the DLR baseline.

In terms of coverage reliability, SPS consistently maintained the target coverage (e.g., 90%) across all evaluated datasets. In contrast, baselines like Adaptive Conformal Inference (ACI) and "Greedy" strategies saw their coverage drop significantly below the target as they succumbed to selection bias.

Coverage rates over time. SPS maintains the target coverage (red dotted line), whereas ACI and Greedy strategies fail in the semi-bandit setting.

This highlights the "Bias Trap": ACI updates based on whether the last prediction was correct; in a semi-bandit setting, "incorrect" often means "unobserved," leading to a biased update that eventually collapses the prediction set. SPS avoids this by using conservative thresholding and PAC-style guarantees, ensuring coverage holds with high probability for every step across the time horizon.

Conclusion

SPS provides the first sublinear regret guarantee for online conformal prediction with semi-bandit feedback. By avoiding selection bias through conservative thresholding and DKW-based bounds, it ensures reliable uncertainty quantification. Future work includes extending these guarantees to non-stationary environments and optimizing for discrete loss functions.

Summary updated

BibTeX
@inproceedings{ge2025stochastic,
  author = {Haosen Ge and Hamsa Bastani and Osbert Bastani},
  title = {{Stochastic Online Conformal Prediction with Semi-Bandit Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=IdRrKDsTZ8},
}
Figure