Modular Learning of Deep Causal Generative Models for High-dimensional Causal Inference

Md Musfiqur Rahman, Murat Kocaoglu

TL;DR

Training deep generative models to answer causal questions about high-dimensional data (like images) is notoriously difficult and computationally expensive. This paper introduces Modular-DCM, a novel algorithm that breaks down the training of deep causal generative models into smaller, independent modules. This allows researchers to train sub-networks efficiently and seamlessly plug in massive pre-trained models (like StyleGAN) while preserving strict theoretical causal guarantees.

What Problem Does This Paper Address?

Traditional causal inference algorithms are great at telling us the effect of an intervention (e.g., "What happens to pneumonia rates if we intervene on COVID symptoms?"). However, these algorithms require accurate estimations of joint data distributions, which is practically impossible when dealing with high-dimensional variables like high-resolution images.

Causal graph and corresponding Deep Causal Generative Model architecture for a medical imaging scenario.

Recently, researchers have started arranging neural networks into causal graphs to create Deep Causal Generative Models (DCMs). The problem? Existing methods force you to train the entire network architecture jointly to match the massive joint distribution of all variables. This is incredibly unstable, slow, and prevents you from utilizing state-of-the-art, pre-trained image generators (since joint training would overwrite their weights).

The authors tackle this gap by asking: How can we modularize the training of deep causal models so we can train them piece-by-piece and reuse pre-trained networks, even when unobserved confounders are present?

Methods: Achieving Modularity

The authors propose Modular-DCM, an adversarial learning algorithm that trains deep causal generative models in a specific, mathematically guaranteed order.

The three-step modular training process of Modular-DCM, illustrating H-graph construction and sequential module training.

Here is how they achieve this modularity:

  • c-components: Instead of training the whole graph, the algorithm groups variables into "c-components" (sets of variables connected by unobserved latent confounders). Variables in the same c-component must be trained together, but different c-components can be trained separately.
  • The H-graph: The authors construct a directed acyclic graph of these c-components (called an H-graph) to determine the exact topological order in which the modules must be trained.
  • Leveraging Do-Calculus Rule-2: To train a module independently, the network needs to match specific interventional distributions (c-factors). Since feedforward neural networks can't easily "condition" on variables during training, the authors cleverly use Pearl's do-calculus rule-2. This allows them to find a proxy distribution in the observational data that perfectly mimics the required interventional distribution, allowing adversarial training (using WGAN-GP) to proceed using only observational data.

Key Insights and Ideas

  • Decoupling reduces complexity: By modularizing the training, the maximum number of neural networks that need to be trained simultaneously drops from $O(N)$ (where $N$ is the total number of variables) to $O(|Largest \text{ } c-component|)$. This makes convergence much faster and more stable.
  • Plug-and-play pre-trained models: Because modules are trained sequentially and then frozen, you can swap out a module for a massive pre-trained model. For example, if a node represents a human face, you can just plug in a pre-trained InterFaceGAN model instead of training a face generator from scratch.
  • Observational data is enough (sometimes): The paper proves that by carefully selecting which variables to condition on (using do-calculus), you can train isolated parts of a causal generative model using only observational data, yet still guarantee that the final assembled model will correctly sample from interventional distributions.

Datasets and Key Results

The authors validated Modular-DCM across several datasets, demonstrating both superior performance and practical utility:

  • Semi-synthetic Colored-MNIST: Used to test causal effect estimation on images. On the frontdoor graph, Modular-DCM achieved a Frechet Inception Distance (FID) of 27.20, vastly outperforming the joint-training baseline (NCM), which struggled with an FID of 59.59. It also converged faster, achieving a Total Variation Distance (TVD) of 0.08 compared to the baseline's 0.17.
  • CelebA-HQ: A high-resolution human face dataset used to demonstrate a downstream application: training a domain-invariant classifier that isn't fooled by spurious correlations. A standard classifier learned a spurious bias, achieving only 81% accuracy when predicting eyeglasses on female faces. By using Modular-DCM (equipped with a pre-trained InterFaceGAN) to generate an unbiased, interventional dataset, the authors trained an augmented classifier that boosted accuracy on this minority sub-population to 90.1%.
  • COVIDx CXR-3: A real-world dataset of 30,000 chest X-rays with COVID and pneumonia labels, successfully used to demonstrate convergence on real high-dimensional medical data.

Limitations and Future Work

While powerful, Modular-DCM has a few limitations:

  • Requires a known causal graph: Like many causal inference methods, Modular-DCM assumes the true causal graph (including the locations of latent confounders) is fully specified by the user beforehand.
  • Semi-Markovian assumption: The algorithm currently assumes that each unobserved confounder affects exactly two observed variables. Extending this to non-Markovian models (where confounders can affect any number of variables) is left for future work.
  • No conditional sampling: The current method supports generating interventional samples but relies on basic rejection sampling for conditional queries, which is highly inefficient for high-dimensional evidence (like conditioning on a specific image).

Summary updated

BibTeX
@inproceedings{rahman2024modular,
  author = {Md Musfiqur Rahman and Murat Kocaoglu},
  title = {{Modular Learning of Deep Causal Generative Models for High-dimensional Causal Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=bOhzU7NpTB},
}
Figure