Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Structure Learning with Generative Flow Networks

Tristan Deleu, António Góis|arXiv (Cornell University)|Feb 28, 2022
Topic ModelingComputer Science21 citations
TL;DR

DAG-GFlowNet uses Generative Flow Networks to approximate the posterior over DAGs for Bayesian structure learning, providing iid DAG samples and competitive accuracy vs MCMC and variational methods on simulated and real data.

ABSTRACT

In Bayesian structure learning, we are interested in inferring a distribution over the directed acyclic graph (DAG) structure of Bayesian networks, from data. Defining such a distribution is very challenging, due to the combinatorially large sample space, and approximations based on MCMC are often required. Recently, a novel class of probabilistic models, called Generative Flow Networks (GFlowNets), have been introduced as a general framework for generative modeling of discrete and composite objects, such as graphs. In this work, we propose to use a GFlowNet as an alternative to MCMC for approximating the posterior distribution over the structure of Bayesian networks, given a dataset of observations. Generating a sample DAG from this approximate distribution is viewed as a sequential decision problem, where the graph is constructed one edge at a time, based on learned transition probabilities. Through evaluation on both simulated and real data, we show that our approach, called DAG-GFlowNet, provides an accurate approximation of the posterior over DAGs, and it compares favorably against other methods based on MCMC or variational inference.

Motivation & Objective

  • Motivate Bayesian structure learning by inferring a distribution over DAGs given data, capturing epistemic uncertainty.
  • Propose a Generative Flow Network (GFlowNet) approach to approximate the posterior over DAGs, ensuring acyclicity by construction.
  • Develop improved GFlowNet concepts (flow-matching, detailed-balance) and a hierarchical forward-transition model for graphs.
  • Demonstrate efficacy of DAG-GFlowNet on simulated linear-Gaussian networks and real flow cytometry data, including interventional settings.

Proposed method

  • Model the posterior over DAGs as a GFlowNet where DAGs are states and edges correspond to adding a single edge.
  • Use a flow-matching or detailed-balance based objective to ensure sampling probability is proportional to the reward, R(G).
  • Define the reward R(G) as the Bayesian score, R(G)=P(G)P(D|G), with modular priors and marginal likelihood.
  • Parameterize forward transitions Pθ(G'|G) with a hierarchical neural network (termination head and edge-addition head) and a mask to enforce DAG validity; employ a Linear Transformer architecture for scalability.
  • Train with off-policy learning using a replay buffer, delta scores (local score differences), and a target network for stability.
  • Ensure the sampling process yields samples from the DAG space with acyclicity guaranteed by action masking and graph structure.

Experimental results

Research questions

  • RQ1Can a Generative Flow Network approximate the posterior distribution over DAGs given data?
  • RQ2Does DAG-GFlowNet produce iid DAG samples from the target posterior and respect the acyclicity constraint by construction?
  • RQ3How does DAG-GFlowNet perform relative to MCMC and variational methods on both synthetic and real data, including interventional settings?
  • RQ4What is the impact of modular scores (BDe/BGe) on the efficiency and accuracy of the posterior approximation?
  • RQ5Can the method scale to larger graphs and faithfully recover structural features (edges, paths, Markov blankets) of the true DAGs?

Key findings

  • DAG-GFlowNet yields an accurate approximation of the posterior over DAGs, with strong correlation to exact posterior structural features for small graphs.
  • On simulated linear-Gaussian networks with d=20, DAG-GFlowNet is competitive with or better than MCMC baselines in E-SHD and AUROC, without sacrificing held-out predictive log-likelihood.
  • On real flow cytometry data (Sachs et al. 2005), DAG-GFlowNet achieves competitive E-# Edges, E-SHD, and AUROC compared to MCMC and variational baselines, showing favorable trade-offs.
  • The method covers multiple Markov equivalence classes and DAGs, rather than collapsing to a single graph, indicating meaningful uncertainty representation.
  • Using interventional data, the framework can adapt the BDe score to combine observational and interventional evidence for structure learning.
  • DAG-GFlowNet scales via a hierarchical forward model and a linear Transformer backbone, enabling application to larger graphs while preserving DAG validity.

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.