An Empirical Examination of Balancing Strategy for Counterfactual Estimation on Time Series

Qiang Huang, Chuizheng Meng, Defu Cao, Biwei Huang, Yi Chang, Yan Liu

Abstract

Counterfactual estimation in time-series data is complicated by time-varying confounders and feedback loops between treatments and outcomes. Balancing strategies, such as adversarial training, are widely employed to learn treatment-invariant representations to mitigate bias. However, this empirical study reveals that such strategies often result in significant information loss and model instability. By comparing state-of-the-art balanced models against simple Empirical Risk Minimization (ERM) baselines, the research demonstrates that ERM frequently provides superior and more stable performance, challenging the prevailing assumption that balancing is a universal necessity for longitudinal causal inference.

Introduction

Estimating "what would have happened" under different treatment scenarios is a cornerstone of personalized medicine and policy-making. In temporal settings, this task is hindered by time-varying confounders: variables that affect both future treatments and future outcomes. For instance, a patient's deteriorating health may prompt a doctor to change medication, which in turn influences the patient's subsequent health status.

To address this, researchers have traditionally used balancing strategies designed to make learned representations "treatment-invariant." The goal is to prevent the model from using features that are highly correlated with the treatment assignment, thereby theoretically removing selection bias. However, the robustness of these methods in multi-step forecasting remained under-explored until this systematic examination.

Methodology

The authors conducted an extensive empirical evaluation comparing balanced models—specifically the Causal Transformer (CT) and Counterfactual Recurrent Network (CRN)—against their unbalanced ERM counterparts. These ERM variants were created by disabling the balancing modules (e.g., Counterfactual Domain Confusion or Adversarial Gradient Reversal) while keeping the underlying architecture identical.

Causal structure in temporal settings, illustrating the dependencies between past states ($X$), outcomes ($Y$), and treatments ($A$).

The study utilized four diverse datasets to ensure broad applicability: a pure synthetic dataset for ground-truth causal effect evaluation, a Tumor Growth Simulator for biomedical benchmarking, semi-synthetic MIMIC-III ICU data, and the M5 Walmart sales dataset for factual prediction performance.

Results and Discussion

The most significant finding is the "Information Loss Trade-off." In many time-series scenarios, the features predictive of the treatment are also essential for predicting the outcome. By forcing treatment invariance, balancing modules can cause "representation collapse," where the model discards vital predictive information. The authors confirmed this through reconstruction analysis, which showed that balanced models fail to retain original covariate information compared to non-balanced models.

Performance comparison of CT and CRN against their ERM variants across different treatment bias levels. Dashed lines (ERM) consistently show lower RMSE.

As shown in the performance metrics, ERM variants consistently achieved lower Root Mean Square Error (RMSE) than their balanced counterparts, particularly as the prediction horizon increased. This trend held true across both slight and significant treatment bias regimes. Furthermore, adversarial balancing modules were found to introduce high variance and instability during training, especially in high-bias scenarios.

Conclusion and Future Work

This research suggests that balancing is not a "silver bullet" for time-series counterfactual estimation. The trade-off between bias reduction and information preservation often favors simpler ERM approaches. Future work should focus on developing more stable balancing techniques that explicitly manage this trade-off and creating diagnostic tools to assess whether balancing is required for a given dataset's specific bias profile before applying complex modules.

Summary updated

BibTeX
@inproceedings{huang2024empirical,
  author = {Qiang Huang and Chuizheng Meng and Defu Cao and Biwei Huang and Yi Chang and Yan Liu},
  title = {{An Empirical Examination of Balancing Strategy for Counterfactual Estimation on Time Series}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Nxz3CDtGXp},
}
Figure