WorksMathematics
What Should We Measure Next? Finding Identification Strategies by Refining Mechanisms
Abstract
Canonical approaches in causal inference treat model specification as fixed, assuming that researchers directly translate all relevant domain knowledge into a causal model, which can then be used to deduce its logical implications. Yet, in practical applications, model specification is often an iterative process, and involves exploration and introspection: of the many aspects of the phenomenon one could investigate, which ones actually matter for the identification of the causal effect of interest? In this paper we study the problem of iterative identification in partially specified causal models. We focus on determining where observing variables that intercept a direct effect or a confounding path between two variables could enable identification in semi-Markovian models. We give necessary and sufficient graphical conditions for when observing such variables can render an unidentifiable query identifiable, together with an efficient algorithm for locating all such opportunities in a given causal diagram. Our results can help analysts better navigate the model space by drawing attention to the parts of their substantive knowledge that could result in a successful identification strategy.
Introduction
Causal inference combines observations with assumptions about the data generating process. Once these assumptions are represented in a causal diagram, identification theory determines whether the effect of interest can be recovered from the available observational distribution [20, 28]. When it cannot, a natural question arises: what additional information would make identification possible?
Answering this question requires deciding which further aspects of the phenomenon to bring into consideration. Researchers may possess considerable knowledge that has not been expressed in their current causal diagram, without recognizing its relevance to the effect of interest [5]. A directed edge may summarize a mechanism they could describe in greater detail, and a bidirected edge may represent common causes they could investigate. A priori, a researcher could expand the mechanisms behind any and all of those arrows, but that is a formidable task. Ideally, we want a system that helps direct the researcher’s attention to the information that matters.
In this paper, we use causal diagrams to guide that reflection. We characterize where observing mediators or common causes would render a previously nonidentifiable causal effect identifiable. These results direct the researcher toward particular mechanisms and sources of confounding, helping them recognize which parts of their domain knowledge could provide a way forward. To illustrate, consider the simplest setting, in which a researcher starts their analysis with the causal diagram in Figure 1(a). Here, denotes the treatment and the outcome, while the bidirected edge allows for unmeasured confounding between them. The causal effect of interest is therefore not identifiable without further assumptions. What next steps could an investigator take in such circumstances?
Figure 1. Two ways to make identifiable. (a) The original graph, in which the effect is not identifiable. (b) Observed common causes allow identification by backdoor adjustment. (c) Observed mediators allow identification through the frontdoor criterion. The newly observed node and its related edges are highlighted in blue.
A well-known strategy for identifying the causal effect of on is to block the confounding paths between them, an approach with a long history in causal inference [26, 25, 20]. In Figure 1(b), these common causes are represented by expanding the edge with a (possibly vector-valued) variable (for “new”). The causal effect is now identifiable by backdoor adjustment. However, this is not the only identification strategy available here. An alternative route is to investigate the mediating channels through which the causal effect of flows to , as in Figure 1(c). This is represented by expanding the directed edge with mediators , which now allows identification of the causal effect through Pearl’s celebrated frontdoor formula, even though the original confounding path remains intact.
For general causal models, we consider extensions of the original diagram that replace a directed edge with a path through mediators or a bidirected edge with observed common causes. We focus on expanding one edge at a time, as this represents the minimal refinement of the original causal diagram that may suffice to identify the effect of interest. We call these operations edge expansions and call an edge ID-enabling when its expansion makes the target effect identifiable. These edges indicate where further substantive knowledge could yield a successful identification strategy.
Our contributions are as follows:
We derive simple graphical conditions for quickly finding ID-enabling directed and bidirected edges, and ruling out edges whose expansion cannot enable identification. These conditions are fast and powerful: across our experimental settings, they fully resolve 87.7–100% of nonidentified queries and find an ID-enabling edge in more than 99.9% of cases whenever a solution exists.
Next, we derive necessary and sufficient conditions for ID-enabling edges based on graphical obstructions to identification, known as hedges. We then develop a sound, complete, and efficient algorithm for finding all such edges. For example, for a graph with nodes and edges, our algorithm retains at most candidates, compared with when testing every edge. We prove that the bound is in fact sharp.
Finally, we perform exhaustive experiments on graphs with two through six nodes, quantifying how often identification can be enabled by expanding a directed or bidirected edge, as well as the coverage of our simple graphical conditions. In runtime comparisons on random samples of large graphs, we observe that our algorithm provides more than a thousand-fold speedup over testing every edge, in, for instance, dense graphs with 160 nodes.
Discussion on related literature is available in Appendix A.
PRELIMINARIES
Throughout the paper, boldface notation denotes sets, whereas non-bold notation denotes individual elements. Capital letters denote variables and small letters denote their values, value assignments, or edges of graphs.
A semi-Markovian structural causal model (SCM, Shpitser and Pearl, 2006; Pearl, 2009) consists of observed variables , latent exogenous variables , and structural equations assigning each as a function of its observed parents and a subset of , where exogenous variables are mutually independent and each may be a parent of at most two observed variables. The causal structure of a semi-Markovian SCM is represented by an acyclic directed mixed graph (ADMG, Richardson, 2003; Richardson et al., 2023) where is the set of nodes, is the set of directed edges and is the set of bidirected edges. Directed edges represent possible direct causal effects between members of and bidirected edges represent dependence induced by an unobserved common cause in . For disjoint , the causal effect of on is described by the interventional distribution , where the do-operator denotes replacing the structural equations for by the fixed assignments , while leaving all other equations unchanged. Graphically, the intervention removes all edges entering .
For any ADMG , , , is the graph obtained from by removing all incoming edges to and all outgoing edges from . The set of ancestors of nodes in in is denoted by including by convention. Similarly, we use to denote the children of in . In addition, we denote by the graph obtained from by removing the edge . If , then . A subgraph of is denoted by . An edge subgraph is a graph obtained from by removing zero or more edges while preserving all nodes. The induced subgraph of a set of nodes is denoted by . For a path , we use to denote its set of edges.
Next, we define the extended graph obtained by expanding an edge. Intuitively, the new node represents variables involved in the causal or confounding relation summarized by the original edge.
Definition 1 (Extended Graph). Let and let be a new node. Expanding an edge of produces an extended graph as follows:
If , then , where and .
If , then , where , and .
In both extensions, the new node has no incident bidirected edges.
These extensions introduce additional causal detail without imposing new restrictions on the distribution of the original variables. Indeed, is the latent projection of onto . The extension therefore preserves exactly the restrictions imposed by the graph on the original observational distribution (Evans [11], Theorem 4.13).
We consider identifiability in terms of the assumed causal structure and the observed data distribution.
Definition 2 (Identifiability). Let be a causal diagram and let , . The causal effect is identifiable from in if for every pair of causal distributions induced by SCMs compatible with such that for all value assignments to .
In an extended graph, denotes the new node, and identification concerns the joint distribution in such graphs.
Graphical Criteria for Finding ID-Enabling Edges
We present some easy-to-use graphical conditions for determining whether an edge expansion can identify a previously nonidentifiable query. The identifiability or nonidentifiability of a causal effect can be quickly determined in the presence of specific graphical patterns ([31, 21]). These patterns can be used to construct sufficient conditions for finding ID-enabling edges and also to determine when an edge cannot be ID-enabling. The first such condition is related to bidirected paths between the intervention variable and its children.
Theorem 1. If a bidirected edge belongs to every bidirected path between and any of its children in , then is identifiable from in the extended graph .
In essence, Theorem 1 states that replacing a bidirected edge with its common causes will make the causal effect of interest identifiable, if the edge intercepts all bidirected paths from to its children. For directed edges, it suffices that only one child of is connected to by a bidirected path in the ancestor graph.
Theorem 2. Suppose that only one child of in is connected to via a bidirected path in that graph. Let . Then is identifiable from in the extended graph .
Interestingly, it is also easy to show that whenever a directed edge expansion enables identification, it can never result in a backdoor formula.
Theorem 3. If is not identifiable in , then no set satisfies the backdoor criterion relative to and in any directed edge expansion , .
Theorems 1 and 2 describe cases in which these extensions enable identification. Next, we give a necessary condition for an edge to be ID-enabling.
Theorem 4. Suppose that there exists a bidirected path between and one of its children in . If is identifiable in the extended graph , then .
The theorem says that whenever such bidirected paths between and its children exist, we can restrict attention to those paths and the corresponding directed edges. As a corollary, if two children have such paths that share no edges, expanding one edge will always leave at least one obstruction intact.
Corollary 1. Suppose that there exist two bidirected paths, and , between and two of its children, and , respectively, in such that . Then is not identifiable in any extended graph of .
For example, suppose has two children that are ancestors of , each connected to by a bidirected edge. No single edge expansion can eliminate both obstructions to identification.
The combination of Theorems 1, 2, and 4 provides simple yet powerful graphical criteria to find and rule out ID-enabling edges. To illustrate, consider Figure 2(a). Theorems 1 and 2 allow us to find the edges , , and , while Theorem 4 rules out all the rest. In fact, in our exhaustive coverage experiments (§ 5.2), these criteria fully resolve of nonidentified queries across graphs of 2 to 6 nodes. In our random samples of large graphs, this number reached of the sampled cases. However, while powerful, these graphical conditions are not complete; Figure 2(b) shows an example in which the theorems neither find nor exclude any edges. This motivates our developments in the following sections.
Figure 2. Edges shown in blue are those whose expansion identifies . Theorems 1, 2, and 4 fully resolve (a), but not (b).
Hedges and the ID Algorithm
The identifiability of a causal effect is related to the structure of the underlying causal graph. In particular, certain graphical structures characterize situations in which a causal effect cannot be identified from the observed data distribution. Hedges are one such graphical structure [28].
We first introduce the notions of a forest, a C-component, and a C-forest. A forest is a graph in which each node has at most one child, and a C-component is a graph in which every pair of observed nodes is connected by a bidirected path. A graph that is both a forest and a C-component is called a C-forest. It is often useful to identify the set of nodes in a graph that have no children, which we refer to as the root set of the graph. Accordingly, a C-forest whose root set is is called an -rooted C-forest. We can now use these concepts to define a hedge.
Definition 3 (Hedge). Let and let , . Let and be -rooted C-forests such that , , , and . Then the pair forms an -rooted hedge for in .
Since the root set of and plays an important role in hedge construction, we also include the root set explicitly in the hedge definition.
The starting point for finding ID-enabling edges is a causal graph in which the causal effect of interest is not identifiable. In such a graph, nonidentifiability can be characterized both graphically through the existence of a hedge and algorithmically through the failure of the ID algorithm. In particular, Shpitser and Pearl [28] established that a causal effect is nonidentifiable if and only if the graph contains a hedge for
the causal effect; a condition that is equivalent to the failure of the ID algorithm. These results were later clarified by Shpitser [27]. The main identification results are stated formally below.
Theorem 5 (Shpitser [27], Proposition 1, Condition 1). The causal effect is not identifiable in if and only if there exists a hedge for in .
Corollary 2. The causal effect is not identifiable in if and only if the ID algorithm fails with inputs .
Our method to reduce the set of potentially ID-enabling edges relies on the existence of certain types of hedges in the graph. However, there is no systematic way to directly locate these hedge structures in the original graph: the ID algorithm does not return the exact hedge structure upon failure, but a pair of graphs that can be used to construct the hedge. This applies both to the original formulation by Shpitser and Pearl [28] and the modern one line formula [24].
To reduce the set of potentially ID-enabling directed edges, we need to identify a set of nodes that is guaranteed to form the root set of some hedge in the graph. The following lemma provides such a set by showing that any hedge can be transformed into a hedge whose root set is .
Lemma 1. Let and be graphs obtained from graphs and , respectively, by removing all outgoing edges from nodes in . If forms a hedge then the pair forms a -rooted hedge.
To simplify the analysis and state the following results more straightforwardly, we first modify the graph pair returned by the ID algorithm. This leads to a graphical structure that we call an ID-hedge. We next define an ID-hedge and establish some useful properties of this structure.
Definition 4 (ID-hedge). Let be a graph pair returned by the ID algorithm upon failure for in a causal diagram and let and be the graphs obtained from and , respectively, by removing all outgoing edges from nodes in . The graph pair is called an ID-hedge of in .
Importantly, we can now state the root set of an ID-hedge.
Lemma 2. Let be an ID-hedge of in . Then the root set of both and is .
By Lemma 2, both graphs of an ID-hedge have the same root set consisting of all nodes of the smaller graph. Next, we show that an ID-hedge contains a hedge with the same root set as the ID-hedge.
Lemma 3. For any ID-hedge of in , there exist edge subgraphs and that form a -rooted hedge for in .
An ID-hedge can be systematically constructed from the graph pair returned by the ID algorithm upon failure and is guaranteed to contain a hedge with known root set. In the next section, we use these properties to determine which edges can be ID-enabling.
Algorithmic Approach to Find All ID-Enabling Edges
We use ID-hedges to characterize the edges that can be expanded to make a nonidentifiable causal effect identifiable. Since nonidentifiability is characterized by the existence of a hedge, a successful extension must eliminate the relevant hedge structures responsible for nonidentifiability. As ID-hedges provide systematically constructible structures that are guaranteed to contain a hedge with a known root set, we study which edges can be expanded to ensure that no hedge with the same root set and the same two node sets remains within the ID-hedge. This leads to the notion of breaking an ID-hedge, which we define next.
Definition 5 (Breaking an ID-hedge). An edge of breaks a -rooted ID-hedge of if there are no edge subgraphs and that form a -rooted hedge for in .
Note that we consider the graphs and instead of and . Since the new node has no bidirected path to any other node, every C-component containing it is a singleton. The larger forest of a hedge must also contain an original treatment node, so it cannot contain the new node. Since the smaller forest is a subgraph of the larger forest, it cannot contain the new node either.
Breaking an ID-hedge provides a necessary condition for an edge to be ID-enabling. In particular, if an edge is ID-enabling, no -rooted hedge consisting of exactly the same nodes as an original ID-hedge can remain in . The following theorem formalizes this connection between breaking ID-hedges and ID-enabling edges.
Theorem 6. If is not identifiable in but is identifiable in for some edge of , then breaks every ID-hedge of in .
Definition 5 considers hedges for the causal effect of interest in the extended graph , since our interest is in identification from . However, we may simplify the subsequent analysis by considering the causal effect in the original graph instead. The following theorem shows this equivalence.
Theorem 7. An edge of breaks the -rooted ID-hedge of in if and only if there are no edge subgraphs and that form a -rooted hedge for in .
Unsurprisingly, it suffices to focus our attention on edges that are present in the hedges for the causal effect of interest.
Corollary 3. Let be an edge of . Then is identifiable in if and only if is in every hedge for in .
We next characterize the individual edges that break an ID-hedge. For a directed edge, the relevant property is whether removing the edge causes its source node to lose all of its children, thereby changing the root set of the ID-hedge. For a bidirected edge, the relevant property is whether removing the edge destroys the bidirected connectivity required for a C-component. Characterizing edges with these properties will allow us to restrict the set of potentially ID-enabling edges. Based on these properties, we define two types of edges that are relevant for breaking an ID-hedge: weak directed edges and weak bidirected edges.
Definition 6 (Weak Directed Edge). Let be an ID-hedge of in . A directed edge of is called a weak directed edge of if . The set of weak directed edges of is denoted by .
Definition 7 (Weak Bidirected Edge). Let be an ID-hedge of in . A bidirected edge is called a weak bidirected edge of if or is not bidirected-connected. The set of weak bidirected edges of is denoted by .
The following theorem shows that only these two types of edges can break an ID-hedge.
Theorem 8. If an edge breaks a -rooted ID-hedge then is either a weak directed edge or a weak bidirected edge.
We have now developed a theoretical framework for reducing the set of potentially ID-enabling edges by focusing on weak directed and weak bidirected edges that can break an ID-hedge. The next step is to obtain all ID-hedges for which we leverage the ID algorithm. In step 4 of the standard ID algorithm, the graph is decomposed into its C-components and a recursive ID call is made for each component if there are at least
Algorithm 1 Hedge-Collecting Identification Algorithm (HCID). The inputs are node sets $\mathbf{X}$ and $\mathbf{Y}$, representing the intervention and outcome variables, respectively, and an ADMG $\mathcal{G}$. The output is a set of graph pairs obtained from encountered ID failures. The collection of node sets of the maximal C-components of $\mathcal{G}$ is denoted by $\mathcal{C}(\mathcal{G})$.
1: function HCID($\mathbf{Y},\mathbf{X},\mathcal{G}$)
2: $\mathbf{V} \leftarrow \mathbf{V}(\mathcal{G})$
3: if $\mathbf{X} = \varnothing$ then
4: return $\varnothing$.
5: if $\mathbf{V} \ne \operatorname{An}(\mathbf{Y})_{\mathcal{G}}$ then
6: return HCID($\mathbf{Y},\mathbf{X} \cap \operatorname{An}(\mathbf{Y})_{\mathcal{G}}, \mathcal{G}[\operatorname{An}(\mathbf{Y})_{\mathcal{G}}]$).
7: Let $\mathbf{W} = (\mathbf{V} \setminus \mathbf{X}) \setminus \operatorname{An}(\mathbf{Y})_{\mathcal{G}_{\overline{\mathbf{X}}}}$. If $\mathbf{W} \ne \varnothing$, return HCID($\mathbf{Y},\mathbf{X} \cup \mathbf{W},\mathcal{G}$).
8: if $\mathcal{C}(\mathcal{G}[\mathbf{V} \setminus \mathbf{X}]) = \{S_1,\ldots,S_k\}$, $k \ge 2$ then
return $\bigcup_{i=1}^{k}$ HCID($S_i,\mathbf{V} \setminus S_i,\mathcal{G}$).
9: if $\mathcal{C}(\mathcal{G}[\mathbf{V} \setminus \mathbf{X}]) = \{S\}$ then
10: if $\mathcal{C}(\mathcal{G}) = \{\mathbf{V}\}$ then
11: return $\{(\mathcal{G},\mathcal{G}[S])\}$.
12: if $S \in \mathcal{C}(\mathcal{G})$ then
13: return $\varnothing$.
14: if $(\exists S')\ S \subset S' \in \mathcal{C}(\mathcal{G})$ then
15: return HCID($\mathbf{Y},\mathbf{X} \cap S',\mathcal{G}[S']$).
two C-components. Since the C-components are not ordered, there is no fixed order in which the corresponding recursive branches must be evaluated. Consequently, when failures occur in multiple branches, different orderings may cause different failing branches to be encountered and propagated first. This provides a way to obtain multiple graph pairs associated with ID failures.
To exploit this observation, we introduce a modified version of the ID algorithm, which we call the Hedge-Collecting Identification algorithm (HCID, Algorithm 1). HCID preserves the graphical recursion of the standard ID algorithm but modifies its failure-handling behavior. Whereas a failure in the standard ID algorithm propagates through the recursive calls and terminates the identification procedure, a failing branch in HCID returns a singleton set containing the corresponding graph pair. A branch that terminates without failure returns the empty set, and when the recursion branches into multiple C-components on line 8, HCID returns the union of the graph-pair sets obtained from the individual branches. Thus, a failure in one branch does not prevent the remaining branches from being processed.
As in the standard ID setting, HCID assumes that the observational joint distribution is known. However, HCID does not explicitly require this distribution as an input, since it does not construct the identifying functional. The parts of the standard ID algorithm concerned solely with constructing the identifying functional are therefore omitted. Instead, HCID records the graph pair associated with each encountered failure condition. Consequently, if failure conditions are encountered, HCID returns the collection , where is empty if and only if the causal effect is identifiable in .
The construction of HCID is based on the idea that each graph pair it returns corresponds to a failure that could be encountered by the standard ID algorithm under a suitable ordering of its recursive branches. We formalize this connection in the following theorem. This ensures that the graph pairs collected by HCID have the same interpretation as failure pairs returned by the standard ID algorithm.
Lemma 4. For every graph pair returned by HCID, there exists an ordering of the recursive branches of the standard ID algorithm under which ID returns as its failure pair.
Since every graph pair in can also be returned by the standard ID algorithm under an appropriate ordering of its recursive branches, the ID-hedge construction introduced previously can be applied to each graph pair in . Consequently, instead of constructing an ID-hedge from only the first failure encountered by ID, the graph pairs collected by HCID can be used to obtain multiple ID-hedges.
For each resulting ID-hedge , let denote the set of edges that break . If an edge is ID-enabling, then must break every ID-hedge obtained from the graph pairs in . Therefore, any such edge must satisfy . Hence, the set forms a set of candidate edges containing all potentially ID-enabling edges. Edges outside cannot render the causal effect identifiable, since at least one of the collected ID-hedges would remain unbroken in the corresponding extended graph. The extended graphs corresponding to edges in can then be tested individually for identifiability by the ID algorithm.
We now formulate an algorithm for finding all ID-enabling edges as Algorithm 2. The algorithm collects ID-hedges with HCID and intersects their weak edges, yielding at most candidates—and, as we show below, this bound is sharp (Theorem 11). It then tests each candidate’s expansion with ID. Note that this is not the only possible algorithm, and that different necessary conditions can be combined to restrict the search without affecting correctness (e.g., Theorem 4). Further necessary conditions can reduce the candidate set, while fewer conditions preserve correctness but may require more ID tests. Appendix § 14 examines several variants.
:::
Theorem 9 (Soundness of Algorithm 2). Let be a causal diagram such that is not identifiable in and let . Then is identifiable in for every .
Theorem 10 (Completeness of Algorithm 2). Let be a causal diagram such that is not identifiable in and let . If there exists an edge of such that is identifiable in , then .
We demonstrate the operation of Algorithm 2 via an example. Consider the graph in Figure 2(b) where is not identifiable. Note that none of the conditions introduced in § 3 reduce the number of edges to be tested. Calling on line 2 produces three graph pairs: , , and . The corresponding root sets are , , and . As each root has no children in either graph of its pair, no changes are made on line 5. Next, the set of candidates is constructed on line 6. For the first two pairs, the common weak edges are and . For the third pair, the weak directed edges are , , and , and the weak bidirected edges are and . This reduces the set to a single directed edge . The ID test on line 9 determines that is identifiable after expanding , so on line 11. Appendix § 12 illustrates the operation of Algorithm 2 on Figure 2(a).
The computational complexity of Algorithm 2 is outlined by the following theorem.
Theorem 11 (Complexity of Algorithm 2). Let , , and let be the number of candidates selected by Algorithm 2. Its output satisfies . The bound is sharp for both candidates and ID-enabling edges. With adjacency lists and graphical ID decisions, the algorithm runs in , and hence , time. Processing each pair as it is returned permits working space.
Computational experiments
In this section, we first study how often expanding a single edge enables identification through exhaustive experiments on small graphs. Next, we evaluate the coverage of the graphical criteria of § 3 on these graphs and as well as on random samples of larger graphs. Finally, we compare the runtime of Algorithm 2 against expanding and testing every edge. Details of the experiments are provided in Appendix § 13.
Identification via edge expansion
We consider every case in which is not identifiable in ADMGs with two through six nodes. We consider every choice of distinct and such that all nodes are ancestors of , up to relabeling that preserves the treatment and outcome. These experiments cover more than 469 million nonidentified cases.
Table 1 shows how often identification can be enabled by expanding a directed edge, a bidirected edge, either type, or neither. Expanding a single edge enables identification in 100% of cases with two nodes, 92.3% with three, 80.7% with four, 67.8% with five, and 55.2% with six. Thus, a single expansion suffices in more than half of the cases at every size considered.
| Non-ID | None | D | B | Both | |
| 2 | 1 | 0.0 | 0.0 | 0.0 | 100.0 |
| 3 | 26 | 7.7 | 15.4 | 7.7 | 69.2 |
| 4 | 2,010 | 19.3 | 24.2 | 11.3 | 45.2 |
| 5 | 513,602 | 32.2 | 29.0 | 11.3 | 27.4 |
| 6 | 468,747,580 | 44.8 | 31.0 | 9.1 | 15.2 |
Table 1. ID-enabling edge expansions among nonidentified queries (%). D: directed only; B: bidirected only; Both: each type succeeds in a separate expansion.
At six nodes, 31.0% of cases can be solved only by expanding a directed edge, 9.1% only by expanding a bidirected edge, and 15.2% by expanding an edge of either type. These results illustrate the value of considering both causal mechanisms and sources of confounding when seeking additional observations.

