Manuscript Offprint
arXiv:2610.30291Generalizing Metropolis-Hastings for DAG Sampling
Abstract
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.
Keywords: acceptance criteria, algorithms, Bayesian networks, Markov chain Monte Carlo, scalability.
1 Introduction
Given the pivotal role of directed acyclic graphs (DAGs) in capturing conditional independencies (Pearl, 1988; Koller and Friedman, 2009) and causal structures (Pearl, 2009), substantial research effort has been devoted to learning DAG models from data. Since the seminal studies by Buntine (1991), Cooper and Herskovits (1992), and Madigan and Raftery (1994), the Bayesian paradigm for statistical inference has become one of the most extensively explored approaches to learning. The Bayesian approach is particularly appealing because it provides a principled formalism for expressing uncertainties about any involved unknowns both before and after seeing the data, by prior and posterior probabilities, respectively (Heckerman et al., 1995).
Computationally, constructing DAGs that accurately represent the posterior distribution has proven to be very demanding. Even finding a single posterior mode is NP-hard (Chickering, 1996), the known exact algorithms being feasible only up to around 30 nodes (Koivisto and Sood, 2004; Silander and Myllymäki, 2006; Yuan and Malone, 2013) or, in
©2026 Daniele Nikzad and Mikko Koivisto.
License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/.
some favorable cases, up to around a hundred of nodes (Bartlett and Cussens, 2017). To tackle larger networks, various search heuristics have been explored, without optimality guarantees (Kitson et al., 2023). As constructing the full DAG posterior is feasible only for DAGs on five or fewer nodes, moderately exponential exact algorithms have been developed to compute low-dimensional marginals, such as edge and ancestor relation probabilities (Koivisto and Sood, 2004; Koivisto, 2006; Pensar et al., 2020; Tian and He, 2009), as well as to sampling DAGs from the posterior (Harviainen and Koivisto, 2024; He et al., 2016; Talvitie et al., 2020). These algorithms are practical up to around 25 nodes. For Bayesian learning of larger DAGs, research has focused on two computational paradigms: Markov chain Monte Carlo (MCMC) methods, which are guaranteed to yield accurate approximations if run long enough (e.g., Friedman and Koller, 2003; Goudie and Mukherjee, 2016; Grzegorczyk and Husmeier, 2008; Niinimäki et al., 2016; Nikzad et al., 2026; Su and Borsuk, 2016; Viinikka et al., 2020), and variational methods that aim to find an optimal proxy posterior in some simplified class of distributions (Annadani et al., 2023; Cundy et al., 2021; Lorch et al., 2021).
Recent work (Nikzad et al., 2026) suggests that the most promising approach to approximate the posterior of larger networks is MCMC on the natural DAG space. Specifically, the work gives highly efficient implementations both for basic single-edge moves (Madigan and York, 1995; Giudici and Castelo, 2003) and for advanced moves that simultaneously resample the parents of two adjacent nodes (Grzegorczyk and Husmeier, 2008) or of a node and its children (Su and Borsuk, 2016). For the latter move types, the key new discovery is a pruning technique that enables discarding possible parent sets as preprocessing, often significantly reducing the computations per parent set update during the Markov chain simulation. The presented algorithm, Gibby, was shown to outperform other approaches: MCMC on a node partition space (BiDAG, Kuipers and Moffa, 2017; Suter et al., 2023), variational inference in a “continuous DAG space” (DiBS, Lorch et al., 2021), and generative flow networks (DAG-GFlowNet, Deleu et al., 2022). However, Gibby also inherits a major weakness of the implemented moves: even when resampling entire parent sets, the moves are constrained to preserve certain adjacencies in the local structure. Another promising option is the blocked Gibbs (BG) move of Goudie and Mukherjee (2016), which resamples the parents for a few randomly selected nodes from their joint full conditional posterior, making so effective use of the local posterior and yielding an efficiently mixing Markov chain. The computational cost of the BG move can likewise be reduced by leveraging the pruning technique of Nikzad et al. (2026). Nevertheless, the computations quickly become prohibitively expensive, unless the block size and the number of parents per node are bounded by small constants.
Motivated by the limitations of existing moves, we ask: Are there other types of moves that enable even more flexible jumps to high-posterior DAGs without compromising computational efficiency?
We will answer this question in the affirmative by introducing novel moves that simultaneously update the parent sets of multiple nodes. Our moves are motivated by two lines of previous work and thus can be divided into two broad classes. First, we study a move that resamples the parents for a random pair of nodes, such that the edge between the nodes is added, removed, or reversed, depending on their current adjacency. This edge-constrained (EC) move extends both the single-edge moves by Giudici and Castelo
(2003) and the edge reversal move by Grzegorczyk and Husmeier (2008). We also present a variant, the ancestor-constrained (AC) move, which imposes constraints on the ancestor relation rather than direct adjacency between the two nodes. The second class of moves is inspired by the BG move. Like BG, our unconstrained sequential resampling (USR) move samples blocks of parent sets for multiple nodes without imposing any constraints other than acyclicity. However, it generates the parent sets sequentially rather than jointly, which significantly reduces the computational cost. In return, a USR move may reject the proposal. We mitigate this shortcoming by leveraging a novel MCMC algorithm that can favor long jumps in the DAG space.
Indeed, the success of the new USR move relies on a generalization of the Metropolis–Hastings (MH) algorithm that, we believe, is of independent interest. The standard MH algorithm (Hastings, 1970; Tierney, 1994) uses an acceptance ratio that applies the same proposal distribution in two directions: from the current state to the proposed state, and vice versa. Our generalization, which we call duet sampling, employs two proposal distributions: one in the forward direction and another in the reverse direction. By using a suitable acceptance criterion, we obtain a reversible Markov chain. The added flexibility allows us to choose pairings of proposal distributions that enhance the mixing properties of the Markov chain. This turns out to be crucial for the efficiency of the USR move, which would perform substantially worse if implemented under the standard Metropolis–Hastings algorithm; we also observe duet sampling to yield a notable gain in (our implementation of) the Markov blanket resampling move of Su and Borsuk (2016). Also the EC and AC moves are naturally written in terms of duet sampling.
The rest of this article is organized as follows. Section 2 introduces the Bayesian approach to learning Bayesian networks and reviews previous algorithms based on simulating Markov chains over the space of DAGs. Section 3 gives the formulation of duet sampling, along with two particular ways to pair proposal distributions: independently at random and deterministically. Section 4 presents the new moves, AC, EC, and USR, with concrete instantiations of the two classes of pairings. Section 5 is dedicated to empirical studies: focusing primarily on large, high-dimensional datasets, we highlight the limitations of previous algorithms and the consistent superiority of our new algorithms. Section 6 concludes and points to directions for future research. We have relegated to the appendix routine proofs and additional analyses that, while likely of secondary interest, are essential for completeness.
2.1 Learning Bayesian Networks
A Bayesian network (BN) represents an -variate probability distribution by a pair , where is a directed acyclic graph (DAG) encoding conditional independences (CIs) among the variables and specifies a distribution over the variables compatible with the CIs. In this model, we let denote the set of nodes of the graph . If is an edge in , we call the parent of and the child of . We denote the sets of parents and children of by and respectively. The set of descendants of , denoted by , consists of nodes to which there is a directed path from in , including node itself. If there is no ambiguity about the graph , we may write simply , , and .
To learn a Bayesian network from data over the variables, we model the data points as independent draws, yielding the likelihood of . Taking a Bayesian approach, we also assign a prior of . Supposing the interest is in the DAG , the result of learning is the posterior distribution of , obtained by the Bayes rule and by marginalizing out. Under commonly assumed structural properties of the prior (Koller and Friedman, 2009, Sec. 18.3.6), the posterior probability of , denoted by , is modular, that is,
where each , which we call a local score, is a product of a prior component and a likelihood component. While in principle the parent set could be any subset of , in practice we restrict to some family of possible parent sets , e.g., by setting some moderate upper bound for the number of parents, say, four or five.
Common choices for the prior term include the uniform prior, which assigns equal probability to all parent sets, and sparsity-inducing priors, which assign lower probabilities as the size of the parent set increases. Closed-form expressions for the marginal likelihood are obtained by adopting likelihood models and priors that permit analytic integration. Among these, the Bayesian Dirichlet equivalent uniform (BDeu) score for discrete data (Buntine, 1991; Heckerman et al., 1995) and the Bayesian Gaussian equivalent for continuous data (BGe) score (Geiger and Heckerman, 2002; Kuipers et al., 2014) allow efficient evaluation of for any given set J. Moreover, both BDeu and BGe are score equivalent, assigning identical scores to DAGs that represent the same conditional independencies.
2.2 Structure MCMC
Structure MCMC refers to MCMC methods that are based on approximately sampling DAGs from the posterior by simulating an ergodic Markov chain whose stationary distribution is . For ergodicity, it suffices that the transition kernel of the chain satisfies the detailed balance condition,
and that the chain is irreducible and aperiodic. Here m stands for a move that specifies the way G is transformed to , e.g., by local changes of individual edges or entire parent sets. Aperiodicity is easily ensured for moves that stay in the same state with positive probability. For irreducibility, it suffices to show that any graph G can be obtained from the empty graph by a sequence of steps, and vice versa.
A common way to guarantee detailed balance is to construct the chain using the Metropolis–Hastings (MH) algorithm (Hastings, 1970). Given the current state G, the algorithm first draws a candidate state from a proposal distribution . Then the candidate is accepted as the new state with probability
(3) otherwise the Markov chain stays at the state . When , a direct calculation shows that satisfies the detailed balance condition (2).
It is often useful to apply multiple moves , each with some probability (Grzegorczyk and Husmeier, 2008; Nikzad et al., 2026; Su and Borsuk, 2016). This results in a mixture proposal distribution . However, it may be computationally demanding to evaluate the probability , especially if the number of mixture components is large. Fortunately, one can avoid that evaluation by using the rule (3) as is, separately for each . Namely, detailed balance holds for the resulting transition kernel, since it holds separately for each move. For further discussion on these two variants, we refer to Besag et al. (1995, p. 63) and Tierney (1998, Sec. 4).
In the framework reviewed above, a move is specified by a proposal distribution and a mixture move by a mixture proposal distribution . We will find this viewpoint too restrictive when we generalize the MH acceptance rule in Section 3. Namely, our duet sampling employs pairs of distributions, and , and a mixture move gets specified only once the pairwise selection probabilities, , are fixed.
2.3 Previous Move Types
The moves considered in the sequel can be viewed as instantiations of the following template. A move begins by orphaning a subset of nodes , i.e., by removing all incoming edges to nodes in from the current DAG , thereby yielding a DAG we denote by . The choice of depends on the move under consideration. Next, a permutation of the nodes in is selected either randomly or deterministically, again depending on the move. Then, a sequence of intermediate DAGs is constructed by sequentially sampling new parent sets of the orphaned nodes , in the order specified by , with probabilities proportional to their local scores , and cumulatively adding the corresponding edges to . The possible parent sets are restricted by move-specific constraints and the requirement to keep the intermediate DAGs acyclic.
Thus, the proposal distribution, composed using the chain rule of probability, becomes
Here, denotes the DAG obtained by incorporating the new parent sets of the first nodes in into the orphaned DAG , and is the family of possible parent sets of node that satisfy the move-specific constraints and do not introduce cycles when incorporated into . When the indices or can be inferred from the context, we may omit them from the notation.
The orphaning phase is crucial, even if it may seem unnecessary. Removing edges reduces the number of descendants of nodes , which allows certain edges or ancestor relationships to be reversed in the proposed DAG , thereby improving the mixing of the Markov chain. Without orphaning, these moves could not reverse ancestor relationships in a single iteration, potentially causing the chain to become trapped at a local mode.
Two move classes, representing the current state of the art, are instantiations of the above template. One is the edge reversal (REV) move of Grzegorczyk and Husmeier (2008).
It proposes the DAG by first drawing an edge ij in the current DAG G uniformly at random. Then the parent sets of the two end nodes of the edge are resampled according to their score, imposing the presence of the reversed edge ji. The sampling order is unspecified in the original article, and the order does not matter: orders and produce the same result. However, forcing the reversal of an edge ij is not always desirable, as one high-probability DAGs may contain an edge between i and j, while another high-probability DAG does not. In this case, the REV move does not provide a straightforward transition between these DAGs, potentially leading to poor exploration of the Markov chain.
Another instantiation is the Markov blanket resampling (MBR) move by Su and Borsuk (2016). It first selects a node uniformly at random and puts . The nodes in this set are then orphaned, and their new parent sets are sequentially sampled according to their scores, following an order given by a randomly selected permutation of . The new parent sets are constrained so that node remains a parent of every node in in the proposed DAG . However, this latter condition preserves adjacencies within and precludes edge reversals in the proposed DAG, which might hinder jumps to high probability regions of the DAG posterior.
The REV and MBR moves fall within the standard MH framework, each proposal being accepted with probability (3). MBR can be generalized within our duet sampling framework to enhance the mixing of the Markov chain; the details are in Appendices D and F,
The blocked Gibbs (BG) move of Goudie and Mukherjee (2016) does not belong to the class of moves described above. Namely, it proposes a DAG by jointly resampling the parent sets for a block of nodes from the full conditional posterior, without specifying any sampling order . Specifically, a new parent set tuple is drawn from the conditional distribution given the parent sets of the nodes outside . As a result, the proposed graph is always accepted. Exact sampling is implemented in two phases: First, an ancestry DAG on , representing constraints on ancestor relationships and corresponding to a set of tuples , is sampled according to its respective (marginal) posterior distribution. Second, conditionally on , each , for , is sampled independently subject to the constraints. Since the algorithm evaluates the unnormalized posterior probability of every possible DAG on , whose number grows superexponentially with the size of the block, this exhaustive evaluation is feasible only for small blocks, typically of size at most three or four.
2.4 Score Pruning and Approximating Score Sums
The normalizing constant in (4) represents the main computational bottleneck of the class of moves described above. It involves summing the scores over all parent sets that satisfy the move-specific constraints. In the worst case, the computational cost scales linearly in the number of possible parent sets of the node. Likewise, for the BG move, the evaluation of the full conditional posterior over all blocks of possible parent sets requires the computation of a similar normalizing constant.
To reduce the possible parent sets that need to be stored in memory and considered when computing the normalizing constants, Nikzad et al. (2026) introduce a pruning technique that discards low-scoring parent sets as preprocessing, thereby significantly reducing the number of summands in the normalizing constants. The key idea is to discard a parent set if its score is lower than an appropriately weighted sum of the scores of its subsets, scaled by an arbitrarily chosen parameter that controls the pruning aggressiveness. Specifically, Nikzad et al. (2026, Theorem 1) consider normalizing constants that take the form of interval sums or intersection sums of , defined for node sets as
respectively. Given , pruning discards some of the possible parent sets so that, when omitting those sets, any interval sum with and any intersection sum remain approximations of the exact sum to within a relative error at most .
Notably, the node-wise approximations suffice for guaranteeing that the error in the resulting DAG posterior distribution is small: after pruning the scores for all nodes with , the total variation distance and the reverse Kullback–Leibler divergence of the pruned DAG posterior from the exact one are bounded by and , respectively (Nikzad et al., 2026, Theorem 2). Since these approximation guarantees concern the DAG posterior itself, they hold regardless of the computational method. In particular, this enables leveraging score pruning also for the blocked Gibbs method, which is not based on computing interval or intersection sums.
However, methods that do rely on computing interval sums (with ) or intersection sums can also leverage other known techniques to further expedite the computations. One simple and effective technique is to sort the possible parent sets of node in decreasing order by the local scores , as preprocessing, and then for given and , sum up the scores of parent sets in this order until the accumulated sum is guaranteed to be within a chosen relative error of the exact sum (Friedman and Koller, 2003; Niinimäki and Koivisto, 2013). Also more sophisticated approaches have been studied (Lehtinen and Koivisto, 2026; Niinimäki and Koivisto, 2013). Importantly, these techniques bring a similar speedup for drawing a random parent set from the corresponding approximate distribution. As the moves we introduce in Section 4, as well as the REV and MBR moves employed by Gibby (Nikzad et al., 2026), require computing intersection and interval sums and sampling from the corresponding distributions, they directly benefit from these techniques. In contrast, the BG move cannot exploit them.
3 Generalizing Metropolis–Hastings for Paired Proposals
We next generalize the standard MH framework of mixture proposals that we reviewed in Section 2.2. The key idea is to extend the original mixture into a double-mixture by not only selecting one proposal distribution , but also pairing it with another distribution . While the candidate for the new state of the chain is still proposed using only , the acceptance criterion will also depend on .
3.1 Duet Sampling
For a formal treatment, let be a set of proposal distributions, indexed by labels from a set . For simplicity, assume that is countable. In the double-mixture, let denote the probability of selecting a pair , allowing dependence on the current state G of the chain. A candidate state is proposed with probability , and is accepted as the new state of the chain with probability
As in the standard MH algorithm, if the candidate is rejected, the chain stays at the current state G. We call this generalization duet sampling, as a duet embodies two components working together in coordination.
With the particular form of the acceptance criterion, it is straightforward to prove that the induced transition kernel satisfies detailed balance.
Theorem 1 The transition kernel obtained by drawing with probability , proposing with probability , and accepting with probability satisfies detailed balance.
Proof By the definitions, we have
By expanding the acceptance probability terms, the detailed balance condition (2) can be written as
(6)
This is seen to hold by swapping (renaming) the labels k and l in the latter summation. ■
Worth noting, duet sampling can also be viewed as an instantiation of involutive MCMC (iMCMC, Neklyudov et al., 2020) and the broader generalized auxiliary-variable Metropolis–Hastings framework of Storvik (2011), both of which unify various known algorithms for constructing reversible Markov chains on discrete, continuous, and mixed state spaces. We discuss the relationship of duet sampling and these frameworks in detail in Appendix A.
When applying duet sampling in a concrete setting, one has to specify the mixture probabilities . We will refer to a probability distribution on , understood as functions of the state , as a pairing on the set of proposal distributions . We will see in Section 4 that the dependence on is necessary for the EC and AC moves, but not for the USR move.
3.2 How to Construct Duet Samplers
An inappropriate choice of pairings can cause the acceptance probability (5) to vanish, resulting in automatic rejection of the proposal. Thus, designing pairings that guarantee a nonzero acceptance probability is desirable. Since the denominator in (5) is necessarily nonzero, as is proposed using and , our focus is therefore on ensuring that the numerator is nonzero. We formalize this requirement as follows:
Definition 2 (Effective pairing) A pairing on is effective if, for all , and ,
How can one construct effective pairings? To address this question, we consider sets of proposal distributions Q that satisfy at least one of two modest conditions. We first introduce these two conditions and then identify the respective pairing templates that guarantee effectiveness.
The first condition on is stronger, requiring that every transition induced by can be reversed by any .
Definition 3 (Strong positivity) A set of proposal distributions is strongly positive if for all , and ,
The second condition is weaker, only requiring that every transition induced by can be reversed by some . However, as becomes evident later, it is useful to require that we can map to by an involution, i.e., a bijection satisfying .
Definition 4 (f-positivity) A set of proposal distributions is positive under an involution (or -positive) if for all , , and ,
Note that strong positivity implies f-positivity under any involution f.
We now describe two simple design templates that yield effective pairings when Q is strongly positive or f-positive. The first template is tailored for strongly positive Q. It simply draws that the proposal distributions and independently of each other. Let denote the marginal probability for all k and G.
Definition 5 (Independent pairing) A pairing on is independent if
Proposition 6 Any strongly positive admits effective independent pairings .
Proof Choose any independent pairing such that for any k, l, G, and ,
Such pairings clearly exist, for we may put, e.g., for all , , and .
Suppose is strongly positive. Then implies . Taken together, these properties imply the condition of effectiveness.
Our second template is designed for sets Q that are positive under some involution f. Now we draw with probability and deterministically assign by .
Definition 7 (Involutive pairing) A pairing on is said to be involutive under (or an -pairing) if is an involution and
Note that in an involutive pairing, the probability must vanish if , since is a bijection and . Furthermore, if were not an involution, then but for some and . Consequently, in (5), rendering the acceptance probability zero. Thus, the requirement that is an involution is a necessary condition for a deterministic pairing to be effective.
Proposition 8 Any f-positive admits effective f-pairings .
Proof Choose any f-pairing such that for any k, G, and ,
Such pairings clearly exist, for we may put, e.g., for all , , and .
Suppose is -positive. Then implies . Taken together, these properties imply the condition of effectiveness.
In some cases, such as in the edge-constrained and ancestor-constrained moves that we will introduce in the next section, the set Q is f-positive with respect to a unique involution f. In contrast, for strongly positive Q we can design effective involutive pairings for each involution , in addition to effective independent pairings. This provides us with complete freedom on the choice of the involution, allowing us to select one that enhances the mixing properties of the Markov chain. As we shall see, this flexibility is exploited by both the Markov blanket resampling move and the newly proposed unconstrained sequential resampling move detailed in the next section.
Finally, we observe a seemingly counterintuitive property. For both independent and involutive pairings, the transition kernel induced by a single move (i.e., component of the double-mixture) does not, in general, satisfy detailed balance. Indeed, we see from (6) that detailed balance holds only after summing over and , not per summand. For a single move, detailed balance only holds when , which corresponds to the trivial involutive pairing where the involution is the identity map. This specific case falls within the standard Metropolis–Hastings framework.
4 New Moves
Leveraging the duet sampling framework introduced in Section 3, we next introduce three new moves that transition from one DAG to another by resampling the parent sets of two or more nodes.
4.1 The Edge-Constrained Move
Suppose the current DAG is G. The edge-constrained (EC) move proposes a new DAG by first drawing a node pair ij with probability , and then sampling new parent sets
and for i and j, respectively. These sets are subject to constraints that depend on whether ij or ji is an edge in G, as follows:
Add ij: if neither ji nor ij is an edge in G, then require .
Remove ij: if ij is an edge in G, then require and .
Reverse to ij: if ji is an edge in G, then require .
Thus, these constraints, we denote by c, are fully determined by G and the nodes i and j; we keep these dependencies implicit in the notation. When it is necessary to explicit the constraint type, we write , , or .
4.1.1 PROPOSAL DISTRIBUTION
Once the constraint has been identified, the nodes and are orphaned, yielding an intermediate DAG . Then, the candidate parent sets and are sampled sequentially from those that preserve acyclicity and satisfy the constraint .
When or , the sampling order does not affect the joint proposal distribution, as the ancestor relationship between i and j, which determines their candidate parents, are already determined by c. Indeed, if c forces i to be a parent of j then the descendants of j in the intermediate DAG cannot be candidate parents for i.
In contrast, when , the ancestor relationship between and in is not known a priori. Thus, the sampling orders and can possibly generate different candidate parent sets for these nodes. We prefer the order because it results in a higher chance of reversing the ancestor relationships between and the descendants of in , which is desirable for improving exploration of the DAG posterior. As discussed in Section 2.3, favoring such reversals is beneficial because, when resampling the parent set of a node , its descendants are excluded from the candidate set to prevent cycles. Thus, the nature of the move makes it difficult to reverse existing ancestor relationships, and design choices that facilitate such reversals become particularly valuable.
Following the order , the proposal distribution associated with the node pair ij and the constraint c becomes
where the DAG is obtained by incorporating the new parent set into . The normalizing constant , which we introduced in its general form in (4), is the sum of the scores of all parent sets of that do not create cycles when added to the DAG , and that satisfy the edge constraint . The term is defined analogously for node with respect to . Figure 1 illustrates how the EC move proposes a transition from to .
Importantly, the normalizing constants and can be written as interval sums of and respectively; see Appendix B for details. Thus, we can apply the techniques mentioned in Section 2.4 to speed up the computation of the terms and sampling from the corresponding distributions.

