Less Greedy Equivalence Search Adiba Ejaz, Elias Bareinboim Abstract Greedy Equivalence Search (GES) is a classic score-based algorithm for causal discovery from observational data. In the sample limit, it recovers the Markov equivalence class of graphs that describe the data. Still, it faces two challenges in practice: computational cost and finite-sample accuracy. In this paper, we develop Less Greedy Equivalence Search (LGES), a variant of GES that retains its theoretical guarantees while partially addressing these limitations. LGES modifies the greedy step: rather than always applying the highest-scoring insertion, it avoids edge insertions between variables for which the score implies some conditional independence. This more targeted search yields up to a 10 10 -fold speed-up and a substantial reduction in structural error relative to GES. Moreover, LGES can guide the search using prior assumptions, while correcting these assumptions when contradicted by the data. Finally, LGES can exploit interventional data to refine the learned observational equivalence class. We prove that LGES recovers the true equivalence class in the sample limit from observational and interventional data, even with misspecified prior assumptions. Experiments demonstrate that LGES outperforms GES and other baselines in speed, accuracy, and robustness to misspecified assumptions. Our code is available at https://github.com/CausalAILab/lges . TECHNICAL REPORT R-134 May, 2025 1 Introduction Causal discovery, the task of learning causal structure from data, is a core problem in the field of causality [ 48 ] . The causal structure may be an end in itself to the scientist, or a prerequisite for downstream tasks such as inference, decision-making, and generalization [ 1 , 36 ] . Causal discovery algorithms have been applied to a range of disciplines that span biology, medicine, climate science, and neuroscience, among others [ 15 , 37 , 41 , 42 ] . A hallmark of the field is the algorithm known as Greedy Equivalence Search (GES) [ 7 , 29 ] , which takes as input observational data and finds a Markov equivalence class (MEC) of causal graphs that describe the data. In general, the true graph is not uniquely identifiable from observational data, and the MEC is the most informative structure that can be learned. Under standard assumptions in causal discovery, GES is guaranteed to recover the true MEC in the sample limit. In contrast, many causal discovery algorithms—including prominent examples such as max-min hill-climbing [ 50 ] and NoTears [ 54 ] —lack such large-sample guarantees. Many variants of GES have been developed, including faster, parallelized implementations [ 37 ] , restricted search over bounded in-degree graphs [ 8 ] , and Greedy Interventional Equivalence Search (GIES) [ 19 ] , which can exploit interventional data but is not asymptotically correct [ 52 ] . Despite its attractive features, the GES family faces challenges shared across most causal discovery algorithms. For instance, the problem of causal discovery is NP-hard [ 9 ] , and GES commonly struggles to scale in high-dimensional settings. Moreover, in finite-sample regimes, GES often fails to recover the true MEC. In other words, applying GES in practice is challenging due to both computational complexity (scaling) and sample complexity (accuracy) issues. We refer readers to [ 50 ] for an extensive empirical study of GES performance. At a high-level, GES searches over the space of MECs by inserting and deleting edges to maximise a score that reflects data fit. At each state, it evaluates a set of neighbors—possibly exponentially many—and moves to the highest-scoring neighbor that scores more than the current MEC. It continues the search greedily until no higher-scoring neighbors are found. In the sample limit, this strategy is guaranteed to find the global optimum of the score: the true MEC. In this paper, we first show that GES recovers the true MEC even if it moves to any neighbor that scores more than the current state—not necessarily the highest-scoring one (Alg. 3 , Thm. 1 ). This relaxed greedy strategy still finds the global optimum of the score in the sample limit. More importantly, it opens the door to more strategic neighbor selection. While it may seem that choosing the highest-scoring neighbor would yield the best performance in practice, surprisingly, we show that this is not the case; a careful and less greedy choice improves both accuracy and runtime. Based on this insight, we develop Less Greedy Equivalence Search (LGES) (Alg. 1 ), a score-based algorithm for causal discovery from observational and interventional data. LGES can also leverage possibly misspecified prior assumptions, for e.g., a hypothesized graph, to guide the search while correcting misspecified edges. In particular, LGES advances on GES in the following ways: 1. Faster, more accurate observational learning. In Sec. 3.2 , we introduce two novel strategies, ConservativeInsert and SafeInsert , which LGES exploits to choose which neighbor to move to at a given state. Empirically, these procedures yield up to a 10 -fold reduction in runtime and 2 -fold reduction in structural error relative to GES (Experiment 5.1 ). LGES with SafeInsert asymptotically recovers the true MEC (Prop. 2 , Cor. 1 ). 2. Repairing misspecified causal models. In Sec. 3.3 , we show how LGES can take as input a partially misspecified causal model expressed as prior assumptions about required or forbidden edges and repair it to align with the true MEC. We evaluate performance under varying levels of misspecification and find that LGES is more robust, i.e., able to correct misspecified assumptions, than GES initialized with the same assumptions (Experiment 5.2 ). 3. Faster interventional learning. In Sec. 4 , we develop a score-based procedure, \mathcal{I} - Orient (Alg. 2 , Thm. 2 ), that LGES (or any observational learning algorithm) can use to refine an observational MEC with interventional data. To our knowledge, this is the first asymptotically correct score-based procedure for learning from interventional data that can scale to graphs with more than a hundred nodes. LGES with \mathcal{I} - Orient is 10x faster than GIES [ 19 ] while maintaining competitive accuracy (Experiment 5.3 ). Proofs for all results are provided in Appendix C . Experimental details and further experiments with synthetic data and real-world protein signalling data [ 42 ] are provided in Appendix D . 2 Background Notation. Capital letters denote variables (V) , small letters denote their values (v) , and bold letters denote sets of variables (\mathbf{V}) and their values (\mathbf{v}) . P(\mathbf{v}) denotes a probability distribution over a set of variables \mathbf{V} . For disjoint sets of variables \mathbf{X},\mathbf{Y},\mathbf{Z} , \mathbf{X}\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}\mathbf{Y}\mid\mathbf{Z} denotes that \mathbf{X} and \mathbf{Y} are conditionally independent given \mathbf{Z} and \mathbf{X}\perp_{d}\mathbf{Y}\mid\mathbf{Z} denotes that \mathbf{X} and \mathbf{Y} are d-separated given \mathbf{Z} in the graph in context. Figure 1 : A CPDAG \mathcal{E} and the three DAGs in the MEC it represents, encoding X\perp_{d}Y\mid Z . Causal graphs [ 36 , 2 ] . A causal graph over variables \mathbf{V} is a directed acyclic graph (DAG) with an edge X\to Y denoting that X is a possible cause of Y . The parents of a variable X in a graph \mathcal{G} , denoted \mathbf{Pa}_{X}^{\mathcal{G}} , are those variables with a directed edge into X . The superscript will be omitted when clear from context. A given distribution P(\mathbf{v}) is said to be Markov with respect to a DAG \mathcal{G} if for all disjoint sets \mathbf{X},\mathbf{Y},\mathbf{Z}\subseteq\mathbf{V} , if \mathbf{X}\perp_{d}\mathbf{Y}\mid\mathbf{Z} in \mathcal{G} , then \mathbf{X}\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}\mathbf{Y}\mid\mathbf{Z} in P(\mathbf{v}) . If the converse is also true, P(\mathbf{v}) is said to be faithful to \mathcal{G} . In this work, like GES [ 7 ] , we assume that the system of interest is Markovian , i.e. it contains no unobserved confounders, and that there exists a DAG \mathcal{G} with respect to which the given P(\mathbf{v}) is both Markov and faithful. Markov equivalence classes [ 35 , 48 ] . Two causal DAGs \mathcal{G},\mathcal{H} are said to be Markov equivalent if they encode exactly the same d -separations. The Markov equivalence class (MEC) of a DAG is the set of all graphs that are Markov equivalent to it. A given P(\mathbf{v}) may be Markov and faithful with respect to more than DAG. Hence, the target of causal discovery from observational data is the MEC of DAGs with respect to which P(\mathbf{v}) is Markov and faithful. An MEC \mathcal{M} is represented by a unique completed partially directed graph (CPDAG). A CPDAG \mathcal{E} for \mathcal{M} has an undirected edge X-Y if \mathcal{M} contains two DAGs \mathcal{G}_{1},\mathcal{G}_{2} with X\to Y in \mathcal{G}_{1} and Y\to X in \mathcal{G}_{2} . \mathcal{E} has a directed edge X\to Y if X\to Y is in every DAG in \mathcal{M} . We frequently refer to an MEC by its representative CPDAG. The adjacencies (neighbours) of a variable X in a CPDAG \mathcal{E} , denoted \mathbf{Adj_{X}^{\mathcal{G}}} ( \mathbf{Ne_{X}^{\mathcal{G}}} ), comprise those variables connected by any edge (an undirected edge) to X . Greedy Equivalence Search [ 7 , 29 ] . Greedy Equivalence Search (GES) is a score-based algorithm for learning MECs from observational data. It searches for the true MEC by maximizing a scoring criterion given m samples of data \mathbf{D}\sim P(\mathbf{v}) . For example, a popular choice of scoring criterion is the Bayesian information criterion (BIC) [ 45 ] . GES assumes that the given scoring criterion is decomposable, consistent, and score-equivalent, so that the score of an MEC is the score of any DAG in that MEC (Defs. A.3 , A.4 , A.5 ). BIC satisfies each of these conditions for distributions that are Markov and faithful to some DAG and are curved exponential families, for e.g., linear-Gaussian or multinomial models [ 7 , 17 , 18 ] . Moreover, decomposability and consistency imply local consistency ( [ 7 , Lemma 7] ), the key property needed for the correctness of GES. Definition 1 (Locally consistent scoring criterion [ 7 , Def. 6] ) . Let \mathbf{D} be a dataset consisting of i.i.d. samples from some distribution P(\mathbf{v}) . Let \mathcal{G} be any DAG, and let \mathcal{G}^{\prime} be the DAG that results from adding the edge X\to Y to \mathcal{G} . A scoring criterion S is said to be locally consistent if, as the number of samples goes to infinity, the following two properties hold: 1. If X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y\mid\mathbf{Pa}_{Y}^{\mathcal{G}} in P(\mathbf{v}) then S(\mathcal{G},\mathbf{D})S(\mathcal{G}^{\prime},\mathbf{D}) . Example 1 . Consider a distribution P(\mathbf{v}) whose true MEC is \mathcal{E} and true DAG is \mathcal{G}_{2}\in\mathcal{E} as in Fig. 1 . Consider \mathcal{G}_{1}\in\mathcal{E} (Fig. 1 ), and let \mathcal{G}^{+}_{1}=\mathcal{G}_{1}\cup\{X\to Y\} and \mathcal{G}^{-}_{1}=\mathcal{G}_{1}\setminus\{Z\to Y\} . Since Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X\mid\mathbf{Pa}_{Y}^{\mathcal{G}_{1}} in P(\mathbf{v}) , where \mathbf{Pa}_{Y}^{\mathcal{G}_{1}}=\{Z\} , \mathcal{G}^{+}_{1} has a lower score than \mathcal{G}_{1} . Since Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Z\mid\mathbf{Pa}_{Y}^{\mathcal{G}^{-}_{1}} in P(\mathbf{v}) , where \mathbf{Pa}_{Y}^{\mathcal{G}^{-}_{1}}=\emptyset , \mathcal{G}^{-}_{1} has a lower score than \mathcal{G}_{1} . ∎ Given a scoring criterion satisfying the above conditions and data \mathbf{D}\sim P(\mathbf{v}) where P(\mathbf{v}) is Markov and faithful to some DAG, GES recovers the true MEC in the sample limit [ 7 , Lemma 10] . The PC algorithm [ 48 ] , a constraint-based method, has similar asymptotic correctness guarantees, but uses conditional independence (CI) tests instead of a score. PC starts with a fully connected graph and removes edges using CI tests. In contrast, GES starts with a fully disconnected graph and proceeds in two phases. In the forward phase, at each state, GES finds the highest-scoring Insert operator that results in a score increase, applies it, and repeats until no score-increasing Insert operator exists. At this point, it has found an MEC \mathcal{E} with respect to which P(\mathbf{v}) is Markov. Definition 2 ( Insert operator, [ 7 , Def. 12] ) . Given a CPDAG \mathcal{E} , non-adjacent nodes X,Y in \mathcal{E} , and some \mathbf{T}\subseteq\mathbf{Ne}^{\mathcal{E}}_{Y}\setminus\mathbf{Adj}_{X}^{\mathcal{E}} , the Insert (X,Y,\mathbf{T}) operator modifies \mathcal{E} by inserting the edge X\to Y and directing the previously undirected edges T-Y for T\in\mathbf{T} as T\to Y . Intuitively, an Insert (X,Y,\mathbf{T}) operator applied to an MEC \mathcal{E} corresponds to choosing a DAG \mathcal{G}\in\mathcal{E} (depending on X,Y , and \mathbf{T} ), adding the edge X\to Y to \mathcal{G} , and computing the MEC of the resulting DAG. In this paper, we focus on the forward phase of GES. Though P(\mathbf{v}) is Markov with respect to the MEC \mathcal{E} found in the forward phase, P(\mathbf{v}) may not be faithful to \mathcal{E} . In the backward phase, GES starts the search with \mathcal{E} . finds the highest-scoring Delete (X,Y,\mathbf{H}) operator (Def. A.2 ) that results in a score increase, applies it, and repeats until no score-increasing Delete operator exists. At this point, it has found an MEC with respect to which P(\mathbf{v}) is both Markov and faithful. 3 Less Greedy Equivalence Search 3.1 Generalizing GES To lay the groundwork for our search strategy, we first introduce Generalized GES (GGES) (Alg. 3 ), which generalizes GES in two ways. Firstly, GGES allows the search to be initialized from an arbitrary MEC \mathcal{E}_{0} , rather than the empty graph. Secondly, in both the forward and backward phases, GGES allows the application of any valid score-increasing operator, rather than the highest-scoring one. At each state \mathcal{E} , GGES calls abstract subroutines GetInsert or GetDelete , which either return a valid score-increasing operator if one exists or indicate that there is no such operator. The forward and backward phases proceed until no improvements are found. Theorem 1 (Correctness of GGES) . Let \mathcal{E} denote the Markov equivalence class that results from GGES (Alg. 3 ) initialised from an arbitrary MEC \mathcal{E}_{0} and let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated. Then, as the number of samples goes to infinity, \mathcal{E} is the Markov equivalence class underlying P(\mathbf{v}) . In the next section, we illustrate how GetInsert can be implemented in a way that yields significant improvements in accuracy and runtime relative to GES. 3.2 An improved forward phase In practice, the output of GES is known to include adjacencies between many variables that are non-adjacent in the true MEC [ 30 , 50 ] . Since these adjacencies are introduced by Insert operators in the forward phase, this motivates a more careful choice of which Insert operator to apply. Our approach is grounded in the following observation. Proposition 1 . Let \mathcal{E} denote an arbitrary CPDAG and let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated. Assume, as the number of samples goes to infinity, that there exists a valid score-decreasing Insert (X,Y,\mathbf{T}) operator for \mathcal{E} . Then, there exists a DAG \mathcal{G}\in\mathcal{E} such that (1) Y\perp_{d}X\mid\mathbf{Pa}^{\mathcal{G}}_{Y} and (2) Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X\mid\mathbf{Pa}^{\mathcal{G}}_{Y} in P(\mathbf{v}) . Then, for a variable pair (X,Y) , even a single score-decreasing \textsc{Insert}(X,Y,\mathbf{T}) implies that (X,Y) are non-adjacent in the true MEC. However, this does not imply that all \textsc{Insert}(X,Y,*) are also score-decreasing. GES may thus apply a different \textsc{Insert}(X,Y,\mathbf{T}^{\prime}) , introducing an adjacency not present in the true MEC. The following example shows how such choices can lead GES to MECs that contain many excess adjacencies. Figure 2 : Possible trajectories, \tau_{1} and \tau_{2} , that GES may take in the forward phase to obtain an MEC with respect to which a given distribution P(\mathbf{v}) is Markov. The true MEC is \mathcal{E}^{*} (top right). In each trajectory, \mathcal{E}^{(t+1)} results from applying some Insert operator to \mathcal{E}^{(t)} . Example 2 . Consider a distribution P(\mathbf{v}) over \mathbf{V}=\{X_{1},X_{2},Y,Z\} whose true MEC is given by \mathcal{E}^{*} in Fig. 2 (top right). GES starts with the empty graph and successively applies the highest-scoring Insert operator that it finds. Trajectories \tau_{1} and \tau_{2} agree until time t=1 . Let \mathcal{E}^{(1)} denote the CPDAG common to \tau_{1} and \tau_{2} at t=1 . At t=1 , GES has many Insert operators it could apply to \mathcal{E}^{(1)} . Recall that each Insert (\alpha,\beta,\mathbf{T}) applied to \mathcal{E}^{(1)} corresponds to choosing some DAG \mathcal{G} from \mathcal{E}^{(1)} and adding \alpha\to\beta to it. The DAG \mathcal{G} is chosen such that for edges \gamma-\beta in \mathcal{E}^{(1)} where \alpha and \gamma are non-adjacent, \mathcal{G} contains \gamma\to\beta if \gamma\in\mathbf{T} and \beta\to\gamma otherwise. 1. \alpha=X_{1},\beta=Z,\mathbf{T}=\emptyset . This corresponds to choosing \mathcal{G}_{1}\in\mathcal{E}^{(1)} (which already has Z\to Y ) and adding X_{1}\hbox{\pagecolor{Goldenrod}$\displaystyle\to$}Z to it (Fig. 3 , left). Since Z\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X_{1}\mid\mathbf{Pa}_{Z}^{\mathcal{G}_{1}} , this edge addition increases the score of \mathcal{G}_{1} (by local consistency, Def. 1 ) and hence of \mathcal{E}^{(1)} . This operator is chosen in trajectory \tau_{1} . 2. \alpha=X_{1},\beta=Y,\mathbf{T}=\{Z\} . This corresponds to choosing \mathcal{G}_{1}\in\mathcal{E}^{(1)} (which already has Z\to Y ) and adding X_{1}\hbox{\pagecolor{Goldenrod}$\displaystyle\to$}Y to it (Fig. 3 , middle). Since Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X_{1}\mid\mathbf{Pa}_{Y}^{\mathcal{G}_{1}} , this edge addition decreases the score of \mathcal{G}_{1} and hence of \mathcal{E}^{(1)} . This operator is never chosen. 3. \alpha=X_{1},\beta=Y,\mathbf{T}=\emptyset . This corresponds to choosing \mathcal{G}_{2}\in\mathcal{E}^{(1)} (which already has Y\to Z ) and adding X_{1}\hbox{\pagecolor{Goldenrod}$\displaystyle\to$}Y to it (Fig. 3 , right). Since Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X_{1}\mid\mathbf{Pa}_{Y}^{\mathcal{G}_{2}} , this edge addition increases the score of \mathcal{G}_{1} and hence of \mathcal{E}^{(1)} . This operator is chosen in trajectory \tau_{2} . Which of these Insert operators scores the highest in practice? We generated 100 linear-Gaussian datasets containing 1000 samples each according to a fixed true DAG in \mathcal{E}^{*} , following the set-up in Sec. 5.1 . Then, we computed the scores of \mathcal{G}_{A}:\mathcal{G}_{1}\cup\{X_{1}\to Z\} , \mathcal{G}_{B}:\mathcal{G}_{1}\cup\{X_{1}\to Y\} , and \mathcal{G}_{C}:\mathcal{G}_{2}\cup\{X_{1}\to Y\} on each dataset. From the fact that \mathcal{G}_{A} is closer to the true MEC than \mathcal{G}_{C} , it may seem that \mathcal{G}_{A} would almost always score higher. However, \mathcal{G}_{A} was the highest-scoring DAG 69\% of the time, and \mathcal{G}_{C} 31\% of the time. As expected, \mathcal{G}_{B} is never the highest-scoring DAG. Hence, GES may often insert an edge between X_{1} and Y . Even in the sample limit, it is unknown whether \mathcal{G}_{A} or \mathcal{G}_{C} would score higher. For an extended discussion, see Ex. B.1 . ∎ Figure 3 : Illustration of some Insert operators that may be applied to the MEC \mathcal{E}^{(1)} at t=1 in Fig. 2 . These operators correspond to various edge additions to the DAGs \mathcal{G}_{1},\mathcal{G}_{2}\in\mathcal{E}^{(1)} , where \mathcal{G}_{1} orients Z-Y as Z\to Y and \mathcal{G}_{2} orients Z-Y as Y\to Z . This motivates avoiding edge insertions for variable pairs (X,Y) for which a score-decreasing Insert is observed. We hypothesize this has two benefits: (1) accuracy : it avoids inserting excess adjacencies that the backward phase may fail to remove, and (2): efficiency : it stops the enumeration of (X,Y) insertions when a lower-scoring one is found; moreover, reducing excess adjacencies reduces the number of operators that need to be evaluated in subsequent states. We now formalize two strategies for avoiding such insertions. Strategy 1 ( ConservativeInsert ) . At a given state with CPDAG \mathcal{E} , for each non-adjacent pair (X,Y) , iterate over valid Insert (X,Y,\mathbf{T} ). If any score-decreasing \mathbf{T} is found, stop, discard all \textsc{Insert}(X,Y,*) operators and continue to the next pair. Among all retained candidates, select the highest-scoring operator that results in a score increase, if any. The ConservativeInsert strategy avoids inserting edges between any variables (X,Y) for which some conditional independence has been found, as evidenced by a score-decreasing Insert (Prop. 1 ). While intuitive, it is unclear if this strategy is guaranteed to find a score-increasing Insert whenever one exists. We prove partial guarantees in Prop. C.1 , C.2 . Moreover, we introduce a relaxation, SafeInsert , that is guaranteed to find a score-increasing Insert when one exists. Strategy 2 ( SafeInsert ) . At a given state with CPDAG \mathcal{E} , pick an arbitrary DAG \mathcal{G}\in\mathcal{E} . For each non-adjacent pair (X,Y) in \mathcal{G} , if X\in nd_{Y}^{\mathcal{G}} , check if \mathcal{G} has a higher score than \mathcal{G}\cup\{X\to Y\} . If not, discard all \textsc{Insert}(X,Y,*) operators and continue to the next pair. Among all retained candidates, select the highest-scoring operator that results in a score increase, if any. Proposition 2 (Correctness of SafeInsert ) . Let \mathcal{E} denote a Markov equivalence class and let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated. Then, as the number of samples goes to infinity, SafeInsert returns a valid score-increasing Insert operator if and only if one exists. Example 3 . (Ex. 2 continued). Let \mathcal{E}^{(1)},\mathcal{G}_{1} , and \mathcal{G}_{2} be as in Ex. 2 . Assume GES is at \mathcal{E}^{(1)} and SafeInsert picks the DAG \mathcal{G}_{1}\in\mathcal{E} . Then, \mathcal{G}_{1}\cup\{X_{1}\to Y\} has a lower score than \mathcal{G}_{1} since X_{1}\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y\mid\mathbf{Pa}_{Y}^{\mathcal{G}_{1}} in P(\mathbf{v}) , where \mathbf{Pa}_{Y}^{\mathcal{G}_{1}}=\{Z\} . SafeInsert thus does not consider any Insert (X_{1},Y,*) operators. In contrast, assume SafeInsert picks the DAG \mathcal{G}_{2}\in\mathcal{E} . Then, \mathcal{G}_{2}\cup\{X_{1}\to Y\} has a higher score than \mathcal{G}_{2} , and SafeInsert may still consider Insert (X_{1},Y,*) operators. However, ConservativeInsert will not consider any Insert (X,Y,*) operators, since Insert (X_{1},Y,\{Z\}) , corresponding to \mathcal{G}_{1}\cup\{X_{1}\to Y\} , results in a lower score than \mathcal{E}^{(1)} . ∎ Later, in Sec. 5.1 , we compare the two aforementioned strategies, and show how both achieve substantial gains in accuracy and runtime over GES. Input: Data \mathbf{D}\sim\mathbf{P}(\mathbf{v}) , scoring criterion S , prior assumptions \mathbf{S}=\langle\mathbf{R},\mathbf{F}\rangle , initial MEC \mathcal{E}_{0} Output: MEC \mathcal{E} of \mathbf{P}(\mathbf{v}) \mathcal{E}\leftarrow\mathcal{E}_{0} ; // allows initialisation if preferred by user repeat 1 \mathcal{G}\leftarrow some DAG in \mathcal{E} ; 2 priorityList\leftarrow\textsc{GetPriorityInserts}(\mathcal{E},\mathcal{G},\mathbf{S}) ; 3 foreach candidates in priorityList do 4 (X_{max},Y_{max},\mathbf{T}_{max})\leftarrow\textsc{GetSafeInsert}(\mathcal{E},\mathcal{G},\mathbf{D},candidates,S) ; 5 if (X_{max},Y_{max},\mathbf{T}_{max}) is found then 6 break ; // no need to check lower priority \mathcal{E}\leftarrow\mathcal{E}+\textsc{Insert}(X_{max},Y_{max},\mathbf{T}_{max}) ; 7 until no improving insertions exist ; 8 repeat 9 \mathcal{E}\leftarrow\mathcal{E}+ the highest-scoring \textsc{Delete}(X,Y,\mathbf{T}) that results in a score increase until no improving deletions exist ; 10 return \mathcal{E} Algorithm 1 Less Greedy Equivalence Search (LGES) 3.3 Repairing misspecified causal models Often, researchers have prior assumptions about the underlying graph. Existing methods that leverage such assumptions for causal discovery often assume the assumptions are correct, even if contradicted by the data, and lack theoretical guarantees on the learned MEC [ 5 , 12 , 21 , 34 , 44 ] . We show how Generalized GES (GGES) can leverage such assumptions during the search process, while correcting them if inconsistent with the data. We assume we are given prior assumptions in the form of a set of required and forbidden edges \mathbf{S}=\langle\mathbf{R},\mathbf{F}\rangle that may be either directed or undirected. A natural strategy, which we refer to as GES-Init , initializes the search to an MEC consistent with the assumptions and then proceeds greedily, as in standard GES. 1 1 1 This was empirically evaluated in [ 11 ] . However, its correctness was not considered. This approach is sound in the large-sample limit (Thm. 1 ), even when the assumptions are misspecified. However, given finite samples, this strategy may result in excess adjacencies. If the prior assumptions require adjacencies that don’t exist in the true MEC, GES- Init includes them by default in the initialisation and may fail to remove them later. Moreover, such initialisation precludes the use of insertion strategies (e.g., from Sec. 3.2 ) that would avoid introducing such excess adjacencies. We instead propose a strategy that uses prior assumptions to prioritize operators, and not to initialize the search. Specifically, for each non-adjacent pair (X,Y) , we rank it into one of four categories based on the constraint set \mathbf{S}=\langle\mathbf{R},\mathbf{F}\rangle using the procedure GetPriorityInserts (Alg. 6 ). Insertions for higher-priority adjacencies are considered first, but only applied if they increase the score. For example, if SafeInsert finds no score-increasing insertions for the current MEC, then the remaining adjacencies in \mathbf{R} (if any) are redundant, and will not be inserted. In contrast, the initialisation strategy inserts all adjacencies in \mathbf{R} by default. Next, in Sec. 3.4 , we incorporate this prioritization scheme into a novel algorithm, combining it with the search strategy of Sec. 3.2 to enable a less greedy search. In Sec. 5.2 , we empirically demonstrate the benefit of this prioritization-based strategy. 3.4 The Less Greedy Equivalence Search algorithm Finally, we introduce the main result of this work: the algorithm Less Greedy Equivalence Search (LGES, Alg. 1 ). LGES modifies the forward phase of GES based on our insights in the previous sections, while using the same search strategy as GES in the backward phase. Using Thm. 1 and Prop. 2 , we can show that LGES recovers the true MEC in the sample limit, even given a misspecified set of prior assumptions. Corollary 1 (Correctness of LGES) . Let \mathcal{E} denote the Markov equivalence class that results from LGES (Alg. 1 ) initialised from an arbitrary MEC \mathcal{E}_{0} and given prior assumptions \mathbf{S}=\langle\mathbf{R},\mathbf{F}\rangle , and let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated. Then, as the number of samples goes to infinity, \mathcal{E} is the Markov equivalence class underlying P(\mathbf{v}) . Remark 1 . While standard LGES uses SafeInsert , LGES can also be run with ConservativeInsert . Since we only have partial guarantees on ConservativeInsert (Prop. C.1 , C.2 ), it remains open whether this variant of LGES is asymptotically correct. 4 Score-based learning from interventional data Input: Intervention targets \mathcal{I} , data (\mathbf{D}_{\mathbf{I}})_{\mathbf{I}\in\mathcal{I}}\sim(\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} , observational MEC \mathcal{E} , scoring criterion S Output: \mathcal{I} -MEC \mathcal{E} of (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}}) foreach X\in\mathcal{E} and Y\in ne^{\mathcal{E}}_{X} do 1 \Delta S\leftarrow\underset{\mathbf{I}\in\mathcal{I},\ X\in\mathbf{I},Y\not\in\mathbf{I}}{\sum}s_{\mathbf{D}_{\mathbf{I}}}(y,x)-s_{\mathbf{D}_{\mathbf{I}}}(y) ; 2 if \Delta S>0 then 3 Orient edge X-Y as X\to Y in \mathcal{E} ; 4 Apply Meek’s rules in \mathcal{E} to propagate orientations [ 29 ] ; 5 6 else if \Delta S<0 then 7 Orient edge X-Y as X\leftarrow Y in \mathcal{E} ; 8 Apply Meek’s rules in \mathcal{E} to propagate orientations [ 29 ] ; 9 10 11 return \mathcal{E} Algorithm 2 \mathcal{I} - Orient If interventional data is available, LGES can use it to further orient edges in the learned observational MEC. We now develop a score-based procedure that enables LGES to do so. Unlike existing score-based methods, which are often inconsistent or computationally infeasible even on moderately sized graphs [ 19 , 52 ] , our approach scales while preserving soundness. Following [ 19 ] , we assume soft unconditional interventions, including hard (do) interventions as a special case. These set the distribution of a variable X to some fixed P^{*}(x) , thereby removing the influence of its parents. Let \mathcal{I} denote a family of interventional targets, i.e., subsets \mathbf{I}\subseteq\mathbf{V} , with the empty intervention \theta\in\mathcal{I} producing the observational distribution. We observe data from distributions (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} . As in the observational case, we assume there exists a DAG \mathcal{G} such that these distributions are \mathcal{I} -Markov (Def. A.7 ) and faithful to the corresponding intervention graphs (\mathcal{G}_{\overline{\mathbf{I}}})_{\mathbf{I}\in\mathcal{I}} , obtained by removing edges into any intervened variable V\in\mathbf{I} [ 13 , 36 ] . Just as observational data identifies an MEC, interventional data identifies an \mathcal{I} -MEC, a typically smaller equivalence class encoding constraints on both the observational and interventional data [ 19 , Def. 7] . Two DAGs are \mathcal{I} -Markov equivalent iff they are observationally Markov equivalent and if their intervention graphs have the same adjacencies across all interventions in \mathcal{I} [ 19 , Thm. 10] . To recover the \mathcal{I} -MEC, we introduce \mathcal{I} -Orient (Alg. 2 ), which orients undirected edges in the observational MEC using scores from interventional data. (a) SHD vs number of variables (b) SHD vs correctness of prior (c) Runtime vs number of variables (d) Runtime vs correctness of prior Figure 4 : Performance of algorithms on observational data from Erdős–Rényi graphs with p variables and 2p edges. LGES is our proposed method. Lower is better (more accurate / faster) across all plots. The time axis uses a log scale. SHD denotes the structural Hamming distance between the true and estimated CPDAGs. Left column: without prior assumptions, n=10^{4} samples. Right column: with prior assumptions, n=10^{3} samples, p=50 variables with prior assumptions on m/2 edges for a true graph with m edges . Error bars denote one standard deviation across 50 random seeds; some bars are limited for legibility. Detailed figures and additional baselines in Sec D . Theorem 2 (Correctness of \mathcal{I} - Orient ) . Let \mathcal{E} denote the Markov equivalence class that results from \mathcal{I} - Orient (Alg. 2 ) given an observational MEC \mathcal{E}_{0} and interventional targets \mathcal{I} , and let (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} denote the family of distributions from which the data (\mathbf{D}_{\mathbf{I}})_{\mathbf{I}\in\mathcal{I}} was generated. Assume that \mathcal{E}_{0} is the MEC underlying P_{\emptyset}(\mathbf{v}) . Then, as the number of samples goes to infinity for each \mathbf{I}\in\mathcal{I} , \mathcal{E} is the \mathcal{I} -Markov equivalence class underlying (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} . 5 Experiments 5.1 Learning from observational data Synthetic data and baselines. We draw Erdős–Rényi graphs with p variables and 2p or 3p edges in expectation (denoted ER2 and ER3 respectively), for p up to 500 . For each p , we sample 50 graphs and generate linear-Gaussian data for each graph. Following [ 31 ] , we draw weights drawn from \mathcal{U}([-2,-0.5]\cup[0.5,2]) , and noise variances from \mathcal{U}([0.1,0.5]) . We obtain samples of size n\in\{500,1000,10000\} via sempler [ 16 ] . We run (1) GES with a turning phase, known to improve performance [ 7 , 19 ] ; (2) LGES with ConservativeInsert , (3) LGES with SafeInsert , (4) PC [ 48 ] , and (5) NoTears [ 54 ] . 2 2 2 All implementations in Python. LGES, GES: https://github.com/juangamella/ges , PC: causal-learn [ 55 ] , NoTears: causal-nex [ 3 ] Our GES implementations share as much code as possible. Results. In this section, we present results for ER2 graphs, p up to 150, and n=10^{4} ; see Sec. D.1 for additional results (including precision and recall metrics), which follow a similar trend. LGES both with SafeInsert and with ConservativeInsert outperforms GES in runtime and accuracy as measured by Structural Hamming Distance (SHD) [ 50 ] between the estimated and true CPDAGs (Figs. 4(c) , 4(a) ). Both variants of LGES are up to an order of magnitude faster than GES, making significantly fewer scoring operations under the hood (Fig. 1(h) ). In terms of SHD, LGES with ConservativeInsert is up to 2 times more accurate than GES, for instance, resulting in only \approx 30 incorrect edges on average in graphs with 150 variables and 300 edges in expectation. The difference in accuracy is due to excess adjacencies and incorrect orientations; missing adjacencies almost never occur. PC, though fast, is less accurate than even GES. NoTears has much worse accuracy than other methods (for e.g., average SHD \approx 125 on graphs with 100 variables), though its runtime appears to scale better (Figs. 1(c) , 1(d) ). 5.2 Repairing misspecified causal models Synthetic data and baselines. We study the effect of the correctness of prior assumptions when the available data is limited ( n=1000 ) on ER2 graphs with up to 50 variables, with data generated as in Sec. 5.1 . For a true DAG \mathcal{G} with m edges, we generate prior assumptions on m^{\prime}\in\{m/2,\ 3m/4\} required edges as follows. We vary the fraction fc of the chosen m^{\prime} edges that is ‘correct’, with c\cdot m^{\prime} edges chosen correctly from those in \mathcal{G} and the remaining chosen incorrectly from those not in \mathcal{G} . We compare GES-0 and LGES-0 (no initialisation); LGES (only priority insertions); and GES-Init and LGES- Init (only initialisation). We evaluate both variants of LGES across all settings. Results. In Figs. 4(b) and 4(d) , we show results for m^{\prime}=m/2 , with additional results in Sec. D.2 . LGES with ConservativeInsert outperforms GES and GES-Init across all levels of prior correctness in terms of time and SHD. When the prior is mostly accurate ( fc \in\{0.75,1\} ), LGES- Init performs marginally better than LGES, with both outperforming LGES-0 in runtime and marginally in accuracy. With more misspecification ( fc \in\{0.5,0.25,0.0\} ), LGES with ConservativeInsert outperforms all other methods that use the prior assumptions, as well as GES-0, run without these assumptions. Thus, our prioritization strategy (Sec. 3.3 ) can leverage prior assumptions but still be robust to misspecification. 5.3 Learning from interventional data Figure 5 : Runtime of LGIES and GIES on interventional data from Erdős–Rényi graphs with p variables and 2p edges. The time axis uses a log scale. We generate n=10^{4} observational samples and n=10^{3} samples per intervention. Error bars denote one standard deviation across 50 random seeds. Synthetic data and baselines . We follow a similar set-up as Sec. 5.1 with 10^{4} observational samples. For a graph on p variables, we randomly construct |\mathcal{I}|=p/10 interventions and generate 10^{3} samples for each. We compare LGES with SafeInsert / ConservativeInsert and \mathcal{I} - Orient (denoted LGIES) against GIES [ 19 ] . 3 3 3 https://github.com/juangamella/gies Results. LGES is up to 10x faster than GIES (Fig. 5 ). In terms of accuracy, LGES with ConservativeInsert and GIES attain competitive SHD from the true \mathcal{I} -MEC (Fig. D.3.1 ). 6 Conclusions In this paper, we introduced LGES (Alg. 1 ), a novel and asymptotically correct algorithm for causal discovery from both observational and interventional data. LGES significantly improves on GES in terms of runtime and accuracy using a more careful and less greedy search strategy, avoiding edge insertions between variables for which it finds a witness of conditional independence. It can also leverage prior assumptions to guide the search, and remains more accurate than GES even when those assumptions are misspecified. We also developed \mathcal{I} - Orient (Alg. 2 ), a score-based and theoretically sound (Thm. 2 ) algorithm for orienting edges in the learned MEC using interventional data. Together, LGES and \mathcal{I} - Orient are significantly faster than GIES and achieve comparable accuracy. A limitation of our approach is that it uses interventional data only after the observational MEC is learned. A natural direction for future work is to incorporate interventional data during the search, while preserving LGES’s theoretical guarantees. Appendices Contents Appendix A Background and related works A.1 Definitions and previous results First, we provide definitions and results used in the main text. Definition A.1 ( d -separation [ 35 ] ) . Given a causal DAG \mathcal{G} , a node W on a path \pi is said to be a collider on \pi if W has converging arrows into W in \pi , e.g., \rightarrow W\leftarrow or \leftrightarrow W\leftarrow . \pi is said to be blocked by a set \mathbf{Z} if there exists a node W on \pi satisfying one of the following two conditions: 1) W is a collider, and neither W nor any of its descendants are in \mathbf{Z} , or 2) W is not a collider, and W is in \mathbf{Z} . Given disjoint sets \mathbf{X},\mathbf{Y} , and \mathbf{Z} in \mathcal{G} , \mathbf{Z} is said to d -separate \mathbf{X} from \mathbf{Y} in \mathcal{G} if \mathbf{Z} blocks every path from a node in \mathbf{X} to a node in \mathbf{Y} according to the d -separation criterion. Definition A.2 ( Delete operator, [ 7 , Def. 13] ) . For adjacent nodes X,Y in \mathcal{E} connected as either X\to Y or X-Y , and for any \mathbf{H}\subseteq\mathbf{Ne}^{\mathcal{E}}_{Y}\cap\mathbf{Adj}_{X}^{\mathcal{E}} , the Delete (X,Y,\mathbf{T}) operator modifies \mathcal{E} by deleting the edge between X and Y , and for each T\in\mathbf{T} , directing any undirected edges X-T as X\to T and any Y-T as Y\to T . Definition A.3 (Decomposable scoring criterion [ 7 , Sec. 2.3] ) . Let \mathbf{D} be a set of data consisting of iid samples from some distribution P(\mathbf{v}) . A scoring criterion S is said to be decomposable if it can be written as a sum of measures, each of which is a function of only a single node and its parents, as S(\mathcal{G},\mathbf{D})=\sum_{V_{i}\in\mathbf{V}}s(v_{i},pa^{\mathcal{G}}_{i}) Each local score s(v_{i},pa^{\mathcal{G}}_{i}) depends only on the values of V_{i} and \mathbf{Pa}_{i} in \mathbf{D} . Definition A.4 (Consistent scoring criterion [ 7 , Def. 5] ) . Let \mathbf{D} be a set of data consisting of iid samples from some distribution P(\mathbf{v}) . A scoring criterion S is said to be consistent if, as the number of samples goes to infinity, the following two properties hold for any DAGs \mathcal{G},\mathcal{H} : 1. If P(\mathbf{v}) is Markov with respect to \mathcal{G} but not \mathcal{H} , then S(\mathcal{G},\mathbf{D})>S(\mathcal{H},\mathbf{D}) . 2. If P(\mathbf{v}) is Markov with respect to both \mathcal{G} and \mathcal{H} , but \mathcal{G} contains fewer free parameters than \mathcal{H} , then S(\mathcal{G},\mathbf{D})>S(\mathcal{H},\mathbf{D}) . Definition A.5 (Score-equivalent scoring criterion [ 7 , Sec 2.3] ) . Let \mathbf{D} be a set of data consisting of iid samples from some distribution P(\mathbf{v}) . A scoring criterion S is said to be score-equivalent if, as the number of samples goes to infinity, for any two DAGs \mathcal{G},\mathcal{H} that are Markov equivalent, S(\mathcal{G},\mathbf{D})=S(\mathcal{}H,\mathbf{D}) . Definition A.6 (Soft unconditional intervention [ 19 , Sec. 2.1] ) . A soft unconditional intervention on a set of variables \mathbf{X} sets the value of each variable V_{i}\in\mathbf{X} to an independent random variable U_{i} from a given set of random variables \mathbf{U} . The resulting distribution is given by P_{\mathbf{X}}(\mathbf{v})=\prod_{V_{i}\not\in\mathbf{X}}P(v_{i}\mid pa_{i})\prod_{V_{i}\in\mathbf{X}}P^{*}(v_{i}) where P^{*}(v_{i}) denotes the distribution of U_{i}\in\mathbf{U} corresponding to V_{i}\in\mathbf{X} . Definition A.7 ( \mathcal{I} -Markov property [ 19 , Def. 7] ) . Let \mathbf{V} be a set of variables, \mathcal{G} a causal DAG over \mathbf{V} , \mathcal{I} a family of interventional targets, and (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} a corresponding family of interventional distributions. We say (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} satisfies the \mathcal{I} -Markov Property of \mathcal{G} if: 1. Each P_{\mathbf{I}}(\mathbf{v}) is Markov with respect to the interventional graph \mathcal{G}_{\overline{\mathbf{I}}} , and 2. For interventions \mathbf{I},\mathbf{J}\in\mathcal{I} and variables V_{i}\not\in\mathbf{I}\cup\mathbf{J} , P_{\mathbf{I}}(v_{i}\mid pa_{i})=P_{\mathbf{J}}(v_{i}\mid pa_{i}) . We let \mathcal{M}_{\mathcal{I}}(\mathcal{G}) denote the set of all (\mathbf{P}_{\mathbf{I}}(\mathbf{v}))_{\mathbf{I}\in\mathcal{I}} that are \mathcal{I} -Markov with respect to \mathcal{G} . Two causal DAGs \mathcal{G},\mathcal{H} are \mathcal{I} -Markov equivalent if \mathcal{M}_{\mathcal{I}}(\mathcal{G})=\mathcal{M}_{\mathcal{I}}(\mathcal{H}) . Meek orientation rules. In Fig. A.1.1 , we provide Meek’s orientation rules used in \mathcal{I} - Orient to orient an \mathcal{I} -MEC. These rules provide an algorithm for completing a PDAG to a completed PDAG. They are applied repeatedly to a PDAG until no eligible motifs exist. Figure A.1.1 : Meek orientation rules for completing partially directed acyclic graphs Next, introduce some additional definitions and results that will be used in Sec. C . The skeleton of a causal DAG \mathcal{G} (denoted skel(\mathcal{G}) ) is the undirected graph that results from ignoring the edge directions of every edge in \mathcal{G} . A triplet of variables (X,Z,Y) in \mathcal{G} is said to be unshielded if (X,Z) and (Y,Z) are adjacent but (X,Y) are not. An unshielded triplet is said to be a v-structure (or unshielded collider ) if it is oriented as X\to Z\leftarrow Y in \mathcal{G} . Theorem A.1 (Graphical criterion for Markov equivalence [ 51 , Thm. 1] ) . Two DAGs are Markov equivalent if and only if they have the same skeletons and same v-structures. Based on the above characterization, to obtain the CPDAG for the MEC corresponding to a DAG \mathcal{G} , one adds an undirected edge for every adjacency in \mathcal{G} ; orients any v-structures according to \mathcal{G} ; then applies Meek’s orientation rules to complete the resulting PDAG to a CPDAG. Definition A.8 (Global Markov property [ 35 ] ) . A probability distribution P(\mathbf{v}) over a set of variables \mathbf{V} is said to satisfy the global Markov property for a causal DAG \mathcal{G} if, for arbitrary disjoint sets \mathbf{X},\mathbf{Y},\mathbf{Z}\subset\mathbf{V} with \mathbf{X},\mathbf{Y}\neq\emptyset , \mathbf{X}\perp_{d}\mathbf{Y}|\mathbf{Z}\implies\mathbf{X}\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}\mathbf{Y}|\mathbf{Z}\text{ in }P(\mathbf{v}). Let \mathbf{Nd}_{X}^{\mathcal{G}} denote the set of non-descendants of a variable X in \mathcal{G} , i.e. variables in \mathcal{G} (excluding X itself) to which there is no directed path from X . Definition A.9 (Local Markov property [ 35 ] ) . A probability distribution P(\mathbf{v}) over a set of variables \mathbf{V} is said to satisfy the local Markov property for a causal DAG \mathcal{G} if, for every variable X\in\mathbf{V} , X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}\mathbf{Nd}_{X}^{\mathcal{G}}\mid\mathbf{Pa}_{X}^{\mathcal{G}}\text{ in }P(\mathbf{v}). Proposition A.1 (Equivalence of Local and Global Markov Properties [ 24 , Prop. 4] ) . Let \mathcal{G} be a causal DAG over variables \mathbf{V} . A probability distribution over \mathbf{V} satisfies the global Markov property for \mathcal{G} if and only if it satisfies the local Markov property for \mathcal{G} . Definition A.10 (Covered edge [ 6 , Def. 2] ) . An edge X\to Y in a given causal DAG \mathcal{G} is said to be covered if \mathbf{Pa}_{Y}^{\mathcal{G}}=\mathbf{Pa}_{X}^{\mathcal{G}}\cup\{X\} . Lemma A.1 (Covered edge reversal [ 6 , Lemma. 1] ) . Let \mathcal{G} be any causal DAG containing the edge X\to Y and let \mathcal{G}^{\prime} be the DAG that is identical to \mathcal{G} except it instead contains the edge Y\to X . Then, \mathcal{G}^{\prime} is a DAG that is Markov equivalent to \mathcal{G} iff the edge X\to Y is covered in \mathcal{G} . Theorem A.2 (Transformational characterization of Markov equivalent graphs [ 6 , Thm. 2] ) . Let \mathcal{G},\mathcal{G}^{\prime} be a pair of Markov equivalent causal DAGs. Then, there exists a sequence of covered edge reversals transforming \mathcal{G} to \mathcal{G}^{\prime} . Theorem A.3 (Chickering-Meek theorem [ 7 , Thm. 4] ) . let \mathcal{G} and \mathcal{H} be a pair of causal DAGs such every d -separation that holds in \mathcal{H} also holds in \mathcal{G} . Then, there exists a sequence of edge additions and covered edge reversals transforming \mathcal{G} to \mathcal{H} such that after each reversal and addition, \mathcal{G} is DAG and every d -separation that holds \mathcal{H} also holds in \mathcal{G} . A.2 Related works A.2.1 Learning from observational data Algorithms for causal discovery fall into three broad categories: constraint-based, score-based, and hybrid. Constraint-based algorithms like PC [ 48 ] and the Sparsest Permutations (SP) algorithm [ 38 ] learn the true MEC using statistical tests for whether the chosen type of constraints, typically conditional independencies, hold in the data. A challenge to these approaches is improving the accuracy of conditional independence tests, for e.g. in controlling type I error [ 46 ] . Score-based algorithms such as GES [ 7 , 28 ] use a scoring criterion that reflects fit between data and graph, typically in the form of a likelihood plus a complexity penalty. Hybrid algorithms such as max-min hill climbing [ 50 ] use a combination of the two approaches, for e.g., first learning the skeleton using a constraint-based method then orienting edges in the skeleton using a score. There is no general claim about the relative accuracy of these methods; we refer readers to [ 50 ] for an extensive empirical analysis, who found, for instance, that GES outperforms PC in accuracy across various sample sizes [ 50 , Tables 4, 5] . Commonly, causal discovery algorithms struggle with scaling in high-dimensional settings. This has motivated variants such as Parallel-PC [ 25 ] and Fast Greedy Equivalence Search (FGES) [ 37 ] , which offer faster, parallelized implementations of the algorithms. While FGES offers an additional heuristic over GES, i.e., not adding any edge X\to Y in the forward phase if X,Y are uncorrelated in the data, this heuristic is not theoretically guaranteed to recover the true MEC. More recent continuous-optimization based approaches such as NoTears [ 54 ] are in principle more scalable, but lack theoretical guarantees and show brittle performance even in simulated settings [ 32 , 39 ] . A.2.2 Repairing misspecified causal models The task of repairing a partially misspecified causal model using data can be understood as an example of causal discovery with background knowledge [ 11 ] . Such background knowledge may be provided by a domain expert or even a large language model [ 27 ] . Many algorithms under this umbrella—including tiered-FCI [ 44 ] and the K2 algorithm [ 12 ] —assume that the background knowledge is correct, i.e., consistent with the ground truth. However, if the expert is imperfect, such methods necessarily fail to recover the true MEC. The approach in [ 33 ] allows some misspecification of the expert knowledge, i.e. missing or excess adjacencies, but no incorrect orientations. However, their approach does not guarantee recovery of the true MEC. Other approaches treat knowledge a ‘soft’ prior [ 5 , 21 , 34 ] to guide the search, but lack theoretical guarantees on the output graph. One exception is the Sparsest Permutations (SP) algorithm [ 38 ] , which can initialize the search to an ordering over variables provided by an expert. A.2.3 Learning from interventional data Observational learning algorithms can only learn a causal graph up to its observational Markov equivalence class (MEC). The MEC is the limit of what can be identified from observational data without further assumptions. However, MECs can often be large and uninformative for downstream causal tasks [ 20 ] . Interventional data can help significantly refine observational MECs [ 19 ] , and is becoming increasingly available, for e.g., in biological settings due to advances in single-cell technologies [ 14 , 43 ] . This has motivated the design of algorithms for causal discovery from observational and interventional data such as the score-based Greedy Interventional Equivalence Search (GIES) [ 19 ] and the CI-based Interventional Greedy Sparsest Permutations (I-GSP) [ 52 ] . However, in [ 52 ] , it was shown that GIES is inconsistent, i.e.. not guaranteed to recover the true interventional MEC in the sample limit. Appendix B Discussion and examples Causal sufficiency. In this work, we assume that the underlying system is Markovian , i.e. no two observed variables have an unobserved common cause. This is also known as the causal sufficiency assumption. While this assumption is standard in causal discovery, it can be violated in practice. In settings with unobserved confounders, i.e., non-Markovian settings, the equivalence class of graphs that can be identified is typically even larger (and hence more uninformative) than in the Markovian case. One reason for this is that two variables may be non-adjacent in the true graph while still being inseparable by any set due to the existence of an inducing path between them [ 51 , Def. 2] . As a result, performing causal inference from equivalence classes of non-Markovian graphs is challenging. Still, there has been work on causal discovery in non-Markovian settings. Constraint-based approaches include the FCI algorithm [ 47 , 53 ] and its interventional variants [ 22 , 23 , 26 ] , guaranteed to recover the true equivalence class in the sample limit. While there has been progress towards score-based approaches [ 4 , 10 , 40 , 49 ] , finding algorithms that are asymptotically correct remains an open problem. There is a fundamental theoretical challenge to generalizing our approach to non-Markovian settings. GES relies on a transformational characterization of Markovian causal DAGs that are (a) Markov equivalent (Thm. A.2 ) or (b) such that all d -separations that hold in one also hold in the other (Thm. A.3 ). While the former has been generalized to non-Markovian causal DAGs, the latter remains an open problem [ 53 ] . Other assumptions. In this work, we assume we are given a distribution that is Markov and faithful with respect to some causal DAG. This is a standard assumption in causal discovery, often justified by the fact that the set of distributions that are Markov but not faithful with respect to a given DAG has Lebesgue measure zero. Moreover, if we assume only that the given distribution is Markov with respect to some causal DAG, we can never rule out the true DAG being the fully connected DAG. Still, there has been work on relaxing the faithfulness assumption, giving rise to the Sparsest Permutations algorithm [ 38 ] . We further assume in this work that we are given a scoring criterion that is decomposable and consistent. This does not strictly mean we make parametric assumptions. Existing scores such as BIC satisfy these criteria as long as the model is a curved exponential family [ 7 , 18 ] . This includes multinomial (discrete) and linear-Gaussian models. For continuous data, the linear-Gaussian assumption can be violated in practice. In this case, one can discretize the data before using it for causal discovery, as in [ 42 ] . However, since the parameter space of multinomial models is quite large, and information is lost during discretization, it would be valuable future work to investigate scores for other models of continuous data. Finally, we return to our explanation of the two trajectories GES might take in Ex. 2 , Fig. 2 . Figure B.0.1 : Figs. 2 , 3 partially reproduced for convenience. GES is given a distribution P(\mathbf{v}) whose true MEC is represented by \mathcal{E}^{*} (left). GES is currently at MEC \mathcal{E} , evaluating which Insert operator to apply next. Each Insert corresponds to picking some \mathcal{G}\in\mathcal{E} and adding some edge to it. Example B.1 . (Ex. 2 continued). Recall that GES is given a distribution P(\mathbf{v}) whose true MEC is \mathcal{E}^{*} (Fig. B.0.1 , left). GES is currently at the MEC \mathcal{E} , evaluating which Insert operator to apply. Each Insert operator corresponds to picking some DAG \mathcal{G}\in\mathcal{E} and adding some edge to it. One such operator corresponds to picking \mathcal{G}_{1}\in\mathcal{E} , and adding the edge X_{1}\to Z to it. Another such operator corresponds to picking \mathcal{G}_{2}\in\mathcal{E} , and adding the edge X_{1}\to Y to it. Both operators, shown in Fig. B.0.1 , result in a score increase by local consistency (Def. 1 ) since Z\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X_{1}\mid\mathbf{Pa}_{Z}^{\mathcal{G}_{1}} and Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X_{1}\mid\mathbf{Pa}_{Y}^{\mathcal{G}_{2}} in P(\mathbf{v}) . Although \mathcal{G}_{1}\cup X_{1}\to Z looks ‘closer’ to the true MEC \mathcal{E}^{*} than \mathcal{G}_{2}\cup X_{!}\to Y , when tested empirically, the latter often scores more than the former (Ex. 2 ). Moreover, even in the sample limit, the consistency (Def. A.4 ) of the scoring criterion does not guarantee that \mathcal{G}_{2}\cup\{X_{1}\to Y\} will score lower than \mathcal{G}_{1}\cup\{X_{1}\to Z\} . Neither the global nor the local consistency of the score provide an immediate guarantee for which will score higher. Global consistency only allows us to compare graphs when P(\mathbf{v}) is Markov with respect to at least one of them; however, P(\mathbf{v}) is not Markov with respect to \mathcal{G}_{2}\cup\{X_{1}\to Y\} or \mathcal{G}_{1}\cup\{X_{1}\to Z\} . Local consistency (Def. 1 ) does not let us compare these graphs either, since they differ by more than an edge addition. Therefore, GES may move either to the MEC of \mathcal{G}_{1}\cup\{X_{1}\to Z\} (as in \tau_{1} , Fig. 2 ) or to the MEC of \mathcal{G}_{2}\cup\{X_{1}\to Y\} (as in \tau_{2} , Fig. 2 ). It is unknown a priori which operator is the highest-scoring. ∎ Appendix C Proofs and additional results Theorem 1 (Correctness of GGES) . Let \mathcal{E} denote the Markov equivalence class that results from GGES (Alg. 3 ) initialized from an arbitrary MEC \mathcal{E}_{0} and let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated. Then, as the number of samples goes to infinity, \mathcal{E} is the Markov equivalence class underlying P(\mathbf{v}) . Proof. The proof is similar to that of [ 7 , Lemma 9, 10] . Forward phase. First, we show that P(\mathbf{v}) is Markov with respect to the MEC \mathcal{E}^{\prime} resulting from the forward phase of GGES. Let \mathcal{G} be any DAG in \mathcal{E}^{\prime} . By assumption, since GetInsert does not find any valid score-increasing Insert operators, there exists no such operator. Since there exist no score-increasing Insert operators, the local consistency of the scoring criterion (Def. 1 ) implies that for every X\in\mathcal{G} and Y\in\mathbf{Nd}_{X}^{\mathcal{G}} , X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y\mid\mathbf{Pa}_{X}^{\mathcal{G}} . Otherwise, if we had some X\in\mathcal{G} and Y\in\mathbf{Nd}_{X}^{\mathcal{G}} such that X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y\mid\mathbf{Pa}_{X}^{\mathcal{G}} , the Insert (Y,X,*) operator corresponding to \mathcal{G}\cup\{Y\to X\} would result in a score increase. Since P(\mathbf{v}) is faithful to some DAG, it satisfies the composition axiom of conditional independence [ 35 ] : if X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y\mid\mathbf{Pa}_{X}^{\mathcal{G}} for every Y\in\mathbf{Nd}_{X}^{\mathcal{G}} , then X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}\mathbf{Nd}_{X}^{\mathcal{G}}\mid\mathbf{Pa}_{X}^{\mathcal{G}} . Since this is true for every X , P(\mathbf{v}) satisfies the local Markov property of \mathcal{G} . By the equivalence of the global and local Markov properties (Prop. A.1 ), this means every d-separation in \mathcal{G} implies a corresponding CI in P(\mathbf{v}) . Thus, P(\mathbf{v}) is Markov with respect to \mathcal{G} and hence to \mathcal{E}^{\prime} . Backward phase. Next, we show that P(\mathbf{v}) is both Markov and faithful to the MEC \mathcal{E} resulting from the backward phase of GGES. First, we show that P(\mathbf{v}) is Markov with respect to \mathcal{E} . The backward phase starts with \mathcal{E}^{\prime} , output by the forward phase. We have shown that P(\mathbf{v}) is Markov with respect to \mathcal{E}^{\prime} . By construction, each Delete operator applied to the current MEC in the backward phase results in a score increase. If any operator resulted in an \mathcal{E}^{\prime\prime} with respect to which P(\mathbf{v}) is not Markov, the consistency of the scoring criterion A.4 implies that it would decrease the score. Therefore, P(\mathbf{v}) must be Markov with respect to \mathcal{E} . Finally, we show that P(\mathbf{v}) is faithful to \mathcal{E} . Let \mathcal{E}^{*} be the true MEC underlying P(\mathbf{v}) . Since P(\mathbf{v}) is both Markov and faithful with respect to \mathcal{E}^{*} , and P(\mathbf{v}) is Markov with respect to \mathcal{E} , every d -separation in \mathcal{E} must also hold in \mathcal{E}^{*} . Then, by the Chickering-Meek theorem (Thm. A.3 ), for any \mathcal{G}\in\mathcal{E} and \mathcal{H}\in\mathcal{E}^{*} , there exists a sequence of covered edge reversals and edge additions that transform \mathcal{H} to \mathcal{G} . If this sequence only contains covered edge reversals, then \mathcal{H} and \mathcal{G} are Markov-equivalent (Lemma. A.1 ), and we are done. Otherwise, let the last edge addition in this sequence add the edge X\to Y , resulting in the DAG \mathcal{G}^{\prime} . Since \mathcal{G}^{\prime} can be transformed to \mathcal{G} by a sequence of covered edge reversals, they are Markov equivalent, and we have \mathcal{G}^{\prime}\in\mathcal{E} (Lemma. A.1 ). Moreover, since this sequence of transformations includes only covered edge reversals and edge additions, and P(\mathbf{v}) is Markov with respect to \mathcal{H} , P(\mathbf{v}) is also Markov with respect to \mathcal{G}^{\prime}\setminus\{X\to Y\} (by Lemma. A.1 , covered edge reversals and additions do not create additional d -separations). By the consistency of the scoring criterion, \mathcal{G}^{\prime}\setminus\{X\to Y\} has a higher score than \mathcal{G}^{\prime}\in\mathcal{E} since the former has fewer parameters. The corresponding Delete operator thus results in a score increase, and by assumption, GetDelete is guaranteed to find some score-increasing operator in this case. Thus, we have a contradiction. ∎ Proposition 1 . Let \mathcal{E} denote an arbitrary CPDAG and let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated. Assume, as the number of samples goes to infinity, that there exists a valid score-decreasing Insert (X,Y,\mathbf{T}) operator for \mathcal{E} . Then, there exists a DAG \mathcal{G}\in\mathcal{E} such that (1) Y\perp_{d}X\mid\mathbf{Pa}^{\mathcal{G}}_{Y} and (2) Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X\mid\mathbf{Pa}^{\mathcal{G}}_{Y} in P(\mathbf{v}) . Proof. The score change of a valid Insert (X,Y,\mathbf{T}) corresponds to picking a DAG \mathcal{G}\in\mathcal{E} and comparing S(\mathcal{G},\mathbf{D}) with S(\mathcal{G}\cup\{X\to Y\},\mathbf{D}) . By local consistency (Def. 1 ), if Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X\mid\mathbf{Pa}_{Y}^{\mathcal{G}} , then the score must increase. By contrapositive, we have Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X\mid\mathbf{Pa}_{Y}^{\mathcal{G}} in P(\mathbf{v}) . Moreover, since X must be a non-descendant of Y for \mathcal{G}\cup\{X\to Y\} to be a DAG, Y\perp_{d}X\mid\mathbf{Pa}_{Y}^{\mathcal{G}} in \mathcal{G} . ∎ We provide the following guarantee for LGES Alg. 1 run with ConservativeInsert (Strategy 1 ). Proposition C.1 (Partial guarantee on ConservativeInsert ) . Let LGES ∗ denote the variant of LGES (Alg. 1 ) that uses ConservativeInsert instead of SafeInsert in the forward phase. Let \mathcal{E} denote the equivalence class that results from the forward phase of LGES ∗ initialized to an arbitrary MEC \mathcal{E}_{0} , let P(\mathbf{v}) denote the distribution from which the data \mathbf{D} was generated, and let \mathcal{E}^{*} be the true MEC underlying P(\mathbf{v}) . Then, as the number of samples goes to infinity, 1. skel(\mathcal{E}^{*})\subseteq skel(\mathcal{E}) 2. For any unshielded triplet (X,Z,Y)\in\mathcal{E}^{*} , either X,Y are adjacent in \mathcal{E} or (X,Z,Y) is a collider in \mathcal{E}^{*} if and only if it is a collider in \mathcal{E} . Proof. For any variables X,Y adjacent in \mathcal{E}^{*} , since P(\mathbf{v}) is faithful to \mathcal{E}^{*} , X,Y are not independent in the data conditional on any set \mathbf{Z}\subseteq\mathbf{V} . Hence, for any \mathcal{G}\in\mathcal{E} , X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y\mid\mathbf{Pa}_{Y}^{\mathcal{G}} . Therefore, we always have s(\mathcal{G})s_{\mathbf{D}_{\mathbf{I}}}(y,x) . \implies Assume \mathcal{E}^{*} contains Y\to X . If X\to Y\in\mathcal{E}^{*} , then X\to Y in every DAG \mathcal{G}\in\mathcal{E}^{*} . This implies that in every \mathcal{G}\in\mathcal{E}^{*} , there are no directed paths from Y\to X in \mathcal{G} and hence \mathcal{G}_{\overline{\mathbf{I}}} . Moreover, since all edges into X are removed in \mathcal{G}_{\overline{\mathbf{I}}} , there are no directed paths from X\to Y in \mathcal{G}_{\overline{\mathbf{I}}} . Since P_{\mathbf{I}}(\mathbf{v}) is Markov with respect to \mathcal{G}_{\overline{\mathbf{I}}} , this implies X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y in P_{\mathbf{I}}(\mathbf{v}) . Let \mathcal{H} denote the empty graph over variables \mathbf{V} . Since X\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}Y in P_{\mathbf{I}}(\mathbf{v}) , by the local consistency of the scoring criterion, \mathcal{H} has a higher score than \mathcal{H}\cup\{X\to Y\} . By the decomposability of the scoring criterion, this implies s_{\mathbf{D}_{\mathbf{I}}}(y)>s_{\mathbf{D}_{\mathbf{I}}}(y,x) . Since \mathbf{I} was arbitrary, this must be true for each \mathbf{I}\in\mathcal{I} such that X\in\mathbf{I},Y\not\in\mathbf{I} . \impliedby Assume that s_{\mathbf{D}_{\mathbf{I}}}(y)>s_{\mathbf{D}_{\mathbf{I}}}(y,x) for some \mathbf{I}\in\mathcal{I} . Let \mathcal{H} denote the empty graph over variables \mathbf{V} . Then, since s_{\mathbf{D}_{\mathbf{I}}}(y)>s_{\mathbf{D}_{\mathbf{I}}}(y,x) , the decomposability of the scoring criterion implies that \mathcal{H} has a higher score than \mathcal{H}\cup\{X\to Y\} . If Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{\not}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{\not}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{\not}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X in P_{\mathbf{I}}(\mathbf{v}) , the local consistency of the scoring criterion would imply that \mathcal{H} has a lower score than \mathcal{H}\cup\{X\to Y\} . By contrapositive, it must be true that Y\mathbin{\mathchoice{\hbox to0.0pt{\hbox{$\displaystyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\displaystyle\perp$}}{\hbox to0.0pt{\hbox{$\textstyle\perp$}\hss}\kern 3.46875pt{}\kern 3.46875pt\hbox{$\textstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptstyle\perp$}\hss}\kern 2.48856pt{}\kern 2.48856pt\hbox{$\scriptstyle\perp$}}{\hbox to0.0pt{\hbox{$\scriptscriptstyle\perp$}\hss}\kern 1.78203pt{}\kern 1.78203pt\hbox{$\scriptscriptstyle\perp$}}}X in P_{\mathbf{I}}(\mathbf{v}) . Since P_{\mathbf{I}}(\mathbf{v}) is faithful to \mathcal{G}_{\overline{\mathbf{I}}} for some \mathcal{G}\in\mathcal{E}^{*} , this must imply that X,Y are non-adjacent in \mathcal{G}_{\overline{\mathbf{I}}} . Since X,Y are adjacent in \mathcal{E}^{*} , and X\in\mathbf{I},Y\not\in\mathbf{I} , this implies that \mathcal{G} and \mathcal{E}^{*} contain Y\to X . This further implies that if the supposition is true for some \mathbf{I}\in\mathcal{I} with X\in\mathbf{I},Y\not\in\mathbf{I} , it must be true for all of them. The argument to show that \mathcal{E}^{*} contains X\to Y if and only if for every \mathbf{I} with X\in\mathbf{I},Y\not\in\mathbf{I} , s_{\mathbf{D}_{\mathbf{I}}}(y)\Delta S_{xy} then 8 \Delta S_{xy}\leftarrow\Delta S ; 9 (\hat{X},\hat{Y},\hat{\mathbf{T}})\leftarrow(X,Y,\mathbf{T}) ; 10 else if \Delta S<0 then 11 \Delta S_{xy}\leftarrow-\infty ; 12 break; 13 if \Delta S_{xy}>\Delta S_{max} then 14 \Delta S_{max}\leftarrow\Delta S_{xy} ; 15 (X_{max},Y_{max},\mathbf{T}_{max})\leftarrow(\hat{X},\hat{Y},\hat{\mathbf{T}}) ; 16 return (X_{max},Y_{max},\mathbf{T}_{max}) Algorithm 4 GetConservativeInsert Input: MEC \mathcal{E} , DAG \mathcal{G}\in\mathcal{E} , data \mathbf{D}\sim P(\mathbf{v}) , edge insertion candidates candidates , scoring criterion S Output: A valid score-increasing Insert operator for \mathcal{E} from the adjacencies in candidates , or \emptyset if none is found. \Delta S_{max}\leftarrow-\infty ; 1 (X_{max},Y_{max},\mathbf{T}_{max})\leftarrow\emptyset ; 2 foreach (X,Y) in candidates do 3 if X\in\mathbf{Nd}_{Y}^{\mathcal{G}} and s(Y,\mathbf{Pa}_{Y}^{\mathcal{G}})\Delta S_{max} then 7 \Delta S_{max}\leftarrow\Delta S ; 8 (X_{max},Y_{max},\mathbf{T}_{max})\leftarrow(X,Y,\mathbf{T}) ; 9 return (X_{max},Y_{max},\mathbf{T}_{max}) Algorithm 5 GetSafeInsert Input: MEC \mathcal{E} , prior assumptions \mathbf{S}=\langle\mathbf{R},\mathbf{F}\rangle priorityList\leftarrow[\{\}\times 4] ; 1 foreach (X,Y) non-adjacent in \mathcal{E} do 2 if X-*Y\in\mathbf{R} then 3 Add (X,Y) to priorityList[1] ; // required else if Y\to X\in\mathbf{R} then 4 Add (X,Y) to priorityList[2] ; // weakly required else if X\to Y\in\mathbf{F} or X-Y\in\mathbf{F} then 5 Add (X,Y) to priorityList[4] ; // forbidden else 6 Add (X,Y) to priorityList[3] ; // ambivalent 7 return priorityList 8 Algorithm 6 GetPriorityInserts Appendix D Experiments Compute details. All experiments were run on a shared compute cluster with 2x Intel Xeon Platinum 8480+ CPUs (112 cores total, 224 threads) at up to 3.8 GHz, and 210 MiB L3 cache. D.1 Learning from observational data D.1.1 Baseline details We ran the PC algorithm using significance level \alpha=0.05 for conditional independence tests, with the null hypothesis of independence. Since NoTears often outputs cyclic graphs, we post-processed the output graph by greedily removing the lowest-weight edges until it was acyclic, following [ 31 ] . This was done so that we could convert the output to a valid CPDAG for comparison with other algorithms. We ran NoTears with default parameters from the causalnex library, which uses a weight threshold of w=0 ; note that performance may vary depending on the choice of parameters, particularly the weight threshold and the acyclicity penalty parameter. However, since the implementation of NoTears is very compute-heavy, we were not able to tune these parameters. D.1.2 Synthetic data details for Experiment 5.1 For the results shown in Fig. 4 , we draw Erdős–Rényi graphs with p variables and \{2p edges in expectation (ER2), for p\in\{5,10,15,20,25,35,50,75,100,150\} . For each p , we sample 50 graphs and generate linear-Gaussian data for each graph. Following [ 31 ] , we draw weights from \mathcal{U}([-2,-0.5]\cup[0.5,2]) . In some cases, the resulting weight matrix was (almost) singular, in which case each row of weights was \ell_{1} normalized. We draw noise means from \mathcal{N}(0,1) and noise variances from \mathcal{U}([0.1,0.5]) . We obtain n=10^{4} samples per dataset via sempler [ 16 ] . D.1.3 Further metrics for Experiment 5.1 In Fig. D.1.1 , we present additional metrics and results for the setting in Sec. 5.1 , including the particular types of structural errors (excess adjacencies, missing adjacencies, incorrect orientations) and the number of scoring operations conducted by the various algorithms. As in the case of SHD and runtime, LGES outperforms GES and PC across these metrics, with ConservativeInsert outperforming SafeInsert . The behaviour of NoTears is more variable. It misses significantly more adjacencies than all other methods—approximately linearly many in the number of variables (Fig. 1(f) ). It also includes many more excess adjacencies than the other algorithms up to p=50 , after which the number of excess adjacencies begins to decline, ultimately approaching that of LGES for p=150 (Fig. 1(e) ); however, this could be explained by the increasing number of adjacencies that are also missed by NoTears. We show in the next section how, as a result, the F1 score of NoTears is low across all graph sizes (Fig. 2(f) ). D.1.4 Precision, recall, and F1 score for Experiment 5.1 Finally, we evaluate performance by considering causal discovery as a binary classification task. We use the task definition provided in [ 30 ] : an MEC \mathcal{E} is said to contain an edge (X,Y) if it contains either X\to Y or X-Y (but not Y\to X ). The results are shown in Fig. D.1.2 . For graphs with p<20 nodes, we find that GES and LGES have similar F1 scores. They both outperform PC, which in turn substantially outperforms NoTears. For p>20 , LGES with ConserativeInsert dominates, followed by LGES with SafeInsert . For large p , LGES with ConserativeInsert achieves a substantially higher F1 score than GES and other algorithms. For instance, for p=150 , LGES with ConserativeInsert achieves an F1 score > 0.9, whereas GES’s F1 score is slightly under 0.85. D.1.5 Additional experiments with denser graphs In Fig. D.1.3 , we provide results for Erdős–Rényi graphs with p variables and 3p edges in expectation (ER3), with a similar set-up as in Experiment 5.1 . We ran all baselines except NoTears due to its heavy compute usage. The relative performance of algorithms is similar to the ER2 case (Fig. D.1.1 ). Both variants of LGES are up to 10x faster than GES, and substantially more accurate than GES and PC. This shows that our search strategy improves on GES across various edge densities, not limited to sparse or to dense graphs. A noteworthy difference from the ER2 case is in the performance of the PC algorithm. The PC algorithm now includes fewer excess adjacencies than LGES and GES (Fig. 3(c) ), but misses many more adjacencies (Fig. 3(d) ). As a result, PC has a substantially lower F1 score than all other algorithms, though its accuracy in terms of SHD is similar to GES (Fig. 3(i) ). D.1.6 Additional experiments with small datasets Our experiments in the previous sections were conducted with n=10^{4} samples. We conduct additional experiments with smaller sample sizes, i.e. n\in\{500,1000\} for ER2 graphs with p\in\{10,25,50,100\} variables. The results are summarized in Fig. D.1.4 , with additional details in Table D.1.1 . • For smaller graphs ( p\in\{10,25\} ), GES and LGES with SafeInsert perform comparably across all metrics. LGES with ConservativeInsert performs comparably to GES and LGES with SafeInsert for sample size n=500 , but outperforms them both for n=1000 , making fewer structural errors and achieving a higher F1 score. • For larger graphs ( p\in\{10,25\} ), LGES with SafeInsert begins to outperform GES marginally. Notably, LGES with ConservativeInsert significantly outperforms GES, achieving >10 fewer structural errors for both sample sizes. • Interestingly the PC algorithm tends to outperform the other three algorithms in terms of SHD and excess adjacencies, though it tends to under-insert edges, missing substantially more adjacencies than all the other algorithms. LGES with ConservativeInsert also (a) SHD vs number of variables (NoTears omitted) (b) Runtime vs number of variables (NoTears omitted) (c) SHD vs number of variables (d) Runtime vs number of variables (e) Excess adjacencies vs number of variables. (f) Missing adjacencies vs number of variables. (g) Incorrect orientations vs number of variables. (h) Scoring operations vs number of variables. Figure D.1.1 : Performance of algorithms on observational data from Erdős–Rényi graphs with p variables and 2p edges and n=10^{4} samples (Experiment 5.1 , Sec. D.1.3 ). LGES is our proposed method. Lower is better (more accurate / faster) across all plots. The time axis uses a log scale. SHD denotes the structural Hamming distance between the true and estimated CPDAGs. Error bars denote one standard deviation across 50 random seeds. NoTears is omitted from the first row for clarity. (a) Precision vs number of variables (NoTears omitted) (b) Recall vs number of variables (NoTears omitted) (c) F1 score vs number of variables (NoTears omitted) (d) Precision vs number of variables (e) Recall vs number of variables (f) F1 score vs number of variables Figure D.1.2 : Binary classification accuracy of algorithms on observational data from Erdős–Rényi graphs with p variables and 2p edges and n=10^{4} samples (Experiment D.1.4 ). LGES is our proposed method. Higher is better across all plots. An MEC is said to contain an edge (X,Y) if it contains either X-Y or X\to Y (but not Y\to X ) (Sec. D.1.4 ). Error bars denote one standard deviation across 50 random seeds. NoTears is omitted from the first row for clarity. generally makes fewer misorientations than PC. As a result, LGES with ConservativeInsert tends to have comparable or better F1 score than the PC algorithm, except for the somewhat extreme case of n=100,p=500 . D.1.7 Additional experiments with larger graphs We scaled up Experiment 5.1 to graphs with p\in\{175,250,500\} variables. We ran LGES both with SafeInsert and with ConservativeInsert and PC for 50 random seeds for p\in\{175,250\} . The results are summarized in Table D.1.2 . We were unable to continue running GES and NoTears due to time and compute constraints; for instance, GES took over 10^{4} seconds without terminating for p=175 for a single trial. LGES both with SafeInsert and with ConservativeInsert is substantially more accurate (in terms of SHD and F1 score) than PC, with ConservativeInsert achieving less than half the structural error of PC. While PC is faster than LGES, LGES is much faster than GES, taking only \approx 5-6 minutes for p=175 and \approx 15-20 minutes for p=250 . Recall that for p=150 , GES was already approaching a runtime of 10^{4} seconds (>2 hours) (Fig. 1(b) ). Finally, we also ran LGES for p=500 for 5 random seeds. LGES with SafeInsert had an average SHD of 490.75 \pm 16.18 and an average runtime of 13657.00 \pm 1378.95 seconds ( \approx 3.8 hours). LGES with ConservativeInsert had an average SHD of 360.00 \pm 22.64 and an average runtime of 12214.55 \pm 1162.79 second ( \approx 3.4 hours). Thus, LGES remains feasible even for graphs with 500 variables. (a) SHD vs number of variables (b) Runtime vs number of variables (c) Excess adjacencies vs number of variables. (d) Missing adjacencies vs number of variables. (e) Incorrect orientations vs number of variables. (f) Scoring operations vs number of variables. (g) Precision vs number of variables. (h) Recall vs number of variables. (i) F1 score vs number of variables. Figure D.1.3 : Performance of algorithms on observational data from Erdős–Rényi graphs with p variables and 3p edges and n=10^{4} samples (Experiment D.1.5 ). LGES is our proposed method. Lower is better (more accurate / faster) across all metrics except precision, recall, and F1 score , for which higher is better. The time axis uses a log scale. SHD denotes the structural Hamming distance between the true and estimated CPDAGs. For the binary classification metrics (last row), an MEC is said to contain an edge (X,Y) if it contains either X-Y or X\to Y (but not Y\to X ) (Sec. D.1.4 ). Error bars denote one standard deviation across 50 random seeds. (a) F1 score ( n=500 ) (b) F1 score ( n=1000 ) (c) SHD ( n=500 ) (d) SHD ( n=1000 ) (e) Excess adjacencies ( n=500 ) (f) Excess adjacencies ( n=1000 ) (g) Missing adjacencies ( n=500 ) (h) Missing adjacencies ( n=1000 ) (i) Incorrect orientations ( n=500 ) (j) Incorrect orientations ( n=1000 ) Figure D.1.4 : Accuracy of algorithms on observational data from Erdős–Rényi graphs with p variables and 2p edges and small datasets with n\in\{500,1000\} samples (Experiment D.1.6 ). LGES is our proposed method. Lighter is better across all heatmaps. SHD denotes the structural Hamming distance between the true and estimated CPDAGs. For the F1 score, an MEC is defined as containing an edge (X,Y) if it contains either X-Y or X\to Y (but not Y\to X ) (Sec. D.1.4 ). Numbers denote averages across 50 random seeds. More details in Table D.1.1 . Metric Method \mathbf{n=500} \mathbf{n=1000} p=10 p=25 p=50 p=100 p=10 p=25 p=50 p=100 SHD PC 8.58 \pm 5.00 36.35 \pm 7.22 20.47 \pm 7.27 46.96 \pm 10.84 2.84 \pm 3.24 8.30 \pm 5.15 17.50 \pm 7.04 40.61 \pm 11.21 GES 9.14 \pm 5.91 65.68 \pm 22.98 32.37 \pm 8.01 100.93 \pm 13.71 2.46 \pm 4.85 10.02 \pm 10.33 25.12 \pm 7.58 76.68 \pm 13.32 LGES (Safe) 9.06 \pm 6.38 66.09 \pm 23.70 28.19 \pm 8.12 97.28 \pm 14.98 2.44 \pm 4.86 10.18 \pm 10.67 21.34 \pm 7.91 71.45 \pm 13.16 LGES (Cons) 9.38 \pm 6.35 65.55 \pm 23.81 22.26 \pm 14.47 75.17 \pm 14.86 2.02 \pm 4.79 6.98 \pm 9.40 13.78 \pm 7.97 53.41 \pm 13.45 False Positives PC 2.80 \pm 1.60 16.35 \pm 3.86 4.88 \pm 2.29 17.20 \pm 6.21 0.44 \pm 0.75 1.24 \pm 1.11 4.54 \pm 2.34 16.55 \pm 6.49 GES 4.88 \pm 3.64 48.68 \pm 20.71 21.19 \pm 5.51 76.24 \pm 10.55 1.08 \pm 2.18 6.12 \pm 6.53 15.76 \pm 5.04 55.64 \pm 10.44 LGES (Safe) 4.90 \pm 3.77 48.96 \pm 21.17 19.58 \pm 5.80 75.02 \pm 11.23 1.04 \pm 2.18 6.20 \pm 6.66 14.28 \pm 5.23 53.82 \pm 9.88 LGES (Cons) 5.10 \pm 3.75 48.57 \pm 21.13 16.88 \pm 10.78 61.13 \pm 10.78 0.80 \pm 2.11 4.58 \pm 6.24 10.68 \pm 5.27 43.68 \pm 8.94 False Negatives PC 3.42 \pm 2.73 14.88 \pm 4.18 7.02 \pm 4.11 12.02 \pm 5.78 1.20 \pm 1.52 3.08 \pm 2.62 5.10 \pm 3.71 8.25 \pm 5.67 GES 1.46 \pm 1.25 9.02 \pm 2.30 0.33 \pm 0.60 0.83 \pm 1.49 0.26 \pm 0.66 0.36 \pm 0.79 0.32 \pm 0.71 0.16 \pm 0.47 LGES (Safe) 1.36 \pm 1.09 9.02 \pm 2.40 0.30 \pm 0.55 0.72 \pm 1.39 0.26 \pm 0.66 0.44 \pm 0.92 0.26 \pm 0.63 0.27 \pm 0.65 LGES (Cons) 1.44 \pm 1.06 9.06 \pm 2.26 0.53 \pm 1.09 1.00 \pm 1.74 0.28 \pm 0.66 0.32 \pm 0.79 0.22 \pm 0.58 0.43 \pm 1.29 Wrong Orientations PC 2.36 \pm 1.84 5.12 \pm 2.09 8.56 \pm 4.10 17.74 \pm 6.80 1.20 \pm 1.81 3.98 \pm 2.77 7.86 \pm 4.43 15.82 \pm 5.92 GES 2.80 \pm 2.44 7.98 \pm 2.67 10.86 \pm 4.33 23.87 \pm 5.26 1.12 \pm 2.47 3.54 \pm 3.74 9.04 \pm 3.79 20.89 \pm 5.55 LGES (Safe) 2.80 \pm 2.80 8.11 \pm 2.90 8.30 \pm 3.97 21.54 \pm 5.51 1.14 \pm 2.47 3.54 \pm 3.87 6.80 \pm 3.75 17.36 \pm 5.01 LGES (Cons) 2.84 \pm 2.80 7.91 \pm 3.25 4.84 \pm 4.06 13.04 \pm 4.97 0.94 \pm 2.44 2.08 \pm 3.05 2.88 \pm 3.17 9.30 \pm 5.81 F1 Score PC 0.60 \pm 0.22 0.33 \pm 0.10 0.81 \pm 0.07 0.78 \pm 0.06 0.87 \pm 0.14 0.85 \pm 0.10 0.83 \pm 0.06 0.81 \pm 0.05 GES 0.65 \pm 0.19 0.29 \pm 0.10 0.76 \pm 0.06 0.66 \pm 0.05 0.90 \pm 0.17 0.84 \pm 0.14 0.80 \pm 0.06 0.72 \pm 0.05 LGES (Safe) 0.66 \pm 0.20 0.29 \pm 0.10 0.79 \pm 0.06 0.67 \pm 0.05 0.90 \pm 0.17 0.84 \pm 0.15 0.83 \pm 0.06 0.74 \pm 0.04 LGES (Cons) 0.65 \pm 0.19 0.30 \pm 0.10 0.83 \pm 0.08 0.73 \pm 0.05 0.92 \pm 0.16 0.89 \pm 0.13 0.89 \pm 0.06 0.80 \pm 0.04 Table D.1.1: Accuracy of algorithms (mean \pm std) on observational data from Erdős–Rényi graphs with p variables and 2p edges and small datasets with n\in\{500,1000\} samples (Experiment D.1.6 ). LGES is our proposed method. Lower is better (more accurate / faster) across all metrics except the F1 score , for which higher is better. SHD denotes the structural Hamming distance between the true and estimated CPDAGs. For the F1 score, an MEC is said to contain an edge (X,Y) if it contains either X-Y or X\to Y (but not Y\to X ) (Sec. D.1.4 ). See Fig. D.1.4 for heatmaps representing the above data. We draw 50 random seeds per n,p . Metric Method p=175 p=250 SHD LGES (Cons) 42.04 \pm 11.51 83.06 \pm 14.42 LGES (Safe) 70.62 \pm 11.68 135.24 \pm 14.31 PC 91.34 \pm 17.17 166.20 \pm 24.34 F1 Score LGES (Cons) 0.90 \pm 0.03 0.86 \pm 0.02 LGES (Safe) 0.84 \pm 0.03 0.79 \pm 0.02 PC 0.78 \pm 0.04 0.73 \pm 0.04 Runtime LGES (Cons) 315.83 \pm 73.23 989.37 \pm 205.53 LGES (Safe) 337.45 \pm 78.43 1058.11 \pm 221.32 PC 29.20 \pm 9.50 85.67 \pm 23.52 Table D.1.2: Performance of algorithms (mean \pm std) on observational data from large Erdős–Rényi graphs with p variables and 2p edges and n=10^{4} samples (Experiment D.1.7 ). LGES is our proposed method. Lower is better (more accurate / faster) across all metrics except the F1 score , for which higher is better. SHD denotes the structural Hamming distance between the true and estimated CPDAGs. For the F1 score, an MEC is said to contain an edge (X,Y) if it contains either X-Y or X\to Y (but not Y\to X ) (Sec. D.1.4 ). We draw 50 random seeds per p . GES and NoTears are omitted as they required too much compute to scale to these graph sizes. D.2 Repairing misspecified causal models D.2.1 Detailed metrics for Experiment 5.2 In Fig. D.2.1 , we present more detailed plots of runtime and SHD for the setting in Sec. 5.2 . We use GES-0 and LGES-0 to denote the corresponding algorithms run without any prior assumptions. LGES with ConservativeInsert outperforms all other algorithms across all levels of correctness of the prior assumptions, with the exception of LGES-0 with ConservativeInsert when the background knowledge is more misspecified ( fc \leq 0.5 ). Even when all assumptions are incorrect, LGES with ConservativeInsert achieves better runtime and marginally lower SHD than GES-0. For both SafeInsert and ConservativeInsert , we find that the guided search strategy introduced in Sec. 3.3 is more robust to misspecified assumptions ( fc \leq 0.5 ) than simply initialising the search using the prior assumptions. This confirms our hypothesis in Sec. 3.3 that incorrect edges included by default harm the quality of the search. The runtime of LGES both with ConservativeInsert and with SafeInsert improves noticably when given correct prior assumptions ( fc \geq 0.75 ) relative to LGES-0, though the accuracy improves only marginally. For fc \geq 0.75 , the initialization strategy benefits LGES more than the guided search strategy. This suggests a tradeoff between robustness to incorrect prior assumptions and advantage gained from these assumptions when correct. D.2.2 Additional experiments varying the number of prior edge assumptions The results in Fig. 4 are for experiments conducted with m^{\prime}=m/2 edges in the set of prior assumptions for a ground truth graph containing m edges. We conduct additional experiments with m^{\prime}=3m/4 , increasing the number of edges included in the prior assumptions. The results are shown in Fig. D.2.1 , and follow a similar trend as in Experiment 5.2 discussed previously. (a) SHD, varying correctness of m/2 prior edges (b) Time, varying correctness of m/2 prior edges (c) SHD, varying correctness of 3m/4 prior edges (d) Time, varying correctness of 3m/4 prior edges Figure D.2.1 : Performance of algorithms given prior assumptions and observational data from Erdős–Rényi graphs with 50 variables and 100 edges in expectation and n=10^{3} samples (Experiment 5.2 , Sec. D.2 ). We vary the correctness of the prior assumptions on the x-axis. LGES is our proposed method. In the upper panel, we include m/2 prior edge assumptions, where m is the number of edges in the ground truth DAG; in the lower panel, we increase this to 3m/4 . Lower is better (more accurate / faster) across all plots. The time axis uses a log scale. Error bars denote one standard deviation across 50 random seeds. Error bars for SHD are clipped to \pm 20 . D.3 Learning from interventional data D.3.1 Detailed metrics for Experiment 5.3 In Fig. D.3.1 , we present more detailed plots of runtime and SHD for the setting in Sec. 5.3 . We refer to our approach, LGES followed by \mathcal{I} - Orient , as LGIES. We find that LGIES both with SafeInsert and with ConservativeInsert is up to an order of magnitude faster than GIES. The accuracy of LGIES with ConservativeInsert is comparable to that of GIES. However, LGIES with SafeInsert has larger SHD from the ground truth than GIES and LGES with ConservativeInsert . This is possibly because, in our experiments, LGES only uses 10^{4} observational samples during the MEC learning phase. It uses the interventional samples only to orient edges using \mathcal{I} - Orient . In contrast, GIES uses 10^{4}+k\cdot 10^{3} samples in the MEC learning phase given k interventional, since it also uses interventional data during this phase and we generate 10^{3} interventional samples per target. Moreover, since we choose k=p/10 (where p is the number of variables), GIES is making use of much more data than LGES for learning the MEC. Although GIES is known not to be asymptotically sound [ 52 ] , this suggests that LGIES may benefit from a way of incorporating interventional data in the MEC learning phase. (a) SHD vs number of variables (b) Runtime vs number of variables Figure D.3.1 : Performance of LGIES and GIES on interventional data from Erdős–Rényi graphs with p variables and 2p edges (Experiment 5.3 ). We generate n=10^{4} observational samples and n=10^{3} samples per intervention. LGES is our proposed method. Lower is better (more accurate / faster) across all plots. The time axis uses a log scale. SHD denotes the structural Hamming distance between the true and estimated interventional CPDAGs. Error bars denote one standard deviation across 50 random seeds. D.4 Real-world protein signaling data Sachs dataset. We compare GES and LGES on a real-world protein signaling dataset [ 42 ] . The observational dataset consists of 853 measurements of 11 phospholipids and phosphoproteins. We compare the output of our methods with the gold-standard inferred graph [ 42 , Fig. 3] ), containing 11 variables and 17 edges. The dataset is continuous but violates the linear-Gaussian assumption. 4 4 4 https://www.bnlearn.com/research/sachs05/ We test our methods both on the original continuous dataset and on a discretized version (3 categories per variable corresponding to low, medium, and high concentration) from the bnlearn repository. 5 5 5 https://www.bnlearn.com/book-crc-2ed/ Results. The learned graphs provided in Fig. D.4.1 . All algorithms output the same MEC and thus have the same accuracy in both settings. With discrete data, each algorithm had an SHD of 9 edges from the reference MEC, all of which were missing adjacencies. With continuous data, each algorithm had an SHD of 11 edges from the reference MEC, 9 of which were missing adjacencies and 2 of which were incorrect orientations. (a) Continuous data (b) Discretized data Figure D.4.1 : Comparison between the reference MEC and the learned MEC for n=853 observational samples from the Sachs protein-signaling dataset [ 42 ] . For both continuous and discretized data, the three algorithms (GES, LGES ( SafeInsert ) and LGES ( ConservativeInsert )) return the same MEC, so only one learned graph is shown per panel. Green solid lines indicate edges correctly recovered by the algorithms. Blue solid lines indicate edges misoriented by the algorithms. Black dashed lines indicate edges missed by the algorithms. (a) Continuous data: nine edges are missed and two are misoriented: Jnk\to Pkc and P38\to PKC , both undirected in the reference MEC. (b) Discretised data: nine edges are missed and none are misoriented. Appendix E Frequently Asked Questions Q1. What is the difference between score-based and constraint-based causal discovery? Answer. Constraint-based and score-based approaches to causal discovery solve the same problem but in different ways. Constraint-based approaches such as PC [ 48 ] and Sparsest Permutations [ 38 ] use statistical tests, usually for conditional independence, to learn a Markov equivalence class from data. Score-based approaches such as Greedy Equivalence Search [ 7 , 29 ] instead attempt to maximize a score (for e.g., the Bayesian Information Criterion or BIC [ 45 ] ) that reflects the fit between graph and data. There is no general claim about which of these methods is superior; we refer readers to [ 50 ] for an extensive empirical analysis, who found, for instance, that GES outperforms PC in accuracy across various sample sizes [ 50 , Tables 4, 5] . Q2. I thought causal discovery was only one problem, but it seems the paper claims to be solving three different tasks: observational learning, interventional learning, and model repairing. Can you elaborate on these tasks (why they are different, how they relate, etc.)? Answer. The most well-studied problem in causal discovery is that of learning causal graphs from only observational data. However, algorithms for this task have a few limitations. Firstly, they are computationally expensive and often fail to produce quality estimates of the true Markov equivalence class from finite samples. This motivates using prior assumptions in the search to produce better quality estimates of the true Markov equivalence class and do so faster—the task of model repairing. Secondly, algorithms for learning from observational data only identify a Markov equivalence of graphs, since this is the most informative structure that can be learned from observational data. However, MECs can be quite large, and thus uninformative for downstream tasks such as causal inference. When interventional data is available, more edges in the true graph become identifiable. This motivates using interventional data to identify a smaller and more informative interventional Markov equivalence class—the task of interventional learning. When no prior assumptions or interventional data are available, these tasks collapse to observational learning. Q3. If GES is asymptotically consistent, why bother to consider LGES? Answer. While GES is guaranteed to recover the true Markov equivalence class given infinite samples, it faces two challenges. First, computational tractability: structure learning is an NP-hard problem, and GES commonly struggles to scale in high-dimensional settings. Second, data is often limited in practice, which results in GES failing to recover the true MEC. LGES improves on GES in both of these aspects; it is up to 10 times faster and 2 times more accurate (Experiment 5.1 ). Moreover, while GES and LGES can both incorporate prior assumptions to guide the search, LGES is more robust to misspecification in the assumptions (Experiment 5.2 ). Q4. How well does LGES scale? Answer. LGES can scale to graphs with hundreds of variables and is up to 10 times faster than GES (Sec D.1 ). Both variants of LGES ( SafeInsert and ConservativeInsert ) terminate in less than 4 hours on graphs with 500 variables and have substantially better accuracy than other baselines (including PC and NoTears) on these large graphs (Experiments D.1.3 , D.1.7 ). LGES also outperforms these baselines in settings with dense graphs (Experiment D.1.5 ). Q5. LGES may be asymptotically correct, but how well does it perform with finite samples? Answer. We conduct an extensive empirical analysis of how LGES performs compared with baselines in finite-sample settings. Both variants of LGES ( SafeInsert and ConservativeInsert ) have substantially better accuracy than GES, PC, and NoTears in experiments with n=10^{4} samples and up to 500 variables (Experiments 5.1 , D.1 ). For instance, in graphs with 150 variables and 300 edges in expectation, LGES with ConservativeInsert only makes \approx 30 structural errors on average, which is twice as accurate as GES, which makes \approx 60 structural errors. LGES also outperforms GES in smaller sample settings ( n\in\{500,1000\} ) (Experiment D.1.6 ). Q6. What is the difference between SafeInsert and ConservativeInsert ? Answer. LGES can use either the SafeInsert or the ConservativeInsert strategy to select Insert operators in the forward phase; both result in improved accuracy and runtime relative to GES. We show that LGES with SafeInsert is asymptotically guaranteed to recover the true MEC (Cor. 1 ). However, it remains open whether the same is true of LGES with ConservativeInsert , though we provide partial guarantees (Prop. C.1 , C.2 ). Both strategies result in similar runtime, though ConservativeInsert consistently has greater accuracy than SafeInsert across our experiments (Sec. 5 , D ). Q7. How is model repairing different from initializing a causal discovery task to the hypothesized model? Answer. Model repairing is the more general problem of using possibly misspecified prior assumptions in the process of causal discovery to aid the search. Initializing the search to a tentative model is one way to achieve this. However, initialization is not robust to misspecification in the assumptions and can result in worse runtime and accuracy than our approach of guiding the search using prior assumptions (Sec. 3.3 , Experiment 5.2 ). Q8. What is the difference between Greedy Interventional Equivalence Search (GIES) [ 19 ] and LGES? Answer. GIES and LGES are both score-based algorithms for learning from a combination of observational and interventional data. However, LGES has a few primary advantages over GIES. First, LGES with SafeInsert is guaranteed to recover the true interventional MEC (Cor. 1 , Thm. 2 ) in the sample limit whereas GIES is not [ 52 ] . Second, both variants of LGES are up to 10 times faster than GIES, and LGES with ConservativeInsert has accuracy competitive with GIES (Experiment 5.3 ). However, LGES uses interventional data to only to orient edges in a learned Markov equivalence class (in the \mathcal{I} - Orient procedure, Alg. 2 ), whereas GIES uses a combination of observational and experimental data throughout. An interesting future direction is to incorporate interventional data in all phases of LGES while maintaining its asymptotic guarantees, since this may lead to improved accuracy. Q9. Can your work be combined with other causal discovery algorithms? Answer. Several components of our approach are modular and can be combined with other causal discovery algorithms. For one, algorithms in the GES family like FGES [ 37 ] and GIES [ 19 ] can be easily modified to use the SafeInsert or ConservativeInsert strategies that we introduce; a simple extension would investigate the resulting changes in accuracy and runtime. For another, the \mathcal{I} - Orient procedure can be used to refine the observational MEC output by any causal discovery algorithm (not necessarily LGES) using interventional data.