Manuscript Offprint
arXiv:2610.26710Doubly Robust Learning of Heterogeneous Survival Treatment Effects under Time-Varying Treatments
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Estimating heterogeneous survival treatment effects (HSTEs) from time-to-event data under time-varying treatments is important in fields such as medicine (e.g., to decide which sequence of treatments is better in terms of survival probability). However, this task is challenging because treatment decisions, patient characteristics, and censoring probability often evolve together, requiring sequential adjustment for both treatments and censoring. Existing survival learners mostly consider a single baseline treatment assignment, while longitudinal treatment-effect learners typically assume uncensored outcomes. In this paper, we introduce a novel doubly robust learner for heterogeneous survival treatment effects under time-varying treatments and history-dependent censoring. Our framework separates the intervention window from the survival horizon, with treatment prescribed for a finite period, after which care follows its natural course. We further establish the favorable theoretical properties of Neyman-orthogonality, rate double robustness and quasi-oracle efficiency. The framework accommodates flexible machine learning models for nuisance estimation and treatment-effect regression. We evaluate our learners through several numerical experiments, demonstrating their effectiveness.
1 INTRODUCTION
In medicine, personalized treatment decisions rarely occur only once in time. In many clinical settings (e.g., Meneghini et al., 2007; Press et al., 2016), treatments are administered repeatedly over time, while the outcome of interest is a time-to-event endpoint such as death (Huang et al., 2014), relapse (Punt et al., 2007), or disease progression (Walia et al., 2023). Estimating how alternative treatment sequences affect survival for a patient with a particular observed history is therefore central to individualized decision-making. In this paper, we aim to estimate heterogeneous survival treatment effects (HSTEs) under time-varying treatments and history-dependent censoring.
This task poses several fundamental challenges. First, treatment decisions may depend on time-varying patient characteristics that are themselves affected by previous treatments. This produces time-varying confounding and invalidates standard adjustment strategies that condition only on baseline information (Robins, 1986; Robins et al., 2000; Hernán and Robins, 2020), requiring sequential adjustment strategies instead. Second, survival outcomes are subject to right-censoring. In a time-varying setting, the probability of remaining under observation may depend on the evolving patient history, including treatment-affected prognostic variables. Consequently, censoring may be informative given the history available at the initial treatment decision, even when it is conditionally independent of the potential event time given the evolving history. This makes it necessary to adjust for censoring sequentially as well, making the problem more challenging than standard causal survival settings with a single baseline treatment (e.g., Klein and Moeschberger, 2003; Frauen et al., 2025b). Finally, the clinically relevant intervention and outcome windows need not coincide: a protocol may prescribe treatment for a finite period, while its effect on survival is evaluated at a later evaluation time after subsequent care has returned to its natural course.

