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

Longitudinal Targeted Minimum Loss-based Estimation with Temporal-Difference Heterogeneous Transformer

Toru Shirakawa, Yi Li, Yulun Wu, Sky Qiu, Yuxuan Li, Mingduo Zhao, Hiroyasu Iso, Mark J. van der Laan

Introduction

Estimating long-term counterfactual outcomes from longitudinal data is a cornerstone of precision medicine and public health. For instance, determining the 30-year mortality rate under intensive versus standard blood pressure management requires robust causal inference. However, traditional methods struggle with the "curse of dimensionality" as variables and time points increase, while standard deep learning models often lack the statistical rigor necessary for valid inference. This paper introduces Deep LTMLE, a framework that bridges high-capacity Transformers with Targeted Minimum Loss-based Estimation (TMLE) to provide accurate, scalable, and statistically sound causal estimates.

The Challenge of Longitudinal Causal Inference

Two primary hurdles impede effective longitudinal causal inference:

  1. Dimensionality and Complexity: As the number of time-dependent covariates grows, traditional Generalized Linear Models (GLMs) fail to capture complex, non-Markovian dependencies where outcomes depend on a patient's entire history.
  2. Machine Learning Bias: While deep learning excels at prediction, it is often a "black box" that produces biased estimates without valid confidence intervals. This makes them unreliable for clinical decisions where understanding uncertainty is critical.

Methodology: Deep LTMLE

The Deep LTMLE framework operates in two distinct stages: initial estimation via a specialized Transformer and a subsequent statistical targeting step.

Temporal-Difference Heterogeneous Transformer (TDHT)

The first stage employs a Temporal-Difference Heterogeneous Transformer (TDHT) to generate initial counterfactual predictions. Unlike standard architectures, TDHT utilizes heterogeneous embeddings tailored to specific variable types, including baseline covariates ($W_0$), time-dependent states ($L_t$), treatments ($A_t$), and outcomes ($Y_t$).

Architecture of the Temporal-Difference Heterogeneous Transformer (TDHT), showing specialized embeddings and the Transformer block.

To ensure temporal consistency across long horizons, the model incorporates Temporal-Difference (TD) learning. By learning the relationship between adjacent time points, the model effectively pools information across the entire time horizon, enhancing stability compared to sequential regression methods that often suffer from data sparsity at early time points.

Statistical Targeting via TMLE

To correct the inherent bias of machine learning predictions, the authors apply a targeting step using the Efficient Influence Function (EIF). This statistical adjustment ensures the estimator is asymptotically efficient and allows for the calculation of robust 95% confidence intervals grounded in statistical theory, providing the "honest" error bars required for clinical decision-making.

Experimental Results

The researchers evaluated Deep LTMLE using synthetic, semi-synthetic, and real-world data from the Circulatory Risk in Communities Study (CIRCS), involving over 13,000 participants.

Accuracy and Statistical Validity

In complex simulations with up to 30 time steps, Deep LTMLE demonstrated superior accuracy, achieving lower Root Mean Squared Error (RMSE) than standard LTMLE and competing deep learning models like DeepACE. Crucially, it maintained near 95% coverage for its confidence intervals, whereas other methods were either overly conservative or inaccurate. The model also explicitly accounts for "process degeneracy" in survival analysis—where states remain constant after an event like death—a nuance often overlooked by other deep learning causal models.

Comparison of Deep LTMLE against baseline estimators. The left panel shows point estimates relative to the truth (blue line), and the right panel shows the mean of the influence function ($P_n D^*$), indicating statistical bias.

Computational Efficiency and Clinical Application

Deep LTMLE leverages GPU acceleration, achieving a 20x speedup over CPU-based standard LTMLE (116 seconds vs. 2,122 seconds). In the CIRCS application, the model successfully mapped diverging 30-year survival curves for different blood pressure management strategies, illustrating its utility for real-world evidence synthesis.

Conclusion

Deep LTMLE represents a significant advancement in causal inference, combining the representational power of Transformers with the formal guarantees of TMLE. By addressing the limitations of both traditional statistics and modern deep learning, it provides a scalable tool for high-dimensional longitudinal analysis in clinical settings. Future work will focus on incorporating more complex real-world dynamics, such as visiting processes and competing risks.

Summary updated

BibTeX
@inproceedings{shirakawa2024longitudinal,
  author = {Toru Shirakawa and Yi Li and Yulun Wu and Sky Qiu and Yuxuan Li and Mingduo Zhao and Hiroyasu Iso and Mark J. van der Laan},
  title = {{Longitudinal Targeted Minimum Loss-based Estimation with Temporal-Difference Heterogeneous Transformer}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=CHz7WshPcp},
}
Figure