Enabling Causal Discovery in Post-Nonlinear Models with Normalizing Flows

Nu Hoang, Bao Duong, Thin Nguyen · DOI

Abstract

Post-nonlinear (PNL) causal models stand out as a versatile and adaptable framework for modeling intricate causal relationships. However, accurately capturing the invertibility constraint required in PNL models remains challenging in existing studies. To address this problem, we introduce CAF-PoNo (Causal discovery via Normalizing Flows for Post-Nonlinear models), harnessing the power of the normalizing flows architecture to enforce the crucial invertibility constraint in PNL models. Through normalizing flows, our method precisely reconstructs the hidden noise, which plays a vital role in cause-effect identification through statistical independence testing. Furthermore, the proposed approach exhibits remarkable extensibility, as it can be seamlessly expanded to facilitate multivariate causal discovery via causal order identification, empowering us to efficiently unravel complex causal relationships. Extensive experimental evaluations on both simulated and real datasets consistently demonstrate that the proposed method outperforms several state-of-the-art approaches in both bivariate and multivariate causal discovery tasks.

Introduction

Causal discovery—the process of determining directed causal relationships from observational data—is a fundamental challenge in machine learning. While correlation is easily observed, identifying the direction of causation requires sophisticated modeling. A particularly flexible framework is the Post-Nonlinear (PNL) model, defined as $Y = g(h(X) + \epsilon_Y)$, where $X$ is the cause, $Y$ is the effect, $h$ is a function of the cause, and $g$ is a nonlinear transformation.

A critical requirement for PNL model identifiability is that the function $g$ must be invertible. Existing methods often struggle to enforce this constraint, frequently relying on autoencoders that only approximate an inverse. This lack of mathematical rigor often leads to "leaky" noise estimates that remain dependent on the cause, resulting in incorrect causal direction inferences. This paper introduces CAF-PoNo, which leverages Normalizing Flows to guarantee invertibility by design.

Methodology

CAF-PoNo (Causal discovery via Normalizing Flows for Post-Nonlinear models) replaces standard neural networks for the $g$ function with Normalizing Flows (NFs). NFs are a class of neural architectures specifically designed to be invertible by construction. By utilizing a "CDF flow" (a mixture of cumulative distribution functions), CAF-PoNo ensures that the invertibility constraint of the PNL model is satisfied perfectly without the need for auxiliary loss terms or pseudo-inverses.

The discovery process follows two main phases:

  1. Bivariate Discovery: For any pair $(X, Y)$, the model fits both $X \to Y$ and $Y \to X$ using Maximum Likelihood Estimation. It then assesses the independence between the putative cause and the estimated noise using the Hilbert-Schmidt Independence Criterion (HSIC). The direction yielding the most independent noise is identified as the true causal direction.
  2. Multivariate Extension: To scale to multiple variables, the authors employ a recursive strategy to identify a "causal order." This involves identifying "sink nodes" whose noise is independent of all other variables and then pruning spurious edges using conditional independence tests.

Experimental Results

The researchers evaluated CAF-PoNo against state-of-the-art (SOTA) baselines, including ANM, CAREFL, and AbPNL, across synthetic and real-world datasets.

Noise Reconstruction and Accuracy

A key insight of the study is that the quality of noise reconstruction directly impacts discovery accuracy. As illustrated in Figure 1, competing methods like AbPNL often produce estimated noise that retains a visible dependency on the cause. In contrast, CAF-PoNo’s noise forms a uniform distribution, indicating successful independence and correct causal inference.

Comparison of noise reconstruction between CAF-PoNo and AbPNL. CAF-PoNo recovers noise that is independent of the cause, whereas AbPNL's noise remains dependent.

On synthetic PNL datasets, CAF-PoNo achieved an overall AUC of 94.98%, significantly outperforming CAREFL (83.73%). On the real-world Tübingen benchmark, it reached a SOTA accuracy of 71.71% and an AUC of 73.84%.

Computational Efficiency

By adopting a Maximum Likelihood framework, CAF-PoNo avoids the computationally expensive mutual information calculations required by previous neural PNL methods. This leads to significant speedups, particularly as the number of variables in the system increases.

Running time comparison showing CAF-PoNo's superior scalability compared to AbPNL as the number of variables increases.

In multivariate tests using the Sachs protein signaling network dataset, CAF-PoNo achieved the lowest Structural Hamming Distance (SHD=11) and Structural Intervention Distance (SID=41), demonstrating its robustness in complex systems.

Conclusion

CAF-PoNo represents a significant advancement in causal discovery for PNL models by enforcing invertibility through Normalizing Flow architectures. This approach leads to cleaner noise reconstruction, higher accuracy, and improved computational efficiency. While currently limited by standard assumptions like acyclicity and causal sufficiency, future work may extend this framework to handle hidden confounders and even higher-dimensional data structures.

Summary updated

BibTeX
@inproceedings{hoang2024enabling,
  author = {Nu Hoang and Bao Duong and Thin Nguyen},
  title = {{Enabling Causal Discovery in Post-Nonlinear Models with Normalizing Flows}},
  booktitle = {ECAI},
  year = {2024},
  doi = {10.3233/faia240798},
}
Figure