Sequential Treatment Effect Estimation with Unmeasured Confounders

Yingrong Wang, Anpeng Wu, Baohong Li, Ziyang Xiao, Ruoxuan Xiong, Qing Han, Kun KuangarXiv 2025 · OpenReview

Abstract

This paper studies the cumulative causal effects of sequential treatments in the presence of unmeasured confounders. It is a critical issue in sequential decision-making scenarios where treatment decisions and outcomes dynamically evolve over time. Advanced causal methods apply transformer as a backbone to model such time sequences, which shows superiority in capturing long time dependence and periodic patterns via attention mechanism. However, even they control the observed confounding, these estimators still suffer from unmeasured confounders, which influence both treatment assignments and outcomes. How to adjust the latent confounding bias in sequential treatment effect estimation remains an open challenge. Therefore, we propose a novel Decomposing Sequential Instrumental Variable framework for CounterFactual Regression (DSIV-CFR), relying on a common negative control assumption. Specifically, an instrumental variable (IV) is a special negative control exposure, while the previous outcome serves as a negative control outcome. This allows us to recover the IVs latent in observation variables and estimate sequential treatment effects via a generalized moment condition. We conducted experiments on 4 datasets and achieved significant performance in one- and multi-step prediction, supported by which we can identify optimal treatments for dynamic systems.

Introduction: The Challenge of Sequential Causal Inference

In fields like personalized medicine or algorithmic trading, decisions are rarely one-off events; they are sequences where each action depends on the history of the system. To optimize these sequences, we need to know the causal effect of a treatment.

The "gold standard" for this is usually the unconfoundedness assumption—the idea that we have measured every variable that affects both the treatment and the outcome. In the real world, this is almost never true. For a cancer patient, factors like "mental health" or "socioeconomic status" might influence both the treatment plan and the tumor's growth, yet these are rarely captured perfectly in a dataset. When these "unmeasured confounders" exist, standard machine learning models produce biased results, mistaking correlation for causation.

Sequential treatment decision-making for a gastric cancer patient, highlighting the challenge of unobservable factors influencing outcomes over time.

The DSIV-CFR Framework

The authors propose the Decomposing Sequential Instrumental Variable framework for CounterFactual Regression (DSIV-CFR). It addresses the challenge of latent confounding by recovering hidden instrumental variables from raw data.

The DSIV-CFR framework architecture, illustrating the Transformer-based IV disentangling and counterfactual prediction modules.

The framework consists of two main modules:

  1. Long Sequential Modeling (The Transformer): The authors use a 6-layer Transformer as the backbone. Transformers are excellent at capturing long-range dependencies and periodic patterns in time-series data, which is crucial for understanding how a treatment today might affect an outcome weeks later.
  2. IV Disentangling & GMM: This is the core innovation. The model doesn't assume an "Instrumental Variable" (IV)—a variable that affects treatment but not the outcome directly—is already known. Instead, it recovers the IV from observed covariates.
  3. It relies on a negative control assumption: it treats the treatment at the next time step as a "negative control exposure" and the previous outcome as a "negative control outcome."
    • By minimizing mutual information and using a Generalized Method of Moments (GMM) framework with an adversarial loss, the model "decomposes" the observed data into hidden instruments and confounders. This allows the model to "wash away" the bias introduced by the unmeasured variables.

Experimental Evaluation

The researchers evaluated DSIV-CFR on four distinct datasets to test its versatility: Simulation (synthetic), Tumor Growth (semi-synthetic), Cryptocurrency (real-world Bitcoin/Ethereum returns), and MIMIC-III (real-world ICU medical data).

Key Results

DSIV-CFR consistently outperformed state-of-the-art baselines (like the Time Series Deconfounder and Causal Transformers) across all datasets:

  • Prediction Accuracy: In one-step-ahead outcome prediction, DSIV-CFR reduced the Mean Squared Error (MSE) dramatically. On the Simulation dataset, it achieved an MSE of 0.105, compared to 0.531 for the next best model (Deep LTMLE).
  • Decision Making: In 5-step-ahead "optimal treatment" scenarios, DSIV-CFR's results were remarkably close to the "Oracle" (the theoretical perfect model), while baselines like ACTIN struggled with significantly higher error variance.
  • Real-World Utility: On the MIMIC-III medical data, it achieved an MSE of 0.634, nearly doubling the precision of the standard Causal Transformer (1.229).

Key Insights

  • Finding the "Hidden" IV: The most striking idea is that you don't need a pre-defined Instrumental Variable. By looking at the temporal structure of the data, you can mathematically "tease out" which parts of your observed variables act like instruments.
  • The Power of Negative Controls: The paper cleverly uses the "future" (the next treatment) and the "past" (the previous outcome) as proxies to identify the influence of hidden factors.
  • Adversarial GMM: Instead of a simple regression, the model uses an adversarial bridge function. This forces the outcome predictor to be robust against the specific types of bias introduced by latent confounders.

Limitations and Future Work

The authors identify a few key constraints: the framework assumes an additive noise model for unmeasured confounders and a zero-mean assumption ($E[U|X] = 0$). Furthermore, the computational cost of Transformers combined with mutual information loss and adversarial training is higher than simpler RNN-based models. Future work could involve relaxing the additive noise assumption or exploring how this framework handles "interference" between subjects.

Summary updated

BibTeX
@misc{wang2025sequential,
  author = {Yingrong Wang and Anpeng Wu and Baohong Li and Ziyang Xiao and Ruoxuan Xiong and Qing Han and Kun Kuang},
  title = {{Sequential Treatment Effect Estimation with Unmeasured Confounders}},
  year = {2025},
  eprint = {2505.09113},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.09113},
}
Figure