Cost-optimal Sequential Testing via Doubly Robust Q-learning

Doudou Zhou, Yiran Zhang, Dian Jin, Yingye Zheng, Lu Tian, Tianxi CaiarXiv 2026

TL;DR

This paper introduces COST-Q, a doubly robust Q-learning framework designed to learn cost-effective, sequential diagnostic testing policies from retrospective clinical data. By accounting for "informative missingness"—where prior test results dictate whether subsequent tests were ordered—COST-Q optimizes the tradeoff between diagnostic accuracy and testing costs, even when parts of the statistical model are misspecified.

What Problem Does This Paper Address?

In clinical medicine, diagnostic tests vary widely in cost, time, and invasiveness. To minimize patient risk and healthcare spending, clinicians ideally want an individualized, sequential strategy: start with cheap, low-risk tests and only order expensive or invasive procedures (like biopsies) if the initial results are ambiguous.

However, designing these optimal strategies using historical (retrospective) data introduces a major statistical challenge: informative missingness. In historical datasets, advanced tests are only present for patients whom physicians already deemed high-risk based on early tests. Standard reinforcement learning methods (like Dynamic Treatment Regimes) are built to optimize treatments that change a patient's health state, not actions that merely acquire information. Meanwhile, existing adaptive prediction methods assume complete data during training. COST-Q bridges this gap by learning optimal testing policies directly from biased, real-world retrospective records.

Methods

The authors formalize sequential test acquisition as a dynamic programming problem governed by the Bellman principle. They map out valid testing trajectories into discrete information states and acquisition paths.

The core innovations of the COST-Q framework include:

  • Path-Specific Inverse Probability Weighting (IPW): Because the same final set of features can be reached via different testing routes, the selection mechanisms differ. COST-Q introduces path-aware propensity weights that normalize conditional on the observed history.
  • Double Robustness via Orthogonal Pseudo-Outcomes: The framework combines these path weights with auxiliary contrast models (which estimate the expected loss difference of acquiring another test). The resulting pseudo-outcomes are "orthogonal," meaning the policy estimation remains unbiased if either the test acquisition model (propensity score) or the contrast model is correctly specified.
  • Sample Splitting and Cross-Fitting: To eliminate overfitting biases, the framework uses a $K$-fold cross-fitting procedure that decouples the estimation of these nuisance models from the actual policy learning.
Table 1: Information State (s), Acquisition Path ((S1, S2)), Observed Feature Vector (Xs),

Datasets

The authors evaluated their method using both synthetic and real-world data:

  1. Simulated Environments: Two distinct data-generating scenarios with non-linear relationships and induced two-stage missingness, specifically designed to test how the model handles misspecified propensities or contrasts.
  2. PCA3 Evaluation Trial: A real-world dataset containing 743 participants with elevated prostate-specific antigen (PSA) or abnormal digital rectal exams. The goal was to sequentially utilize a baseline risk score (PCPT), a blood test (PHI), and an advanced urine test (MPS) to accurately identify high-risk prostate cancer patients while minimizing unnecessary, invasive biopsies.

Key Insights and Ideas

  • Information State vs. Health State: In standard RL, actions change the environment or patient state. In cost-optimal testing, actions change the investigator's uncertainty state. The reward is a balance between predictive accuracy and the cumulative cost of the path taken.
  • The Importance of the Path: The paper highlights that identical feature sets can carry different selection biases depending on the order in which they were collected. Accounting for the history of the decision path, rather than just the current pool of data, is vital for unbiased retrospective learning.
  • Misspecification Insurance: Clinical data is notoriously messy, making it difficult to perfectly model human clinician behavior. The doubly robust property provides a safety net, ensuring robust downstream policy performance even if one of the underlying statistical models is wrong.

Key Results

  • Robustness in Simulations: In scenarios where either the propensity model or the contrast model was intentionally misspecified, COST-Q consistently maintained low expected regret and out-performed single-robust baselines (like BOWL) and complete-case analysis.
  • Prostate Cancer Trial Application: Under a matched testing budget, COST-Q achieved the highest Area Under the ROC Curve (AUC = 0.8506) compared to all benchmarks.
  • Clinical Utility: At a strict 90% recall target for high-grade cancer, COST-Q achieved a specificity of 59.5%. This implies that 59% of men without clinically significant disease could avoid an unnecessary invasive biopsy, a massive improvement over the ~35% specificity achieved by traditional uniform testing protocols.

Limitations and Future Work

  • The Positivity Assumption: Like all inverse-probability-weighted methods, COST-Q requires that every valid testing path has a non-zero probability of occurring in the dataset. It can struggle or become highly variable in sparsely observed regions of the covariate space.
  • Fixed Cost Simplification: The current framework treats test costs as fixed and known. In reality, financial and clinical burdens vary across different healthcare institutions, insurance plans, and over time.
  • Action Space Scaling: The methodology was primarily demonstrated on a two-stage optional test setup ($M=2$). Scaling this up to larger action spaces (e.g., dozens of potential sequential lab tests) remains an open challenge for future research.

Summary updated

BibTeX
@misc{zhou2026cost,
  author = {Doudou Zhou and Yiran Zhang and Dian Jin and Yingye Zheng and Lu Tian and Tianxi Cai},
  title = {{Cost-optimal Sequential Testing via Doubly Robust Q-learning}},
  year = {2026},
  eprint = {2604.11165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.11165},
}
Figure