A Dual-module Framework for Counterfactual Estimation over Time

Xin Wang, Shengfei Lyu, Lishan Yang, Yibing Zhan, Huanhuan ChenICML 2024

TL;DR

The Adversarial Counterfactual Temporal Inference Network (ACTIN) is a novel dual-module framework designed to predict "what-if" scenarios (counterfactuals) in longitudinal data, such as patient health over time. By combining a distribution-based adversarial balancing module with a unique temporal integration strategy, ACTIN achieves state-of-the-art accuracy while running up to 10 times faster than complex Transformer-based models.

The Challenge of Counterfactual Estimation

In fields like personalized medicine, researchers often need to answer counterfactual questions: "If I had changed this patient's treatment three days ago, what would their health look like today?"

The primary hurdle in answering these questions is selection bias within observational data. Doctors do not assign treatments randomly; they choose them based on a patient’s evolving history (confounders). If a specific aggressive drug is only given to the most critical patients, a naive predictive model might incorrectly conclude that the drug causes poor outcomes.

Existing methods designed to "de-bias" this data often struggle with two major limitations:

  1. Diverse Treatment Types: Most models only handle categorical treatments (e.g., "Drug A" vs. "Drug B") and fail when presented with continuous doses or mixed treatment plans.
  2. Temporal Synergy: Many models only look at the current state to predict the next outcome, ignoring the complex, long-term interactions between historical treatments and patient evolution.

The ACTIN Framework

ACTIN tackles these issues using a specialized dual-module architecture designed to separate the removal of bias from the prediction of outcomes.

ACTIN Architecture
  1. The Balancing Module (Adversarial Learning): This module uses a GAN-like approach to learn "balanced representations" of patient history. A Generator creates a representation of the patient, while a Discriminator tries to determine if that representation came from a real joint distribution of history and treatment, or a "fake" marginal distribution.

  2. The Goal: Reach an equilibrium where the representation is entirely independent of the treatment.

  3. The Innovation: Unlike previous methods that used classification to hide treatment information, ACTIN uses distribution-based matching. This allows the model to handle continuous and mixed treatment types seamlessly.
  4. The Integrating Module (Temporal Integration Predicting - TIP): Standard strategies (Direct Predicting) usually only feed the current representation and current treatment into the final prediction layer. ACTIN’s TIP strategy instead integrates the entire history of balanced representations and treatments. This wider "receptive field" allows the model to capture long-range dependencies and the synergistic effects of treatments over time.

Datasets Evaluated

The authors evaluated ACTIN on four distinct types of data to ensure robustness:

  • Tumor Growth (TG): A fully synthetic benchmark simulating lung cancer patient responses to chemotherapy and radiotherapy.
  • MIMIC-III Semi-Synthetic (SS): Based on real-world ICU data but with simulated counterfactual outcomes to allow for ground-truth evaluation.
  • MIMIC-III Real-World (RW): Real medical data focusing on diastolic blood pressure as the outcome, with vasopressors and mechanical ventilation as treatments.
  • Continuous Interventions Synthetic Dataset (CISD): A newly introduced dataset specifically designed to test how models handle continuous treatment variables (like varying drug dosages) rather than just binary choices.

Key Insights

  • Representation over Architecture: One of the most striking findings is that ACTIN allows simple base models (like LSTMs or TCNs) to outperform the much more complex Causal Transformer (CT). This suggests that how you balance your data is more important than the raw "brainpower" of the neural network.
  • Breaking the Classification Habit: By moving from classification-based balancing to distribution-based adversarial training, the researchers made the framework "treatment-agnostic." This is a major step toward applying causal AI to real-world clinical settings where dosages are rarely just "on or off."
  • The Power of History: The TIP strategy proves that historical treatments aren't just "noise" once you have a current state; they contain vital information about how a patient might respond to future interventions.

Performance and Results

ACTIN demonstrated significant improvements over existing baselines across multiple metrics.

Performance Comparison Table
  • Accuracy: ACTIN consistently delivered the lowest Root Mean Square Error (RMSE) across all datasets and time horizons (from 1-step to 11-steps ahead), effectively handling varying amounts of time-varying confounding.
  • Efficiency: On the MIMIC-III datasets, ACTIN’s running time was approximately 10% of the Causal Transformer (CT), making it highly scalable.
  • Robustness: In ablation studies, removing the "Integrating" module (TIP) caused a massive performance drop (up to 41% on some datasets), highlighting that capturing temporal interactions is just as critical as removing bias.

Limitations and Future Work

The authors acknowledge a fundamental hurdle in the field of causal inference: Counterfactuals are unobservable in the real world. We can never truly know what would have happened if a different treatment was chosen for a real patient. Therefore, while ACTIN performs excellently on semi-synthetic benchmarks where ground truth is known, its real-world validation remains indirect.

Future work could involve extending this framework to handle "multi-cause" hidden confounders—unrecorded factors that influence both the treatment decision and the final outcome.

Summary updated

BibTeX
@inproceedings{wang2024dual,
  author = {Xin Wang and Shengfei Lyu and Lishan Yang and Yibing Zhan and Huanhuan Chen},
  title = {{A Dual-module Framework for Counterfactual Estimation over Time}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=126SR50BEL},
}
Figure