A fundamental challenge in Bayesian network structure learning lies in efficiently approximating the posterior distribution of directed acyclic graphs (DAGs). For large, high-dimensional datasets, the task remains beyond the capabilities of current methods. This work advances Markov chain Monte Carlo algorithms by introducing novel moves that simultaneously resample the parents for multiple nodes of the DAG. At the core of these moves is duet sampling, a new generalization of the Metropolis-Hastings algorithm that selects two proposal distributions from a pool at each iteration. One is used for generating a candidate state of the Markov chain and another for evaluating the return to the current state; both are ingredients of an appropriately crafted acceptance criterion. Pairing different proposal distributions provides additional freedom and enables constructing Markov chains that mix more efficiently than their basic Metropolis-Hastings counterparts, at no additional computational cost. Experiments show that our new moves, both individually and in combination, outperform the previous state of the art, which relies on a more restrictive pool of moves. This advantage persists even when letting the previous methods leverage duet sampling to enhance their performance.
Figures & tables
Figure 1: Illustration of an EC move transforming the current DAG G into the proposal G′ . First, a node pair is sampled. In this example the pair is (2,4) . Since there is a directed edge from 2 to 4 , the corresponding edge constraint is c=rem . The nodes 2 and 4 are then orphaned, yielding the intermediate DAG G0 . Next, a new parent set P2′ is sampled from those that ensure acyclicity and satisfy the edge constraint c (in this case, node 4 must not be a parent of 2), producing G2′ . Finally, a new parent set P4′ is sampled from those that ensure acyclicity and satisfy the edge constraint c (node 2 must not be a parent of 4), generating the proposal G′ .
Figure 2: Illustration of an AC move transforming the current DAG G into the proposal G′ . First, a node pair is sampled. In this example, the pair is (3,2) . Since 2 is an ancestor of 3 in G0 , the corresponding ancestor constraint is c=rev , thus the move forces 3 to be an ancestor of 2 in G′ . The nodes 3 and 2 are then orphaned, yielding the intermediate DAG G0 . Next, a new parent set P3′ is sampled from those that maintain acyclicity and satisfy the ancestor constraint c (in this case, node 2 and its descendants in G0 must not be parents of 3 ). This produces the DAG G3′ . Finally, a new parent set P2′ is sampled from those that guarantee acyclicity and satisfy the ancestor constraint c (node 3 must be an ancestor of 2), generating the DAG G′ .
Figure 3: Illustration of a USR move transforming the current DAG G into the proposal G′ . First, a permutation σ is sampled. Here σ=(1,3,2) . The nodes in σ are orphaned, yielding the intermediate DAG G0 . Next, the new parent sets of the nodes in σ are sequentially sampled from those that preserve acyclicity, according to the order given by σ , and incorporated into G0 . In detail, we obtain the DAG Gσ,1′ after sampling P1′ , the DAG Gσ,2′ after sampling P3′ , and finally G′ after sampling P2′ . In this particular case, the only candidate parent set of node 2 is the empty parent set as it is the only one that preserves acyclicity.
Network
#nodes
#edges
MID
H ailfinder
56
66
4
A ndes
223
338
6
P igs
441
592
2
Table 1: Summary of the benchmark networks used in the experiments.
#steps
Algorithm
Hailfinder
Andes
Pigs
USR
2.6\times108
1.2\times107
3.1\times107
EC & AC
7.7\times108
7.3\times107
1.1\times108
FBM
1.7\times1012
1.7\times1012
1.5\times1012
REV
1.9\times109
6.1\times107
6.2\times108
MBR
1.6\times109
7.5\times107
2.1\times108
Table 2: Number of Markov chain steps taken by the single-move algorithms in 15 000 s.
Figure 4: Traceplots of MCMC runs for data sets sampled from large benchmark networks. Columns correspond to data sets. Rows correspond to (groups of) algorithms. For each algorithm, ten independent runs are displayed. For each run, the log-unnormalized posterior probability (log-score) is shown as a function of running time for 100 evenly spaced DAG samples.
Hailfinder
Andes
Pigs
ℓ∗=−497506.9
ℓ∗=−934406.0
ℓ∗=−3321511.0
Algorithm
Δmin
Δmax
WEPD
Δmin
Δmax
WEPD
Δmin
Δmax
WEPD
USR-rev
0
0
0.0074
0
0
0.027
0
0
0.025
USR-rnd
0
0
0.095
0
0
0.044
0
0
0.018
EC
0
5\times102
1.00
0
0
0.29
0
0
0.034
AC
0
1\times103
1.00
0
0
0.080
0
0
0.032
Table 3: Comparison of the highest scores found and the differences of edge probability estimates across 10 independent MCMC runs. Smaller values are better.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Algorithm 1 iMCMC (single step) 1: input target density π(x) 2: input proposal distribution q(v∣x) 3: input involution f(x,v) 4: input current state x 5: sample v∼q(v∣x) 6: propose (x′,v′):=f(x,v) 7: compute the acceptance probability α:=min{1,π(x)q(v∣x)π(x′)q(v′∣x′)∂[x,v]∂f(x,v)} 8: output {x′xwith probability α,with probability 1−α
Algorithm 2 Duet sampling (single step) 1: input target density π(x) 2: input proposal distributions {qk}k∈L 3: input pairing {βkl} on {qk} 4: input current state x 5: sample (x′,k,l)∼βkl(x)qk(x′∣x) 6: ▹ New state x′ got already proposed 7: compute the acceptance probability α:=min{1,π(x)βkl(x)qk(x′∣x)π(x′)βlk(x′)ql(x∣x′)} 8: output {x′xwith probability α,with probability 1−α
Appendix
Table 8
Ancestor relationship between i and j in G′
Descendants
i⇝j
j⇝i
i⇝j , j⇝i
Di(Gj′)
Di(G0)∪Dj(G0)
Di(G0)
Di(G0)
Dj(Gi′)
Dj(G0)
Di(G0)∪Dj(G0)
Dj(G0)
Appendix
Table 4: Descendants of nodes i and j in the intermediate DAGs Gi′ and Gj′ along the forward path from G to G′ .
Network
#nodes
#edges
MID
A sia
8
8
2
S achs
11
17
3
Appendix
Table 5: Summary of the benchmark networks used in the experiments.
Figure 5: The MAD of the best and worst runs of each algorithm on low-dimensional datasets sampled from benchmark networks. Columns correspond to datasets, while rows correspond to different algorithms.
Massachusetts Institute of Technology · This work was conducted while the author was a PhD student at Purdue University, independently of the author’s dissertation research.