Leveraging a Simulator for Learning Causal Representations from Post-Treatment Covariates for CATE

Lokesh Nagalapatti, Pranava Singhal, Avishek Ghosh, Sunita Sarawagi

Abstract

Estimating individual treatment effects (CATE) is notoriously difficult when data is collected after treatment, as the treatment itself alters the variables used for prediction. This paper introduces SimPONet, a framework that leverages synthetic data from simulators to learn hidden causal representations. By combining counterfactual supervision from simulators with a novel joint-training objective, SimPONet remains robust even when the simulator does not perfectly match reality, overcoming the identification challenges inherent in post-treatment observational data.

Introduction

In causal inference, the goal is often to estimate the Conditional Average Treatment Effect (CATE)—the change in an outcome for a specific individual due to a treatment. Standard methods typically rely on "pre-treatment" covariates (e.g., age, weight) that remain unaffected by the treatment.

However, real-world scenarios often provide only "post-treatment" data. For instance, measuring a patient's heart rate only after medication means the heart rate is influenced by both baseline health and the drug. In technical terms, post-treatment covariates act as colliders, creating a backdoor path that makes CATE unidentifiable from observational data alone. Without additional information, one cannot distinguish the treatment's effect on the outcome from its effect on the covariates.

Methodology: The SimPONet Framework

The authors propose using a simulator to bridge this gap. While a simulator might not be a perfect replica of the real world, it provides counterfactual supervision—the ability to observe what happens to the exact same simulated individual under both treatment and control conditions.

Causal graph illustrating the relationship between the Real Data Generating Process (DGP) and the Simulator DGP.

Causal Representation Learning

SimPONet utilizes contrastive learning on simulated pairs to extract treatment-independent latent factors ($Z$) from post-treatment observations ($X$). The theory assumes a diffeomorphism—a smooth and reversible mapping—from latent factors to observations, ensuring no causal information is lost.

Joint Training Objective

Unlike previous approaches that used simulators sequentially, SimPONet employs a joint training algorithm with a loss function inspired by a derived mathematical generalization bound. The objective combines:

  1. Factual Loss: Ensures accurate outcome predictions on real observational data.
  2. Representation Regularizer: Encourages the model to learn representations aligned with the simulator’s "clean" causal factors.
  3. CATE Regularizer: Aligns predicted treatment effects with the simulator’s effects, weighting the simulator's influence based on its relevance to the real data.

Experimental Evaluation

The paper evaluates SimPONet against several benchmarks where ground-truth causal effects are known:

  • Synthetic-Gaussian: Used to control the distributional "gap" between the real world and the simulator.
  • IHDP (Infant Health and Development Program): A semi-synthetic benchmark based on a real randomized experiment.
  • ACIC 2016: A collection of 77 semi-synthetic datasets with varying levels of complexity.

Key Results

SimPONet consistently outperformed state-of-the-art baselines like DragonNet, CFRNet, and FlexTENet.

  • Robustness to Mismatch: SimPONet maintained low CATE error even when the simulator's distribution was intentionally drifted away from the real data, whereas "Simulator-Only" models failed.
  • Benchmark Performance: On the IHDP dataset, SimPONet achieved a mean CATE error of 0.79, compared to 0.83 for the next best baseline.
  • Data Efficiency: The model showed a significant advantage in low-data regimes, outperforming baselines with only 10% of the training data.

Discussion and Limitations

A major insight of this work is that even a "wrong" simulator provides a powerful inductive bias. SimPONet includes mechanisms to down-weight the simulator if it performs poorly on real-world factual predictions.

However, challenges remain. The model's performance is sensitive to the weights ($\lambda$) of different loss terms, and tuning these is difficult without real counterfactuals. Furthermore, the method assumes the availability of a relevant simulator, which may not exist for all domains, such as complex social sciences. Future work may involve automatically calibrating simulators during training to further bridge the reality-simulation gap.

Summary updated

BibTeX
@article{nagalapatti2025leveraging,
  author = {Lokesh Nagalapatti and Pranava Singhal and Avishek Ghosh and Sunita Sarawagi},
  title = {{Leveraging a Simulator for Learning Causal Representations from Post-Treatment Covariates for CATE}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
  url = {https://openreview.net/forum?id=ZSGgLVSeRX},
}
Figure