landmark time t
at-risk patients:
Figure 1: Longitudinal intervention and survival estimand. At landmark , treatment is prescribed according to for decision times. Treatment subsequently follows its natural assignment mechanism, while survival is evaluated at , where .
Most existing methods for heterogeneous treatment effects estimation capture only parts of these challenges. Causal survival learners typically handle a single baseline treatment (e.g., Curth et al., 2021; Cui et al., 2023; Frauen et al., 2025b), where censoring is assumed conditionally independent of the event time given a fixed baseline information set and can therefore be handled without sequential censoring adjustment. In our time-varying setting, in contrast, censoring may depend on evolving, treatment-affected histories, requiring adjustment throughout follow-up. On the other hand, longitudinal causal learners handle time-varying treatments but generally assume fully observed outcomes (Lim et al., 2018; Li et al., 2021; Melnychuk et al., 2022; Frauen et al., 2025a), so they do not handle censoring. A small literature comes closer to HSTE estimation under time-varying treatments, with Abraich (2025) being our closest work. However, this work remains tied to a particular model architecture, relies on a single nuisance component and does not provide favorable learning guarantees such as double robustness.
In this paper, we develop a model-agnostic framework for learning HSTEs under time-varying treatments and history-dependent censoring. At a landmark time t, we compare survival under alternative treatment sequences imposed for L decision times, followed by natural-course treatment, with the evaluation time potentially later (see Fig. 1). This separation allows us to study finite, clinically actionable interventions. We derive complementary identification strategies based on g-computation and inverse-probability weighting.
Building on these representations, we introduce a novel learner that has several favorable learning properties: double robustness (Kang and Schafer, 2007), which allows consistency under misspecification of one of two complementary nuisance components; Neyman-orthogonality (Foster and Syrgkanis, 2023), which removes first-order sensitivity to nuisance-estimation error; and quasi-oracle efficiency (Nie and Wager, 2021), whereby under suitable nuisance-rate conditions the learner matches the convergence rate of its oracle counterpart. Thus, the learner combines longitudinal continuation regressions with treatment and censoring mechanisms in an orthogonal pseudo-outcome, and remains consistent if either the continuation regressions are correctly specified or both probability mechanisms are correctly specified. Its construction permits flexible machine-learning models for nuisance estimation and the final effect regression.
Our contributions are threefold: (1) we formulate and identify heterogeneous survival treatment effects for finite-duration longitudinal interventions followed by natural-course treatment under history-dependent censoring, and derive several baseline learners based on complementary adjustment strategies. (2) we introduce a novel doubly robust and Neyman-orthogonal learner for HSTE estimation under time-varying treatments and censoring. (3) we establish its theoretical properties, including (rate) double robustness, Neyman-orthogonality and quasi-oracle efficiency, and validate the proposed learner through synthetic, semi-synthetic, and real-world experiments.
Code is available at https://github.com/tgarriga/SurvivalTimeDR.
HSTE estimation under time-varying treatments. In recent years, several approaches have been proposed to estimate heterogeneous treatment effects under time-varying treatments (e.g., Melnychuk et al., 2022; Li et al., 2021; Frauen et al., 2025a; Garriga et al., 2026a). However, these methods do not account for censoring and thus are not suitable for HSTE estimation. A limited literature lies at the intersection of heterogeneous effect estimation, survival outcomes, and time-varying treatments. Zhu and Gallego (2022) estimate conditional survival effects from longitudinal data using recurrent neural networks. However, they explicitly assume that future covariates are independent of previous treatments, thereby excluding treatment-confounder feedback. Jun et al. (2023) study heterogeneous survival effects across sequential antibiotic decisions using causal survival forests. However, they focus on an application-specific problem rather than developing a general learner for HSTE estimation under time-varying treatments. Closest to our setting, Abraich (2025) directly considers counterfactual survival under time-varying treatment sequences in the presence of treatment-confounder feedback, and targets conditional survival contrasts between alternative treatment sequences. Their approach relies on sequential representation balancing and a discriminative survival model. However, it lacks the favorable properties of double robustness and Neyman-orthogonality, and is therefore first-order sensitive to nuisance misspecification.
Research Gap. To the best of our knowledge, an HSTE learner that has the favorable properties of double robustness and Neyman-orthogonality while properly handling time-varying confounding and history-dependent censoring is missing.
3 PROBLEM SETTING
Notation. Capital letters denote random variables and lowercase letters their realizations. We write for probabilities and for expectations. We use to denote a fitted conditional-mean regression of Z on X, not an empirical average. Estimated quantities carry a hat, as in . Time is discrete and indexed by . For a process U, we write for its trajectory up to k and for a contiguous segment. Throughout, W denotes static baseline covariates, time-varying covariates, the treatment assigned at decision time k, and the event and censoring times, respectively. We denote by the pre-treatment history, i.e. all information available immediately before assigning , and by the at-risk indicator. Potential quantities under a finite treatment sequence followed by natural-course treatment are written with a superscript, as in .
Setup. We consider a discrete-time longitudinal setting with i.i.d. patient trajectories and no common maximum follow-up length. Within each interval, we assume a strict temporal ordering: at the beginning of interval the covariates of patients at risk are recorded, treatment is assigned, and the patient is then monitored for the event or for censoring during . Active treatment is thus observed only for patients with . A patient censored exactly at time still contributes the terminal covariates , and hence the successor history , but neither receives nor contributes any later variable; conversely, an event preempts the next covariate measurement. Writing for the terminal follow-up time and for the event indicator, the observed data for patient are .
Finite-duration interventions with natural-course continuation. Acute clinical protocols prescribe treatment only for a limited period. We therefore fix a landmark time , an active intervention length , and a survival horizon , and restrict attention to patients with . Within the follow-up window, denotes the relative time offset, corresponding to absolute time . The final prescribed decision occurs at , and the evaluation time is . A deterministic sequence is applied during the intervals . Afterwards no further treatment is imposed and care evolves according to the natural assignment mechanism ob-
We provide an extended related work in App. A served in the data: . We write for the potential event time under this regime. Fig. 1 shows our problem setting.
Heterogeneous survival target. We target survival at a prespecified survival horizon. This choice corresponds directly to clinical endpoints such as 10-day survival. Our objective is therefore a horizon-specific counterfactual survival effect. Suppressing the natural-course continuation from the superscript, our target is the conditional survival function
that is, the probability that a patient at risk at the landmark with history survives through when treated according to and then following the natural course. For the evaluation time coincides with the end of the intervention window, whereas additionally captures its downstream consequences. For two candidate sequences and , the heterogeneous survival treatment effect is
Throughout the methodological development, , , and are fixed, and we therefore write and when no ambiguity arises.
Identification. For the treatment process, we assume the standard identification conditions for longitudinal interventions: (A1) Consistency, if the observed treatment path over the active intervention window agrees with , then the corresponding potential event time equals the observed event time; (A2) Sequential treatment exchangeability, , for ; and (A3) Treatment positivity, almost surely on histories compatible with the intervention, for (Robins, 1986; Robins et al., 2000; Melnychuk et al., 2022; Hernán and Robins, 2020).
Our setting additionally requires assumptions on the censoring process. Unlike static treatment survival settings where independent censoring is assumed conditional on a fixed baseline information set, we allow censoring to depend on the evolving observed history, including treatment-affected covariates. Works like Robins et al. (2000); Hernán and Robins (2020); Keogh et al. (2023) introduce similar settings. Specifically, we assume (A4) Sequential independent censoring: for , . Under our observation convention, this means that, among patients who survive through and whose successor history is observed, remaining under follow-up carries no additional information about the potential event time once the up-to-date history is conditioned upon. Censoring may therefore be informative given the landmark history , while remaining conditionally independent of the potential event time given the evolving history. Finally, (A5) Censoring positivity requires almost surely on the relevant histories, for . Treatment exchangeability and positivity are required only over the intervention window , whereas sequential independent censoring and censoring positivity must hold throughout the follow-up needed to determine survival at .
Under the stated assumptions, our estimands and are identified from the observed data. We derive the corresponding identification representations in Sec. 4.
The challenges of our setting. Our setting combines two specific challenges: time-varying treatment–confounder feedback and censoring that is itself time-varying and history-dependent.
• Time-varying confounding. At decision time , treatment may depend on the evolving history , which contains prognostic covariates that can themselves be affected by earlier treatments. These future covariates are unavailable at the landmark, so adjustment for alone cannot remove confounding of subsequent treatment decisions. Conversely, conditioning on their realized values would condition on post-treatment trajectories rather than marginalize over the trajectories induced by the intervention. Identification therefore requires sequential adjustment over the active intervention window , for example through g-computation or treatment weighting (Hess et al., 2026a; Lim et al., 2018; Frauen et al., 2025a).
• History-dependent censoring. In our setting with time-varying treatments, censoring poses a qualitatively different challenge from that in standard causal survival learning with a single baseline treatment. There, censoring may occur throughout follow-up, but independent censoring is typically assumed conditional on a fixed information set, such as baseline covariates and the baseline treatment, e.g., (Frauen et al., 2025b). In our longitudinal setting, by contrast, the probability of remaining observed at time may depend on the evolving history , including prognostic covariates affected by earlier treatments. Hence censoring may be informative conditional on the landmark history , even when it is conditionally independent of the potential event time given the up-to-date history at each censoring decision (Keogh et al., 2023; Robins et al., 2000). As a result, censoring cannot be adjusted for using a single baseline censoring model. Instead, observation through is the result of a sequence of history-dependent selection decisions, requiring stage-specific censoring-continuation probabilities over the evolving risk sets. In particular,
(3)
Moreover, because the histories driving censoring may themselves be affected by treatment, the censoring and treatment-assignment processes are coupled. Treatment adjustment is required only over the intervention window , whereas sequential censoring adjustment must continue until survival at can be determined.
4 IDENTIFICATION STRATEGIES
Following the potential outcomes framework (Hernán and Robins, 2020), we now derive two complementary identification strategies for HSTEs under time-varying treatments, history-dependent censoring and finite-duration interventions, based on g-computation and inverse-probability weighting. These strategies yield baseline HSTE learners and form the building blocks of our doubly robust learner in Sec. 5.
4.1 Continuation-regression representation
For a fixed intervention sequence , the recursion carries information from the evaluation time back to the landmark. For , let be the one-step survival indicator, and set as the terminal boundary condition. In full-horizon formulas, we use for , including the boundary . At time , the action-value function combines survival through the next interval with the continuation survival thereafter:
(4)
When an event occurs during , , so the product vanishes and the unobserved successor history is irrelevant. Thus is the probability of surviving through the evaluation time given the current history, the current treatment, and the continuation induced by .
After the intervention ends, the successor continuation and treatment mechanism are common across regimes. Thus, at a given history and action, for . Averaging this action value over natural-course treatment gives the shared continuation, for :
(5)
During the active intervention, for , we instead set
The common tail is followed by regime-specific updates through . We call and the continuation nuisances; the action values construct them. This approach adapts iterative g-computation (Hernán and Robins, 2020; Hess et al., 2026a) to our setting, and the following result proves identifiability.
Proposition 1. Let , , and be defined by equations (4)-(6) with . Then, under (A1)-(A5), for every landmark history with ,
Proof in App. C.
In App. B we describe a practical fitting procedure.
4.2 Weighting representation
Inverse-probability weighting provides a complementary identification strategy by reweighting trajectories to account for both sequential treatment assignment and censoring (Robins et al., 2000; Frauen et al., 2025a). Treatment adjustment covers only the active intervention window , while censoring adjustment continues through the follow-up needed to determine survival at . For , define the one-step inverse-treatment factor
Its cumulative factor, for , is
For , retain the censoring continuation probability under our observation convention:
(10)
Define the one-step inverse-censoring factor and its cumulative product by
(11) with . The fitted counterparts and replace by ; and replace by .
For , let . The resulting terminal IPW pseudo-outcome is
Under (A1)–(A5), . Boundary conventions and nuisance estimation details are given in App. D.
4.3 Naïve HSTE learners
The previous two representations give three HSTE learners, which we call naïve because each relies on only one of the two complementary nuisance blocks and is therefore not doubly robust.
• PI learner. The plug-in (PI) learner directly uses the continuation nuisances defined in Sec. 4.1 to estimate HSTEs:
• RA learner. The regression-adjustment (RA) learner is a second-stage learner. It first constructs an out-of-fold pseudo-outcome from the plug-in contrast:
Then, using sample splitting, it fits the conditional mean of this pseudo-outcome in a second-stage class : . This second-stage regression can be beneficial when the HSTE function is simpler to learn than the two regime-specific conditional survival functions separately.
• IPW learner. The inverse-probability-weighting (IPW) learner uses the weighting representation defined in Sec. 4.2 to adjust for treatment confounding and history-dependent censoring. Using the separate estimated cumulative factors and , we define
(15)
We then regress this pseudo-outcome on the landmark history:
Limitations of naïve learners. PI and RA rely on accurate continuation nuisances, whereas IPW relies on accurate treatment and censoring mechanisms. Hence, each can be biased when its corresponding nuisance block is misspecified, and none is Neyman-orthogonal, so nuisance-estimation errors may affect the final HSTE estimate at first order. This motivates combining both representations in a doubly robust, orthogonal pseudo-outcome, as developed next.
5 DOUBLY ROBUST LEARNING OF HSTEs
DR learner. We now introduce a doubly robust (DR) and Neyman-orthogonal learner for HSTE estimation under time-varying treatments. Using the fitted continuation regressions from Sec. 4.1 and the estimated treatment and censoring factors from Sec. 4.2, the DR pseudo-outcome is:
(16)
For two regimes, we define . Then, the final HSTE learner is:
Our DR learner estimates our target estimand in Eq. 2 and comes with several favorable theoretical properties that we show in the next subsection.
5.1 Theoretical properties
Next, we establish two fundamental properties of our DR learner: double robustness, which implies that the DR pseudo-outcome remains conditionally unbiased if either the continuation nuisances are correctly specified or both the treatment and censoring mechanisms are correctly specified, and Neyman-orthogonality, i.e., first-order insensitivity to nuisance estimation error.
We write , with the true nuisance collection and a candidate collection (App. E.1–E.4).
Theorem 1 (Double robustness and Neyman-orthogonality). Under the conditions of App. E.1, at a fixed landmark history ,
whenever, for each , either its complete continuation-regression sequence is correct or both the treatment and censoring mechanisms are correct over their respective stage ranges. For the conditional moment
(19) every regular path through for which differentiation under the conditional expectation is valid satisfies
Proof in App. E.3.
The contrast is thus conditionally unbiased under these alternatives and locally insensitive to simultaneous nuisance perturbations. We next study how these properties translate into the statistical convergence of the estimated HSTE function. In particular, we show that nuisance-estimation errors enter only through products of errors from complementary nuisance components, yielding rate double robustness and, under sufficiently fast nuisance convergence, quasi-oracle efficiency.
Let be the output of the same second-stage regression method as , with the same function class , loss, tuning rule, and sample splits, but supplied with the oracle pseudo-outcome . For a fixed , define
(21)
For each nuisance, let , , and denote the squared conditional error scales defined in App. E.4, and set
(22)
Theorem 2 (Rate double robustness and quasi-oracle efficiency). Under the conditions of App. E.4,
Proof in App. E.4.
Remark 1. If , then
Thus nuisance estimation does not worsen the convergence rate relative to the learner that uses the oracle nuisances. The bound also exhibits rate double robustness: continuation-regression errors enter only in product with treatment or censoring errors, so faster convergence of one nuisance block can compensate for slower convergence of its complementary block. The exact remainder is given in App. E.2.
6 EVALUATION
In this section, we perform several numerical experiments with the objective of validating the effectiveness of our approach. Following standard practice in causal inference (Bica et al., 2020; Melnychuk et al., 2022), we use synthetic and semi-synthetic datasets because they provide access to ground-truth counterfactuals. Additionally, we use a real-world dataset to demonstrate practical applicability.
Architecture and training. We use a lightweight Transformer, similar to Hess et al. (2026b), for all nuisance and second-stage regressions. At each time step, the longitudinal history together with the baseline covariates is projected into a latent representation, augmented with fixed sinusoidal positional encodings, and processed by a single causally masked Transformer encoder layer followed by a two-layer ReLU prediction head. Continuation and second-stage models use latent width 30, three attention heads, feed-forward width 20, and dropout 0.1, whereas the treatment and censoring models use width 40, four heads, and no dropout. All models are trained with Adam ( learning rate, batch size 64) for at most 30 epochs, with early stopping on a 15% patient-level validation split. The hyperparameters were inherited from Hess et al. (2026b) and no additional tuning was performed. In App. I we give additional information on computational resources and runtimes.
Baselines. We compare our DR learner against three model-agnostic baselines derived from the complementary identification strategies in Sec. 4: the plug-in (PI) learner, which directly contrasts the estimated regime-specific survival continuations; regression adjustment (RA), which regresses the plug-in contrast on the landmark history; and IPW, which regresses the contrast of treatment- and censoring-weighted survival pseudo-outcomes. We additionally compare against TV-SurvCaus (Abraich, 2025), a recent neural method for individualized survival effects under time-varying treatments, which we adapt to our finite-intervention setting and implement using the same Transformer backbone for a controlled comparison. To our knowledge, this is the only existing method for HSTE estimation under time-varying treatments.
Fully synthetic experiment. We first consider a fully synthetic longitudinal process with treatment–confounder feedback, in which patient severity drives treatment assignment, treatment affects subsequent severity, and censoring depends on post-landmark covariates (App. F). Each repetition contains independent nuisance, second-stage, and test cohorts of 1,800, 1,800, and 1,200 patients, respectively, observed over 32 decision times. Patient-level ground-truth HSTEs
Table 1: Fully synthetic dataset.
| Method | ||||
|---|---|---|---|---|
| PI | ||||
| RA | ||||
| IPW | ||||
| TV-SurvCaus | ||||
| DR | ||||
| DR improvement (%) | 48.3 | 31.5 | 34.0 | 8.5 |
Reported: RMSE of the estimated HSTE; lower is better.
Values are mean ± 95% t-interval half-width over 5 repetitions.
DR improvement is relative to the best competing learner.
Table 2: Semi-synthetic dataset.
| Method | ||||
|---|---|---|---|---|
| PI | ||||
| RA | ||||
| IPW | ||||
| TV-SurvCaus | ||||
| DR | ||||
| DR improvement (%) | 37.0 | 29.4 | 25.4 | 22.5 |
Reported: RMSE of the estimated HSTE; lower is better.
Values are mean ± 95% t-interval half-width over 5 repetitions.
DR improvement is relative to the best competing learner.
are obtained through paired Monte Carlo counterfactual rollouts, allowing direct evaluation of individual effect estimates (App. F).
Results. The DR learner achieves the lowest RMSE in all four settings, reducing error by 9–48% relative to the best competing method (Table 1). Across configurations, DR consistently outperforms PI, RA, IPW, and TV-SurvCaus, showing that the doubly robust construction translates into a clear empirical advantage. In particular, while PI, RA, and TV-SurvCaus attain similar but systematically higher errors, IPW is substantially less accurate. Since DR and RA rely on the same continuation regressions and differ through the weighted orthogonal correction, their performance gap highlights the practical benefit of augmenting regression adjustment with the doubly robust orthogonal correction. Additional diagnostics and checks using true treatment and censoring probabilities are provided in App. F.2.
Semi-synthetic experiment. We next consider a semi-synthetic benchmark based on the first 24 hours of ICU history from 6,000 adult MIMIC-IV patients (Johnson et al., 2023), using heart rate, mean arterial pressure, respiratory rate, age, and sex as the landmark history. Treatment, subsequent covariates, events, and censoring are then simulated, preserving realistic patient histories while retaining known counterfactual effects for evaluation (App. G).
Results. The DR learner achieves the lowest RMSE in all four settings, reducing error by 23–37% relative to the best competing learner (Table 2). PI, RA, and TV-SurvCaus perform similarly but have consistently higher errors, while IPW is less accurate throughout.
Additional experiments further support this interpre-
Table 3: Real-world dataset.
| Method | ||
|---|---|---|
| PI | ||
| RA | ||
| IPW | ||
| TV-SurvCaus | ||
| DR | ||
| DR improvement (%) | 0.0 | 5.7 |
Reported: Weighted Brier score of predicted survival; lower is better. Values are mean ± 95% t-interval half-width over five random seeds. DR improvement is relative to the best competing learner.
tation: targeted nuisance misspecification produces the qualitative double-robustness behavior predicted by theory (App. G.1), while stress tests show that DR remains competitive under substantially heavier censoring, sharper treatment assignment, and higher event rates, achieving the lowest RMSE in all seven short-horizon conditions and five of seven long-horizon conditions (App. G.2).
Real-world experiment. Finally, we consider a real-world cohort of MIMIC-IV patients receiving vasopressors in the ICU. Since counterfactual outcomes are unavailable in real data, we evaluate the survival predicted under continuing vasopressors for six more hours against the observed outcomes of patients who followed that sequence, weighting each patient by the inverse of their estimated probability of continuing treatment (Keogh and van Geloven, 2024). We report the weighted Brier score of these survival predictions, with additional cohort and evaluation details in App. H.
Results. DR ties PI for the lowest weighted Brier score at (24 hours) and achieves the lowest score at (48 hours), reducing error by 5.7% relative to the best competing learner (Table 3).
Conclusion. We introduced a novel doubly robust learner for heterogeneous survival treatment effects under time-varying treatments. We established double robustness, Neyman-orthogonality and quasi-oracle efficiency. Across synthetic, semi-synthetic, and real-world experiments, the method showed strong empirical performance, supporting its use for survival-effect estimation under time-varying treatments.
ACKNOWLEDGMENTS
We sincerely thank Eduard Serrahima de Cambra for helpful discussions related to this work. We acknowledge Novartis for sponsoring Tomàs Garriga's industrial PhD. We also thank the Government of Catalonia's Industrial PhDs Plan for funding part of this research. We acknowledge Horizon Europe Programme under the AI4DEBUNK Project (https://www.ai4debunk.eu), grant agreement num.
- Tingting Zhu was supported by the Royal Academy of Engineering under the Research Fellowship scheme.
References
Abraich, A. (2025). Tv-survcaus: Dynamic representation balancing for causal survival analysis. arXiv preprint arXiv:2505.01785.
Bai, X., Tsiatis, A. A., and O'Brien, S. M. (2013). Doubly-robust estimators of treatment-specific survival distributions in observational studies with stratified sampling. Biometrics, 69(4):830–839.
Bica, I., Alaa, A. M., Jordon, J., and van der Schaar, M. (2020). Estimating counterfactual treatment outcomes over time through adversarially balanced representations. In International Conference on Learning Representations.
Boyer, C. B., Dahabreh, I. J., and Steingrimsson, J. A. (2025). Estimating and evaluating counterfactual prediction models. Statistics in Medicine, 44(23–24):e70287.
Cui, Y., Kosorok, M. R., Sverdrup, E., Wager, S., and Zhu, R. (2023). Estimating heterogeneous treatment effects with right-censored data via causal survival forests. Journal of the Royal Statistical Society Series B: Statistical Methodology, 85(2):179–211.
Curth, A., Lee, C., and van der Schaar, M. (2021). SurvITE: Learning heterogeneous treatment effects from time-to-event data. In Advances in Neural Information Processing Systems, volume 34.
Foster, D. J. and Syrgkanis, V. (2023). Orthogonal statistical learning. The Annals of Statistics, 51(3):879–908.
Frauen, D., Hess, K., and Feuerriegel, S. (2025a). Model-agnostic meta-learners for estimating heterogeneous treatment effects over time. In The Thirteenth International Conference on Learning Representations.
Frauen, D., Schröder, M., Hess, K., and Feuerriegel, S. (2025b). Orthogonal survival learners for estimating heterogeneous treatment effects from time-to-event data. In Advances in Neural Information Processing Systems (NeurIPS). arXiv:2505.13072.
Garriga, T., Melnychuk, V., Hess, K., de Cambra, E. S., Brando, A., Sanz, G., and Feuerriegel, S. (2026a). Orthogen: A generative orthogonal learner for time-varying treatments. arXiv preprint arXiv:2610.10210.
Garriga, T., Sanz, G., de Cambra, E. S., and Brando, A. (2026b). CEPAE: Conditional entropy-penalized autoencoders for time series counterfactuals. Transactions on Machine Learning Research.
Hernán, M. A., Brumback, B., and Robins, J. M. (2000). Marginal structural models to estimate the causal effect of zidovudine on the survival of HIV-positive men. Epidemiology, 11(5):561–570.
Hernán, M. A. and Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC, Boca Raton.
Hess, K., Frauen, D., Melnychuk, V., and Feuerriegel, S. (2026a). IGC-net for conditional average potential outcome estimation over time. In The Fourteenth International Conference on Learning Representations.
Hess, K., Frauen, D., van der Schaar, M., and Feuerriegel, S. (2026b). Overlap-weighted orthogonal meta-learner for treatment effect estimation over time. In The Fourteenth International Conference on Learning Representations.
Huang, X., Ning, J., and Wahed, A. S. (2014). Optimization of individualized dynamic treatment regimes for recurrent diseases. Statistics in Medicine, 33(14):2363–2378.
Hubbard, A. E., van der Laan, M. J., and Robins, J. M. (2000). Nonparametric locally efficient estimation of the treatment specific survival distribution with right censored data and covariates in observational studies. In Halloran, M. E. and Berry, D. A., editors, Statistical Models in Epidemiology, the Environment, and Clinical Trials, volume 116 of The IMA Volumes in Mathematics and its Applications, pages 135–177. Springer, New York.
Johnson, A. E., Bulgarelli, L., Shen, L., Gayles, A., Shammout, A., Horng, S., Pollard, T. J., Hao, S., Moody, B., Gow, B., et al. (2023). MIMIC-IV, a freely accessible electronic health record dataset. Scientific Data, 10(1):1.
Jun, I., Cohen, S. A., Ser, S. E., Marini, S., Lucero, R. J., Bian, J., and Prosperi, M. (2023). Optimizing dynamic antibiotic treatment strategies against invasive methicillin-resistant staphylococcus aureus infections using causal survival forests and g-formula on statewide electronic health record data. In The KDD'23 Workshop on Causal Discovery, Prediction and Decision, pages 98–115. PMLR.
Kang, J. D. Y. and Schafer, J. L. (2007). Demystifying double robustness: A comparison of alternative strategies for estimating a population mean from incomplete data. Statistical Science, 22(4):523–539.
Kennedy, E. H. (2023). Towards optimal doubly robust estimation of heterogeneous causal effects. Electronic Journal of Statistics, 17(2):3008–3049.
Keogh, R. H., Gran, J. M., Seaman, S. R., Davies, G., and Vansteelandt, S. (2023). Causal inference in survival analysis using longitudinal observational data: Sequential trials and marginal structural models. Statistics in Medicine, 42(13):2191–2225.
Keogh, R. H. and van Geloven, N. (2024). Prediction under interventions: evaluation of counterfactual performance using longitudinal observational data. Epidemiology, 35(3):329–339.
Klein, J. P. and Moeschberger, M. L. (2003). Survival analysis: techniques for censored and truncated data. Springer.
Lee, C., Yoon, J., and van der Schaar, M. (2020). Dynamic-DeepHit: A deep learning approach for dynamic survival analysis with competing risks based on longitudinal data. IEEE Transactions on Biomedical Engineering, 67(1):122–133.
Li, R., Hu, S., Lu, M., Utsumi, Y., Chakraborty, P., Sow, D. M., Madan, P., Li, J., Ghalwash, M., Shahn, Z., et al. (2021). G-net: a recurrent network approach to g-computation for counterfactual prediction under a dynamic treatment regime. In Machine Learning for Health, pages 282–299. PMLR.
Lim, B., Alaa, A. M., and van der Schaar, M. (2018). Forecasting treatment responses over time using recurrent marginal structural networks. In Advances in Neural Information Processing Systems (NeurIPS), volume 31.
Louizos, C., Shalit, U., Mooij, J., Sontag, D., Zemel, R., and Welling, M. (2017). Causal effect inference with deep latent-variable models. In Guyon, I., Luxburg, U. V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., and Garnett, R., editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
Melnychuk, V., Frauen, D., and Feuerriegel, S. (2022). Causal transformer for estimating counterfactual outcomes. In International conference on machine learning, pages 15293–15329. PMLR.
Meneghini, L., Koenen, C., Weng, W., and Selam, J.-L. (2007). The usage of a simplified self-titration dosing guideline (303 algorithm) for insulin detemir in patients with type 2 diabetes: results of the randomized, controlled predictive 303 study. Diabetes, Obesity and Metabolism, 9(6):902–913.
Mesinovic, M., Watkinson, P., and Zhu, T. (2024). DySurv: dynamic deep learning model for survival analysis with conditional variational inference. Journal of the American Medical Informatics Association, 33(1):112–122.
Morzywolek, P., Decruyenaere, J., and Vansteelandt, S. (2023). On a general class of orthogonal learners for the estimation of heterogeneous treatment effects. arXiv preprint arXiv:2303.12687.
Nie, X. and Wager, S. (2021). Quasi-oracle estimation of heterogeneous treatment effects. Biometrika, 108(2):299–319.
Parafita, A. and Vitria, J. (2022). Estimand-agnostic causal query estimation with deep causal graphs. IEEE Access, 10:71370–71386.
Pawlowski, N., Coelho de Castro, D., and Glocker, B. (2020). Deep structural causal models for tractable counterfactual inference. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., and Lin, H., editors, Advances in Neural Information Processing Systems, volume 33, pages 857–869. Curran Associates, Inc.
Petersen, M., Schwab, J., Gruber, S., Blaser, N., Schomaker, M., and van der Laan, M. J. (2014). Targeted maximum likelihood estimation for dynamic and static longitudinal marginal structural working models. Journal of Causal Inference, 2(2):147–185.
Press, O. W., Li, H., Schöder, H., Straus, D. J., Moskowitz, C. H., et al. (2016). Us intergroup trial of response-adapted therapy for stage iii to iv hodgkin lymphoma using early interim fluorodeoxyglucose-positron emission tomography imaging: Southwest oncology group s0816. Journal of Clinical Oncology, 34(17):2020–2027.
Punt, C. J. A., Buyse, M., Köhne, C.-H., Hohenberger, P., Labianca, R., Schmoll, H. J., Pählman, L., Sobrero, A., and Douillard, J.-Y. (2007). Endpoints in adjuvant treatment trials: a systematic review of the literature in colon cancer and proposed definitions for future trials. JNCI: Journal of the National Cancer Institute, 99(13):998–1003.
Robins, J. M. (1986). A new approach to causal inference in mortality studies with a sustained exposure period—application to control of the healthy worker survivor effect. Mathematical Modelling, 7(9-12):1393–1512.
Robins, J. M., Hernan, M. A., and Brumback, B. (2000). Marginal structural models and causal inference in epidemiology. Epidemiology, 11(5):550–560.
Sanchez, P. and Tsaftaris, S. A. (2022). Diffusion causal models for counterfactual estimation. In First Conference on Causal Learning and Reasoning.
Taubman, S. L., Robins, J. M., Mittleman, M. A., and Hernán, M. A. (2009). Intervening on risk factors for coronary heart disease: an application of the parametric g-formula. International journal of epidemiology, 38(6):1599–1611.
van Geloven, N., Swanson, S. A., Ramspek, C. L., Luijken, K., van Diepen, M., Morris, T. P., Groenwold, R. H. H., van Houwelingen, H. C., Putter, H., and le Cessie, S. (2020). Prediction meets causal inference: the role of treatment in clinical prediction models. European Journal of Epidemiology, 35(7):619–630.
Walia, A., Tuia, J., and Prasad, V. (2023). Progression-free survival, disease-free survival and other composite end points in oncology: improved reporting is needed. Nature Reviews Clinical Oncology, 20:885–895.
Westling, T., Luedtke, A., Gilbert, P. B., and Carone, M. (2024). Inference for treatment-specific survival curves using machine learning. Journal of the American Statistical Association, 119(546):1541–1553.
Xiong, H., Wu, F., Deng, L., Su, M., and Lehman, L. w. H. (2024). G-transformer: Counterfactual outcome prediction under dynamic and time-varying treatment regimes. In Deshpande, K., Fiterau, M., Joshi, S., Lipton, Z., Ranganath, R., and Urteaga, I., editors, Proceedings of the 9th Machine Learning for Healthcare Conference, volume 252 of Proceedings of Machine Learning Research. PMLR.
Xu, S., Cobzaru, R., Finkelstein, S. N., Welsch, R. E., Ng, K., and Shahn, Z. (2024). Estimating heterogeneous treatment effects on survival outcomes using counterfactual censoring unbiased transformations. arXiv preprint arXiv:2401.11263.
Yu, Z. and van der Laan, M. J. (2006). Double robust estimation in longitudinal marginal structural models. Journal of Statistical Planning and Inference, 136(3):1061–1089.
Zhang, M. and Schaubel, D. E. (2012). Contrasting treatment-specific survival using double-robust estimators. Statistics in Medicine, 31(30):4255–4268.
Zheng, W., Petersen, M., and van der Laan, M. J. (2016). Doubly robust and efficient estimation of marginal structural models for the hazard function. The International Journal of Biostatistics, 12(1):233–252.
Zhu, J. and Gallego, B. (2022). Causal inference for observational longitudinal studies using deep survival models. Journal of Biomedical Informatics, 131:104119.
Supplementary Materials
A EXTENDED RELATED WORK
Non-survival causal estimation under time-varying treatments. Classical approaches for causal estimation under time-varying treatments include marginal structural models fitted using inverse probability of treatment weighting (IPTW) (Robins et al., 2000) and the parametric g-formula, also known as g-computation (Taubman et al., 2009). More recent work has adapted these ideas to high-dimensional longitudinal settings using flexible neural architectures. Lim et al. (2018) combine recurrent networks with propensity-based weighting, whereas Li et al. (2021) use recurrent models to perform simulation-based g-computation. G-Transformer (Xiong et al., 2024) extends this line of work with Transformer-based sequence modeling, while IGC-Net (Hess et al., 2026a) implements iterative regression-based g-computation using a Transformer architecture. Other approaches, including Counterfactual Recurrent Networks (Bica et al., 2020) and Causal Transformer (Melnychuk et al., 2022), rely on balanced representations of longitudinal patient histories to estimate counterfactual outcomes. A related line models the entire causal data-generating process with different generative models (Louizos et al., 2017; Pawlowski et al., 2020; Parafita and Vitria, 2022; Sanchez and Tsaftaris, 2022) to produce counterfactual estimations. Relatedly, Garriga et al. (2026b) develop an autoencoder-based approach that uses structural causal models for counterfactual inference in time series under interventions on observed events. Moving beyond estimator-specific neural architectures, Frauen et al. (2025a) propose a general family of model-agnostic meta-learners based on history adjustment, regression adjustment, propensity weighting, doubly robust correction, and inverse-variance weighting. Hess et al. (2026b) build on this framework with an orthogonal overlap-weighted estimator designed to mitigate the loss of treatment overlap that arises as treatment sequences become longer.
Marginal survival treatment effect estimation. A complementary line of work targets population-average rather than history-conditional survival effects. In static-treatment settings, several approaches estimate treatment-specific marginal survival curves while accounting for confounding and censoring (Hubbard et al., 2000; Zhang and Schaubel, 2012; Bai et al., 2013). More recently, Westling et al. (2024) propose a cross-fitted doubly robust estimator of treatment-specific marginal survival curves that accommodates flexible machine-learning nuisance estimators and provides pointwise and uniform inference. Related work on dynamic survival prediction uses longitudinal measurements to update individual risk predictions over time, for example through recurrent neural networks (Lee et al., 2020) or conditional variational models (Mesinovic et al., 2024); however, these approaches are predictive rather than designed to estimate causal effects of alternative treatment strategies. For longitudinal treatments, marginal structural models provide a classical framework for estimating population-average causal effects in the presence of time-varying confounding (Robins et al., 2000; Hernán et al., 2000). Doubly robust extensions have also been developed in this setting, including estimators for longitudinal marginal structural models of survival processes (Yu and van der Laan, 2006) and targeted estimators for intervention-specific hazard functions (Zheng et al., 2016; Petersen et al., 2014). More recently, Keogh et al. (2023) study marginal structural models and sequential trial emulation for estimating marginal risk differences between sustained treatment strategies. Thus, estimation of marginal survival effects under both static and longitudinal treatments is relatively well established. Our focus instead is to learn survival conditional on an individual's observed history at a landmark, under finite treatment sequences followed by natural-course treatment, rather than averaging these contrasts over the target population.
B BACKWARD FITTING
Regressing terminal survival only on the landmark history and prescribed treatment sequence would ignore later, treatment-affected covariates that jointly govern survival, censoring, and subsequent treatment. These covariates cannot be included directly in a landmark-time learner: they are unavailable when the prediction is made, and conditioning on their realized values would not average over the trajectories induced by the intervention. Iterative g-computation performs this marginalization one time point at a time. The recursion runs through , rather than stopping at the final prescribed decision , because it must continue averaging over natural-course treatment and evolving histories until survival is evaluated at . At each step, restricting the regression to the contemporaneous risk set accounts for censoring under sequential independent censoring (A4) without requiring a censoring model.
Backward fitting. Start from and move backward through , using the continuation estimate at to form a regression target at . For each regime , every patient in the risk set receives the local pseudo-outcome
The first case is an event during ; the second includes patients censored exactly at , whose successor history is still recorded. For , the target has no regime dependence. Regress it once on to obtain . Since observed follows given , regressing the generated outcome on yields the shared in equation 5 without fitting a natural-course propensity. For , use the common boundary , fit separately for each regime, and set . When , the shared tail is empty and the boundary equals one.
The common conditional tail does not imply that the post-intervention histories have the same distribution under different regimes.
C PROOF OF PROPOSITION 1
Proof. Let
Call a history at time regime-compatible if its treatments at times , for , agree with ; after , its treatment components are left at their natural values. On such histories, define the causal continuation quantity
Because prior treatment is contained in , this is the probability of survival through , conditional on the current at-risk history, when any remaining treatments at offsets are set to and treatment from time onward follows its natural course. In particular, . For , conditional on a given compatible history, only natural-course treatment remains; this does not equate the distributions of histories across regimes. We prove from the observed-data recursion that by backward induction, using the common-continuation convention after .
First, on a regime-compatible history with , consistency gives , and hence . At the first nontrivial step,
Since , the last pre-horizon decision time is no earlier than the final prescribed time , and consistency gives
for an action compatible with the regime. If , sequential treatment exchangeability (A2) therefore gives
If , the current treatment is natural, and the tower property gives the same equality after averaging conditional on . Censoring exactly at does not obscure : under the observation convention it records survival through .
Now fix and suppose on the relevant histories. Let . Conditional on and , the successor history is observed whether or the patient is censored exactly at . For , the induction hypothesis gives the conditional mean of as . Sequential independent censoring (A4) implies
(31)
and censoring positivity makes the left-hand conditional mean available on all relevant successor histories. The same continuation value therefore applies when . If an event occurs in , then ; consistency and the temporal ordering give on a regime-compatible path through , and the unavailable successor history is immaterial. Consequently, for every current action compatible with the regime, the induction hypothesis and iterated expectations yield
If , treatment is prescribed. Treatment positivity makes the conditional regression at well defined, and sequential treatment exchangeability (A2) and consistency applied to equation 32 give
If , no treatment is imposed at time . Rather, has its natural conditional law . Hence, without fixing a post-intervention treatment path,
(34)
This identifies the post-intervention conditional continuation as the same function of the current history for either regime. The induction through gives
The censoring mechanism need not be modeled in this recursion: sequential independent censoring (A4) is used only to transport the continuation regression from patients with to those censored at , while the latter still contribute and an event makes the regression target zero.
D INVERSE PROBABILITY WEIGHTING DETAILS
Inverse-probability weighting creates a pseudo-population in which the prescribed treatment sequence is followed and selective loss to follow-up is removed (Robins et al., 2000; Frauen et al., 2025a). The two corrections operate over different ranges: treatment is prescribed only through , whereas observation must be maintained long enough to determine survival at . For , the indicator evaluates from Sec. 4.2 on patient i's trajectory; it includes censoring exactly at , when survival through that time is known. The cumulative treatment factor is ; we estimate by regressing on in the risk set for .
In contrast to treatments, censoring reweighting continues after the intervention. The continuation probability for has exactly the conditioning set in equation 10. At stage , the cumulative factor is , with . It corrects the sequential selection required to remain observed through the beginning of interval . At the terminal score stage , the product stops at when , rather than including : censoring exactly at the horizon still reveals survival through . We estimate among patients known to be event-free through , using as the response and as predictors.
Thus, the treatment factor reconstructs adherence only while treatment is imposed, whereas the censoring factor reconstructs observation for as long as the endpoint requires. Empty products equal one throughout. Any weighted term at stage is defined to be zero when , without evaluating unavailable factors. Since implies , the terminal pseudo-outcome can be written directly as
Under (A1)–(A5), its conditional expectation given and equals .
E THEORETICAL PROPERTIES OF THE DR LEARNER
E.1 Preliminaries and nuisance notation
Fix a regime , and write for prescribed treatment and for the score, which evaluates survival at . Under the observation convention specified in the setup, censoring exactly at still reveals survival through that time. Consequently, when , the last required censoring nuisance is , not ; for none is required.
Collect the true score-level nuisances and a generic candidate collection as
(37)
and write and . In full-horizon formulas, and for : these are the same functions for both regimes, not separately fitted nuisances. The terminal values satisfy . For candidate mechanisms, define
(38)
where has the conditioning set in equation 10, and is defined analogously. In particular, . The population score evaluated at the candidate nuisances is
As before, a product involving an unavailable successor history is read as zero after an event.
The remainder calculation uses the stage-specific ratios
and the pre-stage weight
All conditional statements below are for almost every in the at-risk support. In addition to (A1)–(A5), we require the displayed terms to be integrable and the candidate inverse weights to be bounded. For estimated nuisances, all population calculations are conditional on the sample used to fit them.
E.2 Exact conditional remainder
Lemma 1 (Conditional second-order remainder). Under the conditions in Sec. E.1,
(44)
Moreover,
Every summand in equation 44 is a continuation-regression error multiplied by a treatment and/or censoring error. For , the continuation error is that of the shared . Explicitly,
Proof. Condition on the nuisance-training sample, and set
The recursion in equations (4)–(6) implies
For , the current treatment factor restricts the residual to . For , no current treatment factor appears and the conditional expectation averages over the natural treatment law. Sequential independent censoring (A4) and the observation convention justify the use of : survival and the successor history are observed when censoring occurs exactly at , whereas the product is zero after an event.
Subtracting the true score from the candidate score and applying equation 48 gives
(49)
At the landmark,
For , the positive occurrence of inherited from the previous stage has coefficient , while the negative occurrence at the current stage satisfies
(51)
Indeed, passing from the preceding observed risk set into contributes . The current treatment contributes only for ; afterward treatment is natural and . Collecting the two occurrences of each in equation 49, with , proves equation 44. Equation 46 is an algebraic expansion of .
At the true nuisances, each augmentation term has conditional mean zero by equation 48. Hence the conditional mean of the true score is , which equals by Proposition 1. This proves equation 45.
E.3 Double robustness and Neyman-orthogonality
Theorem 1 (Double robustness and Neyman-orthogonality). Under the conditions of App. E.1, at a fixed landmark history ,
whenever, for each , either its complete continuation-regression sequence is correct or both the treatment and censoring mechanisms are correct over their respective stage ranges. For the conditional moment
(19)
every regular path through for which differentiation under the conditional expectation is valid satisfies
Proof. We first establish the result for a fixed regime . The true score satisfies
The same equality holds with replaced by if either
(i) for and for ; or
(ii) for and for .
Correct targeting is equation 45. Under condition (i), every continuation error in equation 44 is zero. Under condition (ii), over their respective index ranges, so the same remainder is zero.
For the regime-specific conditional moment, write
every regular path through the full nuisance vector, with at and for which differentiation under the conditional expectation is valid, satisfies
For a regular path through the truth, both and are first order in , while remains bounded locally. The finite sum in equation 44 is therefore , including when all nuisance components vary along the same path. Its first derivative at zero vanishes. Linearity gives the assertions for the contrast. In particular,
☐
E.4 Statistical convergence
For the two regimes, let
collect the true score-level nuisances, and, for a collection of the same form, define
The oracle pseudo-outcome is . Let be the output of exactly the same second-stage regression procedure used for , with the same function class , loss, tuning rule, and sample splits, but with the oracle pseudo-outcome in place of its cross-fitted estimate. For a fixed landmark history, define the pointwise mean-squared risk
Cross-fitting, overlap, and boundedness. Use a fixed number V of folds. If fold v contains observations, write , assume the fold proportions are bounded away from zero, and note that . For held-out fold v, write for its complementary nuisance-training sample and attach to the resulting estimates. Each estimated pseudo-outcome is evaluated only on its held-out fold, and the same fold partition is used at every backward stage. We take and to be fixed. Strengthening (A3) and (A5) to uniform true overlap for the rate analysis, assume that, on the relevant regime-specific supports, for some ,
This is distinct from bounded fitted inverse weights. In implementation, the fitted denominators entering the score are deterministically lower-clipped at a fixed :
Thus fitted overlap is enforced rather than assumed as a stochastic event; all errors below refer to these clipped fits. A lower clip is sufficient because these fitted probabilities enter the proof only through inverse weights; no upper truncation is needed. Assume also for , with the shared fitted continuation when . All rate statements are as .
Separate fourth-moment nuisance rates. For , let denote expectation under the corresponding uncensored history law: treatment follows regime through , treatment is natural afterward, and censoring is eliminated through the follow-up horizon while the event process remains natural. This is the regime-specific law identified by the true treatment and censoring likelihood ratios in the score. For a fresh trajectory from this law and a fold-specific random function , define the joint training-sample/evaluation-history norm
The fresh evaluation trajectory in is independent of , as ensured foldwise by sample splitting. Define
(62)
For , abbreviates the same shared fit for both regimes. Its error norm can still depend on , because the evaluation-history laws differ. These are squared conditional error scales: each is the maximum over folds of the square root of the corresponding conditional fourth moment in equation 61. They are not mean-squared errors. Thus, if two nuisance norm errors have orders and , their corresponding -quantities have orders and , and their product has order , the scale of a squared second-order bias. We assume these quantities are finite and tend to zero. Taking a maximum is harmless for fixed and makes the foldwise requirement explicit. No mixed product-moment rate is assumed.
For each fold and regime, define the conditional score perturbation
Stability Condition 1 (Generated-outcome regression stability). The second-stage regression procedure satisfies the Kennedy-style stability bound
This high-level condition controls the effect of replacing the oracle regression targets by cross-fitted generated targets (Kennedy, 2023). The oracle and feasible learners use the same regression method, function class, loss, tuning rule, and splits. The condition is conceptually separate from Neyman-orthogonality and is not the source of the nuisance-product structure.
For brevity, write
Theorem 2 (Rate double robustness and quasi-oracle efficiency). Under the conditions of App. E.4,
Proof. Under the conditions stated above and Stability Condition 1, with fixed L and ,
(66)
Fix a held-out fold v and condition on its nuisance-training sample . Apply Lemma 1 with . Uniform true overlap, deterministic fitted-denominator clipping, and the fixed horizons bound all pre-stage weights and likelihood ratios. Equation 46 expresses every summand as a continuation error times a treatment error, a censoring error, or their sum. Jensen's inequality, the squared triangle inequality, and the fixed number of stages therefore give, after averaging over ,
(69)
The change from the observed weighted histories in the exact remainder to changes only the implicit constant: the corresponding Radon–Nikodym factors are uniformly bounded under equations (59)–(60), and the number of stages is fixed.
Apply Hölder's inequality to each mixed term in equation 69. For example, with the expectation taken over the joint law of and the regime-specific evaluation history,
(70)
The identical calculation with gives
(71)
Consequently, uniformly over the fixed folds,
For each fold, . Averaging equation 72 with the fold proportions and over the two regimes, then applying Stability Condition 1, proves equation 66. Equation 68 follows immediately from equation 67.
Cross-fitting is used here only to condition on while analyzing its held-out fold. It does not make treatment, censoring, and continuation errors evaluated at the same history independent; no such independence is used in equation 70 or equation 71.
Quasi-oracle consequence. In particular, if
then
Thus the feasible DR learner has the same convergence rate as the otherwise identical second-stage learner supplied with the oracle pseudo-outcome, or equivalently with the true score nuisances.
The bound exhibits rate double robustness: continuation-regression error enters only in product with treatment error for and with censoring error for . Hence faster convergence of either nuisance block can compensate for slower convergence of its complementary block. As the proof shows, this product structure is derived from the exact orthogonal remainder, separate fourth-moment rates, and Hölder's inequality; it is not a mixed-rate assumption. This is an oracle-rate comparison, not a claim of semiparametric efficiency or asymptotic normality.
F FULLY SYNTHETIC EXPERIMENT
F.1 Data-generating process
We simulate i.i.d. patient trajectories over decision times, with the notation and the within-interval ordering of the problem setting. The static covariates are and the time-varying covariates
, which we interpret as disease severity, physiological reserve, and accumulated treatment burden; treatment is binary, . We write . The mechanisms below close the treatment–confounder feedback loop: severity raises the probability of treatment, treatment lowers severity, and severity drives the event hazard.
Covariates. We draw , , and , and initialize
For patients who survive interval k we update the covariates, writing for the feedback strength ,
(76)
with independent innovations , , and .
History summaries. The mechanisms depend on through summaries that are deliberately not first-order Markov in , so that no learner can succeed by tracking the current covariates alone. For a process U we write, with indices truncated below at zero,
and for treatment we set and use the recent and cumulative exposures , the mean of , and , both zero at . These summaries are internal to the simulator: the learners receive only .
Treatment, event, and censoring mechanisms. Treatment is assigned by a logistic model in which severity, its recent level, and its trend all raise the probability of treatment, and past treatment is strongly persistent,
so that sequential positivity holds by construction with . The effect of treatment varies with both baseline and time-varying history,
(82)
and, collecting the treatment contribution as , the event is drawn from the one-step hazard
(83)
Since is positive almost everywhere, treatment is protective and the size of its benefit is modified by the history. Censoring is resolved on the successor history, so that dropout depends on covariates realized after the landmark,
Censoring is therefore informative given while remaining conditionally independent of the potential event time given , as assumption (A4) requires. Table 4 lists the parameters.
Table 4: Parameters of the synthetic data-generating process.
| Symbol | Description | Value |
|---|---|---|
| decision times | 32 | |
| overlap strength | 0.75 | |
| effect heterogeneity strength | 3.0 | |
| treatment–confounder feedback strength | 0.8 | |
| event intercept | ||
| censoring intercept | ||
| treatment effect scale | ||
| propensity clip |
F.2 Experiment
Design. Each repetition simulates three independent cohorts of 1,800 nuisance, 1,800 second-stage, and 1,200 test patients, so no patient contributes to more than one cohort, and we repeat the whole experiment five times with independent seeds. We predict at the landmark and compare treatment at each of the first decisions with no treatment at any of them, both followed by the natural course, for . Among test patients at risk at the landmark, are treated at the landmark, and have an event within two and eight steps, and and are censored within the same windows. The share of patients whose recorded treatment matches the all-ones sequence over the intervention window is at and at , and and for the all-zeros sequence, so support is markedly scarcer at the longest setting.
True effects. For each test patient we simulate 1,000 futures under each sequence from the patient's landmark history, with the same random numbers for both sequences and without censoring, and take the mean difference in survival as the true effect. Its standard deviation across patients is depending on the setting.
Learners and training. The nuisance cohort fits the treatment and censoring models, the regime-specific continuation regressions during the intervention window, and a shared post-intervention continuation. The second-stage cohort fits the second-stage regressions of RA, IPW, and DR, and the TV-SurvCaus model. Training pools all landmarks at which the horizon fits within follow-up. All models use the same causal Transformer: one input projection over the concatenated history, fixed sinusoidal positions, a single causal encoder layer, and a two-layer ReLU head, with repeated across time and entering the same projection. The continuation and second-stage models use width 30, three heads, feed-forward width 20, and dropout 0.1; the treatment and censoring models use width 40, four heads, and no dropout. We train with Adam at learning rate and batch size 64, for at most 30 epochs with early stopping on a patient-level validation split of each cohort, restoring the checkpoint with the lowest validation loss, and we never use the test cohort for any selection. The penalty is 0 for the nuisances and 0.01 for the second stages. Before inversion, treatment and censoring-continuation probabilities are floored at 0.03, and cumulative inverse-probability products are truncated at 20 for numerical stability. TV-SurvCaus (Abraich, 2025) is our adaptation of the method to the same Transformer and to finite interventions.
Results. The full RMSE comparison is given in Table 1; Table 5 reports the paired comparison. DR has the lowest mean RMSE in every setting, and the interval of its paired difference with the best competing learner lies below zero in every case except , where the best competitor is PI and the interval includes zero. The PI, RA, and TV-SurvCaus predictions have a standard deviation across patients of at most 0.025, against 0.037–0.042 for the true effect, and they underestimate the average effect by 0.025–0.046; TV-SurvCaus is the most extreme, with a spread of 0.001–0.005. Their correlation with the true effect is at most 0.25, and is negative for PI in the three shorter settings, whereas DR attains 0.38–0.74 with a mean absolute bias of at most 0.016. IPW is nearly unbiased for the average effect in the shorter settings but is heavily over-dispersed, with a prediction spread of 0.097–0.261 against the same true spread, which is why its RMSE is the largest throughout; at (3, 8) its effective sample size falls to 116 of 1,200 eligible patients. Refitting the DR and IPW second stages with the true treatment and censoring probabilities of the simulation, keeping the fitted continuation regressions and other stabilization choices fixed, changes the mean DR error by at most 0.008 with a paired interval that includes zero in all four settings. The same substitution lowers the mean IPW error by 0.010–0.057, although its paired interval lies below zero only at (3, 8).
| (L,τ) | Best competitor | DR – best competitor | Paired 95% interval |
|---|---|---|---|
| (2,2) | TV-SurvCaus | -0.0272 | [-0.0360, -0.0183] |
| (2,3) | PI | -0.0167 | [-0.0323, -0.0011] |
| (2,4) | PI | -0.0157 | [-0.0302, -0.0012] |
| (3,8) | PI | -0.0042 | [-0.0181, 0.0097] |
Table 5: Paired difference in RMSE between DR and the competing learner with the lowest mean on the fully synthetic benchmark, with its paired -interval over five repetitions; a negative value favors DR.
G SEMI-SYNTHETIC EXPERIMENT
The benchmark keeps each patient's recorded ICU history up to the landmark and simulates everything after it. As the history is real, the learners must work with heterogeneous and partly missing clinical measurements, and as the future is simulated, the true effect is known for every test patient.
Cohort. We use MIMIC-IV version 3.1 (Johnson et al., 2023) and place the landmark 24 hours after ICU admission. An ICU stay is eligible if the patient is at least 18 years old at admission, is still in the ICU at the landmark, and has not died in hospital before it. We compute age as the anchor age plus the years between the anchor year and the admission year, and we keep the earliest eligible stay of each patient, which leaves 54,375 patients. We select 6,000 of them with a hash of the patient identifier, and a second hash assigns , , and of the selected patients to the nuisance, second-stage, and test cohorts, which hold 2,380, 2,422, and 1,198 patients. Neither hash depends on any measurement or outcome. The median age is 66 years (interquartile range 55–77), and of the patients are female. We repeat the study five times on the same patients with new simulation seeds and report the RMSE of over the test patients.
History before the landmark. We read heart rate (item 220045), mean arterial pressure (items 220052 and 220181, from arterial and non-invasive measurement), and respiratory rate (item 220210) from the chartevents table. We pick the value at the later of its chart time and its store time. We drop records that lack either time, that were charted before ICU admission, or that became available after ICU discharge, and we keep values in the expected unit within plausible ranges, which are 20–250 beats per minute for heart rate, 15–250 mmHg for mean arterial pressure, and 1–80 breaths per minute for respiratory rate. We split the first 24 hours into eight bins of three hours and place each record in the bin that contains its availability time, so a value enters a bin only if it was available before the bin ends. The value of a bin is the mean of its records. Depending on the variable, 93–95% of bins hold a measurement, and fewer than 0.6% of patients have no measurement of a variable in the 24 hours.
We fit all preprocessing on the 2,023 nuisance-training patients remaining after the validation split, and never on second-stage or test patients. A missing first bin takes the training median, and a later missing bin takes the last observed value. We standardize each variable with its training mean and standard deviation over all bins and clip at . The static covariates are standardized age, a female indicator, and the standardized mean of the patient's respiratory-rate history.
Simulated follow-up. The eight real bins become the first eight states of the synthetic data-generating process, so the landmark is the decision time . We map heart rate, mean arterial pressure, and respiratory rate to the first, second, and third state coordinates, and age, sex, and mean respiratory rate to the first, second, and third baseline covariates. We set every treatment before the landmark to zero, as the simulated treatment has no counterpart in the records. From the landmark on, the structural equations and parameters of the synthetic study generate treatment , the event in , the next state , and censoring at , for . At the landmark these equations read the real history through its last three states, its four- and eight-step means, and its three-step trend, so patients with different recorded histories have different treatment probabilities, event risks, and treatment effects. Censoring depends on the next state, its recent mean, and the last treatment, which makes it informative given the landmark history but ignorable given the full history, as (A4) requires. Averaged over the five repetitions, 52% of patients in the nuisance and second-stage cohorts receive treatment at the landmark, 2.8% and 12.8% have an event within two and eight steps, and 4.9% are censored within eight steps.
True effects. At the landmark we compare treatment at each of the first decisions with no treatment at any of them, both followed by the natural course, and evaluate survival steps after the landmark, for . For each test patient we simulate 1,000 futures under each sequence from the patient's 24-hour history, with the same random numbers for both sequences and without censoring, and take the mean difference in survival as the true effect.
Learners and training. The nuisance cohort fits the treatment and censoring models, the regime-specific continuation regressions during the intervention window, and a shared post-intervention continuation. The second-stage cohort fits the second-stage regressions of RA, IPW, and DR, and the TV-SurvCaus model. Training pools all landmarks from on. Each test patient contributes only the 24-hour history, with all later values removed before prediction. All learners use the same causal Transformer, optimizer, and early-stopping setup as in the fully synthetic experiment (App. F.2). Before inversion, treatment and censoring-continuation probabilities are floored at 0.03, and cumulative inverse-probability products are truncated at 10 for numerical stability. We use the same TV-SurvCaus adaptation (Abraich, 2025).
Results. The full RMSE comparison is given in Table 2; Table 6 reports the paired comparison. DR has the lowest mean RMSE in every setting, and the 95% interval of its paired difference with the best competing learner lies below zero in all four settings. The PI, RA, and TV-SurvCaus predictions have a standard deviation across patients of at most 0.011, against 0.050–0.059 for the true effect, and they underestimate the average effect by 0.035–0.051. The DR predictions have a correlation of 0.36–0.64 with the true effect, against at most 0.30 for PI, RA, and TV-SurvCaus, and a mean absolute bias of at most 0.024.
| (L,τ) | Best competitor | DR – best competitor | Paired 95% interval |
|---|---|---|---|
| (2,2) | TV-SurvCaus | -0.0273 | [-0.0357, -0.0190] |
| (2,3) | RA | -0.0199 | [-0.0342, -0.0055] |
| (2,4) | PI | -0.0159 | [-0.0278, -0.0040] |
| (3,8) | PI | -0.0160 | [-0.0315, -0.0004] |
Table 6: Paired difference in RMSE between DR and the competing learner with the lowest mean on the semi-synthetic MIMIC-IV benchmark, with its paired 95% t-interval over five repetitions; a negative value favors DR.
G.1 Nuisance-misspecification experiment
To see whether the advantage of DR comes from its double robustness, we misspecify one nuisance block at a time on the semi-synthetic benchmark. When we replace the treatment and censoring probabilities with their pooled rates, which ignore the history, the error of IPW grows between five- and twelvefold, while the error of DR does not increase for and doubles for and . When we instead lower the survival predicted by the continuation regressions of the treated arm by 0.10, the error of RA doubles and the error of DR does not increase, with either the fitted or the true probabilities. When both nuisance blocks are misspecified, the error of DR increases in every setting. Most of the gain of DR over PI and RA comes from removing their average bias, which accounts for 59–76% of the difference in mean squared error.
G.2 Censoring and treatment-assignment stress test
We stress-test the learners along three dimensions that make longitudinal survival-effect estimation increasingly challenging. We use the same patients and preprocessing as in the main semi-synthetic experiment, draw new simulation seeds, and evaluate and (3,8). For this stress test, cumulative inverse-probability products are truncated at 20.
-
History-dependent censoring. We vary the amount of censoring to assess robustness to increasingly severe selective loss to follow-up. For both treatment-assignment mechanisms below, we consider settings in which approximately 0%, 20%, or 40% of patients are censored before the eight-step horizon.
-
Treatment-assignment strength. We vary how strongly treatment depends on the evolving patient history. The default assignment uses the treatment logit of the synthetic study scaled by 0.75, whereas the sharp assignment scales it by 2.0. The latter induces stronger treatment selection and more challenging overlap while keeping treatment probabilities within [0.08, 0.92].
-
Event frequency. We additionally consider a setting with more frequent survival events, obtained by increasing the event intercept from -4 to -2, together with 20% censoring. This tests performance when substantially fewer patients remain event-free over follow-up.
Crossing the two treatment-assignment mechanisms with the three censoring levels gives six conditions, and the higher-event setting gives a seventh. We calibrate the censoring intercept by bisection on uncensored simulated futures of 1,024 nuisance patients, yielding 3.65 for 20% censoring, 2.78 for 40%, and 3.24 in the higher-event condition. In the nuisance and second-stage cohorts, the resulting censoring rates before the eight-step horizon are 19.6% and 39.4% under the default assignment, 19.9% and 40.1% under the sharp assignment, and 20.4% in the higher-event condition. Censoring does not alter the true effect. In contrast, the sharp assignment changes the natural-course treatment distribution after the intervention and therefore the true effect at (3, 8), while the higher event rate changes the true effect at both horizons.
Table 7 reports the results across these stress conditions. At the short horizon (2, 2), DR has the lowest RMSE in all seven settings, including under increased censoring, sharper treatment assignment, and the higher event rate; the 95% intervals of its paired differences with PI, RA, and the best competing learner all lie below zero. At the longer horizon (3, 8), DR has the lowest mean RMSE in five of the seven settings, although its paired interval against the best competing learner lies below zero only under the default assignment with 40% censoring. RA has the lowest mean in the remaining two settings—default assignment with 20% censoring and sharp assignment with 40% censoring—but in both cases its difference from DR is not statistically resolved by the paired interval. IPW has the largest error at (3, 8) in every condition and deteriorates particularly under sharp treatment assignment.
H REAL-WORLD EXPERIMENT
As real data contain no counterfactual outcomes, we cannot evaluate an estimated effect against counterfactual ground truth. We can still check whether the survival a learner predicts under one treatment sequence agrees with what happened to the patients who received that sequence. Frauen et al. (2025a) compare predictions with the outcomes of such patients directly, whereas we follow Keogh and van Geloven (2024) and Boyer et al. (2025) and also weight each patient by the inverse probability of following the sequence, which makes the score refer to all patients at the landmark and not only to those who followed it. MIMIC-IV also records deaths after a patient leaves the ICU, and we therefore know the survival at each horizon even for patients whose ICU record ends in censoring.
Cohort and sequence. We take the 8,243 adults in MIMIC-IV version 3.1 (Johnson et al., 2023) who were still in the ICU 24 hours after admission and had a vasopressor (norepinephrine, epinephrine, vasopressin, phenylephrine, or dopamine) running in the three hours before. We split time into three-hour steps from ICU admission. The history at each step contains heart rate, systolic, diastolic, and mean arterial pressure, respiratory rate, oxygen saturation, temperature, the norepinephrine rate, and the number of vasopressors running, together with age and sex, and we use each measurement only from the time it was charted. A patient receives treatment at a step if any vasopressor infusion runs during it. Death is the event and leaving the ICU alive censors the record, and as patients leave the ICU when their condition improves, the censoring depends on the history. At the 24-hour landmark we predict survival under continuing vasopressors for the next two steps (L = 2) and evaluate it 24 and 48 hours later ( ). We assign 40%, 40%, and 20% of the patients to the nuisance, second-stage, and test cohorts using a fixed hash of the patient identifier. The learners, their training, and the stabilization choices are the same as in the semi-synthetic study, and we fit each learner with five seeds.
| Setting | Cens. | PI | RA | IPW | TV-SurvCaus | DR | Rel. improv. | DR - best competitor |
|---|---|---|---|---|---|---|---|---|
| Short horizon: (L,τ) = (2,2) | ||||||||
| Default | 0% | 0.069 | 0.071 | 0.141 | 0.073 | 0.041 | +40.6% | -0.0273 [-0.0403, -0.0143] (PI) |
| 20% | 0.071 | 0.074 | 0.131 | 0.073 | 0.042 | +40.8% | -0.0292 [-0.0431, -0.0153] (PI) | |
| 40% | 0.073 | 0.075 | 0.178 | 0.073 | 0.041 | +43.8% | -0.0318 [-0.0357, -0.0278] (TV) | |
| Sharp | 0% | 0.074 | 0.078 | 0.293 | 0.073 | 0.044 | +39.7% | -0.0291 [-0.0368, -0.0213] (TV) |
| 20% | 0.071 | 0.074 | 0.311 | 0.073 | 0.041 | +42.3% | -0.0296 [-0.0331, -0.0262] (PI) | |
| 40% | 0.073 | 0.075 | 0.353 | 0.073 | 0.051 | +30.1% | -0.0215 [-0.0323, -0.0107] (TV) | |
| Higher event | 20% | 0.141 | 0.149 | 0.155 | 0.257 | 0.085 | +39.7% | -0.0560 [-0.0774, -0.0345] (PI) |
| Long horizon: (L,τ) = (3,8) | ||||||||
| Default | 0% | 0.071 | 0.068 | 0.184 | 0.075 | 0.056 | +17.6% | -0.0115 [-0.0339, 0.0108] (RA) |
| 20% | 0.068 | 0.066 | 0.235 | 0.074 | 0.078 | -18.2% | +0.0120 [-0.0126, 0.0366] (RA) | |
| 40% | 0.068 | 0.068 | 0.211 | 0.075 | 0.049 | +27.9% | -0.0186 [-0.0296, -0.0076] (RA) | |
| Sharp | 0% | 0.070 | 0.066 | 0.477 | 0.071 | 0.057 | +13.6% | -0.0086 [-0.0204, 0.0031] (RA) |
| 20% | 0.070 | 0.067 | 0.495 | 0.073 | 0.060 | +10.4% | -0.0068 [-0.0248, 0.0113] (RA) | |
| 40% | 0.072 | 0.070 | 0.564 | 0.071 | 0.076 | -8.6% | +0.0053 [-0.0128, 0.0234] (RA) | |
| Higher event | 20% | 0.088 | 0.082 | 0.160 | 0.119 | 0.077 | +6.1% | -0.0048 [-0.0387, 0.0291] (RA) |
Table 7: RMSE of the estimated HSTE under the stress-test conditions, averaged over five repetitions (lower is better; lowest mean in bold). Default and Sharp denote the standard and stronger history-dependent treatment-assignment mechanisms, respectively. Cens. denotes the target proportion censored before the eight-step horizon; Higher event denotes the increased-event-rate condition. Rel. improv. is the percentage reduction in RMSE of DR relative to the best competing learner; positive values favor DR. The last column gives the paired difference in RMSE between DR and the competing learner with the lowest mean (named in parentheses, with TV for TV-SurvCaus), with its -interval over the five repetitions; a negative value favors DR.
Evaluation. In the held-out test cohort, 1,285 of the 1,655 patients have a known outcome and continued vasopressors through both steps or until death, and 140 of them died within 48 hours. As the decision to continue depends on the history, we weight each of these patients by the inverse of their estimated probability of continuing, which we obtain from logistic regressions fitted on the test cohort with two-fold cross-fitting (Keogh and van Geloven, 2024). Patients who stop contribute nothing, and because every stop happens before the horizon, dropping them is the same as censoring them when they stop. The weighted Brier score then measures the error of the predicted survival under continued vasopressors for all test patients at the landmark. The weights stay close to one, and none exceeds 4.4. Of the 1,285 patients, 224 left the ICU alive within 48 hours, and the death records show that 221 of them were still alive at 48 hours. We cannot score the sequence that stops vasopressors in the same way, because only 23 patients in the whole cohort stopped and died within 48 hours.
Results. Table 3 gives the full weighted Brier comparison on the held-out test cohort, and Table 8 gives the paired comparison. At 48 hours DR has the lowest weighted Brier score and the paired interval of its difference with the best competing learner lies below zero, while at 24 hours DR and PI are tied and both score better than RA, IPW, and TV-SurvCaus. The mean prediction of DR is within 2.6 percentage points of the weighted observed survival on the held-out test cohort, whereas PI and RA overpredict survival at 48 hours, by 5.6 and 6.7 points. PI and RA rely only on continuation regressions that we fit backwards one step at a time, and small upward errors at each step add up over a long horizon. The weighted correction in DR removes more than half of the excess. The check concerns the predicted survival under one sequence and not the effect itself, and it also relies on leaving the ICU being explained by the recorded history (van Geloven et al., 2020), which would not hold for a transfer out of the ICU for end-of-life care.
| Horizon | Best competitor | DR – best competitor | Paired 95% interval |
|---|---|---|---|
| 24 hours (τ = 8) | PI | -0.0001 | [-0.0013, 0.0012] |
| 48 hours (τ = 16) | IPW | -0.0038 | [-0.0059, -0.0018] |
Table 8: Paired difference in weighted Brier score between DR and the competing learner with the lowest mean under continued vasopressors for the next two steps (L = 2) in the held-out MIMIC-IV test cohort. The 95% bootstrap intervals over test patients are computed on seed-averaged predictions with the weights held fixed; a negative value favors DR.
I COMPUTATIONAL RESOURCES
The fully synthetic experiments were run on an NVIDIA GeForce RTX 4060 GPU. The semi-synthetic experiments, including the nuisance-misspecification and stress-test studies, were run on a single NVIDIA H200 GPU per run, requiring approximately 5 minutes per run. The real-world experiments were run on a single NVIDIA RTX PRO 5000 Blackwell GPU with 48 GB of memory, requiring approximately 2–4 minutes per seed.