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

Time After Time: Deep-Q Effect Estimation for Interventions on When and What to do

Yoav Wald, Mark Goldstein, Yonathan Efroni, Wouter A.c. van Amsterdam, Rajesh Ranganath

Abstract

Off-policy evaluation (OPE) in continuous-time settings remains a significant challenge for reinforcement learning and causal inference, particularly when data is irregularly sampled. Traditional approaches often rely on discretization or complex differential equations that struggle to scale. This paper introduces Earliest Disagreement Q-Evaluation (EDQ), a model-free framework designed to estimate the effects of both the timing and the nature of interventions. By leveraging a novel "earliest disagreement" mechanism and Transformer-based architectures, EDQ provides a robust, scalable solution for predicting outcomes in high-dimensional, continuous-time environments such as healthcare and finance.

Introduction

In many real-world domains, decisions do not occur at fixed intervals. In clinical settings, a physician might adjust a dosage during an unscheduled patient visit; in financial markets, a trader might execute a position the moment a specific price threshold is crossed. These scenarios generate irregularly sampled data, where the timing of an action is often as critical as the action itself.

Standard reinforcement learning (RL) and causal inference methods typically assume a discrete-time world where observations and actions occur at regular "ticks" of a clock. When faced with continuous-time data, these methods usually resort to discretization—chopping time into fixed bins. However, discretization is often inefficient, introduces significant noise, and loses the precise nuances of timing that drive outcomes. While continuous-time causal models exist, they frequently rely on differential equations that are difficult to scale to the massive, high-dimensional datasets required for modern deep learning.

Methodology: Earliest Disagreement Q-Evaluation (EDQ)

The authors propose Earliest Disagreement Q-Evaluation (EDQ) to address these limitations. EDQ is a model-free approach, meaning it does not attempt to simulate the entire environment's dynamics. Instead, it focuses on directly estimating the value of a target policy using historical data collected under a different behavior policy.

The "Earliest Disagreement" Mechanism

The core innovation of EDQ is how it calculates the value of a state by looking ahead to the first point in time where the observed data and the hypothetical target policy would have diverged. This "disagreement time" (denoted as $\delta$) is adaptive. It is defined as either the time of the next actual treatment recorded in the data or the time the new policy would have acted, whichever comes first. This allows the model to naturally handle varying time scales, looking ahead only seconds during high-frequency events and months during periods of stability.

Recursive Q-Learning and Architecture

EDQ utilizes a recursive formula for the Q-function, which represents the expected future outcome. The algorithm regresses the current estimate against the outcome observed up to the disagreement time, plus the discounted Q-value at that future point.

To implement this flexibly, the authors utilize a GPT-2 Transformer architecture. By treating the history of observations, treatments, and outcomes as a stream of tokens, and incorporating continuous-time positional embeddings, the model can process complex event sequences without the need for fixed-time discretization. This architecture allows EDQ to benefit from the scalability and representational power of modern sequence modeling.

Theoretical Foundation

Beyond its empirical utility, the paper provides a formal causal bridge between reinforcement learning and continuous-time statistics. The authors prove that EDQ is a consistent estimator of policy value under the framework of "local independence" in point processes, ensuring that the model's predictions are theoretically grounded.

Experimental Evaluation

The performance of EDQ was evaluated using two sophisticated simulation environments designed to replicate the complexities of irregular timing in healthcare:

  1. Time-to-Failure Simulation: A synthetic environment where a patient’s vital signs decay over time. The objective is to estimate the time of death under various treatment timing policies.
  2. Cancer Tumor Growth Simulator: Based on bio-mathematical models of lung cancer, this simulator tracks tumor volume in response to chemotherapy and radiotherapy. Crucially, observations in this model are "informative," meaning they occur more frequently when the tumor is larger, creating a significant challenge for standard causal inference methods.

Key Results

  • Robustness to Distribution Shift: EDQ significantly outperformed standard Fitted Q-Evaluation (FQE) and Empirical Risk Minimization (ERM) baselines, particularly when the target policy differed substantially from the training data.
  • Mitigating Discretization Error: In tumor growth tasks, EDQ maintained high accuracy where discrete-time baselines failed. The research demonstrated that even fine-grained discretization introduces "noisy gradient signals" that impede the learning process.
  • Predictive Accuracy in Healthcare: In the time-to-failure task, EDQ achieved a lower Normalized Root Mean Squared Error (RMSE) across various treatment rates, proving its ability to accurately predict survival times under novel intervention schedules.

Discussion and Future Work

EDQ represents a significant step forward in treating timing as an intervention. By viewing the intensity of treatments as a causal variable, researchers can answer counterfactual questions regarding the frequency of care (e.g., "What if this medication was administered bi-weekly instead of monthly?").

Despite its successes, several avenues for future research remain:

  • Censoring: The current framework does not account for "right-censored" data, such as patients leaving a study before an outcome is reached.
  • Hidden Confounders: The method assumes "ignorability"—that all variables influencing both treatment timing and outcomes are observed.
  • Policy Optimization: While EDQ focuses on evaluation, the framework could be extended to policy improvement, helping to discover optimal treatment timings.
  • Real-World Application: Validating EDQ on messy, real-world Electronic Health Records (EHR) is the necessary next step to confirm its utility in clinical decision support.

Conclusion

Earliest Disagreement Q-Evaluation offers a scalable, model-free solution for off-policy evaluation in continuous time. By moving away from fixed-time discretization and embracing the inherent irregularity of real-world data, EDQ provides a more accurate and theoretically sound method for understanding the effects of "when" and "what" to do in complex, time-sensitive environments.

Summary updated

BibTeX
@inproceedings{wald2025time,
  author = {Yoav Wald and Mark Goldstein and Yonathan Efroni and Wouter A.C. van Amsterdam and Rajesh Ranganath},
  title = {{Time After Time: Deep-Q Effect Estimation for Interventions on When and What to do}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=5yDS32hKJc},
}
Figure