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

Stochastic Online Conformal Prediction with Semi-Bandit Feedback

Haosen Ge, Hamsa Bastani, Osbert Bastani

TL;DR: The authors introduce Semi-bandit Prediction Set (SPS), the first online conformal prediction algorithm designed for "semi-bandit" feedback—where the true label is only observed if it falls within the predicted set. By leveraging high-probability confidence bounds on the score distribution, SPS maintains rigorous coverage guarantees while achieving sublinear regret across classification, retrieval, and auction tasks.

Introduction

Conformal Prediction (CP) is a popular framework for turning point predictions into sets of labels that are guaranteed to contain the true answer with high probability (e.g., 90%). Traditionally, CP requires a "calibration" dataset of labeled examples to set the right threshold for these sets.

In many modern applications, we want to perform this calibration online—adjusting our confidence sets as new data arrives. However, existing online CP methods usually assume "full information" feedback: at every step, the oracle reveals the correct label $y_t$.

The authors argue this is unrealistic. Consider a document retrieval system: a user only confirms the "correct" document if it appears in the list shown to them. If the right document isn't in the top-K results, the user simply leaves; the system registers a miss, but the exact correct document remains unknown. This scenario is known as semi-bandit feedback. Without the full ground truth, standard algorithms develop a biased view of the data, leading to sets that are either dangerously small (failing the coverage guarantee) or unnecessarily large.

Methods

The core challenge is estimating the distribution of "non-conformity scores" when the scores of misses are unobservable. The authors propose the SPS algorithm, which employs several clever techniques to overcome this limitation:

  1. Conservative CDF Estimation: Instead of a simple empirical average, SPS uses the Dvoretzky–Kiefer–Wolfowitz (DKW) inequality to construct a high-probability upper bound on the miscoverage rate. This ensures the algorithm remains "safe" (conservative) even with limited data.
  2. Handling Misses: When the true label is not in the prediction set, the algorithm doesn't just ignore the data point. It substitutes the current threshold $\tau_t$ as a proxy for the missing score, preventing the feedback loop from biasing the distribution estimate too aggressively.
  3. Monotonic Thresholding: The algorithm enforces a constraint that the threshold $\tau_t$ generally moves toward the optimal $\tau^*$ from below. This ensures that once the algorithm achieves coverage, it doesn't "accidentally" shrink the sets too much due to noise.

The authors prove that SPS achieves sublinear regret ($O(\sqrt{T} \log T)$), meaning the gap between the algorithm's performance and the theoretical optimum shrinks over time.

Experimental Setup

The algorithm was evaluated on three distinct tasks to demonstrate its versatility:

  • Image Classification: Using the ImageNet dataset (1,000 classes) with a pre-trained Vision Transformer (ViT).
  • Document Retrieval: Using the SQuAD question-answering dataset paired with a Dense Passage Retriever (DPR) model.
  • Second-Price Auctions: A synthetic task based on eBay auction data, where the goal is to set a reservation price that successfully sells an item with probability $\alpha$.

Key Insights and Ideas

  • The Bias Trap: The paper demonstrates that standard adaptive methods (like ACI) fail under semi-bandit feedback. Because they only update their "quantile" when they see a label, they develop a "survivorship bias" that leads them to undercover significantly.
  • Safety First: By treating the problem as a constrained optimization (minimize set size subject to a coverage constraint), the authors show that being "pessimistic" about the CDF estimate is the key to long-term "optimality."
  • No Hyperparameters: Unlike many online learning algorithms that require tuning learning rates ($\eta$), SPS is largely parameter-free, relying on statistical concentration bounds (DKW) to drive its updates.

Key Results

The empirical evaluation highlights the robustness and efficiency of the SPS algorithm compared to several baselines.

Cumulative Regret across ImageNet, SQuAD, and Auction tasks
  • Superior Regret: SPS achieved significantly lower cumulative regret compared to baselines. While "Greedy" and "ACI" methods often exhibited linear regret (failing to converge), SPS's regret curve flattened out as expected, demonstrating sublinear regret.
  • Efficiency: In the document retrieval task, SPS converged to the optimal set size much faster than "Decaying Learning Rate" (DLR) baselines, which were too slow to adapt to the score distribution.
Coverage Rate across ImageNet, SQuAD, and Auction tasks
  • Guaranteed Coverage: Across all three tasks, SPS was the only algorithm that consistently maintained the target coverage rate (e.g., 90%) from the very beginning, avoiding the severe undercoverage seen in other methods.

Limitations and Future Work

  • I.I.D. Assumption: The current proof relies on the data being independent and identically distributed (i.i.d.). While common in bandit literature, many CP applications involve "distribution shift" (adversarial or temporal), which this specific algorithm isn't yet proven to handle.
  • Score Continuity: The theoretical guarantees assume the loss function (related to the score CDF) is Lipschitz continuous. If the model scores are extremely discrete (e.g., only 0 or 1), the regret bounds might degrade.
  • Future Directions: The authors suggest extending this to "full bandit" feedback (where you only see a binary "yes/no" and never the actual score) or exploring settings with non-stationary data distributions.

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