Continuous Bayesian Model Selection for Multivariate Causal Discovery

Anish Dhir, Ruby Sedgwick, Avinash Kori, Ben Glocker, Mark van der Wilk

TL;DR

This paper introduces a scalable Bayesian approach for multivariate causal discovery that replaces restrictive functional assumptions (like additive noise) with flexible, non-parametric Gaussian Processes. By relaxing the discrete graph search into a continuous optimization problem, the authors enable Bayesian model selection to handle complex, high-dimensional datasets where traditional methods often fail.

The Challenge of Causal Discovery

Causal discovery—the task of inferring "what causes what" from purely observational data—is notoriously difficult. To distinguish between a graph where $X \to Y$ and one where $Y \to X$, most algorithms rely on strict "identifiability" assumptions. For example, many assume an Additive Noise Model (ANM), where the effect is a function of the cause plus some independent noise.

The problem is that these assumptions are often violated in real-world biological or economic systems. If the data doesn't fit the assumed mathematical structure, the algorithm's guarantees vanish, and performance plummets. Bayesian model selection offers a way out by using the "marginal likelihood" (a built-in version of Occam’s Razor) to pick the most plausible graph without needing such rigid constraints. However, Bayesian methods traditionally struggle with scalability: the number of possible graphs grows super-exponentially with the number of variables, making discrete search impossible for large systems.

Methodology: CGP-CDE

The authors propose a scalable algorithm called CGP-CDE (Causal Gaussian Process Conditional Density Estimator). Their approach hinges on three key innovations:

  1. Flexible Non-parametrics: They use Gaussian Processes (GPs) to model the conditional distributions of variables. This allows the model to capture complex, non-linear relationships and non-Gaussian noise without assuming a specific functional form like ANM.
  2. Continuous Relaxation: Instead of searching through a discrete space of graphs, they treat the kernel hyperparameters ($\theta_{ij}$) of the GPs as entries in a weighted adjacency matrix. If a hyperparameter $ heta_{ij}$ is optimized toward zero, it effectively removes the causal edge from variable $j$ to variable $i$.
  3. Differentiable Optimization: They frame causal discovery as a single continuous optimization problem. They maximize the Evidence Lower Bound (ELBO) of the marginal likelihood while applying a spectral acyclicity regularizer. This penalty ensures the resulting graph is a Directed Acyclic Graph (DAG), allowing the use of standard gradient-based optimization (like Adam).

Experimental Setup

The authors evaluated their method against several state-of-the-art baselines (including NOTEARS, SDCD, and DiBS) using a variety of datasets:

  • Synthetic 3-variable data: Used to validate the theoretical "probability of error" in the multivariate case.
  • High-dimensional Synthetic data (20 and 50 variables): Generated using Erdos-Renyi (ER) and Scale-Free (SF) graph structures. Crucially, the data was generated using randomly initialized neural networks to ensure it did not perfectly match the GP model, testing the algorithm's robustness to model misspecification.
  • Syntren: A well-known simulator for gene-regulatory networks that produces synthetic gene expression data based on real biological topologies (20 nodes, 500 samples).
Performance metrics (SHD, SID, and F1) on 3-variable synthetic datasets

Key Insights

  • Flexibility over Identifiability: The paper argues that it is better to have a flexible model with "loosened" identifiability guarantees than a restrictive model whose assumptions are likely false. Bayesian model selection can still find the correct structure with high probability by leveraging the Independent Causal Mechanism (ICM) principle.
  • The Power of the Marginal Likelihood: The marginal likelihood naturally prefers models where the priors align with the data-generating process. Because the authors use factorized priors (encoding the ICM assumption), the "correct" causal direction typically yields a higher score than the "reverse" direction.
  • Bridging Two Worlds: The work successfully combines the statistical rigor of Bayesian model selection with the computational efficiency of continuous, gradient-based causal discovery (popularized by methods like NOTEARS).

Key Results

  • State-of-the-Art Performance: In 50-variable experiments, CGP-CDE significantly outperformed non-Bayesian continuous methods (like SDCD) and restricted functional methods (like CAM or SCORE) in terms of Structural Hamming Distance (SHD) and F1 score.
F1 scores for 50-variable ER4 graphs
  • Biological Accuracy: On the Syntren dataset, CGP-CDE achieved the best results in Structural Interventional Distance (SID) and F1 score, suggesting it is particularly well-suited for the complex, non-linear dependencies found in biology.
  • Robustness: The method remained competitive even when the number of samples was low (e.g., 100 samples for 20 variables), whereas many other flexible methods require much larger datasets to converge.

Limitations and Future Directions

  • Computational Overhead: While more scalable than discrete search, GPs are still computationally expensive ($O(N^3)$). Although the authors use inducing points to reduce this to $O(M^3)$, it remains more resource-intensive than simple linear causal models.
  • Local Optima: Like all continuous optimization approaches for DAGs, the loss landscape is non-convex. The authors use random restarts to find the global optimum, but more sophisticated optimization schedules could be explored.
  • Causal Sufficiency: The current framework assumes there are no unobserved "hidden confounders" affecting the variables. Extending this Bayesian approach to handle latent variables is a significant open challenge.
  • Graph Priors: The authors used a simple Gamma prior to encourage sparsity; future work could incorporate more informative priors based on domain knowledge.

Summary updated

BibTeX
@inproceedings{dhir2025continuous,
  author = {Anish Dhir and Ruby Sedgwick and Avinash Kori and Ben Glocker and Mark van der Wilk},
  title = {{Continuous Bayesian Model Selection for Multivariate Causal Discovery}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=zydNWJzoVd},
}
Figure