Identifying Structural Biases from Causal Mechanism Shifts

Praharsh Nanavati, Jilles Vreeken, David KaltenpothNeurIPS 2026

TL;DR

Causal models often break in the real world because of unmeasured confounders (like "summer" driving both ice cream sales and shark attacks) or selection bias (like only analyzing fighter planes that survived combat). By looking at data collected across multiple environments, this paper shows that these hidden structural biases leave distinct, detectable footprints in how variable distributions shift together. The authors turn this insight into STRUBI, a non-parametric algorithm that pinpoints which variables are biased and tells you what kind of bias is at play.

What Problem Does This Paper Address?

Classical causal discovery relies on two polite fictions: causal sufficiency (you measured every single relevant variable) and i.i.d. data (every sample comes from the exact same underlying distribution). When you violate sufficiency, you get spurious correlations—either from hidden confounding (an unmeasured common cause $Z$ influencing observed variables) or selection bias (conditioning on an unmeasured collider $S$ that filters which data points enter your dataset).

Using a single observational dataset, telling hidden confounding apart from selection bias is notoriously difficult—often mathematically impossible without strict parametric assumptions. The authors flip the problem on its head: what if we drop the i.i.d. assumption too? If we observe a system across multiple contexts or environments (e.g., different labs, perturbations, or conditions), can the distribution shifts themselves reveal what is hiding in the shadows?

Methods

Imagine a system where nature occasionally "hits" single variables with an intervention across different contexts, changing how those variables are generated (intrinsic mechanism shifts). Standard multi-environment causal discovery assumes these intrinsic shifts happen independently.

However, when a latent variable shifts, it creates dependent observed shifts among measured variables. What is new here is exploiting the topological asymmetry of those shifts on a given causal graph $\mathcal{G}$:

  • Hidden Confounding: A shift in a latent parent $Z$ only shifts the observed distributions of its direct children.
  • Selection Bias: A shift in a latent selection node $S$ ripples backward via Bayes' rule, shifting the observed mechanisms of all its upstream ancestors.
Under selection bias on a hidden collider V, a mechanism change on V in context c1 causes observed mechanism shifts across all upstream ancestors X, Y, and W.

The authors formalize this into the STRUBI algorithm, blending standard statistical tools with a novel graph-theoretic metric:

  1. Detecting shifts (Standard): For every variable $X_i$ and pair of contexts, STRUBI tests if the conditional distribution $P(X_i \mid \text{parents}_i)$ changed, using Kernel Conditional Independence (KCI) tests (or Kolmogorov-Smirnov for root nodes). This groups contexts into invariance partitions.
  2. Finding correlated shifts: It computes pairwise Adjusted Mutual Information (AMI) between variable partitions to build an affinity graph. Connected components with mean AMI $\ge \tau_1$ (set to $0.1$) flag subsets of variables jointly affected by a latent shift.
  3. Classifying the bias (Novel): STRUBI computes ancestral coverage—the fraction of a subset's graph ancestors that are also inside the subset: $\text{cov}_{\mathcal{G}}(A) = |A| / |\text{anc}_{\mathcal{G}}(A)|$. Because selection bias sweeps up entire ancestral trees, subsets with coverage $\ge \tau_2$ ($0.6$) are labeled Selection Bias, while lower-coverage subsets are labeled Confounding.

Datasets

  • Synthetic Benchmarks: Directed Erdős-Rényi graphs with $3$ to $13$ observed variables across $2m$ contexts, using non-linear structural equation models (mixing linear, polynomial, $\tanh$, and $\text{sinc}$ functions) with Gaussian or Uniform noise. Selection bias is induced by retaining samples above the 85th percentile of a hidden collider.
  • Real-World Cell Signaling (Sachs et al.): A classic flow cytometry dataset measuring 11 proteins and phospholipids in human immune cells across multiple molecular interventions. Following prior benchmarks, the authors withhold the PKC protein to induce hidden confounding, or filter PKC above its 80th percentile before dropping it to induce real-world selection bias.

Key Insights and Ideas

  • Non-i.i.d. data is a feature, not a bug: While single-environment data blurs confounding and selection together, multi-environment shifts break the symmetry cleanly without needing linear or Gaussian assumptions.
  • Selection bias is "ancestrally closed": Conditioning on a collider doesn't just couple its immediate parents; when the selection threshold shifts, the observed conditional distributions of parents, grandparents, and great-grandparents all shift in tandem.
  • Inferred graphs are good enough: Even though STRUBI requires a causal graph over observed variables as input, feeding it a graph estimated by an off-the-shelf discovery method (like TOPIC or CD-NOD) works almost identically to feeding it the ground-truth graph.
STRUBI performance across DAG sizes: knowing true shifts yields perfect scores, while using a learned graph closely tracks using the ground-truth graph. Right panels show clear separation in AMI and ancestral coverage across bias types.

Key Results

  • Synthetic Dominations: Across latent discovery, affected-subset recovery, and bias classification, STRUBI outperforms five state-of-the-art baselines (including pooled/multi-context FCI, CoCo, and Latent-Selection) by a wide margin. For structural bias classification, STRUBI maintains Macro-$F_1$ scores around $0.65\text{–}0.95$ across graph sizes, whereas all baselines hover below $0.4$.
Macro-F1 scores for structural bias classification showing STRUBI (green) substantially outperforming all five baseline methods across DAG sizes 3 to 13.
  • Cell-Signaling Case Study: When PKC is hidden on the Sachs dataset, STRUBI accurately classifies both the confounding and selection scenarios. Under confounding, it recovers 3 direct children and 2 causal descendants (missing 1 edge). Under selection bias, it recovers 6 out of 8 true ancestors—whereas competitors either miss the selection structure entirely or flag the whole graph.

Limitations and Future Work

  • Graph & Faithfulness Assumptions: STRUBI assumes causal faithfulness and acyclicity (DAGs). While it empirically tolerates biological feedback loops in the Sachs data reasonably well, theoretical guarantees break down in cyclic systems. It also requires an input causal graph (either from domain knowledge or upstream discovery).
  • Sample & Context Hunger: Relying on KCI tests across all pairs of contexts scales as $\mathcal{O}(|\mathcal{C}|^2)$ and requires enough samples per context—and enough distinct contexts—to reliably spot correlated shifts.
  • Future Directions: Removing the need for an input graph altogether, outputting calibrated probabilities of bias types rather than hard thresholded labels, and extending the framework to time-series data where temporal regimes act as contexts.

Summary updated

Abstract

Causal discovery methods commonly assume that all data is independently and identically distributed (i.i.d.) and that there are no unmeasured variables affecting the system. In practice, these assumptions are often violated, leading to inaccurate inference. In this paper, we study how to identify hidden confounding and selection biases from causal mechanism shifts. In particular, we show that structural biases lead to dependent mechanism shifts. That is, by considering for which variables the mechanisms change given data from different environments, we can tell which variables are unbiased, which are subject to hidden confounding, and which are undergoing selection bias. We formalize this into an empirically testable criterion based on mutual information, and show under which conditions it identifies structural biases. To tell which nodes are subject to what kind of bias, we introduce the StruBI algorithm. Experiments on synthetic and real-world data show that StruBI works well in practice, accurately recovering affected variable sets and types of biases, outperforming the state-of-the-art by a wide margin.
BibTeX
@inproceedings{nanavati2026identifying,
  author = {Praharsh Nanavati and Jilles Vreeken and David Kaltenpoth},
  title = {{Identifying Structural Biases from Causal Mechanism Shifts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YUeprsuXFc},
}

Loading related content...

Figure