BayesDAG: Gradient-Based Posterior Inference for Causal Discovery
Yashas Annadani, Nick Pawlowski, Joel Jennings, Stefan Bauer, Cheng Zhang, Wenbo Gong
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 676cdc5f-fe4e-4215-a71b-e36ffe6d6a05Cited by top-tier papers11
- Sample Efficient Bayesian Learning of Causal Graphs from InterventionsZihan Zhou, Muhammad Qasim Elahi, Murat KocaogluNeurIPS 2024 · 6 citations
- Challenges and Considerations in the Evaluation of Bayesian Causal DiscoveryAmir Mohammad Karimi-Mamaghan, Panagiotis Tigas, Karl Henrik Johansson, Yarin Gal et al.ICML 2024 · 6 citations
- ProDAG: Projected Variational Inference for Directed Acyclic GraphsRyan Thompson, Edwin V. Bonilla, Robert KohnNeurIPS 2025 · 6 citations
- Differentiable Constraint-Based Causal DiscoveryJincheng Zhou, Mengbo Wang, Anqi He, Yumeng Zhou et al.NeurIPS 2025 · 5 citations
- Test-Time Learning of Causal Structure from Interventional DataWei Chen, Rui Ding, Huang Bojun, Yang Zhang et al.ICML 2026 · 1 citation
Builds on12
- Gradient-Based Neural DAG LearningSébastien Lachapelle, Philippe Brouillard, Tristan Deleu, Simon Lacoste-JulienICLR 2020 · 337 citations
- Fast Differentiable Sorting and RankingMathieu Blondel, Olivier Teboul, Quentin Berthet, Josip DjolongaICML 2020 · 285 citations
- DiBS: Differentiable Bayesian Structure LearningLars Lorch, Jonas Rothfuss, Bernhard Schölkopf, Andreas KrauseNeurIPS 2021 · 144 citations
- Oops I Took A Gradient: Scalable Sampling for Discrete DistributionsWill Grathwohl, Kevin Swersky, Milad Hashemi, David Duvenaud et al.ICML 2021 · 113 citations
- BCD Nets: Scalable Variational Approaches for Bayesian Causal DiscoveryChris Cundy, Aditya Grover, Stefano ErmonNeurIPS 2021 · 105 citations
Related papers
- Towards Scalable Bayesian Learning of Causal DAGsJussi Viinikka, Antti Hyttinen, Johan Pensar, Mikko KoivistoNeurIPS 2020 · 49 citations
- A Meta-Learning Approach to Bayesian Causal DiscoveryAnish Dhir, Matthew Ashman, James Requeima, Mark van der WilkICLR 2025
- Reinforcement Causal Structure Learning on Order GraphDezhi Yang, Guoxian Yu, Jun Wang, Zhengtian Wu et al.AAAI 2023 · 20 citations
- Continuous Bayesian Model Selection for Multivariate Causal DiscoveryAnish Dhir, Ruby Sedgwick, Avinash Kori, Ben Glocker et al.ICML 2025
- Structure Learning with Adaptive Random Neighborhood Informed MCMCXitong Liang, Alberto Caron, Samuel Livingstone, Jim E. GriffinNeurIPS 2023 · 5 citations
