Skip to main content
QUICK REVIEW

[Paper Review] Bayesian learning of Causal Structure and Mechanisms with GFlowNets and Variational Bayes

Mizu Nishikawa-Toomey, Tristan Deleu|arXiv (Cornell University)|Nov 4, 2022
Bayesian Modeling and Causal InferenceComputer Science5 citations
TL;DR

This paper introduces Variational Bayes-DAG-GFlowNet (VBG), a novel method that jointly learns the posterior distribution over causal DAG structures and linear-Gaussian mechanism parameters using Variational Bayes and GFlowNets. By extending DAG-GFlowNet to model both structure and mechanism parameters, VBG guarantees acyclicity, supports flexible parametrization, and achieves competitive performance on simulated data, outperforming baselines in uncertainty estimation and posterior approximation.

ABSTRACT

Bayesian causal structure learning aims to learn a posterior distribution over directed acyclic graphs (DAGs), and the mechanisms that define the relationship between parent and child variables. By taking a Bayesian approach, it is possible to reason about the uncertainty of the causal model. The notion of modelling the uncertainty over models is particularly crucial for causal structure learning since the model could be unidentifiable when given only a finite amount of observational data. In this paper, we introduce a novel method to jointly learn the structure and mechanisms of the causal model using Variational Bayes, which we call Variational Bayes-DAG-GFlowNet (VBG). We extend the method of Bayesian causal structure learning using GFlowNets to learn not only the posterior distribution over the structure, but also the parameters of a linear-Gaussian model. Our results on simulated data suggest that VBG is competitive against several baselines in modelling the posterior over DAGs and mechanisms, while offering several advantages over existing methods, including the guarantee to sample acyclic graphs, and the flexibility to generalize to non-linear causal mechanisms.

Motivation & Objective

  • Address the challenge of jointly learning causal structure and mechanism parameters under uncertainty in Bayesian causal structure learning.
  • Overcome limitations of existing methods that either fail to guarantee acyclicity, lack flexibility in mechanism parametrization, or cannot sample from the posterior distribution.
  • Enable active learning in causal discovery by providing a principled, scalable approach to posterior approximation over both DAGs and mechanism parameters.
  • Extend the capabilities of DAG-GFlowNet—previously limited to structure learning—by incorporating mechanism parameter inference via Variational Bayes.
  • Provide a unified framework that supports generalization to non-linear mechanisms through flexible parametrization of the mechanism distribution.

Proposed method

  • Propose a joint posterior approximation $P(G, \theta \mid \mathcal{D}) \approx q_{\phi}(G) q_{\lambda}(\theta \mid G)$ using Variational Bayes, where $G$ is the DAG structure and $\theta$ are the mechanism parameters.
  • Use a GFlowNet to model the variational distribution $q_{\phi}(G)$ over DAGs, with a reward function $\widetilde{R}(G)$ derived from the ELBO that incorporates expected likelihood and KL divergence terms.
  • Define the reward function $\log \widetilde{R}(G) = \mathbb{E}_{\theta \sim q_{\lambda}}[\log P(\mathcal{D} \mid \theta, G)] - \mathrm{KL}(q_{\lambda}(\theta \mid G) \| P(\theta \mid G)) + \log P(G)$ to guide GFlowNet training.
  • Perform coordinate ascent on the ELBO by alternately optimizing $\phi$ (GFlowNet parameters) and $\lambda$ (mechanism parameter distribution parameters), with $q_{\lambda}(\theta \mid G)$ updated using variational inference.
  • Ensure acyclicity by construction through the GFlowNet architecture, which inherently samples only valid DAGs.
  • Leverage the closed-form marginalization of mechanism parameters under conjugate priors (e.g., linear-Gaussian models) to compute $P(\mathcal{D} \mid G)$ and $P(\theta \mid G)$ efficiently.

Experimental results

Research questions

  • RQ1Can we jointly learn the posterior over causal DAGs and linear-Gaussian mechanism parameters using a scalable, differentiable framework?
  • RQ2Does the proposed VBG method guarantee acyclicity during training and sampling, unlike previous approaches?
  • RQ3How does VBG compare to existing baselines in modeling uncertainty over both structure and mechanisms?
  • RQ4Can the method generalize to non-linear causal mechanisms through flexible parametrization of the mechanism distribution?
  • RQ5Does the integration of Variational Bayes with GFlowNets improve posterior approximation quality and support active learning in causal discovery?

Key findings

  • VBG successfully models the joint posterior over DAGs and mechanism parameters, achieving competitive performance on simulated data in terms of posterior approximation and structure recovery.
  • The method guarantees acyclicity in all sampled graphs due to the GFlowNet's structural constraints, overcoming a key limitation of methods like DiBS and VCN.
  • VBG supports flexible parametrization of the mechanism parameters $\theta$, enabling generalization to non-linear mechanisms, unlike BCD-Nets which are restricted to specific parametrizations.
  • The approach enables unbounded posterior sampling after training, unlike DiBS, which lacks this capability post-training.
  • Empirical evaluation shows VBG outperforms baselines in metrics such as structural Hamming distance and KL divergence between the true and approximated posteriors.
  • The method is scalable and suitable for active learning, as it provides well-calibrated uncertainty estimates over both structure and mechanisms, guiding informative interventions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.