SNAP: Sequential Non-Ancestor Pruning for Targeted Causal Effect Estimation With an Unknown Graph

Mátyás Schubert, Tom Claassen, Sara Magliacane

TL;DR

Discovering full causal graphs from scratch is computationally brutal and scales poorly as the number of variables grows. SNAP (Sequential Non-Ancestor Pruning) solves this by iteratively identifying and pruning variables that are definitely not ancestors of your target variables. This drastically cuts down the number of conditional independence tests and computation time without sacrificing the accuracy of the estimated causal effects.

What Problem Does This Paper Address?

Causal discovery algorithms (like the classic PC algorithm) attempt to map out the entire web of cause-and-effect relationships across all variables in a dataset. However, in many real-world scenarios, researchers only care about the causal effects within a small subset of target variables (e.g., how a handful of specific genes interact, or how a few specific policy interventions impact economic outcomes).

Learning the full graph just to understand a small piece of it is incredibly wasteful. While "local" causal discovery methods exist, they typically focus on a single treatment-outcome pair and often fail to identify statistically optimal adjustment sets (the variables you need to control for to eliminate confounding bias). The authors introduce the task of targeted causal effect estimation with an unknown graph to find efficient adjustment sets for multiple target variables simultaneously without the overhead of full graph discovery.

Methods

The core insight of the paper is that definite non-ancestors of your target variables are completely uninformative when it comes to learning the causal structure between the targets or finding their optimal adjustment sets. If you can safely drop them, you can run causal discovery on a much smaller subgraph.

The authors introduce the SNAP framework, which builds on top of constraint-based causal discovery:

  1. Sequential Pruning: SNAP adapts the standard PC-style skeleton search, which checks for conditional independence (CI) by gradually increasing the size of the conditioning sets (from size 0, i.e., marginal independence, upwards). At each step, SNAP builds a partially oriented graph, identifies definite non-ancestors of the targets, and immediately prunes them from the variable pool.
  2. RFCI Orientation Fix: Standard PC v-structure orientation can introduce critical errors when restricted to low-order CI tests. To prevent SNAP from accidentally pruning true ancestors due to incorrect edge orientations, the authors integrate robust orientation rules from the RFCI algorithm for conditioning sets of size 2 and greater.
Figure 1: Given the DAG in Fig. 1a denoted by black edges, A and B are marginally dependent with con- flicting v-structures U →A ←B and A →B ←V if we orient v-structures at order 0, as shown by the red bidirected edge. Given the DAG in Fig. 1b, perform- ing skeleton search up to order 3 and then orienting v-structures as in PC (Alg. 3) leads to an incorrect bidirected edge A ↔B. Details in App. A.

The framework yields two main implementations:

  • SNAP(k) (Prefiltering): Runs pruning up to a maximum conditioning set size $k$, serving as a lightning-fast preprocessing step to shrink the variable pool before handing it off to a standard global causal discovery algorithm.
  • SNAP(∞) (Standalone): Runs until completion to serve as a standalone, sound, and complete local causal discovery algorithm.

Datasets

The authors evaluated SNAP using both synthetic benchmarks and real-world network structures:

  • Synthetic Data: Random Directed Acyclic Graphs (DAGs) ranging from 50 to 300 nodes, evaluated under oracle d-separation, linear Gaussian (using Fisher-Z and Kernel CI tests), and binary setups ($\chi^2$ tests).
  • Real-World Networks: The MAGIC-NIAB network (66 nodes, average degree 3, linear Gaussian) and the Andes network (223 nodes, average degree 3.03, binary data) from the popular bnlearn repository.

Key Insights and Ideas

  • Possible Ancestors Are All You Need: You don't need to know the exact, true causal graph to safely discard irrelevant variables. Overestimating the set of ancestors (finding "possible ancestors") is entirely sufficient to preserve identical canonical, parent, and optimal adjustment sets as the full graph.
  • Weeding Out the Crowd Early: Most non-ancestors can be identified and eliminated during very low-order (even marginal) independence tests. By filtering them out early, SNAP avoids the combinatorial explosion of higher-order CI tests that cripples standard algorithms.
  • Robust to Target Scalability: Unlike traditional local methods whose computational cost multiplies with every new target pair added, SNAP considers all targets jointly. Its performance remains remarkably stable regardless of the number of target variables.

Key Results

The experiments demonstrated that SNAP delivers massive computational savings across the board:

  • Massive Speedups: SNAP(∞) consistently outperformed global baselines (PC, MARVEL) and local baselines (LDECC*, MB-by-MB*) in both execution time and the total number of CI tests performed.
Figure 2: Number of CI tests (top row) and computation time (bottom row) over number of nodes with nT = 4, d = 3, dmax = 10 and nD = 1000 data-points for different simulation settings in each column. The shadow area denotes the range of the standard deviation. SNAP (∞) is consistently one of the best methods.
  • Effective Prefiltering: Using SNAP(0) as a simple prefilter drastically improved the baseline computation times for algorithms like PC, MARVEL, and FGES, turning slow global searches into highly targeted local ones.
Figure 3: Difference in computation time for each baseline with and without SNAP(0) for nT = 4, d = 3, dmax = 10 and nD = 1000 data-points. Prefiltering with SNAP(0) improves the baselines in most settings.
  • Uncompromised Accuracy: Crucially, despite evaluating significantly fewer variables and edges, SNAP variants achieved a comparable intervention distance (a metric evaluating the quality of the estimated causal effects) to full global discovery methods.

Limitations and Future Work

The primary limitation of the current SNAP framework is its reliance on the assumption of causal sufficiency—meaning it assumes there are no unobserved confounders or selection biases hidden in the data. If a latent confounder is present, the pruning mechanics could inadvertently discard variables that are vital for valid causal estimation. The authors explicitly note that extending the sequential pruning framework to causally insufficient settings is the most prominent direction for future work.

Summary updated

BibTeX
@inproceedings{schubert2025snap,
  author = {Mátyás Schubert and Tom Claassen and Sara Magliacane},
  title = {{SNAP: Sequential Non-Ancestor Pruning for Targeted Causal Effect Estimation With an Unknown Graph}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=0gEjlLdjK9},
}
Figure