arXiv:2610.10210cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.10210

OrthoGen: A Generative Orthogonal Learner for Time-Varying Treatments

Tomàs Garriga, Valentyn Melnychuk, Konstantin Hess, Eduard Serrahima de Cambra, Axel Brando, Gerard Sanz, Stefan Feuerriegel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Estimating conditional distributional potential outcomes (CDPOs) over time is important in medicine (e.g., to estimate patient-specific risks under different treatment sequences). However, this task is challenging because of time-varying confounding, yet existing adjustment strategies for this task are limited. In this paper, we aim to learn CDPOs under time-varying treatments using flexible generative models. Our contributions are two-fold. (1) We introduce a tailored adjustment strategy for our setting, namely, generative recursive g-computation. Our adjustment strategy recursively propagates full conditional outcome distributions rather than conditional means, modeling the variables of interest directly rather than full trajectories. Building on our adjustment strategy, we formulate simple generative learners for CDPO estimation. However, these learners can be sensitive to nuisance estimation errors, which motivates an orthogonal learner. (2) We thus introduce ORTHOGEN, a Neyman-orthogonal and doubly robust generative learner. Importantly, we show that ORTHOGEN further achieves rate double robustness and quasi-oracle efficiency under suitable conditions. Our learners are flexible and can be instantiated with different generative backbones (e.g., normalizing flows and diffusion models). Across experiments with synthetic, semi-synthetic and real-world datasets, we find that ORTHOGEN is highly effective. To the best of our knowledge, we are the first to propose a generative orthogonal learner for estimating CDPOs under time-varying treatments.

1 INTRODUCTION

Estimating the causal effects of time-varying treatments is important in medicine (Feuerriegel et al., 2024). For example, in cancer care, chemotherapy regimens are updated across several treatment cycles (Press et al., 2016), while, in diabetes care, insulin doses are repeatedly adjusted in response to a patient's health condition (Meneghini et al., 2007). Clinicians therefore need to understand how different treatment sequences affect the patient-level probability of future outcomes, such as tumor size, hypoglycemia, or toxicity. Here, we aim to learn conditional distributional potential outcomes (CDPOs) in time-varying settings, which characterize the distribution of potential outcomes under a given treatment sequence, conditional on the observed patient history (see Fig. 1).

A key challenge in this setting is time-varying confounding (Robins et al., 2000; Frauen et al., 2025; Hess et al., 2026a). Patient characteristics may change over time in response to earlier treatments and, in turn, affect both subsequent treatment decisions and future outcomes. As a result, adjusting only for the patient history observed at the prediction origin is generally insufficient; rather, adjustment strategies over time are needed that account for the future treatment sequence. So far, the existing adjustment strategy for direct learning of CDPOs under time-varying treatments is inverse probability of treatment weighting (IPTW) (Mu et al., 2025). However, IPTW can suffer from un-stable weights under limited overlap, especially at large horizons. Thus, the available adjustment strategies for direct generative CDPO estimation in time-varying settings remain limited, and we therefore develop alternative adjustment strategies. Our strategies avoid full simulation of covariate trajectories and model instead the outcomes of interest directly.

Existing methods have important gaps along three dimensions. (1) Static vs. time-varying treatments. Several generative methods learn CDPOs (Yoon et al., 2018; Vanderschueren et al., 2023; Ma et al., 2024; Melnychuk & Feuerriegel, 2026; Luedtke & Fukumizu, 2025). However, these are restricted to static treatment and therefore do not address time-varying treatment sequences. (2) Mean outcome vs. CDPO. Many methods for time-varying treatments learn conditional mean outcomes (e.g., Bica et al., 2020; Melnychuk et al., 2022; Frauen et al., 2025; Hess et al., 2024; 2026a), but not the full outcome distribution. (3) Choice of adjustment strategy. To the best of our knowledge, there is only one generative method for CDPOs under time-varying treatments: Mu et al. (2025) combine IPTW with an expert-guided diffusion model. However, IPTW can suffer from unstable weights and high variance (Frauen et al., 2025). Thus, learners for CDPOs over time based on potentially more stable alternative adjustment strategies, such as g-computation, as well as learners offering favorable properties such as double robustness, are missing.

Here, we aim to learn CDPOs under time-varying treatments using flexible generative models. To address this task, our contributions are two-fold.

① We introduce a tailored adjustment strategy for our setting, which we call generative recursive g-computation. Our approach extends standard iterative g-computation (Robins, 1986) from conditional mean outcomes to full conditional outcome distributions. The difference is that, instead of recursively propagating conditional expectations (Hess et al., 2026a), we recursively propagate full conditional outcome distributions through a sequence of generative models. Importantly, the recursive construction allows us to directly recover the target outcome distribution at the prediction origin, without simulating complete future covariate trajectories at inference time, which is particularly efficient for longitudinal settings. Building on our adjustment strategy, we develop simple generative learners for CDPO estimation, namely, plug-in and regression-adjusted learners. While straightforward, these learners can be sensitive to nuisance estimation errors, and we thus primarily use these learners to motivate an orthogonal learner (→ see ②).

② We then develop ORTHOGEN, a Neyman-orthogonal and doubly robust generative learner for CDPO estimation over time. For this, we combine our generative recursive g-computation with an additional propensity-based adjustment, which makes ORTHOGEN first-order insensitive to nuisance estimation errors (→ Theorem 1). ORTHOGEN is flexible and can be instantiated with different generative backbones (e.g., normalizing flows and diffusion models). We further derive two favorable theoretical properties for ORTHOGEN: (i) quasi-oracle efficiency, meaning that the target model can achieve the oracle learning rate even when the nuisance functions are estimated from observational data; and (ii) rate double robustness, meaning a slower convergence rate of one nuisance component can be compensated for by a faster convergence rate of the other, thus being robust to misspecification of either nuisance function (→ Theorem 2).

In summary, in this work: 1^{1}(1) We introduce generative recursive g-computation as a tailored adjustment strategy for CDPOs over time. (2) We propose ORTHOGEN, a doubly robust and Neyman-orthogonal generative learner for this task. We show theoretically that ORTHOGEN achieves quasi-oracle efficiency and rate double robustness. (3) We demonstrate

Figure

Figure 1: Task: Estimating the CDPOs under different treatment sequences.

the effectiveness of ORTHOGEN using different generative backbones (i.e., normalizing flows and diffusion models) across various experiments. In particular, our experiments demonstrate the benefits of ORTHOGEN over the IPTW-based learner.

1^{1}Code is available at https://github.com/tgarriga/OrthoGen.

References (43)