[Paper Review] BayesDAG: Gradient-Based Posterior Inference for Causal Discovery
BayesDAG proposes a novel gradient-based Bayesian causal discovery framework that enables scalable posterior inference over both Directed Acyclic Graphs (DAGs) and nonlinear structural functions by leveraging stochastic gradient Markov Chain Monte Carlo (SG-MCMC) and variational inference. It achieves state-of-the-art performance in causal discovery and uncertainty quantification on synthetic and real-world datasets, scaling to 100 variables with nonlinear relationships without requiring DAG regularization.
Bayesian causal discovery aims to infer the posterior distribution over causal models from observed data, quantifying epistemic uncertainty and benefiting downstream tasks. However, computational challenges arise due to joint inference over combinatorial space of Directed Acyclic Graphs (DAGs) and nonlinear functions. Despite recent progress towards efficient posterior inference over DAGs, existing methods are either limited to variational inference on node permutation matrices for linear causal models, leading to compromised inference accuracy, or continuous relaxation of adjacency matrices constrained by a DAG regularizer, which cannot ensure resulting graphs are DAGs. In this work, we introduce a scalable Bayesian causal discovery framework based on a combination of stochastic gradient Markov Chain Monte Carlo (SG-MCMC) and Variational Inference (VI) that overcomes these limitations. Our approach directly samples DAGs from the posterior without requiring any DAG regularization, simultaneously draws function parameter samples and is applicable to both linear and nonlinear causal models. To enable our approach, we derive a novel equivalence to the permutation-based DAG learning, which opens up possibilities of using any relaxed gradient estimator defined over permutations. To our knowledge, this is the first framework applying gradient-based MCMC sampling for causal discovery. Empirical evaluation on synthetic and real-world datasets demonstrate our approach's effectiveness compared to state-of-the-art baselines.
Motivation & Objective
- To address the challenge of scalable Bayesian causal discovery over combinatorial DAG spaces and continuous function parameters.
- To overcome limitations of existing methods that rely on DAG regularization (which cannot guarantee acyclicity) or variational inference (which may suffer from accuracy issues).
- To develop a model-agnostic framework applicable to both linear and nonlinear structural causal models.
- To enable high-quality posterior inference by directly sampling DAGs using gradient-based MCMC without relaxation or regularization.
- To demonstrate effectiveness and scalability on synthetic and real-world datasets, including up to 100 variables.
Proposed method
- Introduces an augmented space of edge beliefs and node potentials $({m{W}}, {m{p}})$ that enables equivalent Bayesian inference over DAGs without DAG regularization.
- Derives an equivalence between this augmented space and permutation-based DAG learning, enabling the use of any relaxed gradient estimator over permutations.
- Proposes a hybrid framework combining SG-MCMC and variational inference (VI) for joint posterior sampling over DAGs and function parameters.
- Employs a continuous relaxation of the adjacency matrix $\tilde{\bm{W}}$ in a second formulation, allowing gradient-based MCMC sampling without explicit DAG constraints.
- Uses a variational network $\mu_{\phi}$ to couple node potentials $\bm{p}$ and edge beliefs $\bm{W}$, enabling responsive updates during sampling.
- Leverages stochastic gradient estimators in SG-MCMC to scale to high-dimensional settings, including $d=100$ variables.
Experimental results
Research questions
- RQ1Can gradient-based MCMC sampling be effectively applied to Bayesian causal discovery over discrete DAG structures?
- RQ2Can a relaxation-free approach to DAG sampling be achieved using an augmented space of edge beliefs and node potentials?
- RQ3How does the proposed framework compare to existing variational and regularization-based methods in terms of posterior accuracy and uncertainty quantification?
- RQ4Can the method scale to high-dimensional nonlinear causal models with 100 variables?
- RQ5Does coupling node potentials and edge beliefs via a variational network improve sampling efficiency and accuracy?
Key findings
- BayesDAG achieves state-of-the-art performance on synthetic nonlinear datasets with $d=20$, outperforming all baselines in expected Structural Hamming Distance (E-SHD), Edge F1, and Negative Log-Likelihood (NLL).
- On $d=70$ and $d=100$ nonlinear settings, BayesDAG maintains superior performance in E-SHD and NLL, with only a slight drop in Edge F1 compared to the best baseline.
- The SG-MCMC+VI formulation outperforms the SG-MCMC with continuous relaxation ($\tilde{\bm{W}}$) due to better coupling between $\bm{p}$ and $\bm{W}$ in the variational network.
- BayesDAG scales efficiently to $d=100$ variables, with a runtime of 448 minutes on a single 40GB A100 GPU, while DIBS and DDS fail due to memory constraints.
- BGES and DDS, though faster, perform significantly worse in uncertainty quantification and are limited to linear models or not fully Bayesian.
- Empirical results confirm that BayesDAG provides accurate posterior inference with proper uncertainty calibration, especially in low-data regimes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.