G



Figure 1: Illustration of an EC move transforming the current DAG G into the proposal . First, a node pair is sampled. In this example the pair is . Since there is a directed edge from 2 to 4, the corresponding edge constraint is . The nodes 2 and 4 are then orphaned, yielding the intermediate DAG . Next, a new parent set is sampled from those that ensure acyclicity and satisfy the edge constraint (in this case, node 4 must not be a parent of 2), producing . Finally, a new parent set is sampled from those that ensure acyclicity and satisfy the edge constraint (node 2 must not be a parent of 4), generating the proposal .
4.1.2 INVOLUTIVE PAIRING AND ACCEPTANCE RATIO
We leverage the generalized acceptance probability defined in (5) to guarantee detailed balance. Specifically, we next give an involution such that the set of proposal distributions of the EC move is -positive. This allows us to construct an effective involutive pairing and thereby guarantee a nonzero acceptance probability.
As there are three possible constraints for each node pair ij, the total number of proposal distributions is . For notational convenience, we define the involution f on the set Q rather on the set of labels. For each ij, let
Lemma 9 The set is positive under f.
Proof The forward transition induced by from to and its resulting backward transition via from share the same orphaned graph for all , , ij, and c. Furthermore, for all ij and c, the edge constraint of is equivalent to the condition of the edge constraint of and vice versa. Therefore, in the backward transition from via , we can incorporate and in with positive probability as no cycle is introduced in the process and the corresponding edge constraint is satisfied. Hence, the set is positive under .
Now, by Proposition 8, the set Q admits effective f-pairings. However, we have already fixed the pairing up to the values of the scalars : the probability of sampling equals the probability of sampling the node pair ij for the unique constraint c whose conditions are satisfied in G, and for the other two constraints c. To see that this particular pairing is effective, observe that
Thus, the acceptance probability (5) reduces to , where for , , and , we have respectively
We have shown the following:
Proposition 10 The f-pairing above is effective, provided that whenever .
In the experiments (Section 5), we set for all node pairs ( ).
4.1.3 COMPARISON WITH RELATED PREVIOUS MOVES
The EC move can be viewed as a composition of the edge-reversal (REV) move of Grzegorczyk and Husmeier (2008) and the single-edge moves (GC) of Giudici and Castelo (2003), which propose a DAG by adding, removing or reversing a single edge. More specifically, REV is a special case of EC, as its proposal distribution is equal to that of EC under the reverse-to ij constraint, multiplied by , where E and denote the edge sets of G and , respectively. By augmenting the REV move with the GC's single-edge dynamics, we allow fast transitions among the three possible configurations of a node pair ij: an edge in either direction or no edge, without systematically favoring any particular configuration.
Unlike GC, EC retains REV's ability to resample the parent sets of i and j, enabling transitions to a substantially broader set of DAGs. This facilitates more effective exploration of the DAG posterior, whereas GC can propose at most DAGs from a given state, thereby precluding longer jumps to high-probability regions.
4.2 The Ancestor-Constrained Move
The ancestor-constrained (AC) move follows the same ideas of the EC move, with the only difference that the constraints concern the ancestor relationship between the selected nodes i and j, not the adjacency relationship. Let us write when i is an ancestor of j in the graph in question. The constraints between i and j are expressed as follows:
Add . If and in , then require in .
Remove . If in , then require and in .
Reverse to . If in , then require in .
Thus, the constraints are determined by the ancestor relationship between nodes i and j in the DAG G.

