Lune

ICML2022Top-tier venue

Causal Transformer for Estimating Counterfactual Outcomes

Valentyn Melnychuk, Dennis Frauen, Stefan Feuerriegel

Abstract

Estimating counterfactual outcomes over time from observational data is relevant for many applications (e.g., personalized medicine). Yet, state-of-the-art methods build upon simple long short-term memory (LSTM) networks, thus rendering inferences for complex, long-range dependencies challenging. In this paper, we develop a novel Causal Transformer for estimating counterfactual outcomes over time. Our model is specifically designed to capture complex, long-range dependencies among time-varying confounders. For this, we combine three transformer subnetworks with separate inputs for time-varying covariates, previous treatments, and previous outcomes into a joint network with in-between cross-attentions. We further develop a custom, end-to-end training procedure for our Causal Transformer. Specifically, we propose a novel counterfactual domain confusion loss to address confounding bias: it aims to learn adversarial balanced representations, so that they are predictive of the next outcome but non-predictive of the current treatment assignment. We evaluate our Causal Transformer based on synthetic and real-world datasets, where it achieves superior performance over current baselines. To the best of our knowledge, this is the first work proposing transformer-based architecture for estimating counterfactual outcomes from longitudinal data.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

52 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Attention is not all you need: pure attention loses rank doubly exponentially with depth cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Attention is not all you need: pure attention loses rank doubly exponentially with depth cites Language Models are Few-Shot Learners
  • Automatically Learning Hybrid Digital Twins of Dynamical Systems cites Estimating counterfactual treatment outcomes over time through adversarially balanced representations
  • Automatically Learning Hybrid Digital Twins of Dynamical Systems cites Language Models are Few-Shot Learners
  • Bayesian Neural Controlled Differential Equations for Treatment Effect Estimation cites Estimating counterfactual treatment outcomes over time through adversarially balanced representations
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Causal Decision Transformer for Recommender Systems via Offline Reinforcement Learning cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Foundation Models for Causal Inference via Prior-Data Fitted Networks cites Sharp Bounds for Generalized Causal Sensitivity Analysis
  • Sharp Bounds for Generalized Causal Sensitivity Analysis cites Estimating counterfactual treatment outcomes over time through adversarially balanced representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers52

  1. Foundation Models for Causal Inference via Prior-Data Fitted NetworksYuchen Ma, Dennis Frauen, Emil Javurek, Stefan FeuerriegelICLR 2026 · 37 citations
  2. Sharp Bounds for Generalized Causal Sensitivity AnalysisDennis Frauen, Valentyn Melnychuk, Stefan FeuerriegelNeurIPS 2023 · 36 citations
  3. Causal Decision Transformer for Recommender Systems via Offline Reinforcement LearningSiyu Wang, Xiaocong Chen, Dietmar Jannach, Lina YaoSIGIR 2023 · 33 citations
  4. Bayesian Neural Controlled Differential Equations for Treatment Effect EstimationKonstantin Hess, Valentyn Melnychuk, Dennis Frauen, Stefan FeuerriegelICLR 2024 · 27 citations
  5. Automatically Learning Hybrid Digital Twins of Dynamical SystemsSamuel Holt, Tennison Liu, Mihaela van der SchaarNeurIPS 2024 · 26 citations

Builds on8

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
  4. Attention is not all you need: pure attention loses rank doubly exponentially with depthYihe Dong, Jean-Baptiste Cordonnier, Andreas LoukasICML 2021 · 522 citations
  5. Estimating counterfactual treatment outcomes over time through adversarially balanced representationsIoana Bica, Ahmed M. Alaa, James Jordon, Mihaela van der SchaarICLR 2020 · 224 citations

Related papers

  1. Causal Contrastive Learning for Counterfactual Regression Over TimeMouad El Bouchattaoui, Myriam Tami, Benoit Lepetit, Paul-Henry CournèdeNeurIPS 2024 · 10 citations
  2. Time Series Deconfounder: Estimating Treatment Effects over Time in the Presence of Hidden ConfoundersIoana Bica, Ahmed M. Alaa, Mihaela van der SchaarICML 2020 · 133 citations
  3. Longitudinal Targeted Minimum Loss-based Estimation with Temporal-Difference Heterogeneous TransformerToru Shirakawa, Yi Li, Yulun Wu, Sky Qiu et al.ICML 2024 · 18 citations
  4. Continuous-Time Modeling of Counterfactual Outcomes Using Neural Controlled Differential EquationsNabeel Seedat, Fergus Imrie, Alexis Bellot, Zhaozhi Qian et al.ICML 2022 · 68 citations
  5. A Dual-module Framework for Counterfactual Estimation over TimeXin Wang, Shengfei Lyu, Lishan Yang, Yibing Zhan et al.ICML 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines