Efficient Online Set-valued Classification with Bandit Feedback

Zhou Wang, Xingye Qiao

Introduction

In high-stakes applications such as autonomous driving or medical diagnostics, point-estimate predictions are often insufficient. Decision-makers require a measure of uncertainty to mitigate risks. Conformal Prediction (CP) has emerged as a robust framework for generating set-valued predictions with statistical coverage guarantees. However, traditional CP relies on full label availability and offline calibration, which are often impractical in real-world online systems.

In many online scenarios, we only receive "bandit feedback"—we know if a chosen action was correct, but the true label remains unknown if the guess was wrong. This paper introduces Bandit Class-specific Conformal Prediction (BCCP), a framework designed to provide reliable, uncertainty-aware predictions in these challenging environments.

Methodology

The BCCP framework addresses the limitations of standard CP through three primary innovations:

  1. Unbiased Label Estimation: To handle missing labels, BCCP employs an importance-sampling-style estimator. This allows the system to learn from correct predictions and appropriately weight feedback without requiring the ground truth for every instance.
  2. Online Quantile Updates: Rather than using a static calibration set, BCCP treats quantile estimation as an online optimization problem. It utilizes a "check loss" function and Stochastic Gradient Descent (SGD) to adaptively update class-specific thresholds ($\tau_k$) at each time step.
  3. Ensemble of Experts: To eliminate the need for manual hyperparameter tuning, the authors implement an "Ensemble of Experts." Multiple instances of the algorithm run with different learning rates, and their results are aggregated using an exponential weighting scheme based on historical performance.
The BCCP framework illustrating the iterative cycle of prediction, bandit feedback, and model updates.

Experimental Setup

The BCCP framework was evaluated using a ResNet50 architecture on three benchmark datasets: CIFAR10, CIFAR100 (using 20 coarse labels), and SVHN. The experiments simulated a bandit environment where the true label is only revealed if the predicted class matches the ground truth. The primary metrics for evaluation were the class-specific coverage rate and the average size of the prediction sets.

Results and Discussion

The experimental results demonstrate that BCCP effectively achieves the target 95% class-specific coverage across all datasets as the number of iterations increases.

Coverage rate and prediction set size over time for CIFAR10, CIFAR100, and SVHN.

Key Insights

  • Class-Specific Coverage: Unlike marginal coverage, which can mask poor performance on rare classes, BCCP ensures reliability for every individual class.
  • Exploration vs. Exploitation: The study found that a Uniform Policy (exploration) often leads to faster convergence of coverage rates compared to a Softmax Policy (exploitation). While Softmax reduces model loss more quickly, the Uniform policy provides a more diverse set of labeled data for calibration.
  • Efficiency of RAPS: Integrating Regularized Adaptive Prediction Sets (RAPS) into the BCCP framework significantly reduced the size of prediction sets, particularly on complex datasets like CIFAR100, making the predictions more informative.

Conclusion

BCCP provides a mathematically grounded approach to online set-valued classification under bandit feedback. By combining unbiased estimation with adaptive quantile tuning, it maintains rigorous coverage guarantees without the need for full label information or offline calibration. Future work may explore handling non-stationary data distributions and more advanced policy optimization strategies.

Summary updated

BibTeX
@inproceedings{wang2024efficient,
  author = {Zhou Wang and Xingye Qiao},
  title = {{Efficient Online Set-valued Classification with Bandit Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=R1auM3tLPE},
}
Figure