G



Figure 2: Illustration of an AC move transforming the current DAG G into the proposal . First, a node pair is sampled. In this example, the pair is . Since 2 is an ancestor of 3 in , the corresponding ancestor constraint is , thus the move forces 3 to be an ancestor of 2 in . The nodes 3 and 2 are then orphaned, yielding the intermediate DAG . Next, a new parent set is sampled from those that maintain acyclicity and satisfy the ancestor constraint (in this case, node 2 and its descendants in must not be parents of 3). This produces the DAG . Finally, a new parent set is sampled from those that guarantee acyclicity and satisfy the ancestor constraint (node 3 must be an ancestor of 2), generating the DAG .
The sampling order of the new parent sets does not affect the possible parent sets for nodes i and j, since the ancestor relations in are already determined by the ancestor constraints shown above. The proposal distribution is the same as (7) although the corresponding constraints differ. Figure 2 illustrates how the AC move generates a proposal .
Lemma 9, which establishes the f-positivity of the set of proposal distribution of the EC move, also applies to the AC move. Consequently, Proposition 10, which guarantees effectiveness, extends directly to AC.
It is not difficult to see that the normalizing constants of the AC move can be written as intersection and interval sums; see Appendix B for details. Thus, we may leverage the techniques mentioned in Section 2.4 to speed up the computations.
4.3 The Unconstrained Sequential Resampling Move
The unconstrained sequential resampling (USR) move is designed to overcome the high computational cost of the blocked Gibbs (BG) move of Goudie and Mukherjee (2016), while retaining the ability to resample a block of parent sets without imposing constraints other than acyclicity. By sampling the new parent sets sequentially rather than jointly, USR can generate a DAG proposal much faster than BG. However, the gained efficiency comes at the expense of losing the 100% acceptance rate of Gibbs sampling. We turn this seeming shortcoming into an advantage by leveraging the flexibility of duet sampling to construct chains with favorable mixing properties. Indeed, it is known that suitably designed Metropolis–Hastings type algorithms can, in general, improve upon Gibbs sampling by reducing autocorrelation and asymptotic variance (Neal, 1998; Peskun, 1973).
4.3.1 PROPOSAL DISTRIBUTION
The USR move first selects a random node subset S, with the block size specified as an input parameter. Then a permutation of the nodes in S is sampled with probability , independently of the current state G. Next, following the procedure detailed in Section 2.3, the DAG is obtained by orphaning the nodes in S, and a sequence of intermediate DAGs are constructed as follows. Starting from , for each node in S in the order induced by , a new parent set is sampled with probability proportional to its score and incorporated into the intermediate DAG at hand. No edge or ancestor constraints are enforced; the only restriction is that the proposed parent set must not introduce cycles in the intermediate DAGs. Following the notation used in Section 2.3, the proposal distribution takes the form
Recall that is the DAG obtained by adding the parent sets to the orphaned DAG . The term is the sum of the scores of all possible parents sets of node that would not create a cycle when incorporated to the DAG . In the notation, we do not include any additional move label “m”, since the proposal distribution is completely determined by . Figure 3 illustrates how the USR move proposes a new DAG from G.
Since no constraints beyond acyclicity is imposed on the new parent sets, each normalizing term is an interval sum with . Thus, the techniques mentioned in Section 2.4 can be leveraged for computational speedups.
The computational cost of the total normalizing constant scales linearly with the size of the set S, making the computations feasible even for large S. However, large sets S are not necessarily desirable. Namely, there may be high-probability DAGs that can be proposed with non-negligible probability only under node orderings that match some reverse topological ordering of . When is small, the probability of sampling a matching node ordering is relatively high, whereas for large the chances are small, the number of all possible node orderings scaling as . Moreover, the larger the size , the larger the risk of disrupting high-scoring substructures of the current DAG, that may be difficult to recover using a non-matching node ordering. On the other hand, small restricts the set of DAGs that can be proposed from the current DAG G, making the Markov chain more likely to get trapped in a local mode. Consequently, choosing the block size involves a trade-off between enabling long jumps in the DAG space and avoiding the proposal of low-probability DAGs.
- We say that an ordering on matches an ordering on if the ordering of the nodes in equals their relative ordering in , that is, is a restriction of to . When selecting the parent set of a node in , the subsequent nodes are available as candidate parents, whereas the predecessors might not be. By sequentially integrating the parent sets of the nodes in into the intermediate DAG, we progressively reduce the pool of candidate parents for subsequent nodes. This reduction is maximized when matches a reverse topological ordering of , making such an ordering the most favorable for proposing .

