Online Learning of Optimal Sequential Testing Policies

Qiyuan Chen, Raed Al KontararXiv 2025 · DOI · arXiv

Introduction

In many high-stakes domains, from medical diagnostics to industrial quality control, information is acquired at a cost. A physician must decide whether a patient's symptoms warrant an expensive MRI after a blood test; a factory must decide which non-destructive tests are necessary to ensure a bolt's integrity. These scenarios define the Online Testing Problem (OTP): a framework for learning optimal sequential testing policies when the underlying data distribution is initially unknown.

The OTP Framework

The OTP involves two distinct dimensions of sequentiality. "Horizontal" sequentiality refers to the decision-making process for a single subject—choosing which test to perform next based on previous results. "Vertical" sequentiality refers to the learning process across a stream of subjects, where the agent improves its policy over time based on accumulated data.

Horizontal vs. Vertical Sequentiality in the Online Testing Problem.

The Challenge of Missing Data

The fundamental difficulty in OTP arises from the "missingness" of data. If a policy decides to skip a specific test to minimize costs (exploitation), it never observes the result of that test for that subject. This creates a unique learning trap: skipping tests prevents the agent from gathering the data needed for future exploration, potentially biasing its understanding of the world.

Example of missing data (NA) in sequential testing across multiple subjects.

As shown in the data structure above, unperformed tests are marked as NA. This inherent bias makes the problem fundamentally harder than standard reinforcement learning. While standard episodic Markov Decision Processes (MDPs) typically allow for a regret rate of $\sqrt{T}$, the authors prove that the missingness in OTP raises the best possible minimax regret to $T^{2/3}$.

Methods and Theoretical Results

To address this, the authors propose an Explore-Then-Commit (ETC) strategy. During an initial exploration phase, the agent performs all available tests on a subset of subjects to build an unbiased estimate of the joint distribution. Once sufficient data is gathered, it commits to an optimal policy derived via Dynamic Programming.

For a specific variant called the Online Cost-sensitive Maximum Entropy Sampling Problem (OCMESP)—where rewards depend only on observed data (e.g., reducing uncertainty)—the authors developed an Iterative Elimination algorithm. This method treats subsets of tests as "arms" in a multi-armed bandit, allowing the agent to break the $T^{2/3}$ barrier and achieve a faster $\tilde{O}(\sqrt{T})$ regret rate.

Key Insights

  • The $T^{2/3}$ Barrier: The mathematical "tax" for missing data is an elevated regret rate. This is the fundamental limit for any algorithm in the general OTP space.
  • Reward Dependency: The hardness of the problem is tied to whether the reward function depends on unobserved "hidden" values or only on the observed results. If the reward is independent of missing entries, the $\sqrt{T}$ rate becomes achievable again.
  • Distributional Learning: Unlike standard RL that estimates transition probabilities for every state-action pair, the authors show it is more efficient to estimate the underlying data-generating distribution directly.

Conclusion

This research formalizes the trade-offs inherent in sequential testing under uncertainty. By identifying the $T^{2/3}$ regret bound, the authors provide a theoretical foundation for designing more efficient diagnostic and inspection systems. Future work may explore non-stationary environments or "Contextual OTP," where initial subject information (like patient age or symptoms) is available before testing begins.

Summary updated

Abstract

This paper studies an online learning problem that seeks optimal testing policies for a stream of subjects, each of whom can be evaluated through a sequence of candidate tests drawn from a common pool. We refer to this problem as the Online Testing Problem (OTP). Although conducting every candidate test for a subject provides more information, it is often preferable to select only a subset when tests are correlated and costly, and make decisions with partial information. If the joint distribution of test outcomes were known, the problem could be cast as a Markov Decision Process (MDP) and solved exactly. In practice, this distribution is unknown and must be learned online as subjects are tested. When a subject is not fully tested, the resulting missing data can bias estimates, making the problem fundamentally harder than standard episodic MDPs. We prove that the minimax regret must scale at least as $Ω(T^{\frac{2}{3}})$, in contrast to the $Θ(\sqrt{T})$ rate in episodic MDPs, revealing the difficulty introduced by missingness. This elevated lower bound is then matched by an Explore-Then-Commit algorithm whose cumulative regret is $\tilde{O}(T^{\frac{2}{3}})$ for both discrete and Gaussian distributions. To highlight the consequence of missingness-dependent rewards in OTP, we study a variant called the Online Cost-sensitive Maximum Entropy Sampling Problem, where rewards are independent of missing data. This structure enables an iterative-elimination algorithm that achieves $\tilde{O}(\sqrt{T})$ regret, breaking the $Ω(T^{\frac{2}{3}})$ lower bound for OTP. Numerical results confirm our theory in both settings. Overall, this work deepens the understanding of the exploration--exploitation trade-off under missing data and guides the design of efficient sequential testing policies.
BibTeX
@misc{chen2025online,
  author = {Qiyuan Chen and Raed Al Kontar},
  title = {{Online Learning of Optimal Sequential Testing Policies}},
  year = {2025},
  eprint = {2509.03707},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03707},
}
Figure