On Heterogeneous Treatment Effects in Heterogeneous Causal Graphs

Richard A Watson, Hengrui Cai, Xinming An, Samuel McLean, Rui Song

TL;DR

Traditional causal discovery methods assume that a single causal graph fits an entire population, failing to capture how individual differences alter causal pathways. This paper introduces Heterogeneous Causal Graphs (HCGs) and the Interactive Structural Learning (ISL) algorithm to model how causal networks dynamically change based on individual pre-treatment characteristics (moderators). When applied to real-world trauma survivor data, the method uncovers crucial, sex-specific differences in how post-traumatic stress disorder (PTSD) develops.

What Problem Does This Paper Address?

Most causal discovery methods try to find a single Directed Acyclic Graph (DAG) that represents an entire dataset. However, in complex fields like healthcare and psychiatry, populations are highly heterogeneous. A treatment might trigger an indirect causal pathway through a mediator for one person, but a completely different pathway (or none at all) for another.

This variation is driven by moderators—pre-treatment variables (such as demographics, genetics, or environmental factors) that interact with the treatment. Existing causal inference frameworks either ignore the underlying graphical structure entirely when calculating heterogeneous effects or assume the graph's structure is uniform across the population. This paper addresses this gap by modeling how the causal graph itself changes across different subgroups, as illustrated in Figure 1.

Figure 1: The middle panel is the whole causal graph, and the left and right graphs are heterogeneous causal graphs for different values of X. Here X confounds the relationship between A (the treatment or event) and Y (the outcome of interest), and modifies the direct effect of A on Y dependent on the value of X. M1 and M2 are two different mediators that mediate the indirect effect of A onto Y . The red and blue arrows represent whether the causal relation is positive or negative, respectively.

Methods

The authors propose a framework that embeds moderator-treatment interaction terms ($XA$) directly into a population-level Structural Equation Model (SEM). To learn these complex structures from data, they introduce Interactive Structural Learning (ISL), a three-step algorithm:

  1. Constrained Causal Discovery: The algorithm uses score-based DAG learning (such as DAG-GNN) combined with an augmented Lagrangian approach to enforce both acyclicity and structural constraints (e.g., ensuring that baseline characteristics cannot have parents like the treatment or outcome).
  2. Debiasing via Regularization: To fix the inherent estimation biases introduced during the initial graph discovery phase, the algorithm prunes weak edges using a threshold and applies regularized regression (LASSO) to refit the graph coefficients.
  3. Uncertainty Quantification: A bootstrap procedure is employed to construct confidence intervals for the estimated heterogeneous causal effects.

Crucially, the authors also extend this framework to Functional SEMs, allowing the model to handle complex, nonlinear relationships using advanced score-matching methods.

Datasets

The method was evaluated using both simulated and real-world data:

  • Synthetic Datasets: The authors generated data across 8 distinct simulation scenarios (varying dimensionality, parallel vs. sequential mediator structures, and the presence/absence of interaction terms) to rigorously test the algorithm's accuracy.
  • The AURORA Study: A large-scale, real-world dataset tracking thousands of trauma survivors. The authors analyzed pre-trauma insomnia (treatment), 3-month post-trauma PTSD (outcome), 2-week post-trauma psychiatric disorders (mediators), and various demographic and clinical baseline traits (moderators).

Key Insights and Ideas

  • The Graph as a Dynamic Projection: Instead of learning separate graphs for every possible subgroup (which would severely limit sample sizes), ISL learns a single unified graph containing interaction terms at the population level. Using Pearl's do-operator, this population graph can be dynamically projected to generate a unique, customized causal graph for any specific individual or subgroup based on their unique moderators.
  • Moderators as Causal Gatekeepers: By embedding interaction terms directly into the structural model, the framework can show not just if an effect is heterogeneous, but how the underlying causal pathways alter—such as an edge completely disappearing or flipping its positive/negative sign depending on the moderator's value.

Key Results

  • Synthetic Performance: On synthetic data, ISL demonstrated exceptional accuracy, achieving a Structural Hamming Distance (SHD) close to 0 and a True Positive Rate (TPR) near 1.0. It significantly outperformed standard baseline methods like NOTEARS and DAG-GNN, which failed to properly account for interaction-driven heterogeneity.
  • Real-World Discovery: In the AURORA dataset analysis, the model revealed that the total, direct, and indirect effects of pre-trauma insomnia on 3-month PTSD are statistically significant for male trauma survivors but not for female survivors. For males, the effect is primarily mediated by 2-week peritraumatic stress and PTSD symptoms, as shown by the confidence intervals in Figure 3.
95% Confidence intervals for male and female subgraphs

Limitations and Future Work

  • High-Dimensional Scaling: Examining every possible configuration of moderators becomes computationally prohibitive when the number of baseline variables is exceptionally large. The authors note that automated variable selection within these causal graphs remains an open area for future research.
  • Confounding Assumptions: The framework relies on the standard assumption of "no unmeasured confounders." Future extensions could integrate instrumental variables to relax this requirement and handle unobserved real-world factors.

Summary updated

BibTeX
@inproceedings{watson2023heterogeneous,
  author = {Richard A Watson and Hengrui Cai and Xinming An and Samuel McLean and Rui Song},
  title = {{On Heterogeneous Treatment Effects in Heterogeneous Causal Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=Lg6ia0e8fo},
}
Figure