Validating Causal Inference Methods

Harsh Parikh, Carlos Varjao, Louise Xu, Eric Tchetgen TchetgenICML 2022

The Challenge of Missing Ground Truth

The "Fundamental Problem of Causal Inference" is that we never observe counterfactuals—we cannot know what would have happened to a treated patient if they had not received the drug. Because ground truth is inherently missing in real-world data, researchers often rely on a "one-size-fits-all" approach. They might pick popular methods like Causal BART or Double Machine Learning (DML) without knowing if those specific estimators are suited for the unique complexities—such as non-linearity, sparsity, or confounding—of their dataset.

Existing validation techniques frequently fall short. Handcrafted simulations are often too simplistic to mirror real-world "messiness," while placebo tests only check for bias under the null hypothesis. There is a critical gap in tools capable of telling a researcher: "For this specific dataset, Method A is more reliable than Method B."

Introducing Credence: A Generative Sandbox

To address this, researchers introduce Credence, a framework that uses deep generative models to create synthetic datasets. These datasets are statistically indistinguishable from a researcher's real-world data but contain known, user-defined causal truths. This allows practitioners to "stress-test" various causal inference estimators to see which one performs best on their specific data distribution before trusting the results on the actual observed sample.

Credence is built on an ensemble of Conditional Variational Autoencoders (conVAEs).

Conditional VAE architecture used in Credence

The core innovation lies in how Credence learns the data-generating process (DGP). Instead of merely mimicking the observed data distribution, it incorporates user-defined constraints directly into the VAE loss function:

  1. Distributional Similarity: Ensures the synthetic data is stochastically indistinguishable from the observed data.
  2. User-Defined Causal Truth ($f$): The user specifies a function for the treatment effect (e.g., "the effect is quadratic").
  3. User-Defined Confounding ($g$): The user specifies the level of unobserved confounding bias.
  4. Rigidness Parameters ($\alpha, \beta$): Penalties that force the generative model to respect the user's causal constraints, even if they conflict with patterns in the potentially biased observed data.

By training this ensemble, Credence produces a "sandbox" version of the real data where the exact Average Treatment Effect (ATE) is known, establishing a reliable benchmark for different estimators.

Key Insights and Real-World Validation

Most simulations start from scratch, but Credence "anchors" its simulation to the empirical distribution of the actual study. If the real data has strange correlations or outliers, the Credence-generated data will retain them. By adjusting the confounding bias function ($g$), researchers can also perform sophisticated sensitivity analyses, observing how their chosen estimator breaks down as unobserved confounding increases.

The paper validates Credence using a mix of synthetic DGPs (Quadratic and Friedman’s) and classic real-world benchmarks:

  • Lalonde (NSW + PSID): A famous benchmark combining experimental data with observational data to test if methods can recover experimental results from biased observations.
  • Project STAR: A study evaluating the effect of class size on student performance.

Reproducing Oracle Rankings

The most striking insight is that Credence successfully reproduces the "oracle" ranking of methods. If an oracle (who knows the true DGP) dictates that Method X is the best for a specific dataset, Credence usually reaches the exact same conclusion using only the observed sample.

Evaluation of estimators on Lalonde and Project STAR datasets

In the Lalonde dataset, different estimators traditionally yield wildly different ATE results (ranging from ~\$370 to ~\$1079). Credence-generated data correctly identified that S-learners, Causal Forests, and DML were the most stable and least biased for this specific data structure. For both Lalonde and Project STAR, the rankings of estimators produced by Credence closely matched the rankings obtained by comparing observational estimates to actual experimental gold standards.

Furthermore, on highly non-linear synthetic data (Friedman’s DGP), Credence correctly identified that Propensity Score Matching was heavily biased, while Causal BART and Gradient Boosting Tree (GBT)-based learners remained robust.

Limitations and Future Directions

While powerful, Credence is a tool for conditional validation. Its results are only as reliable as the user's assumptions about the form of the treatment effect ($f$) and confounding ($g$). It does not "find" the absolute truth; rather, it identifies which method would find the truth if the user's assumptions about the bias are correct.

Currently, the framework assumes "no interference" (SUTVA) and no measurement error. Extending this to handle network effects or noisy measurements is a logical next step. Additionally, like all deep generative models, VAEs require careful hyperparameter tuning. Future work aims to automate this tuning process, making the tool more accessible to applied researchers who may not be deep learning experts.

Summary updated

BibTeX
@inproceedings{parikh2022validating,
  author = {Harsh Parikh and Carlos Varjao and Louise Xu and Eric Tchetgen Tchetgen},
  title = {{Validating Causal Inference Methods}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
}
Figure