Learning Shadow Variable Representation for Treatment Effect Estimation under Collider Bias

Baohong Li, Haoxuan Li, Ruoxuan Xiong, Anpeng Wu, Fei Wu, Kun Kuang

Introduction

In causal inference, accurately estimating how a treatment ($T$) affects an outcome ($Y$) is a fundamental goal. However, observational data is frequently compromised by collider bias, a specific form of sample selection bias. This bias occurs when both the treatment and the outcome influence whether an individual is included in the dataset (denoted by the selection indicator $S$).

When analysts evaluate only the selected individuals ($S=1$), they inadvertently condition on a collider. This creates a spurious, non-causal association between $T$ and $Y$, rendering the true treatment effect unidentifiable. Traditional solutions rely on identifying "shadow variables"—auxiliary variables that are related to the outcome but remain independent of the selection process. Unfortunately, finding these variables in complex, real-world datasets typically requires deep domain expertise and is often impossible.

To address this, researchers have introduced a novel framework that automatically learns shadow variable representations from observational data, eliminating the need for manual identification by domain experts.

The Challenge of Collider Bias

Collider bias fundamentally alters the distribution of the observed data. Because the outcome $Y$ is missing for unselected units ($S=0$), researchers cannot directly observe the full population dynamics.

Causal diagram illustrating the proposed shadow variable Z in the presence of collider bias on selection S.

To correct for this, a valid shadow variable ($Z$) must satisfy two strict assumptions:

  1. Conditional Dependence: It must maintain predictive power for the outcome $Y$.
  2. Conditional Independence: It must be independent of the selection mechanism $S$, conditional on the other observed variables.

Because the outcome is partially unobserved, verifying the second assumption directly is notoriously difficult.

The Proposed Methodology

The authors propose a two-part automated solution: ShadowCatcher for representation learning and ShadowEstimator for treatment effect estimation.

1. ShadowCatcher (Representation Learning)

Instead of manually searching for a shadow variable, ShadowCatcher learns a latent representation ($Z$) directly from the observed covariates ($X$). It utilizes a neural "Generator" to create $Z$ while enforcing the necessary causal constraints.

Because the independence constraint cannot be tested directly due to missing outcomes, the authors introduce a Hypothesis Tester. This tester relies on a refutable hypothesis: while you cannot always definitively prove a causal assumption is true with missing data, you can often prove it is false. If the learned representation $Z$ fails this hypothesis test, the system rejects it, iterates, and generates a new representation until it passes.

Flowchart of the representation learning phase, showing the interaction between the generator and the estimator.

2. ShadowEstimator (Effect Estimation)

Once a valid shadow representation $Z$ is successfully learned, the ShadowEstimator module uses it to solve a Fredholm integral equation of the first kind. This mathematical approach allows the model to estimate an odds ratio function.

This odds ratio effectively acts as a bridge, encoding the deviation between the selected ($S=1$) and unselected ($S=0$) populations. By recovering the missing outcome distributions without relying on overly restrictive parametric assumptions, the estimator can calculate an unbiased Conditional Average Treatment Effect (CATE).

Experimental Results

The framework was rigorously evaluated against state-of-the-art baselines—including Heckman’s correction, Inverse Probability of Selection Weighting (IPSW), and various balanced representation learners—across multiple datasets:

  • Synthetic Data: ShadowCatcher achieved significantly lower Precision in Estimation of Heterogeneous Effect (PEHE) errors than baselines. Its performance advantage became even more pronounced as the simulated strength of the collider bias increased.
  • Real-World Benchmarks: On standard causal inference datasets like IHDP (Infant Health and Development Program) and ACIC 2016, the proposed method reduced estimation error by roughly 30% to 50% compared to the best-performing alternatives.
  • Robustness: The method demonstrated a substantially smaller performance gap between "selected" and "unselected" units, proving its efficacy in neutralizing the distribution shift caused by collider bias.

Limitations and Future Directions

While highly effective, the framework does have limitations. Its performance is sensitive to a hyperparameter $\alpha$, which serves as the rejection threshold for the hypothesis test. A threshold that is too small yields weak representations, while one that is too large prevents the model from converging efficiently. Furthermore, the method fundamentally assumes that latent "shadow information" exists within the raw covariates $X$; if the observed data contains absolutely no information related to $Y$ that is also independent of $S$, the model cannot succeed.

Future work will explore extending this framework to handle continuous treatments natively and adapting the hypothesis testing mechanism to account for even more complex, multi-layered selection mechanisms.

Summary updated

BibTeX
@inproceedings{li2024learning,
  author = {Baohong Li and Haoxuan Li and Ruoxuan Xiong and Anpeng Wu and Fei Wu and Kun Kuang},
  title = {{Learning Shadow Variable Representation for Treatment Effect Estimation under Collider Bias}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ycXo4tQIpN},
}
Figure