Causal Inference with Deep Causal Graphs

Álvaro Parafita, Jordi VitriàarXiv 2020

Abstract

This paper introduces Deep Causal Graphs (DCG), a framework that integrates the expressive power of deep learning with the rigorous logic of causal inference. By utilizing Normalizing Causal Flows (NCF), the authors create a model capable of capturing complex, non-linear relationships in data while remaining mathematically invertible. This invertibility allows for true counterfactual estimation—answering "what if" questions that traditional deep learning models struggle to address. We demonstrate that DCG outperforms traditional models in data fitting and provides a robust mechanism for counterfactual fairness and explainability.

Introduction

Causal inference is the science of understanding not just what happened, but why it happened and how an outcome would change if we intervened. This is typically handled by Structural Equation Models (SEMs). However, researchers face a "complexity vs. utility" trade-off: linear SEMs are easy to use for counterfactuals but fail to capture the messy, non-linear interactions of real-world data, while standard deep neural networks are great at modeling complex data but lack a clear way to perform abduction—the process of determining the underlying "noise" or hidden state of a specific individual to predict counterfactual changes.

The authors aim to bridge this gap, providing a way to use deep learning for causal queries (interventions and counterfactuals) without sacrificing the model's ability to fit complex distributions.

Methodology: Deep Causal Units and Normalizing Flows

The authors propose the Deep Causal Graph (DCG) as an implementation blueprint. It defines a Deep Causal Unit (DCU) for every variable in a graph. To be a valid DCU, a neural network must support three operations: sample (generate data), loglk (compute likelihood for training), and abduct (infer hidden noise).

Architecture of a Deep Causal Unit (DCU) using Normalizing Causal Flows.

Normalizing Causal Flows (NCF) are the specific tool used to fulfill the DCG contract. Normalizing Flows transform a simple distribution (like a Gaussian) into a complex one using invertible functions. Because they are invertible, they are perfect for the "abduction" step of causal inference: one can take an observed data point, map it back to its original noise signal, modify the system (intervention), and then map it forward again to see the counterfactual result.

Experimental Evaluation

The researchers evaluated their approach on several datasets, including UCI Wine-Quality, Abalone, and Concrete, as well as a synthetic Salary dataset designed to simulate societal biases and latent confounders.

In terms of negative log-likelihood (NLL), NCFs consistently outperformed Generalized Linear Models (GLM) and standard parametric Deep Causal Graphs across all UCI datasets, demonstrating superior data fitting capabilities.

Comparison of Negative Log-Likelihood (NLL) across different models on the wine-quality dataset.

Key Insights and Fairness

Beyond performance, DCG enables "Actionable Explainability." Instead of just identifying feature importance, the model can provide specific counterfactuals (e.g., "If this woman had been a man, the predicted salary would have increased by $6,038"). Furthermore, the authors show that "Counterfactual Unfairness" can be measured and used as a regularization penalty during training. On the synthetic salary dataset, this reduced the "unfairness degree" from $4,218 down to $924 while maintaining high predictive utility.

Limitations and Future Work

Currently, the implementation focuses on univariate random variables at each node and assumes the causal graph structure is already known. Future research directions include extending DCGs to high-dimensional multivariate nodes (like images or text) and adapting the framework for non-i.i.d. data, such as time-series.

Summary updated

BibTeX
@misc{parafita2020causal,
  author = {Álvaro Parafita and Jordi Vitrià},
  title = {{Causal Inference with Deep Causal Graphs}},
  year = {2020},
  eprint = {2006.08380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.08380},
}
Figure