OCDaf: Ordered Causal Discovery with Autoregressive Flows

Hamidreza Kamkari, Vahid Zehtab, Vahid Balazadeh Meresht, Rahul G. KrishnanarXiv 2023

Abstract

Estimating the causal structure of observational data is a challenging combinatorial search problem that scales super-exponentially with graph size. Existing methods use continuous relaxations to make this problem computationally tractable but often restrict the data-generating process to additive noise models (ANMs) through explicit or implicit assumptions. We present Order-based Structure Learning with Normalizing Flows (OSLow), a framework that relaxes these assumptions using autoregressive normalizing flows. We leverage the insight that searching over topological orderings is a natural way to enforce acyclicity in structure discovery and propose a novel, differentiable permutation learning method to find such orderings. Through extensive experiments on synthetic and real-world data, we demonstrate that OSLow outperforms prior baselines and improves performance on the observational Sachs and SynTReN datasets as measured by structural hamming distance and structural intervention distance, highlighting the importance of relaxing the ANM assumption made by existing methods.

Introduction

Identifying causal relationships from observational data is a fundamental goal in machine learning. However, it faces two primary challenges: the super-exponential growth of the Directed Acyclic Graph (DAG) search space and the reliance on restrictive Additive Noise Model (ANM) assumptions. Most current algorithms assume that a variable is a function of its parents plus independent noise, which often fails in real-world scenarios where noise can be heteroscedastic. OSLow addresses these issues by learning topological orderings using autoregressive normalizing flows, allowing for more complex, non-additive noise structures.

Methodology: Order-Based Structure Learning

OSLow shifts the focus from edge-based search to finding the correct topological ordering of variables. This approach naturally enforces acyclicity, a core requirement for DAGs.

Overview of the OSLow framework, illustrating the use of masked autoregressive flows and the differentiable permutation learning process.

The framework incorporates several key innovations:

  • Masked Autoregressive Normalizing Flows (ANFs): ANFs are used to model the data distribution. Their inherent ordering makes them ideal for representing causal Structural Causal Models (SCMs).
  • Differentiable Permutation Learning: Instead of using standard methods like Gumbel-Sinkhorn, which can inadvertently introduce "soft cycles," OSLow samples likely permutations and optimizes a weighted loss over them.
  • Efficient Parameter Sharing: A masking scheme allows a single network to represent multiple causal orderings simultaneously, significantly improving training efficiency.

Experimental Evaluation

The authors evaluated OSLow against several baselines using real-world (Sachs), semi-synthetic (SynTReN), and a diverse suite of synthetic benchmarks.

Performance comparison on the Sachs and SynTReN datasets. OSLow achieves competitive or superior results in Structural Hamming Distance (SHD) and Structural Intervention Distance (SID).

As shown in Figure 2, OSLow variants (using either PC-KCI tests or sparse regression for skeleton discovery) consistently achieve lower SHD and SID scores compared to baselines like CAM, SCORE, and GraN-DAG on the Sachs and SynTReN datasets. On the Sachs protein signaling dataset, OSLow achieved a Structural Hamming Distance (SHD) of 10.4, outperforming models like CAM (12.0) and GraN-DAG (13.0). Similar improvements were seen in the SynTReN dataset, particularly in Structural Intervention Distance (SID), which measures the accuracy of interventional predictions.

In synthetic benchmarks, OSLow demonstrated significant robustness. While many continuous optimization tools fail when the additive noise assumption is violated, OSLow maintained stable performance across "Affine" and "Nonparametric" settings, effectively handling Location-Scale Noise Models (LSNMs).

Discussion and Key Insights

A central insight of this work is that the topological ordering is the primary bottleneck in causal discovery; once the order is established, identifying the specific edges is a much simpler task. Furthermore, the paper highlights the "Sinkhorn Cheat," where standard differentiable permutation methods can achieve high likelihood by creating cycles—a pitfall OSLow avoids by using hard permutation samples.

Despite its strengths, OSLow is more computationally intensive than simpler additive models and currently assumes invertible link functions. Future work will focus on scaling the framework to high-dimensional genomic data and exploring non-invertible or discrete data structures.

Conclusion

OSLow represents a significant step forward in causal discovery by relaxing the restrictive ANM assumption and providing a robust, differentiable method for learning topological orders. Its superior performance on real-world datasets underscores the importance of modeling complex noise distributions in causal inference.

Summary updated

BibTeX
@misc{kamkari2023ocdaf,
  author = {Hamidreza Kamkari and Vahid Zehtab and Vahid Balazadeh Meresht and Rahul G. Krishnan},
  title = {{OCDaf: Ordered Causal Discovery with Autoregressive Flows}},
  year = {2023},
  eprint = {2308.07480},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.07480},
}
Figure