Exact Sampling of Directed Acyclic Graphs from Modular Distributions
Abstract
We consider the problem of sampling directed acyclic graphs (DAGs) from a given distribution. We assume the sampling distribution is modular, i.e., the probability of a DAG is a product of local factors, each of which only depends on a node and its parents in the DAG. Using inclusion–exclusion recurrence relations, we give an exact sampler that requires Õ(3^n) time for preprocessing and Õ(2^n) per sample, where n is the number of nodes and Õ suppresses polylogarithmic factors. We also consider the symmetric special case where the factors only depend on the size of the parent set—this covers uniform sampling under indegree constraints. In this case, our exact sampler requires O(n^3) time for preprocessing and O(n^2) per sample; this outperforms the previous best bound even for the uniform distribution. We demonstrate the performance of both samplers also empirically.
Cite
Text
Talvitie et al. "Exact Sampling of Directed Acyclic Graphs from Modular Distributions." Uncertainty in Artificial Intelligence, 2019.Markdown
[Talvitie et al. "Exact Sampling of Directed Acyclic Graphs from Modular Distributions." Uncertainty in Artificial Intelligence, 2019.](https://mlanthology.org/uai/2019/talvitie2019uai-exact/)BibTeX
@inproceedings{talvitie2019uai-exact,
title = {{Exact Sampling of Directed Acyclic Graphs from Modular Distributions}},
author = {Talvitie, Topi and Vuoksenmaa, Aleksis and Koivisto, Mikko},
booktitle = {Uncertainty in Artificial Intelligence},
year = {2019},
pages = {965-974},
volume = {115},
url = {https://mlanthology.org/uai/2019/talvitie2019uai-exact/}
}