COSTAR: Improved Temporal Counterfactual Estimation with Self-Supervised Learning

Chuizheng Meng, Yihe Dong, Sercan Ö. Arık, Yan Liu, Tomas Pfister
11/1/2023
cs.LG

Official code: google-research/google-research (38,246 stars, Apache-2.0, last commit 2026-04-30).

Abstract

Estimation of temporal counterfactual outcomes from observed history is crucial for decision-making in many domains such as healthcare and e-commerce, particularly when randomized controlled trials (RCTs) suffer from high cost or impracticality. For real-world datasets, modeling time-dependent confounders is challenging due to complex dynamics, long-range dependencies and both past treatments and covariates affecting the future outcomes. In this paper, we introduce Counterfactual Self-Supervised Transformer (COSTAR), a novel approach that integrates self-supervised learning for improved historical representations. We propose a component-wise contrastive loss tailored for temporal treatment outcome observations and explain its effectiveness from the view of unsupervised domain adaptation. COSTAR yields superior performance in estimation accuracy and generalization to out-of-distribution data compared to existing models, as validated by empirical results on both synthetic and real-world datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Google Research

38,2468,446C, ROct 4, 20185 months agoApache-2.0
aimachine-learningresearch

Similar Papers

Cite this paper

@article{meng2023costar,
  title  = {COSTAR: Improved Temporal Counterfactual Estimation with Self-Supervised Learning},
  author = {Chuizheng Meng and Yihe Dong and Sercan Ö. Arık and Yan Liu and Tomas Pfister},
  year   = {2023},
  eprint = {2311.00886},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.00886v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.00886.svg)](https://codeofpaper.com/paper/2311.00886)

Discussion