The Good, the Bad, and the Sampled: a No-Regret Approach to Safe Online Classification

Tavor Z. Baharav, Spyros Dragazis, Aldo Pacchiano · DOI

Abstract

In high-stakes environments like medical triage, decision-makers must balance the high cost of accurate diagnostic tests against the risk of misclassification when predicting outcomes from free symptoms. This paper introduces SCOUT (Safe Contextual Online Understanding with Thresholds), the first online learning algorithm for logistic classification that minimizes expensive tests while guaranteeing that the misclassification rate remains below a predefined safety threshold $\alpha$. We prove that SCOUT achieves $O(d\sqrt{T})$ "safe regret" compared to an oracle and demonstrate its efficacy through synthetic experiments.

Introduction

Consider a medical screening scenario where a clinician observes a patient's symptoms (features) and must decide whether to perform a definitive, costly test or predict the patient's status immediately. While standard active learning focuses on minimizing general error, human-centric applications require hard safety guarantees—ensuring the error rate never exceeds a budget $\alpha$. This paper addresses the problem of Safe Online Classification, where the learner aims to minimize total tests subject to a strict safety constraint.

Methods: The SCOUT Algorithm

The core of SCOUT is a logistic regression framework that employs a data-driven, pessimistic thresholding strategy. The algorithm decides whether to test based on the estimated risk of the current patient.

Decision rule for SCOUT based on the logistic risk and a pessimistic threshold $\tau$.

As shown in the figure above, the decision rule is defined by the indicator $Z_t$, which triggers a test if the absolute value of the estimated risk is below the threshold $\tau$. To ensure safety, SCOUT uses sample-splitting: odd rounds estimate the feature distribution, while even rounds (where tests occur) estimate the model parameters $\theta^*$. Crucially, the threshold $\tau_t$ is "inflated" by buffer terms that account for uncertainty in both the parameter estimates and the feature distribution.

Key Insights: Safety via Inflation

The "aha moment" of this work is the design of the threshold $\tau_t$. By being intentionally over-cautious—testing more often when uncertainty is high—the algorithm ensures that the error rate remains below $\alpha$ with probability $1-\delta$.

Evolution of the pessimistic thresholds $\tau_t$ over time, converging toward the optimal oracle threshold $\tau^*$.

As the algorithm gathers more data, the confidence intervals shrink, and the pessimistic thresholds $\tau_t$ converge toward the optimal oracle threshold $\tau^*$. This process allows the algorithm to transition from testing almost everyone initially to a more efficient, aggressive policy as it "proves" to itself that skipping a test is safe. This approach treats safety as a hard constraint that must be satisfied at every step of the learning process.

Results and Discussion

Theoretical analysis shows that SCOUT satisfies $(\alpha, \delta)$-safety and achieves a safe regret of $O(d\sqrt{T})$. Here, regret is defined as the number of excess tests performed compared to an oracle baseline that knows the true model parameters. Empirical simulations confirm these findings: SCOUT approaches the safety limit $\alpha$ from below, ensuring it never violates the constraint during the learning process, unlike standard methods that might fluctuate around the limit.

While currently limited to i.i.d. contexts and equal error weighting (False Positives vs. False Negatives), SCOUT provides a robust foundation for safety-critical online classification. Future work will explore non-stationary feature sequences and asymmetric error costs to better reflect clinical realities.

Summary updated

BibTeX
@inproceedings{baharav2026good,
  author = {Tavor Z. Baharav and Spyros Dragazis and Aldo Pacchiano},
  title = {{The Good, the Bad, and the Sampled: a No-Regret Approach to Safe Online Classification}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=tW9ubWy9uQ},
}
Figure