Figure 3a. Napkin (trapdoor)

Figure 3b. Intermediate frontdoor
With two variables, successful expansions yield exactly two identification strategies: backdoor and frontdoor adjustment, as depicted in Figure 1. With three variables, successful expansions yield four strategies: backdoor, frontdoor, the Napkin (trapdoor) strategy ([22, 14, 12]), and a fourth strategy based on frontdoor identification of an intermediate effect—see Figure 3.

Figure 3. Representative expanded graphs for the two additional identification strategies in 3-variable models. The newly observed variable and the edges introduced by expansion are highlighted in blue.
Coverage of the graphical criteria
We evaluate how often Theorems 1, 2, and 4 fully resolve a case by determining all edges—if any—that are ID-enabling. We also measure how often Theorem 1 or 2 finds an ID-enabling edge whenever one exists. We apply these theorems to the exhaustive cases and to random samples of sparse and dense graphs with nodes. Directed and bidirected edge probabilities are and for sparse graphs, and 0.30 and 0.20 for dense graphs. To consider different edge densities, we further examine 25 combinations of directed and bidirected edge probabilities at .
In the exhaustive experiments, Theorems 1, 2, and 4 fully resolve 90–100% of cases, and Theorems 1 and 2 find an ID-enabling edge in at least 99.96% of cases whenever a solution exists. Across all settings for larger graphs, the corresponding percentages are 87.70–100% and at least 99.92%. Detailed results are given in Table 3 and Table 5 of Appendix § 13.
| Nodes | Nonidentified queries | Queries admitting an expansion | Fully resolved (%) | Found an expansion (%) |
| Exhaustive experiments | ||||
| 2 | 1 | 1 | 100.00 | 100.00 |
| 3 | 26 | 24 | 92.31 | 100.00 |
| 4 | 2,010 | 1,623 | 90.00 | 100.00 |
| 5 | 513,602 | 348,159 | 90.70 | 99.97 |
| 6 | 468,747,580 | 258,830,740 | 92.83 | 99.96 |
| Sparse graphs | ||||
| 10 | 10,000 | 7,791 | 94.51 [94.05, 94.94] | 99.99 [99.93, 100.00] |
| 20 | 10,000 | 8,492 | 93.97 [93.49, 94.42] | 99.94 [99.86, 99.97] |
| 40 | 10,000 | 9,226 | 95.67 [95.25, 96.05] | 99.92 [99.84, 99.96] |
| 60 | 10,000 | 9,518 | 96.67 [96.30, 97.00] | 99.97 [99.91, 99.99] |
| 80 | 10,000 | 9,652 | 97.54 [97.22, 97.83] | 99.97 [99.91, 99.99] |
| 160 | 10,000 | 9,907 | 99.09 [98.88, 99.26] | 100.00 [99.96, 100.00] |
| Dense graphs | ||||
| 10 | 10,000 | 8,690 | 92.74 [92.21, 93.23] | 99.98 [99.92, 99.99] |
| 20 | 10,000 | 4,627 | 96.56 [96.18, 96.90] | 100.00 [99.92, 100.00] |
| 40 | 10,000 | 1,466 | 99.96 [99.90, 99.98] | 100.00 [99.74, 100.00] |
| 60 | 10,000 | 858 | 100.00 [99.96, 100.00] | 100.00 [99.55, 100.00] |
| 80 | 10,000 | 666 | 100.00 [99.96, 100.00] | 100.00 [99.43, 100.00] |
| 160 | 10,000 | 320 | 100.00 [99.96, 100.00] | 100.00 [98.81, 100.00] |
Table 3. Coverage of the graphical criteria. Brackets give 95% Wilson confidence intervals.
| Directed edge probability | Bidirected edge probability | Queries admitting an expansion | Fully resolved (%) | Found an expansion (%) |
| 0.05 | 0.02 | 9,981 | 99.00 [98.79, 99.18] | 100.00 [99.96, 100.00] |
| 0.05 | 0.05 | 9,919 | 97.39 [97.06, 97.68] | 99.98 [99.93, 99.99] |
| 0.05 | 0.10 | 9,770 | 92.83 [92.31, 93.32] | 99.98 [99.93, 99.99] |
| 0.05 | 0.15 | 9,626 | 89.91 [89.30, 90.49] | 99.96 [99.89, 99.98] |
| 0.05 | 0.20 | 9,509 | 87.70 [87.04, 88.33] | 99.98 [99.92, 99.99] |
| 0.10 | 0.02 | 9,846 | 99.15 [98.95, 99.31] | 99.98 [99.93, 99.99] |
| 0.10 | 0.05 | 9,226 | 95.67 [95.25, 96.05] | 99.92 [99.84, 99.96] |
| 0.10 | 0.10 | 7,796 | 91.43 [90.87, 91.96] | 99.92 [99.83, 99.96] |
| 0.10 | 0.15 | 7,286 | 91.43 [90.87, 91.96] | 99.93 [99.84, 99.97] |
| 0.10 | 0.20 | 7,006 | 92.26 [91.72, 92.77] | 99.97 [99.90, 99.99] |
| 0.15 | 0.02 | 9,582 | 99.43 [99.26, 99.56] | 99.99 [99.94, 100.00] |
| 0.15 | 0.05 | 7,973 | 96.99 [96.64, 97.31] | 99.94 [99.85, 99.97] |
| 0.15 | 0.10 | 5,596 | 95.82 [95.41, 96.19] | 99.95 [99.84, 99.98] |
| 0.15 | 0.15 | 4,625 | 96.67 [96.30, 97.00] | 99.98 [99.88, 100.00] |
| 0.15 | 0.20 | 4,366 | 97.90 [97.60, 98.16] | 100.00 [99.91, 100.00] |
| 0.20 | 0.02 | 9,347 | 99.74 [99.62, 99.82] | 100.00 [99.96, 100.00] |
| 0.20 | 0.05 | 7,102 | 97.64 [97.32, 97.92] | 99.97 [99.90, 99.99] |
| 0.20 | 0.10 | 3,986 | 97.81 [97.50, 98.08] | 99.97 [99.86, 100.00] |
| 0.20 | 0.15 | 3,027 | 99.01 [98.80, 99.19] | 99.97 [99.81, 99.99] |
| 0.20 | 0.20 | 2,805 | 99.27 [99.08, 99.42] | 100.00 [99.86, 100.00] |
| 0.30 | 0.02 | 8,975 | 99.91 [99.83, 99.95] | 100.00 [99.96, 100.00] |
| 0.30 | 0.05 | 5,734 | 98.89 [98.67, 99.08] | 99.98 [99.90, 100.00] |
| 0.30 | 0.10 | 2,524 | 99.50 [99.34, 99.62] | 100.00 [99.85, 100.00] |
| 0.30 | 0.15 | 1,655 | 99.83 [99.73, 99.89] | 100.00 [99.77, 100.00] |
| 0.30 | 0.20 | 1,466 | 99.96 [99.90, 99.98] | 100.00 [99.74, 100.00] |
Table 5. Coverage of the graphical criteria at . Brackets give 95% Wilson confidence intervals.
Runtime comparisons
Finally, using the same samples of larger graphs, we compare the runtime of Algorithm 2 with the brute force procedure of expanding and testing every edge. For each case, speedup is the runtime of the brute force procedure divided by that of Algorithm 2.
Figure 4 shows the runtime median and interquartile range for sparse and dense graphs. At 160 nodes, median speedups are 5.7 for sparse graphs and 1,896.0 for dense graphs. Among cases where an ID-enabling edge exists, the corresponding speedups are 5.7 and 1,348.1. Results across the 25 combinations of edge probabilities at are similar and deferred to the appendix.
Figure 4. Runtime on nonidentified queries. Curves show medians and vertical bars show interquartile ranges over 10,000 queries per setting.
Conclusion
We introduced a framework for determining whether investigation of a causal mechanism or source of confounding could make a previously nonidentifiable effect identifiable in a semi-Markovian causal model. We gave simple graphical conditions for finding ID-enabling edges and ruling out edges whose expansion cannot enable identification. By relating failures of the ID algorithm to ID-hedges, we characterized the directed and bidirected edges that can be expanded to eliminate the obstructions to identification. This characterization leads to a sound and complete algorithm that finds all ID-enabling edges. The algorithm runs final identification tests on at most candidate edges, and this bound is sharp. In our experiments, the graphical conditions fully resolve most nonidentified queries, and the algorithm can be more than a thousand times faster than testing every edge. Identification theory is usually used to decide whether a given causal model identifies the effect of interest. Our results show that it can also guide how the model should be refined, by indicating which mechanisms or sources of confounding, once measured, would make the effect identifiable. Extending the approach to several simultaneous edge expansions is left for future work.
AI use statement
We used generative AI tools to copyedit the paper, conduct extensive adversarial checks of our arguments and results, and write performant code for the simulations. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Related Literature
Pearl’s original account of causal diagrams explicitly suggests their use in seeking additional observations or experiments when an effect is not identifiable [20].
Within a given diagram, causal methods distinguish useful from harmful controls [6], characterize and enumerate valid adjustment sets [32], and find sets satisfying the front-door criterion [16, 35]. These methods select among variables whose causal roles are already represented in the diagram. Measurement costs and statistical efficiency can further guide the choice of an adjustment set [29, 15]. Karvanen et al. [17] extend this perspective to study design, using do-search to evaluate whether proposed additional data sources would identify a causal effect under specified causal assumptions—note, however, that here the proposals are made by the researcher, instead of found and suggested by an algorithm.
Guo and Zhao [13] are somewhat related to our emphasis on iterative model specification. Their interactive procedure asks users for primary adjustment sets and uses these inputs to construct sufficient adjustment sets, without requiring a prespecified graph. One of the differences here is that they start with a specific strategy in mind—identification via covariate adjustment—and then proceed to try to elicit knowledge for that strategy from the researcher. Our approach, instead, starts from a partially specified causal model and then directs the researcher’s attention to where additional refinement enables identification. The question we solve and the problem scope are therefore different. For the edge expansions we consider, identification can proceed through any strategy available in non-parametric SCMs, and thus goes beyond covariate adjustment.
A further connection is the use of graphical obstructions to identification to guide changes in a study or its assumptions. Hedges have been used to formulate the problem of choosing interventions for identification and to develop algorithms that minimize their cost [1, 10, 2]. Akbari et al. [3] study minimum cost deletions of directed and bidirected edges when the causal structure is uncertain, using hedges to guide the search. These approaches seek interventions on existing variables or assumptions that remove edges. Here we use hedges to find all individual edge expansions that enable identification through additional observations, refining the mechanisms represented in the original diagram.
Additional information can also change what is learned without measuring a new variable. Functional form restrictions, knowledge about plausible magnitudes, and equality constraints can aid identification or yield informative bounds on causal effects [33, 9, 7, 8, 18, 36, 19, 4, 34]. Extending identification searches of the kind developed here to these other forms of knowledge is an important direction for future research.
Proofs for Section 3 (Graphical Criteria for Finding ID-Enabling Edges)
Theorem 1. If a bidirected edge belongs to every bidirected path between and any of its children in , then is identifiable from in the extended graph .
Proof. There are no bidirected paths between and any of its children in because intercepts all such paths in and expanding cannot create new bidirected paths between and its children. Thus, is identifiable from in by Theorem 4 of Tian and Pearl [30]. ∎
Theorem 2. Suppose that only one child of in is connected to via a bidirected path in that graph. Let . Then is identifiable from in the extended graph .
Proof. Let denote the new node in . Subdividing preserves directed ancestry between the original nodes. Since , we have
In the induced ancestor graph, the children of in are and its original children other than . The variable has no incident bidirected edges. The bidirected paths between original nodes are unchanged, so none of the remaining children is connected to by a bidirected path, by hypothesis. Thus no child of is connected to by a bidirected path in . Theorem 4 of Tian and Pearl [30] establishes identification from .
Theorem 3. If is not identifiable in , then no set satisfies the backdoor criterion relative to and in any directed edge expansion , .
Proof. Suppose satisfies the backdoor criterion in . The case is immediate. Otherwise, let be the parent of , and define
This set contains no descendants of . Moreover,
Hence is identifiable in , contradicting the hypothesis.
Theorem 4. Suppose that there exists a bidirected path between and one of its children in . If is identifiable in the extended graph , then .
Proof. Suppose . Then the path and the edge remain in . Let consist of the nodes and bidirected edges of together with , and let . Then and are C-forests with root set , , and . This root set lies in by assumption, and hence in , because expanding an edge preserves directed paths between original nodes. Thus is a hedge for in , and is not identifiable in by Theorem 5.
Corollary 1. Suppose that there exist two bidirected paths, and , between and two of its children, and , respectively, in such that . Then is not identifiable in any extended graph of .
Proof. By Theorem 4, any ID-enabling edge must lie in both and . These sets are disjoint.
Proofs for Section 4 (Hedges and the ID Algorithm)
Lemma 1. Let and be graphs obtained from graphs and , respectively, by removing all outgoing edges from nodes in . If forms a hedge then the pair forms a -rooted hedge.
Proof. Since the pair forms a hedge, it satisfies the following conditions of a hedge:
, .
.
and are C-forests.
and have the same root set .
.
Next, we show that these properties also hold for and with root set , which proves that forms a -rooted hedge.
Since and , we have and .
Because and only edges common to and are removed from them to obtain and , respectively, it follows that .
Since only directed edges are removed from and , and are C-forests.
Since and have the same root set, the root sets of and can consist only of nodes in . Since and are obtained from and by removing all outgoing edges from nodes in , the nodes in have no children in and . Therefore, the root set of both and is .
We have , since otherwise could not be the root set of . Since , we also have . Together, these imply that . Furthermore, since and , it follows that . Finally, combining the above results with , we obtain .
We have now shown that all properties of a hedge hold for with root set . Therefore, forms a -rooted hedge. □
Lemma 2. Let be an ID-hedge of in . Then the root set of both and is .
Proof. By the hedge criterion, we can form a hedge from the edge subgraphs of and that are returned by the ID algorithm. Therefore, the root sets of and can consist only of nodes in . Since and are obtained from and by removing all outgoing edges of nodes in , the nodes in have no children in and . Thus, the root set of both and is . □
Lemma 3. For any ID-hedge of in , there exist edge subgraphs and that form a -rooted hedge for in .
Proof. By the hedge criterion, we can find edge subgraphs and that form a hedge for . By Lemma 1, forms a -rooted hedge, where and are obtained from and , respectively, by removing all outgoing edges from nodes in . Since and are obtained from and , respectively, by removing all outgoing edges from nodes in , it follows that and are edge subgraphs of and , respectively. □
Proofs for Section 5 (Algorithmic Approach to Find All ID-Enabling Edges)
Theorem 6. If is not identifiable in but is identifiable in for some edge of , then breaks every ID-hedge of in .
Proof. If does not break some ID-hedge, then, by Definition 5, there exists a hedge for the causal effect in . Therefore, by Theorem 5, is not identifiable in . □
Theorem 7. An edge of breaks the -rooted ID-hedge of in if and only if there are no edge subgraphs and that form a -rooted hedge for in .
Proof. Let and be arbitrary edge subgraphs of and , respectively. Since neither nor contains the edge , both are subgraphs of . This ensures that can be considered as a potential hedge in , since a hedge in a graph must itself consist of subgraphs of that graph.
We consider two cases: (i) forms a hedge in , and (ii) does not form a hedge in . We show that in both cases the same holds in , establishing the desired equivalence.
(i) If forms a hedge for the causal effect in , it satisfies the following properties:
and .
.
and are C-forests.
and have the same root set .
.
Properties 1–4 continue to hold in , since they depend only on and , and neither nor contains the edge . Therefore, expanding does not affect these properties. It remains to show that Property 5 also holds.
If , then the path is replaced by in . Thus, expanding preserves all existing directed paths while introducing only the new node along the replaced edge. Similarly, if , then it is replaced by and . This introduces two new directed edges but does not remove any existing directed edges or directed paths. Thus, in both cases, expanding can only increase the ancestor set of by the node when moving from to . Hence, . Thus, all properties required for to form a hedge in continue to hold in . Consequently, forms a hedge for the causal effect in .
(ii) If does not form a hedge for the causal effect in , then at least one of Properties 1–5 does not hold. If one of Properties 1–4 does not hold in , then it also does not hold in , since expanding does not affect these properties as shown above. If Property 5 does not hold in , then it does not hold in either. As shown above, expanding can only add the new node to the ancestor set of when moving from to . Therefore, since and , we also have . Thus, does not form a hedge for the causal effect in either.
Therefore, forms a hedge in if and only if it forms a hedge in . Hence, the condition for breaking an ID-hedge is equivalent whether the hedge is considered in the original graph or in the extended graph , which proves the claim.
Corollary 3. Let be an edge of . Then is identifiable in if and only if is in every hedge for in .
Proof. Expanding preserves ancestral relations among the original nodes, including after intervention on (see the proof of Theorem 7). Moreover, belongs to no hedge, since it has no bidirected edges and the larger forest of a hedge is a C-forest containing a treatment node and at least one other node. Hence the hedges in are exactly the hedges in that do not contain , so has no hedge if and only if every hedge in contains . The claim then follows from Theorem 5.
Theorem 8. If an edge breaks a -rooted ID-hedge then is either a weak directed edge or a weak bidirected edge.
Proof. If , deleting changes neither nor . The hedge supplied by Lemma 3 remains, and Theorem 7 implies that does not break the ID-hedge. Such an edge is neither weak directed nor weak bidirected. Hence, suppose . We show that a non-weak edge cannot break the ID-hedge. We use the following notation: denotes the graph obtained from by removing the edge and adding a new edge . If , then .
Suppose first that is a directed edge but it is not a weak directed edge. By Lemma 3, we have edge subgraphs and forming a -rooted hedge for the causal effect in . Since is not a weak directed edge, in , and thus there exists an outgoing edge from node in . Since is a -rooted C-forest, it contains one outgoing edge from . If the outgoing edge of in is not , then the edge subgraphs and still form a -rooted hedge for the causal effect in . If the outgoing edge of in is , then edge subgraphs and form a -rooted hedge for the causal effect in .
Suppose next that is a bidirected edge but it is not a weak bidirected edge. Lemma 3, we have edge subgraphs and forming a -rooted hedge for the causal effect in . If and
::: are bidirected-connected, we can construct edge subgraphs and . The graphs and have the same directed edges as in and , respectively, and the same bidirected edges as in and , respectively. Thus, forms a -rooted hedge for the causal effect in .
Lemma 4. For every graph pair returned by HCID, there exists an ordering of the recursive branches of the standard ID algorithm under which ID returns as its failure pair.
Proof. Let be an arbitrary graph pair returned by HCID. The pair is returned when a recursive branch reaches the same failure condition as in the standard ID algorithm. Furthermore, HCID follows the same graphical recursion as the standard ID algorithm within each recursive branch.
The standard ID algorithm decomposes the graph into its C-components and makes a recursive call for each of them. However, the algorithm does not specify an ordering of these C-components. Therefore, whenever multiple C-components are encountered on the recursive path leading to , the C-component containing the continuation of this path may be considered first.
Choosing this ordering at every such branching step causes the standard ID algorithm to follow the same sequence of recursive calls as HCID along the path leading to . The recursion therefore reaches the same failure condition, and the resulting failure is propagated by the standard ID algorithm. Hence, ID returns as its failure pair.
Since was arbitrary, the result holds for every graph pair in .
Theorem 9 (Soundness of Algorithm 2). Let be a causal diagram such that is not identifiable in and let . Then is identifiable in for every .
Proof. The identifiability of in is verified by the ID algorithm for each member on line 9. The claim now follows from the soundness of ID.
Theorem 10 (Completeness of Algorithm 2). Let be a causal diagram such that is not identifiable in and let . If there exists an edge of such that is identifiable in , then .
Proof. Let be any ID-enabling edge. Since the original effect is not identifiable, HCID returns at least one pair, and every pair it collects can also be returned by ID under a suitable ordering of the branches, as shown by Lemma 4. Each corresponding pair is therefore an ID-hedge for the original effect. By Theorem 6, must break each such ID-hedge, and by Theorem 8, for every . A directed edge can only belong to the directed sets and a bidirected edge can only belong to the bidirected sets. Thus belongs to the candidate set C in the algorithm. Completeness of ID ensures that its final test succeeds, so the algorithm returns .
Theorem 11 (Complexity of Algorithm 2). Let , , and let be the number of candidates selected by Algorithm 2. Its output satisfies . The bound is sharp for both candidates and ID-enabling edges. With adjacency lists and graphical ID decisions, the algorithm runs in , and hence , time. Processing each pair as it is returned permits working space.
Proof. We first bound the number of candidates. Consider any ID-hedge constructed by Algorithm 2, which exists because the input query is not identifiable. By Lemma 2 and Definition 6, there are at most weak directed edges. Similarly, by Definition 7, the weak bidirected edges cannot form a cycle, because is a subgraph of . There are therefore at most weak bidirected edges.
Algorithm 2 selects a subset of these weak edges. Since its output is a subset of the candidates,
To prove sharpness, for , consider the graph consisting of the directed chain
and the bidirected path
where the sequence of nodes is empty when . The full graph and its singleton subgraph on form a hedge, so the query is not identifiable by Theorem 5.
Every hedge for this query has root set , since and the smaller C-forest excludes . Its larger C-forest must therefore contain the entire bidirected path connecting to , and the entire directed chain leading to the root . Thus, every edge belongs to every hedge. By Corollary 3, all edges are ID-enabling, and Theorem 10 ensures that Algorithm 2 returns them all. This establishes that the bound is sharp for both the number of candidates and the number of ID-enabling edges.
We now bound the running time. HCID branches only over disjoint C-components, so it has at most terminal branches. Each recursive call along a branch either removes nodes or adds them to the intervention set, so a branch contains calls, each taking time. HCID therefore runs in time and returns at most graph pairs. The same bound holds for ID when the identifying functional is not constructed.
We compute the candidate intersection one ID-hedge at a time. By Definitions 6 and 7, we can check whether an edge is weak in time. The first ID-hedge requires at most such checks, and by the bound above, each subsequent ID-hedge requires at most . Since there are at most ID-hedges and , constructing the ID-hedges and intersecting their weak edges takes time.
By Definition 1, each extended graph has nodes and edges. Each of the final ID tests therefore takes time. Adding these costs gives . Since , this is .
For the space bound, process the C-components one at a time and replace the current graph at each reduction. Their disjoint node sets require space. We keep the candidates that are weak edges of the current ID-hedge, then remove it from memory. The extended graphs are then tested one at a time. At any point, we need only store a constant number of graphs and the arrays used for searches, which require space. Since the candidate and output sets use space, the total space needed is .
Algorithm walkthrough: Figure 2(a)
Consider the graph in Figure 2(a) where is not identifiable. Calling HCID on line 2 produces two graph pairs: and . For the first pair, we have on line 4. As has no children in either graph of this pair, no changes to the graphs are made on line 5. For the second pair, we have that , so the directed edge is removed from both graphs of the pair. Next, the set of candidates is constructed on line 6. For the first pair, and both only have one child in , so the weak directed edges are and . All bidirected edges of are weak, i.e., , and , as is no longer bidirected connected if any such edge is removed. For the second pair, the weak directed edge is and the weak bidirected edges are and . Thus . The ID test on line 9 determines that is identifiable in the extended graph of all three edges, so in this instance on line 11.
Computational experiments
Exhaustive experiments
We start with a set of exhaustive experiments, covering every case in which is not identifiable in ADMGs with two through six nodes. We consider every choice of distinct and such that all nodes are ancestors of , up to relabeling that preserves the treatment and the outcome.
For each of these cases, we run Algorithm 2 and compare the edges it returns with those found by a brute force procedure that expands each edge separately and applies ID to the resulting graph. As expected, both procedures return the same set of edges, corroborating the correctness of our algorithm.
We also count the number of cases where identification can be enabled only by expanding a directed edge, only by expanding a bidirected edge, by either type, or by neither type. These results are shown in Table 2. Expanding a single edge enables identification in 100% of the cases with two nodes, 92.3% with three, 80.7% with four, 67.8% with five, and 55.2% with six. At six nodes, 31.0% of cases can be solved only by expanding a directed edge, 9.1% only by expanding a bidirected edge, and 15.2% by expanding an edge of either type.
| Total queries | Nonidentified | Neither | Directed only | Bidirected only | Both | |
| 2 | 2 | 1 | 0 | 0 | 0 | 1 |
| 3 | 40 | 26 | 2 | 4 | 2 | 18 |
| 4 | 2,568 | 2,010 | 387 | 487 | 227 | 909 |
| 5 | 581,424 | 513,602 | 165,443 | 149,132 | 58,282 | 140,745 |
| 6 | 496,583,784 | 468,747,580 | 209,916,840 | 145,086,131 | 42,537,403 | 71,207,206 |
Table 2. Exhaustive classification of nonidentified queries. “Both” means that an edge of each type succeeds when expanded individually. The number of nodes refers to the original graph.
We also apply Theorems 1, 2, and 4 to the same cases, to examine the coverage of the graphical criteria developed in § 3. We measure how often these theorems fully resolve a case by determining all edges—if any—that are ID-enabling. We also measure how often Theorem 1 or 2 finds an ID-enabling edge whenever one exists. Table 3 reports the results. Theorems 1, 2, and 4 fully resolve 90–100% of the nonidentified cases, and Theorems 1 and 2 find an ID-enabling edge in at least 99.96% of cases, whenever a solution exists.
Sparse and dense graphs
We draw random samples of graphs with nodes. For sparse graphs, each directed edge is included with probability and each bidirected edge with probability . For dense graphs, these probabilities are 0.30 and 0.20. Directed edges follow a fixed topological order, with the last node always serving as the outcome . The treatment is then drawn uniformly from the nodes with a directed path to . For each size and regime, we sample 10,000 graphs in which the target query is not identifiable.
Table 3 shows the coverage of the graphical criteria in § 3. Note that Theorems 1, 2, and 4 fully resolve 92.74–100% of the nonidentified cases. Moreover, Theorems 1 and 2 find an ID-enabling edge in at least 99.92% of cases, whenever a solution exists.
We also compare the runtime of Algorithm 2 against the naive baseline of expanding and testing every edge. For each case, we record the median runtime across seven timing batches. Speedup is the ratio of the runtime of the brute force procedure to that of Algorithm 2.
The results are shown in Table 4 and Figure 4. Across graph sizes, median speedups range from 2.97 to 5.69 for sparse graphs and from 2.21 to 1,895.97 for dense graphs. Figure 5 compares the runtimes for individual cases.
| Sparse graphs | Dense graphs | |||||
| ID-enabling (%) | Speedup All | Speedup ID-enabling | ID-enabling (%) | Speedup All | Speedup ID-enabling | |
| 10 | 77.91 | 2.97 | 2.65 | 86.90 | 2.21 | 2.05 |
| 20 | 84.92 | 3.37 | 3.11 | 46.27 | 12.89 | 8.63 |
| 40 | 92.26 | 3.81 | 3.66 | 14.66 | 299.83 | 122.59 |
| 60 | 95.18 | 4.10 | 4.00 | 8.58 | 649.16 | 322.04 |
| 80 | 96.52 | 4.50 | 4.42 | 6.66 | 758.02 | 467.87 |
| 160 | 99.07 | 5.69 | 5.66 | 3.20 | 1,895.97 | 1,348.12 |
Table 4. Runtime results for sparse and dense graphs.
Figure 5. Paired runtimes for sparse and dense graphs. Points above the diagonal favor Algorithm 2.
Varying edge densities
We draw random samples of graphs with nodes. We consider all 25 combinations of directed edge probabilities and bidirected edge probabilities , using the same sampling procedure as above. For each combination, we sample 10,000 graphs in which the target query is not identifiable. Two combinations are already included in the sparse and dense experiments, so we reuse those samples.
Table 5 shows the coverage of the graphical criteria in § 3. Note that Theorems 1, 2, and 4 fully resolve 87.70–99.96% of the nonidentified cases. Moreover, Theorems 1 and 2 find an ID-enabling edge in at least 99.92% of cases, whenever a solution exists.
We also compare the runtime of Algorithm 2 against the naive baseline of expanding and testing every edge, using the same timing procedure as above. The results are shown in Table 6. Across the 25 combinations, median speedups range from 1.74 to 299.83.
| Directed edge probability | 0.02 | 0.05 | 0.10 | 0.15 | 0.20 |
| 0.05 | 1.74, 1.74 | 1.81, 1.79 | 1.85, 1.82 | 1.88, 1.83 | 1.97, 1.89 |
| 0.10 | 4.52, 4.46 | 3.81, 3.66 | 4.80, 4.06 | 7.61, 5.62 | 12.98, 8.14 |
| 0.15 | 7.36, 7.08 | 5.75, 5.25 | 10.97, 8.21 | 27.13, 16.53 | 56.84, 29.96 |
| 0.20 | 10.40, 9.77 | 7.86, 6.99 | 20.23, 14.71 | 59.63, 35.20 | 124.44, 60.48 |
| 0.30 | 16.82, 15.30 | 13.26, 11.31 | 42.25, 32.07 | 139.00, 80.90 | 299.83, 122.59 |
Table 6. Median paired speedups at , with 10,000 nonidentified queries per density combination. Each entry reports the median over all queries, followed by the median among queries admitting an ID-enabling expansion.
Constructed dense graphs
For each , we construct a graph with nodes . We include every directed edge from an earlier to a later node in the order . We also include the edge and the bidirected path . The target query is not identifiable in these graphs.
We compare Algorithm 2 against expanding and testing every edge. The results are shown in Figure 6. Algorithm 2 performs final ID tests, whereas the brute force procedure performs . At , for example, these counts are 161 and 12,721, respectively.
Figure 6. Number of final ID tests in the constructed dense graphs.
Computing environment and replication
All experiments were run on an Apple M5 Max computer with 18 CPU cores and 64 GB of memory, running macOS 27.0. The algorithms are implemented in C++17 and compiled with Apple clang 21.0 at optimization level -O3. The experiments are run and analyzed in Python 3.12 using NumPy, PyArrow, and Matplotlib. The exhaustive and random experiments were evaluated with 12 parallel workers. Runtimes were then measured on a single thread, with no other experiments running. The complete run took approximately two hours, including correctness checks and runtime measurements, and produced 5.7 GB of saved records. We provide code that reproduces all experiments, tables, and figures from scratch, using a fixed random seed as Online Supplementary Material.
Variants of Algorithm 2
Here we generalize Algorithm 2 by allowing other constructions of the candidate set .
Algorithm 3 General form of Algorithm 2.
1: function ID-EnablingEdges(Y, X, G)
2: C ← a set of edges of G containing every ID-enabling edge
3: S ← ∅
4: for e ∈ C do
5: if ID(Y, X, G_e) does not fail then
6: S ← S ∪ {e}
7: return S
We compare variants of Algorithm 2 using four necessary conditions for an edge to be ID-enabling:
belongs to .
belongs to every larger graph in the pairs returned by HCID.
is weak directed or weak bidirected in every corresponding ID-hedge.
If is a bidirected path from to a child of , and all nodes of other than lie in , then
These conditions follow from Corollary 3 and Theorems 6, 8, and 4, respectively.
The brute force procedure uses (i) alone, while Algorithm 2 uses (i)–(iii). Table 7 compares the mean number of final ID tests for these and other combinations, including the addition of (iv).
| Conditions used | ||||||
| (i) | (i)–(ii) | (i)–(iii) | (i)–(iv) | (i) + (iv) | ||
| Exhaustive experiments | ||||||
| 4 | 7.65 | 6.60 | 2.74 | 1.51 | 1.67 | 1.48 |
| 5 | 11.86 | 10.55 | 2.70 | 1.17 | 1.42 | 1.11 |
| 6 | 17.07 | 15.83 | 2.38 | 0.85 | 1.13 | 0.79 |
| Sparse graphs | ||||||
| 10 | 20.35 | 13.47 | 4.14 | 1.72 | 2.08 | 1.64 |
| 20 | 32.59 | 17.31 | 6.01 | 2.29 | 3.04 | 2.12 |
| 40 | 47.55 | 17.86 | 7.56 | 2.81 | 3.68 | 2.66 |
| 60 | 57.16 | 16.78 | 8.08 | 3.04 | 3.99 | 2.90 |
| 80 | 62.93 | 14.18 | 7.75 | 3.07 | 3.85 | 2.97 |
| 160 | 71.90 | 8.14 | 5.85 | 2.87 | 3.27 | 2.84 |
| Dense graphs | ||||||
| 10 | 14.76 | 10.00 | 4.06 | 2.02 | 2.38 | 1.91 |
| 20 | 63.53 | 58.60 | 3.67 | 0.79 | 1.28 | 0.71 |
| 40 | 308.15 | 307.70 | 0.48 | 0.15 | 0.15 | 0.15 |
| 60 | 755.09 | 755.08 | 0.16 | 0.09 | 0.09 | 0.09 |
| 80 | 1,403.40 | 1,403.40 | 0.11 | 0.07 | 0.07 | 0.07 |
| 160 | 5,988.83 | 5,988.83 | 0.06 | 0.03 | 0.03 | 0.03 |
| Constructed dense family | ||||||
| 10 | 46 | 46 | 11 | 11 | 46 | 11 |
| 20 | 191 | 191 | 21 | 21 | 191 | 21 |
| 40 | 781 | 781 | 41 | 41 | 781 | 41 |
| 60 | 1,771 | 1,771 | 61 | 61 | 1,771 | 61 |
| 80 | 3,161 | 3,161 | 81 | 81 | 3,161 | 81 |
| 160 | 12,721 | 12,721 | 161 | 161 | 12,721 | 161 |
Table 7. Mean number of final ID tests per nonidentified query using different combinations of necessary conditions. The last column gives the mean number of ID-enabling edges. Constructed-family rows give exact counts for the graphs in Appendix F.4. Case (i) matches the brute force approach of testing every edge. Algorithm 2 uses (i)–(iii) (third column).
Table 7 shows that Theorem 4 can be a powerful filter to complement Algorithm 2, but on its own it does not prevent a quadratic number of final ID tests in the worst case. The weak edge conditions used by Algorithm 2 guarantee at most such tests.
References
- [1]Akbari, S., Etesami, J., and Kiyavash, N. (2022). Minimum cost intervention design for causal effect identification. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 258–289.
- [2]Akbari, S., Etesami, J., and Kiyavash, N. (2025). Optimal experiment design for causal effect identification. Journal of Machine Learning Research, 26(28):1–56.arxiv.org/abs/2407.05330
- [3]Akbari, S., Jamshidi, F., Mokhtarian, E., Vowels, M. J., Etesami, J., and Kiyavash, N. (2023). Causal effect identification in uncertain causal networks. In Advances in Neural Information Processing Systems, volume 36.arxiv.org/abs/2208.04627
- [4]Chernozhukov, V., Cinelli, C., Newey, W. K., Sharma, A., and Syrgkanis, V. (2026). Long story short: Omitted variable bias in causal machine learning. The Review of Economics and Statistics, pages 1–45.
- [5]Cinelli, C., Feller, A., Imbens, G., Kennedy, E., Magliacane, S., and Zubizarreta, J. (2025). Challenges in statistics: A dozen challenges in causality and causal inference. arXiv:2508.17099.arxiv.org/abs/2508.17099
- [6]Cinelli, C., Forney, A., and Pearl, J. (2024). A crash course in good and bad controls. Sociological Methods & Research, 53(3):1071–1104.
- [7]Cinelli, C. and Hazlett, C. (2020). Making sense of sensitivity: extending omitted variable bias. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 82(1):39–67.
- [8]Cinelli, C. and Hazlett, C. (2025). An omitted variable bias framework for sensitivity analysis of instrumental variables. Biometrika, 112(2):asaf004.DOI
- [9]Cinelli, C., Kumor, D., Chen, B., Pearl, J., and Bareinboim, E. (2019). Sensitivity analysis of linear structural causal models. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 1252–1261.
- [10]Elahi, S., Akbari, S., Etesami, J., Kiyavash, N., and Thiran, P. (2024). Fast proxy experiment design for causal effect identification.arxiv.org/abs/2407.05330
- [11]Evans, R. J. (2016). Graphs for margins of Bayesian networks. Scandinavian Journal of Statistics, 43(3):625–648.DOI
- [12]Guo, A., Liu, L., Benkeser, D., and Nabi, R. (2025). Causal inference with the Napkin graph. arXiv preprint arXiv:2512.19861. Version 2, revised June 2026.arxiv.org/abs/2512.19861
- [13]Guo, F. R. and Zhao, Q. (2026). Confounder selection via iterative graph expansion. The Annals of Statistics, 54(1):516–541.arxiv.org/abs/2309.06053
- [14]Helske, J., Tikka, S., and Karvanen, J. (2021). Estimation of causal effects with small data in the presence of trapdoor variables. Journal of the Royal Statistical Society: Series A, 184(3):1030–1051.DOI
- [15]Henckel, L., Perković, E., and Maathuis, M. H. (2022). Graphical criteria for efficient total effect estimation via adjustment in causal linear models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 84(2):579–599.DOI
- [16]Jeong, H., Tian, J., and Bareinboim, E. (2022). Finding and listing front-door adjustment sets. In Advances in Neural Information Processing Systems, volume 35.arxiv.org/abs/2210.05816
- [17]Karvanen, J., Tikka, S., and Hyttinen, A. (2021). Do-search: A tool for causal inference and study design with multiple data sources. Epidemiology, 32(1):111–119.DOI
- [18]Kumor, D., Cinelli, C., and Bareinboim, E. (2020). Efficient identification in linear structural causal models with auxiliary cutsets. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 5501–5510.
- [19]Maiti, A., Plecko, D., and Bareinboim, E. (2025). Counterfactual identification under monotonicity constraints. Proceedings of the AAAI Conference on Artificial Intelligence, 39(25):26841–26850.
- [20]Pearl, J. (1995). Causal diagrams for empirical research. Biometrika, 82(4):669–688.
- [21]Pearl, J. (2009). Causality. Cambridge University Press.
- [22]Pearl, J. and Mackenzie, D. (2018). The Book of Why: The New Science of Cause and Effect. Hachette UK.
- [24]Richardson, T., Evans, R. J., Robins, J. M., and Shpitser, I. (2023). Nested Markov properties for acyclic directed mixed graphs. The Annals of Statistics, 51(1):334–361.DOI
- [25]Robins, J. (1986). A new approach to causal inference in mortality studies with a sustained exposure period—application to control of the healthy worker survivor effect. Mathematical Modelling, 7(9–12):1393–1512.DOI
- [26]Rosenbaum, P. R. and Rubin, D. B. (1983). The central role of the propensity score in observational studies for causal effects. Biometrika, 70(1):41–55.
- [27]Shpitser, I. (2023). When does the ID algorithm fail? arXiv preprint 2307.03750.arxiv.org/abs/2307.03750
- [28]Shpitser, I. and Pearl, J. (2006). Identification of joint interventional distributions in recursive semi-Markovian causal models. In Proceedings of the 21st National Conference on Artificial Intelligence – Volume 2, pages 1219–1226.
- [29]Smucler, E. and Rotnitzky, A. (2022). A note on efficient minimum cost adjustment sets in causal graphical models. Journal of Causal Inference, 10(1):174–189.arxiv.org/abs/2201.02037
- [30]Tian, J. and Pearl, J. (2002). A general identification condition for causal effects. In Proceedings of the 18th National Conference on Artificial Intelligence, pages 567–575.DOI
- [31]Tian, J. and Pearl, J. (2003). On the identification of causal effects. Technical report, Department of Computer Science, University of California, Los Angeles. R-290-L.
- [32]van der Zander, B., Liškiewicz, M., and Textor, J. (2019). Separators and adjustment sets in causal graphs: Complete criteria and an algorithmic framework. Artificial Intelligence, 270:1–40.DOI
- [33]VanderWeele, T. J. and Robins, J. M. (2009). Properties of monotonic effects on directed acyclic graphs. Journal of Machine Learning Research, 10(24):699–718.
- [34]Wang, J., Sant’Anna, P. H. C., Chernozhukov, V., and Cinelli, C. (2026). Omitted variable bias in Difference-in-Differences designs. arXiv:2609.19386.arxiv.org/abs/2609.19386
- [35]Wienöbst, M., van der Zander, B., and Liškiewicz, M. (2024). Linear-time algorithms for front-door adjustment in causal graphs. Proceedings of the AAAI Conference on Artificial Intelligence, 38(18):20577–20584.
- [36]Zhang, C., Cinelli, C., Chen, B., and Pearl, J. (2021). Exploiting equality constraints in causal inference. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research, pages 1630–1638.




