CTFIDU+ Algorithm for Counterfactual Identification
- The paper introduces ctfIDu⁺, an algorithm that extends counterfactual identification to handle arbitrary realizable Layer-3 distributions, and proves its soundness and completeness.
- The method employs a two-layer approach with an inner routine (identify⁺) and an outer routine that factorizes counterfactual queries into ctf-factors over c-components in recursive SCMs.
- Integrating counterfactual randomization (ctf-rand) allows the algorithm to tighten partial identification bounds and improve decision-making in non-parametric causal inference.
The CTFIDU+ algorithm—written in the source paper as —is an identification procedure for counterfactual queries from an arbitrary collection of physically realizable input distributions, including observational, interventional, and certain counterfactual distributions obtainable via counterfactual randomization. It is introduced in “Causal Identification from Counterfactual Data: Completeness and Bounding Results” (Raghavan et al., 26 Feb 2026) to address a setting not handled by earlier identification algorithms: the input data themselves may belong to Layer 3 of the Pearl Causal Hierarchy, rather than only to observational or interventional layers. The algorithm is stated for unnested counterfactual queries over recursive structural causal models (SCMs), and the paper proves that it is sound and complete for this task (Raghavan et al., 26 Feb 2026).
1. Position within counterfactual identification
Counterfactual identification asks whether a target query is uniquely computable from a causal graph and a set of available distributions across all SCMs compatible with . In the standard presentation of the Pearl Causal Hierarchy, observational distributions occupy , interventional distributions occupy , and counterfactual distributions occupy , including cross-world expressions such as
Earlier completeness results were restricted to settings in which the input data lie in or . IDC* is described as complete for 0 identification assuming full 1 data, while ctfID is described as complete for 2 identification assuming an arbitrary subset of 3 distributions. Other algorithms such as ID, IDC, and psIDC likewise assume that the inputs are observational or interventional rather than raw counterfactual distributions (Raghavan et al., 26 Feb 2026).
The motivation for 4 comes from counterfactual realizability, introduced by Raghavan and Bareinboim (2025). In that framework, some Layer-3 distributions can be sampled directly through experimental procedures. The key new experimental primitive is counterfactual randomization, denoted 5, which sets the value of 6 as perceived by a chosen child set 7 to a randomized value, while not overriding the unit’s natural value of 8 and not affecting the remaining children. This enlarges the set of admissible data-generating regimes beyond observation and standard randomized intervention, and yields a realizable sublayer 9 (Raghavan et al., 26 Feb 2026).
The resulting identification problem is therefore different from classical counterfactual identification: the input is no longer limited to observational and interventional distributions, but may be an arbitrary mix of realizable Layer-3 distributions. 0 is designed precisely for that generalized setting.
2. Formal setting and representation of queries
The algorithm is developed for recursive, acyclic SCMs 1, where 2 are observed variables, 3 are exogenous variables, and 4 are structural equations. Each model induces a semi-Markovian causal diagram with directed edges for observed parent relations and bidirected edges representing unmeasured confounding (Raghavan et al., 26 Feb 2026).
The target objects are general counterfactual events of the form 5, where 6 is a set of potential responses, possibly under different regimes, for example
7
The corresponding Layer-3 distribution is 8. When all subscripts are identical, the expression collapses to a Layer-2 interventional distribution; when the subscripts are empty, it is observational (Raghavan et al., 26 Feb 2026).
The paper states 9 for unnested counterfactuals. Nested expressions are allowed in principle, but are to be handled by preprocessing, particularly the ancestral set transformation (AST). The assumptions listed for the algorithm are: an acyclic graph, discrete variables with finite domain, strict positivity of all distributions, and target queries that are unnested after preprocessing (Raghavan et al., 26 Feb 2026).
A central formal device is the ctf-factor, a Layer-3 generalization of Tian and Pearl’s c-factor. If
0
then 1 denotes a counterfactual factor associated with a cluster of counterfactual variables sharing exogenous structure. The paper’s key structural claim is that any post-AST counterfactual distribution can be factorized into a product of ctf-factors over c-components, analogously to the factorization of interventional distributions. This factorization is the core reduction used by 2 (Raghavan et al., 26 Feb 2026).
The available input data are indexed by a set of action specifications
3
where 4 represents observation, 5 represents standard intervention, and more general 6 may include 7. For each regime, a routine denoted 8 constructs the realizable counterfactual joint distribution observed under that regime (Raghavan et al., 26 Feb 2026).
3. Internal structure of 9
The algorithm has two layers. The inner routine, 0, attempts to identify one ctf-factor 1 from another ctf-factor 2. The outer routine, 3, reduces the full query to a collection of required ctf-factors and then searches the available regimes for input factors from which each required factor can be identified (Raghavan et al., 26 Feb 2026).
The 4 subroutine takes as input the graph 5, a target ctf-factor 6, and an available ctf-factor 7, subject to three conditions: 8, each observable appears at most once in 9, and 0 is a single c-component. It constructs a minimal closure 1 of 2 inside 3 such that no outside term appears in the subscripts of a term inside 4. If 5, identification is by marginalization: 6 If 7, the routine returns FAIL. Otherwise it marginalizes to 8, factorizes by c-components, selects the factor containing 9, and recurses (Raghavan et al., 26 Feb 2026).
The outer algorithm proceeds by normalizing the target query, factorizing it, matching the resulting factors against available experimental regimes, and assembling the final formula. Its high-level workflow is as follows.
| Step | Operation | Result |
|---|---|---|
| 1 | Simplify redundant subscripts | Remove redundant or inconsistent assignments |
| 2 | Apply AST to ancestors | Rewrite target as a marginal of 0 |
| 3 | Factorize into ctf-factors | Obtain necessary and sufficient factors 1 |
| 4 | Process each input regime | Construct and factorize realizable 2 |
| 5 | Run 3 factorwise | Express each target factor from some input factor |
| 6 | Assemble or fail | Return final formula or FAIL |
The algorithm first simplifies the target using an exclusion lemma. If conflicting assignments occur, such as two terms 4 and 5 with 6, it returns 7, corresponding to an impossible event. It then computes the ancestor expansion 8 and applies AST to rewrite
9
Next, it partitions 0 into 1 such that each 2 is a c-component in the induced graph, yielding the factorization
3
These are described as the necessary and sufficient ctf-factors for identifying the query (Raghavan et al., 26 Feb 2026).
For each input regime 4, the algorithm constructs the corresponding realizable distribution 5, applies AST, partitions into c-components, and factorizes into ctf-factors 6. It then searches across all regimes and all such factors to find, for each target factor 7, an input factor 8 with 9 for which 0 succeeds. If every target factor is identified, the returned formula is
1
If any required factor cannot be recovered from any regime, the output is FAIL (Raghavan et al., 26 Feb 2026).
4. Obstructions, completeness, and relation to earlier algorithms
The negative structure underlying failure is the ctf-hedge, defined through a more primitive object called a ctf-forest. A ctf-forest is a collection 2 satisfying four properties: each observed variable appears at most once; the induced subgraph on 3 is a c-component whose bidirected edges form a minimum spanning tree; 4 for some 5; and each vertex has at most one child. A ctf-hedge is a ctf-forest rooted at 6 that strictly contains the root set and satisfies an additional “value chain” condition tying parent values to child subscripts (Raghavan et al., 26 Feb 2026).
The paper states a non-identifiability lemma: if 7 is a ctf-hedge rooted at 8, then 9 is not identifiable from 0 given 1. The proof idea uses two SCMs with the same minimum spanning tree but different value assignments encoded in a bit-representation of edges; the models agree on 2 but disagree on 3 (Raghavan et al., 26 Feb 2026).
This obstruction yields the characterization of the inner routine: for suitable input factors,
4
The same logic is lifted to the outer routine in Theorem 4.3, which states that for an unnested counterfactual expression 5, the query 6 is identifiable from 7 and regime set 8 if and only if 9 returns an expression (Raghavan et al., 26 Feb 2026).
The soundness argument relies on the correctness of AST, ctf-factorization, marginalization, and the soundness of 00. The completeness argument relies on the fact that AST and factorization isolate a minimal collection of necessary ctf-factors; if one of those factors cannot be identified from any regime, then the corresponding failure of 01 implies a ctf-hedge obstruction, and therefore there exist two SCMs agreeing on all inputs in 02 but disagreeing on the target (Raghavan et al., 26 Feb 2026).
The paper positions 03 as a strict generalization of prior identification algorithms. When 04 contains only observational and interventional regimes, it reduces to ctfID, and in the special case of full 05 availability it reduces to IDC*. When 06 includes realizable Layer-3 distributions produced via ctf-rand, it extends beyond the scope of ID, IDC, IDC*, and ctfID by directly using counterfactual data as input (Raghavan et al., 26 Feb 2026).
A common misconception addressed by this development is that Layer-3 distributions are necessarily inaccessible except through formal identification. The paper’s framework rejects that blanket assumption: some Layer-3 distributions are realizable, but not all of them. That distinction is essential to both the power and the limits of 07.
5. Realizability, hierarchy refinements, and the limit of exact identification
The paper refines the causal hierarchy beyond 08 by introducing intermediate realizable sublayers. 09 is a subclass of realizable counterfactual distributions in which ctf-rand cannot be path-specific. 10 is the set of all distributions realizable in principle by allowing path-specific ctf-rand on every edge in the graph. The complement 11 consists of purely counterfactual distributions that remain unrealizable even under maximal ctf-rand capability (Raghavan et al., 26 Feb 2026).
Using 12, the paper proves a limit of identification theorem. If a query 13 belongs to layer 14 but not to any lower layer, then for any 15, there exists a graph in which 16 is identifiable from data in layer 17, except when 18. The critical consequence is that there are no purely Layer-3 queries in 19 that are identifiable from 20 data (Raghavan et al., 26 Feb 2026).
This establishes 21 as the paper’s theoretical limit of exact causal identification in the non-parametric setting. The source further presents an informal corollary described as an identifiability–realizability duality: a query is identifiable from observational plus experimental data and 22 if and only if it is realizable in principle via ctf-rand actions (Raghavan et al., 26 Feb 2026).
The implication is not that every counterfactual quantity becomes directly measurable, but rather that the boundary of exact identification coincides with the boundary of physical realizability under the allowed experimental primitives. A plausible implication is that, within this framework, advances in counterfactual experimentation enlarge exact identifiability only insofar as they enlarge the realizable sublayer itself.
The paper gives a concrete class of exceptions: queries such as 23 may lie in 24, and are therefore non-identifiable from any realizable counterfactual data. It also states that the natural total effect (NTE) of Leek et al. (2025), used in XAI, depends on probabilities of causation of the form
25
which likewise lie in 26, and are therefore not exactly identifiable even under maximal ctf-randomization (Raghavan et al., 26 Feb 2026).
6. Partial identification, analytic bounds, and simulation findings
Because some counterfactual queries are irreducibly non-identifiable, the paper turns to partial identification. Given a graph 27, a target non-identifiable query 28, and data regimes 29, the task is to characterize the tight range 30 over all SCMs consistent with the graph and the observed data constraints. The paper states a monotonicity proposition: if 31, then the tight bounds under 32 are contained in those under 33 (Raghavan et al., 26 Feb 2026).
The analytic illustration is the bow graph, with 34 and an unobserved confounder between 35 and 36. In that model, the NTE reduces to a function involving the probability of causation 37. Three data scenarios are compared (Raghavan et al., 26 Feb 2026).
With only observational data 38, the paper states that the tight bounds are completely uninformative: 39
With observational plus interventional data, specifically 40 and 41 for each 42, the paper gives Balke–Pearl-style linear-programming bounds: 43 where
44
When realizable counterfactual data are added, specifically 45 for all 46, the paper gives sharper bounds: 47 together with the guarantee
48
Thus the added Layer-49 data systematically tighten the bounds for this non-identifiable quantity (Raghavan et al., 26 Feb 2026).
The simulation section uses a Bayesian sampling scheme, pID after Zhang et al. (2022), to estimate credible intervals from finite synthetic samples. In the “Traffic Camera – version 2” example, the graph includes confounding between both 50 and 51, with 52 and 53. The queries are the natural direct effect 54 and the NTE component 55. The reported findings are that, for NTE, the credible interval under 56 is significantly narrower than under 57, and that for NDE the interval collapses to the true value once counterfactual data are included, consistent with exact identifiability under ctf-rand (Raghavan et al., 26 Feb 2026).
In the “Unit Selection for treatment assignment” example, the same bow graph is used for de-addiction treatment. The paper distinguishes four unit types—Always-0, Helped, Hurt, and Always-1—with corresponding potential outcomes and benefits. It compares a standard interventional strategy, based on 58 bounds on 59, with a counterfactual strategy using ctf-rand to estimate
60
and thereby conditional benefits 61. The reported finding is that the counterfactual strategy yields positive bounds for the 62 subpopulation and negative bounds for the 63 subpopulation, implying an optimal policy that treats only units with natural 64, a policy stated to be unattainable using 65 alone (Raghavan et al., 26 Feb 2026).
These results support two distinct conclusions. First, realizable counterfactual data can convert some previously non-identifiable quantities into exactly identifiable ones. Second, when exact identification remains impossible, the same data can materially sharpen partial identification and enable more refined decision rules. This suggests that the main significance of 66 is not merely algorithmic unification, but the precise delineation of what counterfactual experimentation can and cannot buy in non-parametric causal inference (Raghavan et al., 26 Feb 2026).