Figure 3: Illustration of a USR move transforming the current DAG G into the proposal . First, a permutation is sampled. Here . The nodes in are orphaned, yielding the intermediate DAG . 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 . In detail, we obtain the DAG after sampling , the DAG after sampling , and finally after sampling . 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.
4.3.2 Move Variants Through Independent and Involutive Pairings
To complete the specification of the USR move, we select an appropriate pairing of the proposal distributions . It will be convenient to consider pairings in the set of permutations on S, which we denote by . While pairing a permutation deterministically with itself would amount to using the standard MH algorithm, duet sampling enables also other constructions, as described in Section 3.
Before selecting the suitable pairings, we establish strong positivity of the set .
Lemma 11 The set is strongly positive.
Proof When with is used to propose from , the orphaned graph is identical to that obtained by performing a USR move from using any permutation . Thus, in the backward transition from via any with , we can iteratively incorporate the parent sets in the intermediate DAGs with positive probability, as no cycle is generated in the process. This guarantees strong positivity of .
This fact allows us to construct variants of the USR move that exploit either an independent or involutive pairing. Each variant is specified by the probabilities of selecting the pair ; for simplicity, we let these probabilities be independent of the current state G. The acceptance probability of the generic USR move (per mixture component) becomes
For an independent pairing, we put with some probability distribution on . We will refer to this as a USR-rnd move. Note that the terms and cancel each other in the ratio (9).
For an involutive pairing, we can freely select the involution to couple and . We consider two specific involutions: the identity map and the reversal map , where is obtained by reversing the order of elements in . We refer to the resulting two moves as USR-id and USR-rev, respectively. Note that USR-id is the variant one would obtain using the standard MH algorithm.
Recall that strong positivity implies f-positivity under any involution f. By Propositions 6 and 8, we get the following:
Proposition 12 The pairings in the USR-rnd move are effective.
Proposition 13 The pairings in the USR-rev move are effective, provided that whenever .
For simplicity, in the experiments reported in Section 5, we set for all , consistently across all the three USR move variants.
The USR-id is inferior to USR-rev and USR-rnd. The acceptance rate of USR-id is low for DAG proposals that reverse the ancestor relationship between nodes, causing the Markov chain to get stuck in regions of the posterior containing DAGs with similar ancestor relationships. Conversely, USR-rev promotes longer jumps in the DAG space by favoring proposals that reverse ancestor relationships in the current DAG. The USR-rnd variant allows the selection, with probability , of a backward permutation that maximizes the acceptance probability (9). Specifically, following the reasoning of Footnote 1, when matches some reverse topological ordering of G, the reduction of the pool of candidate parents of the nodes in the forward permutation is maximized, thereby minimizing . We compare these variants both theoretically and empirically in Appendices D and F. The findings extend to the Markov blanket resampling (MBR) move, which also operates using a strongly positive set of proposal distributions and sequentially resamples parent sets.
5 Experimental Comparisons
We have evaluated the performance of the DAG samplers on large, high-dimensional data sets to assess their robustness in challenging settings. Our study concerns the computational efficiency of different algorithms for approximating the same posterior distribution. The algorithms being agnostic to the specific statistical model employed (up to the modularity property), studying how well different models fit individual data sets or particular classes of data sets falls beyond the scope of the present work. We begin by describing the experimental setup, followed by the evaluation metrics and the corresponding results.
5.1 Experimental Setup
The next subsections introduce the compared samplers, the data sets used in the experiments, the Bayesian statistical model used, and the MCMC implementation.
5.1.1 ALGORITHMS
We consider both single-move samplers and hybrid variants that combine multiple move types. For all moves, we employ the bottom-up pruning method by Nikzad et al. (2026) described in Section 2.4. As discussed there, this method consistently bounds the total variation distance between the approximate and exact posteriors by , where is the number of nodes and is an input parameter set by the user. In our experiments, we set . Below, we list the moves considered in the experiments.
USR The unconstrained sequential resampling move, detailed in Section 4.3. We compare only the USR-rev and USR-rnd variants, as we show in Appendices D and F that USR-id is inferior in performance. We set the block size to ; based on our preliminary studies (not shown), this rule of thumb works well for networks of different sizes, including the small networks examined in Appendix F.
EC The edge-constrained move, detailed in Section 4.1.
AC The ancestor-constrained move, detailed in Section 4.2.
FBM The fast basic moves by Nikzad et al. (2026).
REV The edge reversal move by Grzegorczyk and Husmeier (2008).
MBR The Markov blanket resampling move by Su and Borsuk (2016). We implement it within the duet sampling framework and, analogously to the USR move, we compare only the MBR-rev and MBR-rnd variants. Appendices D and F provide theoretical and empirical evidence that the original MBR-id variant performs poorly compared to these alternatives.
BG The blocked Gibbs move by Goudie and Mukherjee (2016). We set the block size to 2, 3, or 4, for the move is computationally infeasible for larger values. For comparison, Goudie and Mukherjee (2016) set the maximum block size to 3.
MIX This is a hybrid move that combines the newly introduced moves: for every 12 USR-rev moves, it performs 4 USR-rnd moves, 3 EC moves, and 3 AC moves.
Gibby The Gibby algorithm by Nikzad et al. (2026). It uses a hybrid move that alternates between the FBM, REV, and MBR moves. We integrate the previously described MBR variants into the Gibby algorithm while keeping all other default parameters unchanged. We refer to the resulting variants as Gibby-rev and Gibby-rnd, depending on the MBR variant employed.
We have implemented the new moves and the BG move on top of the code base of Gibby (Nikzad et al., 2026), while retaining the implementations of Gibby and its associated
| Network | #nodes | #edges | MID |
|---|---|---|---|
| HAILFINDER | 56 | 66 | 4 |
| ANDES | 223 | 338 | 6 |
| PIGS | 441 | 592 | 2 |
Table 1: Summary of the benchmark networks used in the experiments.
moves provided therein. Our version of the BG move aims at high performance following the architecture of Goudie and Mukherjee (2016) and extends it to support score pruning. Our code is available at https://github.com/sums-of-products/duetto. Further details of the implementations and computing environment are provided in Appendix E.
5.1.2 DATA SETS
We focus on large data sets consisting of 10 000 data points sampled from large discrete benchmark Bayesian networks (Scutari, 2022). These data sets induce posterior distributions that are challenging to explore and thereby suitable for studying the limitations of the samplers. Table 1 summarizes the benchmark networks considered in the experiments, reporting the number of nodes, the number of edges, and the maximum in-degree (MID), i.e., the size of largest parent set in the network. We will refer to the generated data sets simply by the name of the generating network. For more details on the data sets, we refer the reader to Appendix E.
5.1.3 BAYESIAN MODEL
We used the BDeu score, with equivalent sample size equal to 1, together with the so-called fair structure prior (Friedman and Koller, 2003; Eggeling et al., 2019), which favors sparser graphs by setting the prior probability of to be proportional to . To reduce the computational burden associated with parent-set scoring, the prior probability of parent sets whose size exceeds the MID of the data-generating network is set to zero.
Furthermore, due to computational constraints, for the ANDES data set we restricted the size of parent sets that contain nodes outside the top 64 candidate parents to at most three. The top candidate parents are the nodes associated with the highest-scoring parent sets of size 1. This is the same approach as in Nikzad et al. (2026).
5.1.4 MCMC RUNS
Ten independent runs per data set were carried out for each algorithm, each initialized from the empty DAG. Since the REV move requires that the current DAG contains at least one edge, the chains that perform only REV moves were initialized with 1 000 FBM steps. Each algorithm was run for 15 000 seconds. Table 2 summarizes the total number of iterations completed by the single-move samplers. The move variants are grouped together, as their computational costs are approximately equal.
Varying thinning factors were applied to each algorithm to yield comparable sample sizes of DAGs for the evaluation statistics (see the next subsection). The thinning factors were also chosen to keep the memory requirement for storing the sampled DAGs manageable.
| Algorithm | #steps | ||
|---|---|---|---|
| HAILFINDER | ANDES | PIGS | |
| USR | |||
| EC & AC | |||
| FBM | |||
| REV | |||
| MBR | |||
Table 2: Number of Markov chain steps taken by the single-move algorithms in 15 000 s.
After thinning, the sample sizes were roughly 100 000 for HAILFINDER, 30 000 for ANDES, and 20 000 for PIGS.
5.2 Results
By visually inspecting the traceplots (Figure 4), we can identify cases where an algorithm fails to consistently converge close to the posterior distribution. FBM, REV, and MBR fail across all data sets and move variants, while Gibby performs well only on ANDES. For BG, the traceplots indicate two different problems. On HAILFINDER individual runs can become trapped near local modes regardless of block size. On ANDES and PIGS, it is unclear whether exploration is simply slow or whether the runs become trapped near local modes. Overall, BG shows relatively good performance only on ANDES with block size 2 and on PIGS with block sizes 2 and 3. In contrast, the newly proposed moves consistently reach the main mode of the posterior distribution rapidly, with the only exceptions being EC and AC on HAILFINDER.
As traceplots are too coarse to reveal more subtle issues in mixing and convergence, we also inspect two additional convergence diagnostics (Table 3). First, for each data set, we consider the highest logarithmic score (i.e., unnormalized log-posterior probability) of the DAGs visited by the -th run of algorithm . The highest log-scores provide us insight into the algorithm's ability to climb high-probability regions and escape local modes. We record both the maximum and the minimum log-score over the ten runs. Denoting by the largest over all algorithms , we report the deviations
Unlike the raw -values, the -values are comparable across data sets and enable displaying simple numbers. Specifically, if equals 0 for a data set, then algorithm found the highest scoring DAGs consistently in all ten runs.
We also report the worst edge probability difference (WEPD), defined as the largest absolute difference in the edge probability estimates between any two independent runs,

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.
| Algorithm | HAILFINDER | ANDES | PIGS | ||||||
|---|---|---|---|---|---|---|---|---|---|
| WEPD | WEPD | WEPD | |||||||
| USR-rev | |||||||||
| USR-rnd | |||||||||
| EC | |||||||||
| AC | |||||||||
| MIX | |||||||||
| FBM | |||||||||
| REV | |||||||||
| MBR-rev | |||||||||
| MBR-rnd | |||||||||
| Gibby-rev | |||||||||
| Gibby-rnd | |||||||||
| BG () | |||||||||
| BG () | |||||||||
| BG () | |||||||||
Table 3: Comparison of the highest scores found and the differences of edge probability estimates across 10 independent MCMC runs. Smaller values are better.
computed over all runs of a given algorithm. More precisely,
where is the estimated posterior probability of the presence of edge based on the -th MCMC run. The estimate is simply the relative frequency
where is the -th sampled DAG in run , and is the total number of sampled DAGs in the chain. The WEPD aims to assess whether independent runs converge to the same distribution by comparing the empirical marginal distributions on node pairs (potential edges). While measuring convergence to the exact distributions on large networks is computationally infeasible, in Appendix F we present results against the exact marginal posterior distributions on small networks.
These metrics, displayed in Table 3, suggest that consistently reaching the highest-probability mode across the ten runs is generally associated with consistent edge-probability estimates across runs. There are, however, notable exceptions. For BG on ANDES with block size 2 and on PIGS with block sizes 2 and 3, we have , while the corresponding WEPD values are 0.48, 0.65, and 0.88, respectively, which are relatively large. Indeed, the traceplots indicate that BG converges slowly, with several runs reaching the highest-probability mode only after hours of exploration. A similar discrepancy occurs for EC on
ANDES: although , the WEPD is 0.29. This can be explained by a single run that spent a relatively long initial period in lower-probability regions before reaching the highest-probability modes, as is clearly visible in the traceplot. On the other hand, Gibby-rev on ANDES shows that a low WEPD can be achieved even when the worst run does not reach the highest-probability mode ( ). This should not be interpreted as a failure case. Rather, it indicates that the posterior contains far fewer DAGs attaining the highest probability than DAGs with slightly lower probability. Consequently, DAGs in the highest mode might not get sampled by the Markov chain, without this affecting the estimation of low-dimensional marginals.
HAILFINDER appears to be the most challenging of the three benchmarks despite its relatively small number of nodes (n = 56): only three algorithms achieve a small WEPD. On that data set, the best-performing algorithm is USR-rev by large WEPD-margins to the second-best USR-rnd and the third-best MIX; for the latter two, the larger WEDP values are explained by a few unlucky runs that required longer “burn-in” periods (see the traceplots).
5.3 Conclusions
In summary, the results reflect the limitations of the FBM, REV, MBR, and BG moves discussed in Sections 2.3 and 4.1.3, and are well aligned with the motivations underlying the newly proposed USR, EC, and AC moves. However, the EC and AC moves can fail when used alone (cf. the results on HAILFINDER). This is because they orphan and resample the parent sets of only two nodes, which in some instances can hinder transitions to high-probability DAGs. The HAILFINDER traceplots reveal similar limitations for the BG move, which is only feasible with small block sizes. Furthermore, when the block size is 4, BG fails to reach high-probability regions of the DAG posterior within the allotted time in the ANDES and PIGS experiments. The USR move variants are more successful because they are fast while still being able to orphan and informatively resample the parent sets of a larger number of nodes in a single iteration.
6 Concluding Remarks
Structure MCMC currently stands out as the most promising method for computing summaries of posterior distributions of DAGs (Nikzad et al., 2026). The main contributions of the present work, namely duet sampling and the new moves in the DAG space, further advance the framework, enabling reliable Bayesian inference on large data sets. Below, we discuss the key implications, highlight some remaining challenges, and outline directions for future research.
The key advantage of duet sampling, compared to basic Metropolis–Hastings (MH), is the possibility to tune the acceptance rule by balancing the “forward proposal distribution” by a possibly different “backward proposal distribution”, yielding a more informative acceptance criterion. While duet sampling can be viewed as a special case of even more general algorithms for constructing reversible Markov chains, specifically the involutive MCMC by Neklyudov et al. (2020) and the related earlier framework by Storvik (2011), duet sampling gives a novel concrete template that we may expect to find applications also in other settings.
The new moves in the DAG space, namely, the edge-constrained (EC) move, the ancestor-constrained (AC) move, and the unconstrained sequential sampling (USR) move, all leverage duet sampling. For the EC and AC moves, the duet sampling formulation is a way to show that the chain is reversible with the desired stationary distribution. For the USR move, basic MH corresponds to one possible move variant, which, however, appeared to perform poorly: the basic MH acceptance ratio favors the preservation of the ancestor relationships, discouraging the acceptance of DAGs that reverse some ancestor relationships of the current DAG. In contrast, duet sampling enables the construction of move variants with opposite behavior, encouraging the acceptance of DAGs that differ substantially from the current DAG.
In our empirical study, the USR-rev move, in which the backward proposal distribution reverses the permutation of the selected node block, achieved the best overall performance among the individual moves across the benchmark data sets and repeated runs. Although we did not encounter any failure cases for USR-rev in our experiments, its performance is not guaranteed across all data sets. Combining different moves can mitigate the limitations of individual moves and promote more reliable exploration. For this reason, we recommend MIX, which combines the USR-rev, USR-rnd, EC, and AC moves, as the most robust choice. The EC and AC moves complement the USR move by rapidly identifying small high-probability substructures, while the USR move enables flexible jumps between high-probability DAGs that differ in several parent sets.
One major challenge of the taken approach is the memory and time requirements of precomputing the needed local scores. When the number of nodes is large and nodes are allowed to have many parents, even if score puning is effective, we may have to restrict the possible parents of each node to some pre-selected set of candidate parents, a common practice also in previous works (Friedman and Koller, 2003; Nikzad et al., 2026; Viinikka et al., 2020). For example, for the ANDES data set, with 223 nodes, we employed a simple heuristic to select 64 candidate parents for each node. While we may expect the selected candidates contain the most “relevant” nodes, we currently have no good way to bound the bias caused by ignoring the remaining possible parents. In fact, the study of Viinikka et al. (2020) shows that various natural heuristics for selecting candidate parents can miss some important nodes in the candidates. These issues warrant further investigations.
Acknowledgments and Disclosure of Funding
The authors thank Juha Harviainen and Jack Kuipers for fruitful discussions on algorithmic ideas related to this work. The research was partially supported by the Research Council of Finland, grant 351156.
Appendix A. MCMC Frameworks Related to Duet Sampling
We place duet sampling within a broader class of algorithms for constructing reversible Markov chains. First, we show that duet sampling can be viewed as an instantiation of involutive MCMC (iMCMC) of Neklyudov et al. (2020). Then we continue by observing that iMCMC itself is a special case of the more general auxiliary-variable Metropolis–Hastings algorithm of Storvik (2011).
A.1 Involutive MCMC
Neklyudov et al. (2020) provide iMCMC as a unifying perspective encompassing a broad class of algorithms, from basic Metropolis–Hastings (Hastings, 1970) to reversible-jump MCMC (Green, 1995) and sample-adaptive MCMC (Zhu, 2019), within a common mathematical structure. It also offers a principled approach for building new samplers or extending existing ones.
To construct a Markov chain with stationary density , iMCMC takes as input a user-defined involutive transformation , i.e., deterministic mapping that is its own inverse, defined on an extended state space augmented with an auxiliary variable . Combined with a proposal distribution and an appropriate acceptance rule, one obtains a transition kernel that satisfies detailed balance. Algorithm 1 shows a single step of iMCMC.
To see how duet sampling is obtained as a special case of iMCMC, we write duet sampling in a fashion similar to iMCMC in Algorithm 2. We choose the auxiliary variable v and the involution in a particular way: we put and , where . Note that this involution simply swaps x and , as well as k and l, i.e., ; the Jacobian of f equals 1.
Algorithm 1 iMCMC (single step)
1: input target density 2: input proposal distribution 3: input involution 4: input current state 5: sample 6: propose 7: compute the acceptance probability
8: output
Algorithm 2 Duet sampling (single step)
1: input target density 2: input proposal distributions 3: input pairing on 4: input current state 5: sample 6: New state got already proposed 7: compute the acceptance probability
8: output
A.2 Auxiliary-Variable Metropolis–Hastings
To place iMCMC in a broader context, we briefly review the generalized auxiliary-variable Metropolis–Hastings framework of Storvik (2011). Here, Markov chains are constructed on an extended state space by augmenting the target distribution with auxiliary variables and defining proposals through arbitrary transformations on the augmented space. Neklyudov et al. (2020) mention this framework as earlier work related to iMCMC, but they do not review the relationship in detail.
The acceptance probability is obtained by incorporating the forward and reverse transition probabilities induced by the proposed transformation, yielding a Metropolis–Hastings correction that guarantees detailed balance with respect to the augmented target distribution. The augmented target distribution is constructed to have the original target distribution as its marginal. The resulting Markov chain is invariant with respect to the augmented target, and therefore preserves the desired target distribution after integrating out the auxiliary variables. The acceptance probability within this framework can be written as
Here, denotes the current state, is the auxiliary variable; is the target distribution of interest, and is an auxiliary conditional density defining the augmented target . Importantly, as previously stated, marginalizes to .
The iMCMC framework is a particular case of this construction, obtained by deterministically generating from via an involutive mapping , and by setting . We introduce infinitesimal volume elements in order to formulate a change of variable on , since transformations act on the underlying reference measure rather than directly on density functions. The change-of-variables formula then gives
with
By substituting (12) into (11) and canceling out dx dv, we get
By substituting (13) into (10) and setting , the acceptance probability in (10) reduces to the iMCMC acceptance probability given in Algorithm 1.
Appendix B. Normalizing Constants of the EC and AC Moves
We explicitly derive the normalizing constants of the proposal distribution of the edge-constrained(EC) and ancestor-constrained (AC) moves (7) and show that they are of the forms detailed in Section 2.4, thereby allowing faster approximate computation. Specifically, the requirement is that the terms can be expressed, for some sets , as either an interval sum with or an intersection sum of , defined, respectively, as
It is immediate that, in order to preserve acyclicity, the descendants of a node cannot be considered as possible parents of that node. We therefore omit this condition when describing the individual cases. Recall that the set of descendants of node j, denoted by , includes j itself by definition. Furthermore, as stated in Section 4.1, the new parent set of node i is sampled before that of node j.
B.1 The EC Move
We group the normalizing constants according to the constraint imposed. The add ij move and reverse-to ij moves impose the same constraints on the new DAG.
B.1.1 ADD ij AND REVERSE-TO ij
• Since the descendants of in cannot be parents of , the terms and are interval sums with
• Since must be a parent of , the terms and are interval sums with
B.1.2 REMOVE ij
• Since cannot be a parent of in , the term is an interval sum with
• Since cannot be a parent of in , the term is an interval sum with
B.2 The AC Move
Again, we group the normalizing constants according to the constraint imposed, even thought now the normalizing constants for node i are equal for all moves.
B.2.1 ADD AND REVERSE-TO
• Since the descendants of in cannot be parents of in , the terms and are interval sums with
• Since the parent set of in must intersect , the terms and are intersection sums with
B.2.2 REMOVE
• Since the descendants of in cannot be parents of in , the term is an interval sums with
• Since the descendants of in cannot be parents of in , the term is an interval sum with
Appendix C. Convergence of the Chains Generated by the New Moves
We show that the Markov chains obtained by the edge-constrained (EC), ancestor-constrained (AC) and unconstrained sequential resampling (USR) moves converge to the stationary distribution . Convergence is guaranteed when the chain is irreducible, aperiodic, and satisfies the detailed balance condition. Since the moves fall within the duet sampling framework, detailed balance is ensured by Theorem 1.
To establish irreducibility and aperiodicity, we will rely on the following assumptions about the target distribution:
(modularity)
(positive empty)
for the empty DAG
In fact, we will only need the latter assumption for EC and AC. To avoid degenerate cases, we assume that there are (at least) two DAGs and with and .
Naturally, we will only consider the variants of EC, AC, and USR that are obtained using effective pairings (Propositions 10, 12, 13). In other words, we assume the following:
(effectiveness)
C.1 Irreducibility
A Markov chain is irreducible if every state , with , can be reached from every other state , with , in a finite number of steps with positive probability.
C.1.1 EC AND AC
Consider first the EC move. State can be reached from as follows: First, reach the empty graph by a finite number of remove ij moves, each assigning the empty parent sets to nodes i and j. Second, reach from by a finite number of add ij moves, where ij is selected such that edge ij is absent in the intermediate graph but present in , and assigning nodes i and j their parent sets in graph .
By the two assumptions, for every intermediate graph . Consequently, each intermediate graph is proposed with positive probability. Since the pairing is effective (Proposition 10), also the respective transition probability is positive.
For the AC move, the proof is analogous, by analyzing the ancestor relations between nodes rather than the edges connecting them.
C.1.2 USR
To reach from , instead of going via the empty graph, we directly replace the parent set of each node by its parent set in . This is possible if processing the nodes in a topological ordering of , such that for every edge in , node precedes in . Supposing the USR move uses block size , we partition into segments of size ; if necessary, the final segment may overlap with the preceding one to ensure that it also has size .
The key observation is that for each node , after updating the parent sets for all nodes that precede in , the parent set is proposed with positive probability. This is because its local score is positive, by modularity, and because it cannot create a cycle, as in the obtained intermediate graph the ancestors of are the same as in . Since the pairing is effective, the transition probability to each intermediate DAG is positive.
C.2 Aperiodicity
A Markov chain is aperiodic if, for every state G with , the greatest common divisor of the lengths of all possible return paths to G equals 1. Aperiodicity could be easily ensured by modifying the chain so that it stays in the current with some small positive probability. However, below we prove aperiodicity without assuming such modifications, jointly for the EC and AC moves, and separately for the USR move.
C.2.1 EC AND AC
Since the chain is irreducible, it suffices to show that there exists a DAG G with such that the chain can return to G with positive probability in both 2 and 3 steps.
Consider first the EC move. By the assumptions, we have and for the empty DAG and some other DAG in which only one node has a nonempty parent set; we may assume the parent set contains node . Clearly, the transitions from to and back to have positive probabilities (by the add and remove moves).
Now, suppose there is a third DAG with in which only node has a nonempty parent set that contains node . Clearly the transition from to occurs with positive probability (by the add move). But also the transition from to occurs with positive probability (by the reverse-to move). Thus, the chain can return with positive probability to in exactly 3 steps.
For the AC move, the proof is analogous, since any DAG that is reached from G via an EC move can also be reached from G via an AC move.
C.2.2 USR
It suffices to observe that at any DAG G with , the same DAG G is proposed and accepted as the next state with positive probability. This holds because no constraints other than acyclicity are imposed on the new parent sets.
Appendix D. Comparison Between USR Move Variants
This section compares the properties of the involutive variants of the unconstrained sequential resampling (USR) move. We show that the use of the involution encourages the acceptance of high-scoring DAGs in which the ancestor relationships between some nodes in the current DAG are reversed, thereby enhancing the mixing of the chain. In contrast, the USR-id variant discourages such reversals, instead favoring the acceptance of DAGs in which ancestor relationships are maintained.
D.1 Transition Probabilities of the USR-rev and USR-id Moves
We will show the said difference of USR-rev and USR-id by comparing their transition probabilities from any current DAG G to any proposed DAG . While we will assume for simplicity that the block size is , the findings are seen to generalize also to . In what follows, we let .
To simplify the analysis, we assume that , , and we set for all . We adopt the notation of the EC and AC moves, for it is more concise and also applies to the USR move when . Thus, we denote the intermediate DAGs obtained by incorporating the parent sets and into by and , respectively. Since we only compare variants that leverage involutive pairings, we denote the acceptance ratio (9) by , where is the node ordering used in the forward path to , and is the involution that specifies the node ordering used in the backward path to .
Recall that the USR move variants share the same proposal mechanism and differ only in their acceptance ratios. The transition probability from G to is
where
With , the acceptance probabilities are
With , the acceptance probabilities are
To compare to , we compare the normalizing terms and of the varying DAGs appearing in the corresponding acceptance ratios. We make use of the fact
| Descendants | Ancestor relationship between and in | ||
|---|---|---|---|
Table 4: Descendants of nodes and in the intermediate DAGs and along the forward path from to .
that grows with the set of candidate parents of node , i.e., the set of non-descendants of in the DAG at hand: If , then , for any and . Also, if , then . Thus, instead of directly considering the normalizing constants, we may compare the sets of descendants of nodes and in the intermediate DAGs.
Note that if the new parent set of the first node in the permutation contains a descendant of the second node, then the descendant set of the second node is augmented with the descendant set of the first node. Conversely, if the new parent set of the first node contains no descendant of the second node, no such augmentation occurs. This distinction is the only factor that we take into account when we analyze the normalizing constants. Thus, to compare the transition probabilities of the two move variants, we need to first characterize the ancestor relationships between the nodes and in the proposed DAG, both in the forward and backward path to and , respectively.
To this end, for each scenario, we identify the descendant sets of and in the intermediate DAGs in terms of the sets , , or their union, as displayed in Table 4. We omit from the table the descendant sets of and in the orphaned DAG , which are, by definition, and . To obtain the descendant sets of and in the intermediate DAGs along the backward transition from to , we simply replace , and in Table 4 with , , and , respectively.
The following proposition covers all the nine cases corresponding to the three possible ancestor configurations for both and . However, in the statement we omit the cases that follow by symmetry, that is, by swapping and .
Proposition 14 For all DAGs and and nodes and , we have
(i) if and in or ;
(ii) if in and in ;
(iii) if in both and .
Proof We prove the claims separately.
(i) Suppose first that and in . For all the possible ancestor configurations between and in , by Table 4, we have and . Thus, we obtain , which implies .
Suppose then that and in . For all the possible ancestor configurations between and in , by Table 4, we have and , yielding and , respectively. Thus, .
(ii) Suppose that in and in . By Table 4 we have and , which imply and . Consequently, .
(iii) Suppose that in both and . By Table 4 we have and , which imply and . Consequently, .
The above analysis also reveals distinct failure cases for both variants. Specifically, if , then under case (ii), whereas under case (iii). To see this, observe that in either case,
rendering , thereby causing the first term in (14) to vanish. It remains to show that also the second term in (14) vanishes. For case (ii), since , we have . Similarly, for case (iii), since , we have .
D.2 Remarks and Generalization
The USR-id move encourages exploration of local modes that preserve the ancestor relationship between the nodes, while discouraging the acceptance of DAGs that would reverse ancestor relationships. Conversely, the USR-rev move encourages the reversal of ancestor relationships between nodes and consequently promotes more significant structural changes in the current DAG. This reduces autocorrelation and facilitates more efficient exploration of the posterior distribution. As discussed in Section 2.3, these parent-set resampling moves, by design, struggle to propose DAGs where the ancestor relationships are reversed. Therefore, variants that alleviate this limitation by promoting the acceptance of such reversals are preferred.
An illustrative example can help highlight the advantageous properties of the USR-rev move compared to the USR-id move. Consider three high-scoring DAGs , , and . The DAGs and share the same ancestor relation , whereas in . By performing the USR-id move, it is easy to transition from to , but reaching from either or may be difficult. In contrast, the USR-rev move discourages the direct transition from to , yet it still allows easy exploration of all three DAGs by favoring the transition from to and then to .
These results naturally extend to the case . Namely, a similar analysis can be carried out by considering whether i appears after j or before j in the permutation . Again, one can verify that USR-rev encourages the acceptance of DAGs in which the ancestor relationships of the nodes in S are reversed, thereby promoting significant structural changes.
| Network | #nodes | #edges | MID |
|---|---|---|---|
| ASIA | 8 | 8 | 2 |
| SACHS | 11 | 17 | 3 |
Table 5: Summary of the benchmark networks used in the experiments.
In our experiments, we did not observe poor convergence due to the low acceptance rate of USR-rev that may arise when the same ancestor relationships between nodes in are preserved in . Should this behavior constitute a limitation, it could be mitigated by the USR-rnd variant, which allows sampling a backward permutation that matches the reversed topological ordering of the current DAG , thereby maximizing the transition probability.
While we have focused on the USR move, the results generalize also to other moves that are based on some strongly positive set of proposal distributions and that sample parent sets sequentially, e.g., the Markov blanket resampling (MBR) move. In Appendix F we empirically compare the performance of the rev, rnd, and id schemes for the USR and MBR moves on small networks.
Appendix E. Computing Environment and Data Generation
To code of the new moves was written in C++ and compiled with GCC using the flags -std=c++17 -march=native -O3. Each MCMC run was executed in a single-threaded configuration on a cluster with AMD EPYC 7452 processors (32 cores at 2 350 MHz) and 504 GB of RAM.
We selected benchmark Bayesian networks from Scutari's Bayesian Network Repository (Scutari, 2022), distributed under the CC BY-SA 3.0 license, and generated our datasets by forward sampling 10 000 data points from those.
The datasets and the source code are available at https://github.com/sums-of-products/duetto.
Appendix F. Results on Small Networks
In this section, we present the results obtained on two low dimensional datasets sampled from benchmark networks. We sampled 10 000 data points from the ASIA and SACHS benchmark networks, which are summarized in Table 5 in terms of the number of nodes, number of edges, and maximum in-degree (MID).
The aim of the experiments is to show that the MCMC runs, obtained by performing the newly presented moves, asymptotically converge to the exact posterior distribution, which is accessible for small networks. Furthermore, both the Markov blanket resampling (MBR) and unconstrained sequential resampling (USR) moves sample new parent sets according to a given node ordering , and their respective sets of proposal distributions are strongly positive. We therefore compare the performance of their rev, rnd, and id variants, to assess whether the id variant is indeed inferior, as theoretically illustrated in Appendix D.
The exact posterior distributions have been computed using Bayesian intervention distribution adjustment (BIDA) (Pensar et al., 2020) and modular DAG sampling (MDS)
(Talvitie et al., 2020) algorithms. BIDA algorithm, which relies on the IDA method, takes to compute the posterior scores of all parent sets. However, in rare cases, BIDA might fail due to catastrophic cancellations. We encountered this problematic while computing the posterior distribution for the Sachs network. Hence, we relied on MDS in this specific scenario. MDS directly samples DAGs from the exact posterior. The theoretical basis lies in the recurrences of Tian and He (2009), while the root-layering method by Kuipers and Moffa (2013, 2017) is used to sample DAGs. The whole process takes for pre-processing and for sampling. To generate the reference distribution, DAGs have been sampled.
For each algorithm, we performed ten MCMC runs, each consisting of sampled DAGs. No burn-in or thinning was applied. We used a sparse prior together with the BDeu scoring system. We introduced both notions in Section 5. Similarly to the experiments on large networks, we set the prior probability of parent sets whose size exceeds the MID of the data-generating network to zero, and we employed the score pruning technique detailed in Section 2.4 with .
To compare the performance of the algorithms, we report the maximum absolute deviation (MAD), which is over all edge probability estimates of a given MCMC run. Here is the exact edge probability. In Figure 5, we report the MAD of the best run and the worst run for each algorithm, which are the ones associated with larger and lower MAD respectively, computed after iterations. We better illustrate the asymptotic convergence of the new moves by using the logarithmic scale for both the MAD and iteration values.
Figure 5 shows that the edge-constrained (EC), the ancestor-constrained (AC), the USR-rev, and the USR-rnd moves correctly converge the exact posterior distribution, with the USR-rev move slightly outperforming the others. The id scheme performs poorly for both USR and MBR moves, with the corresponding MAD value being close to 1 also for the best runs in all possible scenarios. The MBR move fails to exhaustively approximate the posterior distribution on both networks; however, the MBR-rev and MBR-rnd moves still perform better than the MBR-id move on the Sachs network.
References
Yashas Annadani, Nick Pawlowski, Joel Jennings, Stefan Bauer, Cheng Zhang, and Wenbo Gong. BayesDAG: Gradient-based posterior inference for causal discovery. In Advances in Neural Information Processing Systems, NeurIPS 2023, volume 36, pages 1738–1763, 2023.
Mark Bartlett and James Cussens. Integer linear programming for the Bayesian network structure learning problem. Artificial Intelligence, 244:258–271, 2017.
Julian Besag, Peter Green, David Higdon, and Kerrie Mengersen. Bayesian computation and stochastic systems. Statistical Science, 10(1):3–66, 1995.
Wray L. Buntine. Theory refinement on Bayesian networks. In The 7th Conference on Uncertainty in Artificial Intelligence, UAI 1991, pages 52–60. Morgan Kaufmann, 1991.






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.
David Maxwell Chickering. Learning Bayesian networks is NP-complete. In Learning from Data: Artificial Intelligence and Statistics V, volume 112 of Lecture Notes in Statistics, pages 121–130. Springer, 1996.
Gregory F. Cooper and Edward Herskovits. A Bayesian method for the induction of probabilistic networks from data. Machine Learning, 9:309–347, 1992.
Chris Cundy, Aditya Grover, and Stefano Ermon. BCD Nets: Scalable variational approaches for Bayesian causal discovery. In Advances in Neural Information Processing Systems, NeurIPS 2021, volume 34, pages 7095–7110, 2021.
Tristan Deleu, António Góis, Chris Emezue, Mansi Rankawat, Simon Lacoste-Julien, Stefan Bauer, and Yoshua Bengio. Bayesian structure learning with generative flow networks. In The Thirty-Eighth Conference on Uncertainty in Artificial Intelligence, UAI 2022, volume 180 of Proceedings of Machine Learning Research, pages 518–528. PMLR, 2022.
Ralf Eggeling, Jussi Viinikka, Aleksis Vuoksenmaa, and Mikko Koivisto. On structure priors for learning Bayesian networks. In The 22nd International Conference on Artificial Intelligence and Statistics, AISTATS 2019, volume 89 of Proceedings of Machine Learning Research, pages 1687–1695. PMLR, 2019.
Nir Friedman and Daphne Koller. Being Bayesian about network structure. A Bayesian approach to structure discovery in Bayesian networks. Machine Learning, 50:95–125, 2003.
Dan Geiger and David Heckerman. Parameter priors for directed acyclic graphical models and the characterization of several probability distributions. The Annals of Statistics, 30(5):1412–1440, 2002.
Paolo Giudici and Robert Castelo. Improving Markov chain Monte Carlo model search for data mining. Machine Learning, 50:127–158, 2003.
Robert J. B. Goudie and Sach Mukherjee. A Gibbs sampler for learning DAGs. Journal of Machine Learning Research, 17:1–39, 2016.
Peter J. Green. Reversible jump Markov chain Monte Carlo computation and Bayesian model determination. Biometrika, 82(4):711–732, 1995.
Marco Grzegorczyk and Dirk Husmeier. Improving the structure MCMC sampler for Bayesian networks by introducing a new edge reversal move. Machine Learning, 71:265–305, 2008.
Juha Harviainen and Mikko Koivisto. Faster perfect sampling of Bayesian network structures. In The 40th Conference on Uncertainty in Artificial Intelligence, UAI 2024, volume 244 of Proceedings of Machine Learning Research, pages 1558–1568. PMLR, 2024.
Wilfred K. Hastings. Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57:97–109, 1970.
Ru He, Jin Tian, and Huaiqing Wu. Structure learning in Bayesian networks of a moderate size by efficient sampling. Journal of Machine Learning Research, 17:101:1–101:54, 2016.
David Heckerman, Dan Geiger, and David M. Chickering. Learning Bayesian networks: The combination of knowledge and statistical data. Machine Learning, 20:197–243, 1995.
Neville Kenneth Kitson, Anthony C. Constantinou, Zhigao Guo, Yang Liu, and Kiattikun Chobtham. A survey of Bayesian network structure learning. Artificial Intelligence Review, 56:8721–8814, 2023.
Mikko Koivisto. Advances in exact Bayesian structure discovery in Bayesian networks. In The 22nd Conference on Uncertainty in Artificial Intelligence, UAI 2006, pages 241–248. AUAI Press, 2006.
Mikko Koivisto and Kismat Sood. Exact Bayesian structure discovery in Bayesian networks. Journal of Machine Learning Research, 5:549–573, 2004.
Daphne Koller and Nir Friedman. Probabilistic Graphical Models: Principles and Techniques. MIT Press, 2009.
Jack Kuipers and Giusi Moffa. Uniform random generation of large acyclic digraphs. Statistics and Computing, 25(2):227–242, 2013.
Jack Kuipers and Giusi Moffa. Partition MCMC for inference on acyclic digraphs. Journal of the American Statistical Association, 112:282–299, 2017.
Jack Kuipers, Giusi Moffa, and David Heckerman. Addendum on the scoring of Gaussian directed acyclic graphical models. The Annals of Statistics, 42(4):1689–1691, 2014.
Elias Lehtinen and Mikko Koivisto. Counting and sampling subsets using block covers. In The 42nd Conference on Uncertainty in Artificial Intelligence, UAI 2026, volume 337 of Proceedings of Machine Learning Research, pages 3477–3486. PMLR, 2026.
Lars Lorch, Jonas Rothfuss, Bernhard Schölkopf, and Andreas Krause. DiBS: Differentiable Bayesian structure learning. In Advances in Neural Information Processing Systems, NeurIPS 2021, volume 34, pages 24111–24123, 2021.
David Madigan and Adrian E. Raftery. Model selection and accounting for model uncertainty in graphical models using Occam's window. Journal of the American Statistical Association, 89(428):1535–1546, 1994.
David Madigan and Jeremy York. Bayesian graphical models for discrete data. International Statistical Review, 63:215–232, 1995.
Radford M. Neal. Suppressing random walks in Markov chain Monte Carlo using ordered overrelaxation. In Learning in Graphical Models, volume 89 of NATO ASI Series, pages 205–228. Springer, 1998.
Kirill Neklyudov, Max Welling, Evgenii Egorov, and Dmitry Vetrov. Involutive MCMC: a unifying framework. In The 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 7273–7282. PMLR, 2020.
Teppo Niinimäki and Mikko Koivisto. Treedy: A heuristic for counting and sampling subsets. In The 29th Conference on Uncertainty in Artificial Intelligence, UAI 2013, pages 469–477. AUAI Press, 2013.
Teppo Niinimäki, Pekka Parviainen, and Mikko Koivisto. Structure discovery in Bayesian networks by sampling partial orders. Journal of Machine Learning Research, 17:1–47, 2016.
Daniele Nikzad, Alexander Zhilkin, Juha Harviainen, Jack Kuipers, Giusi Moffa, and Mikko Koivisto. Scaling up Bayesian DAG sampling. In The 42nd Conference on Uncertainty in Artificial Intelligence, UAI 2026, volume 337 of Proceedings of Machine Learning Research, pages 4949–4971. PMLR, 2026.
Judea Pearl. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan Kaufmann, 1988.
Judea Pearl. Causality: Models, Reasoning and Inference. Cambridge University Press, 2009.
Johan Pensar, Topi Talvitie, Antti Hyttinen, and Mikko Koivisto. A Bayesian approach for estimating causal effects from observational data. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, volume 34, pages 5395–5402. AAAI Press, 2020.
Peter H. Peskun. Optimum Monte-Carlo sampling using Markov chains. Biometrika, 60(3): 607–612, 1973.
Marco Scutari. Bayesian Network Repository, 2022. URL www.bnlearn.com/bnrepository. Accessed: 2025-04-25.
Tomi Silander and Petri Myllymäki. A simple approach for finding the globally optimal Bayesian network structure. In The 22nd Conference on Uncertainty in Artificial Intelligence, UAI 2006, pages 445–452. AUAI Press, 2006.
Geir Storvik. On the flexibility of Metropolis–Hastings acceptance probabilities in auxiliary variable proposal generation. Scandinavian Journal of Statistics, 38(2):342–358, 2011.
Chengwei Su and Mark E. Borsuk. Improving structure MCMC for Bayesian networks through Markov blanket resampling. Journal of Machine Learning Research, 17:118:1–118:20, 2016.
Polina Suter, Jack Kuipers, Giusi Moffa, and Niko Beerenwinkel. Bayesian structure learning and sampling of Bayesian networks with the R package BiDAG. Journal of Statistical Software, 105(9):1–31, 2023.
Topi Talvitie, Aleksis Vuoksenmaa, and Mikko Koivisto. Exact sampling of directed acyclic graphs from modular distributions. In The 35th Conference on Uncertainty in Artificial Intelligence, UAI 2019, volume 115 of Proceedings of Machine Learning Research, pages 965–974. PMLR, 2020.
Jin Tian and Ru He. Computing posterior probabilities of structural features in Bayesian networks. In The 25th Conference on Uncertainty in Artificial Intelligence, UAI 2009, pages 538–547. AUAI Press, 2009.
Luke Tierney. Markov chains for exploring posterior distributions. The Annals of Statistics, 22(4):1701 – 1728, 1994.
Luke Tierney. A note on Metropolis-Hastings kernels for general state spaces. The Annals of Applied Probability, 8(1):1–9, 1998.
Jussi Viinikka, Antti Hyttinen, Johan Pensar, and Mikko Koivisto. Towards scalable Bayesian learning of causal DAGs. In Advances in Neural Information Processing Systems, NeurIPS 2020, volume 33, pages 6584–6594, 2020.
Changhe Yuan and Brandon Malone. Learning optimal Bayesian networks: A shortest path perspective. Journal of Artificial Intelligence Research, 48:23–65, 2013.
Michael H. Zhu. Sample adaptive MCMC. In Advances in Neural Information Processing Systems, NeurIPS 2019, volume 32, pages 9063–9074, 2019.