betaFeedback

WorksComputer Science

Causal Discovery Under Hard Selection Bias: A New Robust Score-Matching Approach

Abstract

Selection bias is a difficult yet widespread problem in causal discovery, occurring whenever non-random selection processes lead to data that is not representative of the underlying populations. Due to its practical importance, related works have been proposed to address the problem under local [Versteeg et al., 2022] or interventional settings [Dai et al., 2025a], but general algorithms for observational data remain elusive. In this paper, we focus on truncated data (hard selection), and provide a general result for Additive Noise Models (ANM). We show that score-based methods are a surprisingly suitable candidate due to a special property of the score function (∇log⁡p(x)\nabla \log p(x)): deterministic truncation preserves both the score of the joint distribution as well as the Jacobian of the score. While established score-matching algorithms still fail in most settings, we actively leverage this observation to propose a new method for causal discovery that is robust under truncated data with ANMs. Overall, our approach offers a general, robust solution that is agnostic to external information about the selection process and still achieves comparable performance to the state-of-the-art approaches when selection is not present.

Introduction

Identifying causal relationships from observational data is a fundamental problem in many scientific disciplines. However, selection bias can significantly distort the observed data distribution, leading to incorrect inference about causal relationships [14, 15]. Selection bias occurs when the data collected is not representative of the underlying population due to a non-random selection process, e.g., in epidemiological studies where only patients with certain traits (socio-economic or health factors) are recorded [40, 41], or in molecular biology where only transcripts in cells that are highly expressed are measured and included in the study [11].

Some methods have been developed to address this problem in causal discovery, but they often rely on access to interventional data [9, 18], or only focus on a local structure (with three or four variables) [12, 43]. The seminal work FCI [37] and its variants [7] recover the causal graph under latent variables and selection bias up to a Markov equivalence class without further interpretation. Recent studies based on Functional Causal Models (FCMs) by Zhang et al. [ [44] have shown that if we know the location of the selection variable, i.e., if it is only outcome-dependent, then we can identify the full causal graph under certain assumptions. Beyond these specific, partial solutions, a general approach for selection bias in causal discovery for observational data is missing.

In this paper, we investigate the case of hard selection bias: the densities of (some or all) observed variables are truncated, meaning that under selection, we do not observe data on certain parts of the (true) support at all. We begin by showing a surprising yet simple result: regardless of the location of selection, causal asymmetry persists under hard selection bias within the score function of the data (∇log⁡p(x)\nabla\log p(x)). This introduces an opportunity, as the score function has been a central component in a rich line of work on causal discovery [28, 20, 21]. Unfortunately, we find that while the SCORE [28] algorithm for non-linear additive Gaussian noise is robust to hard selection bias, the more general extensions [21] are not. To this end, we propose a novel score-based method for causal discovery, and to our knowledge, it is the first general causal discovery method that is robust to hard selection, without relying on any external information about the selection process. Our contributions are as follows:

Contribution We evaluate the existing score function method—SCORE [28], DAS [20], NoGAM [21]—and show that they can be surprisingly robust to hard selection bias (§ 3). However, failures persist: to tackle these cases, we propose a new method (§ 4) based on the conditional rank of the Hessian log density (∇2log⁡(x)\nabla^2 \log(x)), which is fully robust to hard selection bias under all Additive Noise Model (ANM) settings, with the only exception being the linear Gaussian case (see Table 1 for a summary). We provide a practical estimation algorithm for our method in § 5, and demonstrate its effectiveness through extensive synthetic and real-world [25] experiments in § 6.

ANM AssumptionLiNGAMCAM-UVSCORENoGAMCHess (Ours)
Nonlinear Gaussian×\times✓\checkmark✓\checkmark✓\checkmark✓\checkmark
Linear non-Gaussian✓\checkmark×\times×\times✓\checkmark✓\checkmark
Nonlinear non-Gaussian×\times✓\checkmark×\times✓\checkmark✓\checkmark
Hard Selection (Truncation)×\times×\times✓∗\checkmark^{*}×\times✓\checkmark

Table 1. Identifiability guarantees of causal discovery methods across ANM assumptions. ✓\checkmark denotes full DAG identifiability; ×\times denotes no guarantee. LiNGAM [33, 34] only deals with linear non-Gaussian ANMs, SCORE [28] requires nonlinear mechanisms with Gaussian noise. NoGAM [21] extends SCORE to arbitrary noise distributions. CAM-UV [19] additionally handles latent confounders under nonlinear separable (CAM) assumptions. SCORE can handle latent hard selection bias in both Gaussian and non-Gaussian cases, which is not discussed in the original paper but is one of the surprising findings in this work (✓∗\checkmark^{*}). Our method (CHess) is the only method that is resilient to hard selection under all the above ANMs. Linear Gaussian models are known to be not identifiable beyond the Markov equivalence class [Peters and Bühlmann, 2014] thus omitted in the table.

Preliminaries and Problem Setup

Problem Setting: Hard Selection and What We Know about it

We consider a set of random variables X={X1,…,Xd}\mathbf{X} = \{X_1, \ldots, X_d\} generated by a restricted additive noise model (ANM):

Xi:=fi(XPAi)+Ni,i=1,…,d,(1)X_i := f_i(X_{\mathrm{PA}_i}) + N_i,\qquad i = 1,\ldots,d, \tag*{(1)}

where fif_i are C2C^2 causal mechanisms, NiN_i are mutually independent noise terms with strictly positive densities, and the model satisfies the restricted ANM identifiability condition [5]. The associated causal graph G\mathcal{G} is a DAG.

In the remainder of the paper, we assume the Markov and faithfulness conditions for the DAG G\mathcal{G} and the distribution p(X)p(\mathbf{X}) [37]. We say two nodes XiX_i and XjX_j are dd-separated by a set of nodes ZZ in G\mathcal{G} if every path between them is blocked by ZZ, and a path is blocked by conditioning on ZZ if the path contains a non-collider node in ZZ or a collider node that is not in ZZ and has no descendant in ZZ. For a full definition, please refer to the Appendix.

Hard Selection (Truncation) We observe biased data from p(X∣S=1)p(\mathbf{X}\mid S = 1), where p(X∣S=1)≠p(X)p(\mathbf{X}\mid S = 1) \ne p(\mathbf{X}). The selection mechanism is unknown and can be dependent on an arbitrary subset of X\mathbf{X}. Here we focus on the hard selection (truncation) case, which is the scenario where the selection mechanism is deterministic and only data points in a subset B\mathcal{B} of the support of X\mathbf{X} are observed, i.e. p(S=1∣X=x)=1(x∈B)p(S = 1 \mid\mathbf{X} = x) = \mathbb{1}(x \in\mathcal{B}) for a set B⊆Rd\mathcal{B} \subseteq\mathbb{R}^{d} with vol⁡(B)>0\operatorname{vol}(\mathcal{B}) > 0.

Causal Discovery under Selection Bias Given the biased observational data D={x(i)}i=1N\mathcal{D} = \{x^{(i)}\}_{i=1}^{N} from p(X∣S=1)p(\mathbf{X} \mid S = 1), the goal is to recover the causal graph G\mathcal{G} under the original distribution p(X)p(\mathbf{X}). This is a challenging problem that has been studied in the causal discovery literature in local causal discovery [43], interventional settings [9, 18], latent variable settings [10], etc. However, to the best of our knowledge, no method has been developed in the general setting to tackle selection bias for causal discovery only with observational data. For a comprehensive review of the related work, please refer to Appendix § 10.

Given the generality of the problem, we focus on the following question in this paper:

Can we find properties of the original distribution p(X)p(\mathbf{X}) preserved under hard selection, and how can we leverage them for robust causal discovery?

We take the first step to answer this question by revisiting the score function and score-matching based causal discovery methods, and show its potentials.

The Blessing of Score Functions

In this section, we look at the score function (§ 3.1) and review score-matching for causal discovery (§ 3.2). Then in § 3.3, we present the advantage of using the score directly for causal discovery under truncation, and an example showing a failure case, which motivates our proposed method in the next section (§ 4).

Score Preservation

Consider the score of the selected distribution ∇Xlog⁡p(x∣s)\nabla_{\mathbf{X}} \log p(x \mid s). The selected density satisfies

log⁡p(x∣S=1)=log⁡p(x)+log⁡1(x∈B)⏟=0 for all x∈int⁡(B)−log⁡p(S=1)⏟constant,∀x∈Rd,\log p(x \mid S = 1) = \log p(x) + \underbrace{\log\mathbb{1}(x \in\mathcal{B})}_{=0\ \text{for all }x \in\operatorname{int}(\mathcal{B})} - \underbrace{\log p(S = 1)}_{\text{constant}}, \quad\forall x \in\mathbb{R}^{d},

because of Bayes’ rule. Take the derivative, for x∈int⁡(B)x \in\operatorname{int}(\mathcal{B}),

∇Xlog⁡p(x∣S=1)⏟the score on the biased data=∇Xlog⁡p(x)⏟the score on the true data(2)\underbrace{\nabla_{\mathbf{X}} \log p(x \mid S = 1)}_{\text{the score on the biased data}} = \underbrace{\nabla_{\mathbf{X}} \log p(x)}_{\text{the score on the true data}} \tag*{(2)}

The score is exactly preserved at every observed data point.

Remark 1 (Score preservation under hard selection). This is an important and nontrivial observation that we leverage in this paper for developing a novel score-based method for causal discovery under hard selection. The same argument also applies to the second-order score ∇X2log⁡p(x)\nabla_{\mathbf{X}}^{2} \log p(x), which is also preserved under hard selection, i.e. ∇X2log⁡p(x∣S=1)=∇X2log⁡p(x)\nabla_{\mathbf{X}}^{2} \log p(x \mid S = 1) = \nabla_{\mathbf{X}}^{2} \log p(x) (in the interior of B\mathcal{B}). This aligns with the local geometrical nature of the score, which characterizes the curvature of the log-density pointwise, and which is preserved under truncation.

Remark 2 (Boundary effect). One might notice that the score is only preserved in the interior of B\mathcal{B}, and not on its boundary, where we have an extra term δ(x)\delta(x) in the score due to the derivative of the indicator function. This boundary effect can be problematic for score estimation: [28, 21] show that we can use Stein identity [39] for score estimation, which relies on a vanishing boundary condition on p(x)p(x), i.e. h(x)p(x)→0h(x)p(x) \to0 as x→∞x \to\infty, for any testing function h(x)h(x). However, under truncation, the selected density p(x∣s)p(x \mid s) does not necessarily satisfy this condition. In practice, we propose to use the diffusion score matching method [30], which is more robust to boundary effects. We will discuss this in more detail in § 4.

Revisiting Score-Matching

We provide a review of the score-matching based causal discovery methods. The score component for node XiX_i decomposes as:

∂Xilog⁡p(x)=sni(Ni)−∑k∈XCHi∂fk∂xi(xPAk)⋅snk(Nk),(3)\partial_{X_i}\log p(x)=s_{n_i}(N_i)-\sum_{k\in X_{\mathrm{CH}_i}}\frac{\partial f_k}{\partial x_i}(x_{\mathrm{PA}_k})\cdot s_{n_k}(N_k), \tag*{(3)}

where sni(Ni):=(log⁡pNi)′s_{n_i}(N_i):=(\log p_{N_i})' is the score function of the ii-th noise distribution and XCHiX_{\mathrm{CH}_i} denotes the children of XiX_i in G\mathcal{G}.

Sink Identification For a sink node XlX_l (with XCHl=∅X_{\mathrm{CH}_l}=\varnothing):

∂Xllog⁡p(x)=snl(Nl).(4)\partial_{X_l}\log p(x)=s_{n_l}(N_l). \tag*{(4)}

Under Gaussian noise, Rolland et al. [ [28] propose the variance test (Proposition 1) as sink node identification method criterion:

Proposition 1 (Gaussain case: Variance test [28]). Let XX be generated by a restricted ANM (1) with mutually independent Gaussian noise terms.

Var⁡[∂XisXi(X)]=0⟺Xi is a sink node, ∀i=1,…,d.(5)\operatorname{Var}\left[\partial_{X_i}s_{X_i}(X)\right]=0\Longleftrightarrow X_i\text{ is a sink node},\ \forall i=1,\ldots,d. \tag*{(5)}

For a sink node, sXl(xl)=−xl−fl(PAl(xl))σl2s_{X_l}(x_l)=-\frac{x_l-f_l(\mathrm{PA}_l(x_l))}{\sigma_l^2}, and sXl′(xl)=cs'_{X_l}(x_l)=c. Therefore, Var⁡X(snl′(Nl))=0\operatorname{Var}_{X}(s'_{n_l}(N_l))=0.

Extending beyond Gaussian noise, Montagna et al. [ [21] construct the regression residual test (Proposition 2) as sink-node identification method criterion:

Proposition 2 (Non-Gaussain case: Residual test [21]). Let XX be generated by a restricted ANM (1) with mutually independent non-Gaussian noise terms. For any i∈[d]i\in[d],

E[(∂Xisi(X)−E[∂Xisi(X)∣Ri])2]=0⟺Xi is a sink node.(6)\mathbb{E}\left[\left(\partial_{X_i}s_i(X)-\mathbb{E}\left[\partial_{X_i}s_i(X)\mid R_i\right]\right)^2\right]=0\Longleftrightarrow X_i\text{ is a sink node}. \tag*{(6)}

For a sink node, Rl=Xl−E[Xl∣X\l]R_l=X_l-\mathbb{E}[X_l\mid X_{\backslash l}], which equals the centered noise Nl−E(Nl)N_l-\mathbb{E}(N_l) for a true sink node. This means for a sink node (without selection bias), the score of XlX_l can be perfectly predicted from the residual RlR_l.

Edge (neighbor) Identification The Markov equivalence graph can be constructed by reading the conditional independence of pairs of random variables as shown by Spantini et al., [36]; Montagna et al. [20], in Proposition 3.

Proposition 3 ([36, 20]). Let XX be generated by a restricted ANM (1) with mutually independent noise terms. For any i,j∈[d]i,j\in[d],

∂XiXj2log⁡p(x)=0⟺Xi⊥ ⁣ ⁣ ⁣⊥Xj∣X\{i,j} in G.(7)\partial^2_{X_iX_j}\log p(x)=0\Longleftrightarrow X_i\perp\!\!\!\perp X_j\mid X_{\backslash\{i,j\}}\text{ in }\mathcal{G}. \tag*{(7)}

When Score-Matching is Surprisingly Resilient and When it is Not

How does score-matching behave under hard selection? In this subsection, we show that for sink-node identification under truncation, Proposition 1 and 3 still hold (modified as Proposition 4 and 8), but Proposition 2 fails in general. Unlike other causal discovery methods that rely on conditional independence tests that are susceptible to hidden selection variables, the score-matching based methods are surprisingly resilient to hard selection bias. However, the residual test relies not only on the score, but also on the structure underlying the density, which can be distorted by selection bias. This motivates us to leverage the score directly for causal discovery, without relying on the residual or any graphical assumptions.

The first fold: Variance test still holds Under nonlinear ANM and Gaussian noise assumptions, the result in Proposition 1 can be directly extended to truncated data, as stated in Proposition 4.

Proposition 4 (Gaussian case: Variance test under truncation). Let XX be generated by a restricted ANM (1) with mutually independent Gaussian noise terms, and let S=1(x∈B)S=\mathbb{1}(x\in\mathcal{B}) denote a deterministic selection for a truncation region B\mathcal{B}.

Var⁡[∂Xisi(X∣S=1)]=0⟺Xi is a sink node, ∀i=1,…,d.(8)\operatorname{Var}\left[\partial_{X_i}s_i(X\mid S=1)\right]=0\Longleftrightarrow X_i\text{ is a sink node},\ \forall i=1,\ldots,d. \tag*{(8)}

This implies that with data from p(X∣S=1)p(X \mid S = 1), we can still identify the sink nodes by checking the variance of the Hessian log-density, which is an additional outcome not realized before. The proof directly relies on the score preservation property in (2).

Similarly, the result from Proposition 3 naturally extend to testing ∂XiXj2log⁡p(x∣S=1)\partial^2_{X_iX_j}\log p(x \mid S = 1) for skeleton discovery, as shown in Appendix § 9.

The second fold: Residual test fail Under hard selection, the selected (observed) residual is:

Rlsel=Xl−E[Xl∣X\l,S=1].R_l^{\mathrm{sel}} = X_l - \mathbb{E}[X_l \mid X_{\backslash l}, S = 1].

If the selection is only a function of a single node, then the biased residual RlselR_l^{\mathrm{sel}} is still a function of XlX_l. This is a special case where the residual test still holds, which is elaborated in Appendix § 9. But in general, when we do not know whether the selection is only a function on a single node or not, the residual test fails as in Example 1.

Example 1 (Failure case). Consider a sink node XlX_l with parent XPAlX_{\mathrm{PA}_l}. If the selection mechanism depends on both XlX_l and some Xk∈XPAl⊆X\lX_k \in X_{\mathrm{PA}_l} \subseteq X_{\backslash l} (e.g., S=1(∣Xl+Xk∣≤c)S = \mathbb{1}(|X_l + X_k| \le c)), conditioning on S=1S = 1 induces dependence between NlN_l and XPAlX_{\mathrm{PA}_l}, so Rlsel=Xl−E[Xl∣X\l,S=1]≠Xl−E[Xl∣X\l]=Rl=Nl−ENlR_l^{\mathrm{sel}} = X_l - \mathbb{E}[X_l \mid X_{\backslash l}, S = 1] \ne X_l - \mathbb{E}[X_l \mid X_{\backslash l}] = R_l = N_l - \mathbb{E}N_l. Note that the score ∂Xllog⁡p(x)=sl(Nl)\partial_{X_l}\log p(x) = s_l(N_l) is preserved, but the residual RlselR_l^{\mathrm{sel}} is a biased proxy for NlN_l, and the residual test incorrectly rejects the true sink.

How do we surpass the issue? Our proposal: exploit the score directly for causal asymmetry. The residual test fails because it depends on the global structure of the density, while the score is a local property of the density at each data point, and is preserved under truncation (2). Therefore, we need to exploit this property of the score directly for a novel method for causal discovery. Since we have seen that Proposition 3 remains true under selection, the remaining challenge is to identify the sink nodes given the skeleton.

Causal Discovery Method Robust to Hard Selection

We present our main result in three-fold: we first introduce the intuition of the method in § 4.1, then in § 4.2 we give the main theoretical result under linear ANM assumptions (with non-Gaussian noise) in Proposition 6 and the more general result for non-linear ANM in Proposition 9.

Intuition and Definitions

As shown in the example in § 3.3, the residual test [21] fails under hard-selected data in general (in non-Gaussian noise cases).

Intuition: Asymmetry of Number of Independent Noise Sources. The key intuition is that the score of a sink node has exactly one independent noise term that contributes to it, after conditioning on all its neighbors1, while a non-sink node has ≥2\ge2 independent noise terms. Consider the graph in Figure 1, the path between a non-sink node and the noise of its child is opened by conditioning on its child, while the argument does not apply to a sink node that does not have child terms.

Subgraph showing the sink node X_c and noise terms N_p and N_c

Figure 1. In the subgraph, the sink node XcX_c is only d-connected to its own noise NcN_c after conditioning on XPAcX_{\mathrm{PA}_c}, while XpX_p is d-connected to NpN_p and NcN_c after conditioning on XPAp∪XCHpX_{\mathrm{PA}_p} \cup X_{\mathrm{CH}_p}.

Algebraic Connection: To translate the number of independent noises into an algebraic criterion, we consider the score function s(x):=∇log⁡p(x)s(x) := \nabla\log p(x). The main observation is that if we take the gradient of the score on node XiX_i w.r.t. all noise terms2, we obtain a vector that has contributions from multiple source directions. The conditional rank (conditioning on all neighbors of XiX_i) of the variance of such a vector’s outer product indicates the number of independently varying factors, e.g., for a sink node the rank is 1 (for non-Gaussian noise), which we use as an identification rule to distinguish a sink node from a non-sink node.

In light of the intuition and algebraic connection above, we formally define the Conditional Hessian (Micond)(M_i^{\mathrm{cond}}) outer product matrices in Definition 1.

Definition 1 (Conditional Hessian outer product matrix). For each node XiX_i, define the ii-th Hessian row vector evaluated at xx:

Hi(x):=(∂2log⁡p(x)∂Xi∂X1,…,∂2log⁡p(x)∂Xi∂Xd)∈Rd.(9)H_i(x) := \left(\frac{\partial^2 \log p(x)}{\partial X_i\partial X_1},\ldots,\frac{\partial^2 \log p(x)}{\partial X_i\partial X_d}\right)\in\mathbb{R}^d. \tag*{(9)}

We define the conditional gradient outer product matrix as:

Micond(z):=Var⁡(Hi(X)∣XNBi=z)∈Rd×d,(10)M_i^{\mathrm{cond}}(z) := \operatorname{Var}\left(H_i(X)\mid X_{\mathrm{NB}_i}=z\right)\in\mathbb{R}^{d\times d}, \tag*{(10)}

where XNBiX_{\mathrm{NB}_i} denotes the set of neighbors of XiX_i.

Hessian Row Structure: sinks vs. Non-sinks The Hessian row HiH_i is the gradient of the score component si(x)=∂Xilog⁡p(x)s_i(x)=\partial_{X_i}\log p(x). By the chain rule applied to (3):

Hi(x)=si′(Ni)⋅∇xNi−∑k∈CHi[sk′(Nk)⋅∂fk∂xi⋅∇xNk+sk(Nk)⋅∇x(∂fk∂xi)],(11)H_i(x)=s_i'(N_i)\cdot\nabla_xN_i-\sum_{k\in\mathrm{CH}_i}\left[s_k'(N_k)\cdot\frac{\partial f_k}{\partial x_i}\cdot\nabla_xN_k+s_k(N_k)\cdot\nabla_x\left(\frac{\partial f_k}{\partial x_i}\right)\right], \tag*{(11)}

where Ni=xi−fi(xPAi)N_i=x_i-f_i(x_{\mathrm{PA}_i}) is the noise term at node XiX_i, so ∇xNi=ei−∇xfi(xPAi)\nabla_xN_i=e_i-\nabla_xf_i(x_{\mathrm{PA}_i}) and eie_i is the ii-th standard basis vector. For a sink node, the whole summation term over all children vanishes, so HiH_i only has one noise term direction contributed by NiN_i:

Hl(x)=sl′(Nl)⋅∇xNl(only term ① remains).(12)H_l(x)=s_l'(N_l)\cdot\nabla_xN_l\quad\text{(only term ① remains).} \tag*{(12)}

Such direction ∇xNi\nabla_xN_i is a constant vector if the mechanism is linear, or a varying vector function of xx.

In the following section, we will formalize the intuition for the linear ANM case first: under linearity, ③ vanishes and non-sink node HiH_i has ∣CHi∣+1\lvert\mathrm{CH}_i\rvert+1 noise term directions contributed by NiN_i in (11), while sink node HlH_l only has one noise term direction contributed by NlN_l in (12).

Main Results: from Linear to Nonlinear ANM

First, we present the result under linear ANM with non-Gaussian noise, which clearly illustrates the intuition of the method and the algebraic connection between the number of independent noise terms and the rank of MicondM_i^{\mathrm{cond}}. Then we present the more general result for nonlinear ANM with both Gaussian and non-Gaussian noise.

For a linear ANM, the decomposition (11) simplifies to a combination of noise term directions (only terms ① and ② remain, and ∇Nj\nabla N_j, j∈{i}∪CHij\in\{i\}\cup\mathrm{CH}_i is a constant vector). The rank of MicondM_i^{\mathrm{cond}} then directly counts the number of independent noise terms that contribute to the variance of HiH_i after conditioning on the neighbors of XiX_i: conditioning on the parents of XiX_i blocks the contribution of the noise terms from the upstream (parents), while conditioning on the children of XiX_i still keeps the contribution of the noise terms of the children.

Proposition 5 (Connection between Conditional Rank and Independent Noise Terms in Linear ANM). Under a linear non-Gaussian ANM, the rank of Micond(z)M_i^{\mathrm{cond}}(z) equals the number of independent noise terms contributes to sis_i by conditioning on XNBiX_{\mathrm{NB}_i} for generic zaz^a:

rank⁡(Micond(z))=∣Ni∣,\operatorname{rank}\left(M_i^{\mathrm{cond}}(z)\right)=\lvert\mathcal{N}_i\rvert,

where the noise index set Ni:={i}∪CHi\mathcal{N}_i:=\{i\}\cup\mathrm{CH}_i.

Proof Sketch. The proof consists of two main steps: (1) express MicondM_i^{\mathrm{cond}} as a sum of rank-1 outer products vjvjTv_jv_j^{\mathsf{T}} weighted by the variance of the noise terms; (2) show that the vectors vjv_j corresponding to different noise terms are linearly independent, so the rank of the sum equals the number of noise terms.

To illustrate the intuition of Proposition 5, we present the following example of a chain structure, where the sink node has only one independent noise term while the non-sink node has two independent noise terms after conditioning on its neighbors.

Example 2 (Number of Independent Terms in Chain). Consider a chain X1→X2→X3X_1 \to X_2 \to X_3, where X1=N1X_1 = N_1, X2=aX1+N2X_2 = aX_1 + N_2, X3=bX2+N3X_3 = bX_2 + N_3 with non-Gaussian noise.

Illustration of Example 2. For non-sink X1X_1 and X2X_2, both have two independent noise terms that contribute to their score function after conditioning on their neighbors, thus the rank of the conditional outer product matrix M1condM_1^{\mathrm{cond}} and M2condM_2^{\mathrm{cond}} (Eqn. (10)) is 2, while M3condM_3^{\mathrm{cond}} has rank 1. The reason is that, for source node X1X_1, conditioning on its neighbor (child in this case) X2=z2X_2 = z_2 induces dependency of N2N_2 on N1N_1, thus leading to the direction of N1N_1 and a non-affine transformation of N1N_1, while for a sink node X3X_3, conditioning on its neighbor (parent in this case) will only leave a single direction term contributed by N3N_3. A formal proof is provided in Appendix § 8.§ 2.

Proposition 6 (Conditional Rank Test for Sink Identification (Linear)). Let XX be generated by a restricted linear ANM (1) with independent noise terms. Then for generic zz:

(a) Sink. If XlX_l is a sink (i.e., CHl=∅\mathrm{CH}_l = \varnothing), then rank⁡(Mlcond(z))=1\operatorname{rank}(M_l^{\mathrm{cond}}(z)) = 1.

(b) Non-sink. If XiX_i is not a sink (i.e., ∣CHi∣≥1\lvert\mathrm{CH}_i \rvert\ge1), then rank⁡(Micond(z))≥2\operatorname{rank}(M_i^{\mathrm{cond}}(z)) \ge2.

Therefore, a node XiX_i is a sink if and only if rank⁡(Micond(z))=1\operatorname{rank}(M_i^{\mathrm{cond}}(z)) = 1.

Proof sketch. This is a direct consequence of Proposition 5 and the fact that the rank of MicondM_i^{\mathrm{cond}} is invariant to conditioning on XNBiX_{\mathrm{NB}_i} (since the noise terms are independent of XNBiX_{\mathrm{NB}_i}, so the variance of sj′(Nj)s_j'(N_j) does not change after conditioning).

More generally, for the nonlinear ANM, the rank gap between sink and non-sink nodes still exists, because the decomposition (11) contains an additional mechanism curvature term, and this term is generally linearly independent of the noise term directions. Due to space limit, we present the informal Proposition 7 and the full proposition under nonlinear ANM in the Appendix (Proposition 9).

Proposition 7 (Informal Conditional Rank Test for Sink Identification (Nonlinear)). Let XX be generated by a restricted nonlinear ANM (1) with independent noise terms. Then the rank gap of rank⁡(Micond(z))\operatorname{rank}(M_i^{\mathrm{cond}}(z)) for generic zz between sink and non-sink node still exists and is at least one.

For a summary of the rank values for sink vs. non-sink nodes across different ANM settings, see Table 2. In particular, the rank gap between sink and non-sink nodes exists (thus sink nodes are identifiable) in all settings except for the linear Gaussian case, where all nodes have rank 0.

SettingSink rankNon-sink rankGap
Linear Gaussian000 (not identifiable)
Linear non-Gaussian1≥2\ge2≥1\ge1
Nonlinear Gaussian0≥1\ge1≥1\ge1
Nonlinear non-Gaussian1≥2\ge2≥1\ge1

Table 2. Rank of Micond(z)M_i^{\mathrm{cond}}(z) for sink vs. non-sink nodes across different ANM settings.

Remark 3 (Practical Usage of Proposition 6 and Table 2). Without knowledge about the type of ANM and type of noise one is dealing with, a rank⁡(Micond)=1\operatorname{rank}(M_i^{\mathrm{cond}}) = 1 result could either imply a sink node in a linear non-Gaussian model, or a non-sink node in a nonlinear Gaussian model. In practice, for either case, we do not bother to distinguish the model / noise types, but only take the node that has the minimal rank to be the current sink node (and we perform this procedure iteratively), i.e., as long as a gap exists.

Discussion of Unconditional Hessian Rank Test Why do we need the conditioning on the neighbors? Can we just use the unconditional Hessian outer product matrix Mi=E[Hi(X)Hi(X)T]M_i = \mathbb{E}[H_i(X)H_i(X)^\mathsf{T}] to identify sink nodes? The short answer is yes, but it requires strong structural constraints. In Appendix § 9.§ 3, we introduce the Unconditional Rank Test. However, it requires stronger structural assumptions (involving the number of ∣PAi∣|\mathrm{PA}_i| and ∣CHi∣|\mathrm{CH}_i|) since the noise coming from the parents is not blocked by conditioning on the neighbors anymore. On the other hand, the Conditional Hessian Rank Test proposed in Proposition 6 is free from the structural assumptions and thus more practical.

Estimation

In this section, we present a practical estimation procedure for causal discovery based on the conditional Hessian rank test. This procedure involve 4 main steps: (1) estimation of Hessian log-density (Hj(x(i))H_j(x^{(i)})), (2) use the estimated Hessian Hj(x(i))H_j(x^{(i)}) to estimate the conditional variance matrix M^jcond\widehat{M}_j^{\mathrm{cond}}, (3) compute the rank of M^jcond\widehat{M}_j^{\mathrm{cond}} to identify sinks, and (4) . The overall algorithm is provided in Algorithm 1 and more details on the estimation procedure in Appendix § 12.§ 2.

Score and Hessian Estimation Estimation of the score function (and its Jacobian) is a well-studied problem in statistics and machine learning, e.g., the Stein estimator [39, 28, 21], the kernel density estimator (KDE) [31], and most recently a diffusion model based estimator [30]. In this paper, we apply the commonly used Stein-estimator, and also a diffusion model based estimator, because it does not rely on a strictly positive density p(x)p(x) while both Stein and KDE estimators suffer when p(x)≈0p(x) \approx0 (See Remark 2).

Remark 4. (Practical Estimation of MicondM_i^{\mathrm{cond}}) In practice, we use a residual estimator M^icond:=1n∑t=1nri(x(t))ri(x(t))T\widehat{M}_i^{\mathrm{cond}} := \frac{1}{n}\sum_{t=1}^{n}r_i(x^{(t)})r_i(x^{(t)})^\mathsf{T} as a proxy, where ri(x):=Hi(x)−m^i(xNBi)r_i(x) := H_i(x) - \widehat{m}_i(x_{N B_i}) is the residual of using m^i(⋅)\widehat{m}_i(\cdot) to estimate HiH_i. The residual estimator M^icond\widehat{M}_i^{\mathrm{cond}} shares a similar spirit with the estimation method in NoGAM [21], which also uses the residual of a regression to estimate the noise. Further details are discussed in the Appendix § 9.§ 4

Experiments

Given the proposed method, we conduct experiments to evaluate its performance on both synthetic (§ 6.1) and real-world (§ 6.2) datasets. The goal is to show that (1) for general causal discovery, the proposed method performs competitively with state-of-the-art baselines, and (2) in the presence of hard selection bias, the proposed method outperforms all baselines that do not explicitly account for selection bias.

Synthetic Experiments

Data generation. We generate Erdős–Rényi DAGs with d∈{5,10}d \in\{5, 10\} nodes and target average degree 2.0. We consider three SEM regimes: (1)Linear non-Gaussian (Linear-nG). (2)Nonlinear Gaussian (MLP-G): Xi=fi(Pa⁡(Xi))+ϵiX_i = f_i(\operatorname{Pa}(X_i)) + \epsilon_i, with ϵi∼N(0,σi2)\epsilon_i \sim\mathcal{N}(0,\sigma_i^2) and fif_i a randomly initialised 1-hidden-layer MLP. (3)Nonlinear non-Gaussian (MLP-nG). Same MLP mechanism as MLP-G but with Gumbel or log-normal noise as in Linear-nG.

Selection mechanism. We add KK latent selection variables S1,…,SKS_1,\ldots,S_K. We simulate the hardest case of selection bias where the selection mechanism depends on all observed variables. Each SkS_k is a random linear combination Sk=∑j=1dαkjXjS_k = \sum_{j=1}^{d}\alpha_{kj}X_j with coefficients αkj∼U(−1,1)\alpha_{kj} \sim\mathcal{U}(-1,1), and we keep the samples where Sk≥qkS_k \ge q_k for all kk simultaneously, where qkq_k is the 1−ρ1-\rho empirical quantile, ρ\rho being the retaining fraction. After applying the selection mechanism, we keep sample sizes n=1000n = 1000 (from an initial pool of 10510^5 samples) to avoid the interference of different sample sizes on the performance.

Baselines. We compare against constraint-based methods PC and FCI [37, 38], score-based methods GES [6], permutation-based method GraSP [17], and LiNGAM-family estimators ICA-LiNGAM [33] and DirectLiNGAM [34], together with score-matching baselines SCORE [28], DAS [20], NoGAM [21], CAM [5], and DiffAN [30]. We report F1 of the arrow on the estimated DAG with part of the baselines due to space limit4, with one selection variables as a function of all observed variables. We also include sensitivity analysis with varying selection fraction ρ∈{1.0,0.1,0.05}\rho\in\{1.0, 0.1, 0.05\}, selection shape {halfspace,annulus,two boxes}\{\text{halfspace}, \text{annulus}, \text{two boxes}\} in Appendix § 13.

Results. In the absence of selection bias (ρ=1.0\rho= 1.0), the proposed method performs competitively with the baselines across all SEM regimes, and outperforms all baselines when hard selection bias is present (in the linear-nG regime, the LiNGAM baselines sometimes outperform even when selection bias is present, which is discussed in Appendix § 13).

d=5d = 5, gumbeld=10d = 10, gumbel
fractionρ=1.0\rho= 1.0ρ=0.1\rho= 0.1ρ=0.05\rho= 0.05ρ=1.0\rho= 1.0ρ=0.1\rho= 0.1ρ=0.05\rho= 0.05
SCORE0.57 (±0.25\pm0.25)0.37 (±0.17\pm0.17)0.41 (±0.14\pm0.14)0.65 (±0.12\pm0.12)0.46 (±0.11\pm0.11)0.45 (±0.10\pm0.10)
DAS0.57 (±0.25\pm0.25)0.37 (±0.17\pm0.17)0.41 (±0.14\pm0.14)0.66 (±0.11\pm0.11)0.48 (±0.12\pm0.12)0.49 (±0.10\pm0.10)
NoGAM0.81 (±0.21\pm0.21)0.40 (±0.16\pm0.16)0.40 (±0.14\pm0.14)0.78 (±0.16\pm0.16)0.47 (±0.14\pm0.14)0.45 (±0.11\pm0.11)
CAM0.31 (±0.20\pm0.20)0.18 (±0.14\pm0.14)0.19 (±0.12\pm0.12)0.23 (±0.08\pm0.08)0.22 (±0.11\pm0.11)0.19 (±0.12\pm0.12)
DirectLiNGAM0.99 (±0.03\pm0.03)0.64 (±0.14\pm0.14)0.65 (±0.16\pm0.16)0.98 (±0.03\pm0.03)0.56 (±0.05\pm0.05)0.54 (±0.07\pm0.07)
DiffAN0.40 (±0.28\pm0.28)0.31 (±0.24\pm0.24)0.29 (±0.23\pm0.23)0.33 (±0.15\pm0.15)0.25 (±0.16\pm0.16)0.25 (±0.14\pm0.14)
CHess (Stein)0.90 (±0.14\pm0.14)0.76 (±0.11\pm0.11)0.70 (±0.16\pm0.16)0.72 (±0.19\pm0.19)0.59 (±0.14\pm0.14)0.51 (±0.09\pm0.09)
CHess (DiffAN)0.81 (±0.25\pm0.25)0.71 (±0.17\pm0.17)0.72 (±0.11\pm0.11)0.64 (±0.15\pm0.15)0.49 (±0.15\pm0.15)0.64 (±0.09\pm0.09)

Table 3. F1 (Arrow) for Linear-nG (gumbel), d=5d = 5 and d=10d = 10

Real-world experiments

Dataset. We use the protein-signalling dataset of Sachs et al. [ [29], loaded through the cdt package, which yields 7466 samples over d=11d = 11 proteins and a verified ground-truth DAG. To probe robustness to selection bias in severe cases, we apply the selection mechanism as in § 6.1 with K=1K = 1, ρ=0.1\rho= 0.1. After selection, there are 373 samples, so we apply random downsampling to n=373n = 373 samples for the non-selection bias setting ρ=1.0\rho= 1.0 to avoid the interference of different sample sizes with pruning pamareter for a fair comparison.

Results. In both cases with and without selection bias, our method outperforms the baselines. Because Sachs essentially provide perturbation data and we aggregate all the data, the result should be interpreted with care. In addition, we provide results on separate sub-datasets in Appendix § 13.§ 4, with varying selection strengths and shapes. Overall, these experiments consistently demonstrate that the proposed method achieves competitive performance compared with other baselines.

Conclusion

In this paper, we have presented a novel approach to address the challenges of hard selection bias in causal discovery. Our method leverages the strengths of the score function, which is preserved under hard selection, allowing us to effectively identify causal relationships even in

Methodρ=1\rho= 1 (n=373n = 373)ρ=0.1\rho= 0.1
SCORE0.28 (±0.05\pm0.05)0.29 (±0.05\pm0.05)
DAS0.19 (±0.10\pm0.10)0.23 (±0.08\pm0.08)
NoGAM0.29 (±0.04\pm0.04)0.30 (±0.06\pm0.06)
CAM0.40 (±0.08\pm0.08)0.28 (±0.09\pm0.09)
PC0.25 (±0.09\pm0.09)0.23 (±0.07\pm0.07)
FCI0.13 (±0.04\pm0.04)0.14 (±0.11\pm0.11)
GES0.25 (±0.06\pm0.06)0.22 (±0.08\pm0.08)
GRaSP0.28 (±0.07\pm0.07)0.22 (±0.10\pm0.10)
ICA-LiNGAM0.27 (±0.08\pm0.08)0.30 (±0.07\pm0.07)
DirectLiNGAM0.30 (±0.07\pm0.07)0.33 (±0.09\pm0.09)
DiffAN0.30 (±0.08\pm0.08)0.19 (±0.05\pm0.05)
CHess (Stein)0.42 (±0.09\pm0.09)0.32 (±0.12\pm0.12)
CHess (DiffAN)0.41 (±0.10\pm0.10)0.38 (±0.12\pm0.12)

Table 4. F1 (Arrow) on Sachs Dataset for ρ=1\rho= 1 (downasmpled) and ρ=0.1\rho= 0.1

the presence of selection bias, while all baseline methods suffer under selection. We have demonstrated the effectiveness of our approach through experiments on both synthetic and real-world datasets.

Limitations and Future Work. First, our method assumes hard selection bias, which may not always be the case in real-world scenarios. Future work could explore extensions of our method to handle soft (non-deterministic) selection bias. Additionally, although we provide the theoretical result that the score function is preserved under hard selection, in practice, we found that it is hard to estimate when the truncation is severe. Therefore, further research is needed to develop more robust estimation techniques for the score-matching based causal discovery.

Examples and Definitions

Definitions

Definition 2. (Markov Condition (Spirtes et al. [ [37], Pearl [ [22])) Given a DAG GG and distribution PP over the variable set X\mathcal{X}, every variable XX in X\mathcal{X} is probabilistically independent of its non-descendants given its parents in G\mathcal{G}.

Definition 3. (Faithfulness Assumption (Spirtes et al. [ [37], Pearl [ [22])) Given a DAG G\mathcal{G} and distribution PP over the variable set X\mathcal{X}, there are no independencies between variables that are not entailed by the Markov Condition.

Illustrative Example: Linear Chain X1→X2→X3X_1 \to X_2 \to X_3

Example 2. (Number of Independent Terms in Chain). Consider a chain X1→X2→X3X_1 \to X_2 \to X_3, where X1=N1X_1 = N_1, X2=aX1+N2X_2 = aX_1 + N_2, X3=bX2+N3X_3 = bX_2 + N_3 with non-Gaussian noise.

The noise gradients are

∇N1=(1,0,0),∇N2=(−a,1,0),∇N3=(0,−b,1).\nabla N_1 = (1,0,0), \qquad\nabla N_2 = (-a,1,0), \qquad\nabla N_3 = (0,-b,1).

Non-sink X1X_1 has rank⁡(M1cond)=2\operatorname{rank}(M_1^{\mathrm{cond}})=2: NB1={X2}\mathrm{NB}_1=\{X_2\}. H1(x)=(sn1′(N1)+a2sn2′′(N2),−asn2′(N2),0)H_1(x)=(s'_{n_1}(N_1)+a^2s''_{n_2}(N_2),-as'_{n_2}(N_2),0). Conditioning on X2=z2X_2=z_2 gives N2=z2−aN1N_2=z_2-aN_1:

H1∣z2=(sn1′(N1)+a2sn2′(z2−aN1), −asn2′(z2−aN1), 0).H_1\mid z_2=\left(s'_{n_1}(N_1)+a^2s'_{n_2}(z_2-aN_1),\ -as'_{n_2}(z_2-aN_1),\ 0\right).

In general, q1q_1 and q2q_2 are distinct nonlinear functions of N1N_1, i.e. q1(N1)q_1(N_1) is not an affine transformation of q2(N1)q_2(N_1) under non-Gaussian noise assumption (sn1′(t)≠consts'_{n_1}(t)\ne\text{const}). Then the conditional matrix M1cond(z2)M_1^{\mathrm{cond}}(z_2) has the form

M1cond(z2)=(Var⁡(q1)Cov⁡(q1,q2)0Cov⁡(q1,q2)Var⁡(q2)0000).M_1^{\mathrm{cond}}(z_2)= \begin{pmatrix} \operatorname{Var}(q_1) & \operatorname{Cov}(q_1,q_2) & 0\\ \operatorname{Cov}(q_1,q_2) & \operatorname{Var}(q_2) & 0\\ 0 & 0 & 0 \end{pmatrix}.

i.e. the components of H1∣z2H_1\mid z_2 span a 2-dimensional function space, thus rank⁡(M1cond)=2\operatorname{rank}(M_1^{\mathrm{cond}})=2.

Non-sink X2X_2 has rank⁡(M2cond)=2\operatorname{rank}(M_2^{\mathrm{cond}})=2: NB2={X1,X3}\mathrm{NB}_2=\{X_1,X_3\}. Conditioning on (X1,X3)=(z1,z3)(X_1,X_3)=(z_1,z_3) gives N3=z3−b(az1+N2)=c−wN2N_3=z_3-b(az_1+N_2)=c-wN_2:

H2∣(z1,z3)=sn2′(N2)⋅(−a,1,0)+bsn3′(c−wN2)⋅(0,b,−1).H_2\mid(z_1,z_3)=s'_{n_2}(N_2)\cdot(-a,1,0)+bs'_{n_3}(c-wN_2)\cdot(0,b,-1).

Components involve sn2′(N2)s'_{n_2}(N_2) and sn3′(c−wN2)s'_{n_3}(c-wN_2) which are generally independent functions. Following the same argument as for X1X_1, M2cond(z1,z3)M_2^{\mathrm{cond}}(z_1,z_3) also has rank⁡(M2cond)=2\operatorname{rank}(M_2^{\mathrm{cond}})=2.

Sink X3X_3 has rank⁡(M3cond)=1\operatorname{rank}(M_3^{\mathrm{cond}})=1: NB3={X2}\mathrm{NB}_3=\{X_2\}. H3(x)=sn3′(N3)⋅(0,−b,1)H_3(x)=s'_{n_3}(N_3)\cdot(0,-b,1). Therefore:

M3cond(z2)=Var⁡(sn3′)(0000b2−b0−b1).M_3^{\mathrm{cond}}(z_2)=\operatorname{Var}(s'_{n_3}) \begin{pmatrix} 0 & 0 & 0\\ 0 & b^2 & -b\\ 0 & -b & 1 \end{pmatrix}.

so, rank⁡(M3cond)=1\operatorname{rank}(M_3^{\mathrm{cond}})=1

Therefore, the sink X3X_3 is uniquely identified as the only node with rank⁡(Micond)=1\operatorname{rank}(M_i^{\mathrm{cond}})=1, i∈{1,2,3}i\in\{1,2,3\}.

Proofs

Preservation of Skeleton Discovery

Proposition 8. Let XX be generated by a restricted ANM (1) with mutually independent noise terms and let S=1(x∈B)S=\mathbb{1}(x\in B) denote a deterministic selection for a truncation region BB. For any i,j∈[d]i,j\in[d],

∂2∂xi∂xjlog⁡p(x∣S=1)=0⟺Xi⊥ ⁣ ⁣ ⁣⊥Xj∣X\{i,j} in G.(13)\frac{\partial^2}{\partial x_i\partial x_j}\log p(x\mid S=1)=0\Longleftrightarrow X_i\perp\!\!\!\perp X_j\mid X_{\backslash\{i,j\}}\text{ in }G. \tag*{(13)}

The proof of Proposition 8 directly follows of the preservation of score function under hard selection (truncation).

Proofs of Conditional Hessian Rank Characterization

Proposition 5 (Connection between Conditional Rank and Independent Noise Terms in Linear ANM). Under a linear non-Gaussian ANM, the rank of Micond(z)M_i^{\mathrm{cond}}(z) equals the number of independent noise terms contributes to sis_i by conditioning on XNBiX_{\mathrm{NB}_i} for generic zaz^{a}.

rank⁡(Micond(z))=∣Ni∣,\operatorname{rank}(M_i^{\mathrm{cond}}(z))=|\mathcal{N}_i|,

where the noise index set Ni:={i}∪CHi\mathcal{N}_i:=\{i\}\cup\mathrm{CH}_i.

Proof. Let X=(X1,…,Xd)\mathbf{X} = (X_1,\ldots,X_d) be generated by a linear additive noise model

Xi=∑p∈XPAiaipXp+Ni,i=1,…,d,X_i = \sum_{p\in\mathrm{XPA}_i} a_{ip}X_p + N_i,\qquad i=1,\ldots,d,

where N1,…,NdN_1,\ldots,N_d are mutually independent, non-Gaussian, with strictly positive smooth densities pNkp_{N_k}. Let sk(n):=(log⁡pNk)′(n)s_k(n) := (\log p_{N_k})'(n) and sk′(n):=(log⁡pNk)′′(n)s'_k(n) := (\log p_{N_k})''(n), and assume Var⁡(sk′(Nk))>0\operatorname{Var}(s'_k(N_k)) > 0 for all kk (equivalent to non-Gaussianity).

Compute Hessian row HiH_i. Differentiating the score function with respect to x\mathbf{x} gives:

Hi(x)=si′(Ni)vi−∑k∈CHiakisk′(Nk)vk(14)H_i(\mathbf{x}) = s'_i(N_i)\mathbf{v}_i - \sum_{k\in\mathrm{CH}_i}a_{ki}s'_k(N_k)\mathbf{v}_k \tag*{(14)}

where we define vk:=∇xNk=ek−∑ℓ∈PAkakℓeℓ\mathbf{v}_k := \nabla_{\mathbf{x}}N_k = \mathbf{e}_k - \sum_{\ell\in\mathrm{PA}_k}a_{k\ell}\mathbf{e}_\ell (a fixed vector in Rd\mathbb{R}^d because of linearity). Thus HiH_i depends on exactly the noise indices {i}∪CHi\{i\}\cup\mathrm{CH}_i.

By rewriting the coefficients as cij:=1c_{ij} := 1 if j=ij=i, and cij:=−ajic_{ij} := -a_{ji} if j∈CHij\in\mathrm{CH}_i, we have:

Hi(x)=∑j∈Nicijsj′(Nj)vj=V~igi(x),H_i(\mathbf{x}) = \sum_{j\in\mathcal{N}_i}c_{ij}s'_j(N_j)\mathbf{v}_j = \widetilde{V}_i\mathbf{g}_i(\mathbf{x}),

where V~i=[cijvj]j∈Ni∈Rd×∣Ni∣\widetilde{V}_i = [c_{ij}\mathbf{v}_j]_{j\in\mathcal{N}_i} \in\mathbb{R}^{d\times|\mathcal{N}_i|}, gi=(sj′(Nj))j∈Ni\mathbf{g}_i = (s'_j(N_j))_{j\in\mathcal{N}_i} and V~i\widetilde{V}_i is deterministic, constant in x\mathbf{x}, independent of B\mathcal{B}.

So the target matrix can be expressed as:

Micond(z)=Var⁡(Hi∣XNBi=z)=V~iΣi(z)V~iT,(15)M_i^{\mathrm{cond}}(z) = \operatorname{Var}(H_i\mid X_{N_{B_i}}=z) = \widetilde{V}_i\Sigma_i(z)\widetilde{V}_i^{\mathsf{T}}, \tag*{(15)}

where Σi(z):=Cov⁡(gi∣XNBi=z)∈R∣Ni∣×∣Ni∣\Sigma_i(z) := \operatorname{Cov}(\mathbf{g}_i\mid X_{N_{B_i}}=z)\in\mathbb{R}^{|\mathcal{N}_i|\times|\mathcal{N}_i|}.

For the selected data, it is

Mi,selcond(z)=V~iΣisel(z)V~iT,(16)M_{i,\mathrm{sel}}^{\mathrm{cond}}(z) = \widetilde{V}_i\Sigma_i^{\mathrm{sel}}(z)\widetilde{V}_i^{\mathsf{T}}, \tag*{(16)}

and Σisel(z):=Cov⁡(gi∣XNBi=z, S=1)∈R∣Ni∣×∣Ni∣\Sigma_i^{\mathrm{sel}}(z) := \operatorname{Cov}(\mathbf{g}_i\mid X_{N_{B_i}}=z,\ S=1)\in\mathbb{R}^{|\mathcal{N}_i|\times|\mathcal{N}_i|}.

Note that in (16), selection acts only inside Σisel(z)\Sigma_i^{\mathrm{sel}}(z), and the eigenvalues of Mi,selcond(z)M_{i,\mathrm{sel}}^{\mathrm{cond}}(z) do differ from the untruncated ones, but it does not influence the rank.

So V~iT\widetilde{V}_i^{\mathsf{T}} has full column rank in general, so rank⁡Micond(z)=rank⁡Σi(z)=∣Ni∣\operatorname{rank}M_i^{\mathrm{cond}}(z)=\operatorname{rank}\Sigma_i(z)=|\mathcal{N}_i|.

Proposition 6 (Conditional Rank Test for Sink Identification (Linear)). Let X\mathbf{X} be generated by a restricted linear ANM (1) with independent noise terms. Then for generic zz:

(a) Sink. If XlX_l is a sink (i.e., CHl=∅\mathrm{CH}_l=\varnothing), then rank⁡(Mlcond(z))=1\operatorname{rank}(M_l^{\mathrm{cond}}(z))=1.

(b) Non-sink. If XiX_i is not a sink (i.e., ∣CHi∣≥1|\mathrm{CH}_i|\ge1), then rank⁡(Micond(z))≥2\operatorname{rank}(M_i^{\mathrm{cond}}(z))\ge2.

Therefore, a node XiX_i is a sink if and only if rank⁡(Micond(z))=1\operatorname{rank}(M_i^{\mathrm{cond}}(z))=1.

Proof. Part (a): Sink Since XlX_l is a sink, Hl(x)=snl′(Nl)⋅vlH_l(\mathbf{x})=s'_{n_l}(N_l)\cdot\mathbf{v}_l where vl=∇Nl\mathbf{v}_l=\nabla N_l is a fixed vector under the linear model. Therefore:

Mlcond(z)=Var⁡(snl′(Nl)∣XNBl=z)⋅vlvlT,M_l^{\mathrm{cond}}(z)=\operatorname{Var}(s'_{n_l}(N_l)\mid X_{N_{B_l}}=z)\cdot\mathbf{v}_l\mathbf{v}_l^{\mathsf{T}},

which is a scalar multiple of the same rank-1 matrix vlvlT\mathbf{v}_l\mathbf{v}_l^{\mathsf{T}} for every zz. Taking the expectation over zz and applying the law of total variance:

Mlcond=Ez[Var⁡(snl′(Nl)∣XNBl=z)]⋅vlvlT=Var⁡(snl′(Nl))⋅vlvlT.M_l^{\mathrm{cond}}=\mathbb{E}_z\left[\operatorname{Var}(s'_{n_l}(N_l)\mid X_{N_{B_l}}=z)\right]\cdot\mathbf{v}_l\mathbf{v}_l^{\mathsf{T}}=\operatorname{Var}(s'_{n_l}(N_l))\cdot\mathbf{v}_l\mathbf{v}_l^{\mathsf{T}}.

Since Var⁡(snl′(Nl))>0\operatorname{Var}(s'_{n_l}(N_l))>0 by non-Gaussianity, rank⁡(Mlcond)=1\operatorname{rank}(M_l^{\mathrm{cond}})=1.

Proposition 9 (Conditional Rank Test for Sink Identification (Nonlinear)). Let XX be generated by a restricted nonlinear ANM (1) with independent noise terms. Then:

(a) Sink. If XlX_l is a sink (i.e., CHl=∅\mathrm{CH}_l = \varnothing), then:

rank⁡(Mlcond)={1,if Ni is non-Gaussian, ∀i0,if Ni is Gaussian, ∀i(17)\operatorname{rank}\left(M_l^{\mathrm{cond}}\right) = \begin{cases} 1, & \text{if } N_i \text{ is non-Gaussian},\ \forall i\\ 0, & \text{if } N_i \text{ is Gaussian},\ \forall i \end{cases} \tag*{(17)}

(b) Non-sink. If XiX_i is not a sink (i.e., ∣CHi∣≥1\lvert\mathrm{CH}_i \rvert\ge1), then:

rank⁡(Micond)≥{2,if Ni is non-Gaussian, ∀i1,if Ni is Gaussian, ∀i(18)\operatorname{rank}\left(M_i^{\mathrm{cond}}\right) \ge \begin{cases} 2, & \text{if } N_i \text{ is non-Gaussian},\ \forall i\\ 1, & \text{if } N_i \text{ is Gaussian},\ \forall i \end{cases} \tag*{(18)}

Therefore, a node XiX_i is a sink if and only if rank⁡(Micond)=1\operatorname{rank}\left(M_i^{\mathrm{cond}}\right) = 1 when the noise is non-Gaussian, and rank⁡(Micond)=0\operatorname{rank}\left(M_i^{\mathrm{cond}}\right) = 0 when the noise is Gaussian.

Proof. Part (a): Sink. Let XlX_l be a sink, so XCHl=∅X_{\mathrm{CH}_l} = \varnothing and XNBl=XPAlX_{\mathrm{NB}_l} = X_{\mathrm{PA}_l}. By (11), the Hessian row reduces to

Hl(x)=snl′(Nl)⋅∇Nl,where ∇Nl=el−∇xfl(xPAl).(19)H_l(x) = s'_{n_l}(N_l) \cdot\nabla N_l,\qquad\text{where } \nabla N_l = e_l - \nabla_x f_l(x_{\mathrm{PA}_l}). \tag*{(19)}

There are two terms: snl′(Nl)s'_{n_l}(N_l) and ∇Nl\nabla N_l in this equation. For ∇Nl\nabla N_l, conditioning on XNBl=XPAl=zX_{\mathrm{NB}_l} = X_{\mathrm{PA}_l} = z fixes ∇Nl\nabla N_l to a constant vector

cl(z):=el−∇xfl(z),c_l(z) := e_l - \nabla_x f_l(z),

where eie_i is the ii-th standard basis vector. The exogenous noise NlN_l remains free (not determined by the conditioning). Thus the only remaining random quantity is the scalar snl′(Nl)s'_{n_l}(N_l), and

Hl∣XPAl=snl′(Nl)⋅cl(z).(XPAl=z)H_l \mid X_{\mathrm{PA}_l} = s'_{n_l}(N_l) \cdot c_l(z).\qquad(X_{\mathrm{PA}_l}=z)

The conditional covariance is

Mlcond(z)=Var⁡(snl′(Nl))⋅cl(z)cl(z)T.M_l^{\mathrm{cond}}(z) = \operatorname{Var}(s'_{n_l}(N_l)) \cdot c_l(z)c_l(z)^{\mathsf{T}}.

When noise is non-Gaussian, snl′s'_{n_l} is non-constant, so Var⁡(snl′(Nl))>0\operatorname{Var}(s'_{n_l}(N_l)) > 0, and cl(z)≠0c_l(z) \ne0 (as its ll-th entry is 1). Therefore rank⁡(Mlcond(z))=1\operatorname{rank}(M_l^{\mathrm{cond}}(z)) = 1.

When noise is Gaussian, snl′(Nl)=−1/σ2s'_{n_l}(N_l) = -1/\sigma^2 is constant, so Var⁡(snl′(Nl))=0\operatorname{Var}(s'_{n_l}(N_l)) = 0 and rank⁡(Mlcond(z))=0\operatorname{rank}(M_l^{\mathrm{cond}}(z)) = 0.

Part (b): Non-sink. Let XiX_i be a non-sink with at least one child Xk∈CHiX_k \in\mathrm{CH}_i. We condition on XNBi=zX_{\mathrm{NB}_i} = z, which partitions as z=(zPAi,zCHi)z = (z_{\mathrm{PA}_i}, z_{\mathrm{CH}_i}).

Remind that the Hessian row for a non-sink ii is computed as:

Hi(x)=sni′(Ni)⋅∇Ni−∑k∈CHi[snk′(Nk)⋅∂fk∂xi⋅∇Nk+sk(Nk)⋅∇(∂fk∂xi)],(20)H_i(x) = s'_{n_i}(N_i) \cdot\nabla N_i - \sum_{k \in\mathrm{CH}_i} \left[s'_{n_k}(N_k) \cdot\frac{\partial f_k}{\partial x_i} \cdot\nabla N_k + s_k(N_k) \cdot\nabla\left(\frac{\partial f_k}{\partial x_i}\right)\right], \tag*{(20)}

First term in (20): conditioning on XPAi=zPAiX_{\mathrm{PA}_i} = z_{\mathrm{PA}_i} fixes

∇Ni=ei−∇xfi(zPAi)=:ci(constant vector),\nabla N_i = e_i - \nabla_x f_i(z_{\mathrm{PA}_i}) =: c_i \qquad\text{(constant vector)},

The noise Ni=Xi−fi(zPAi)N_i = X_i - f_i(z_{\mathrm{PA}_i}) remains free.

Child terms in (20): For child XkX_k, the structural equation reads Xk=fk(Xi,XPAk∖{i})+NkX_k = f_k(X_i, X_{\mathrm{PA}_k \setminus\{i\}}) + N_k. Under the conditioning Xk=zkX_k = z_k and XPAk∖{i}=zPAk∖{i}X_{\mathrm{PA}_k \setminus\{i\}} = z_{\mathrm{PA}_k \setminus\{i\}}, the child noise becomes a function of NiN_i:

Nk=zk−fk(fi(zPAi)+Ni, zPAk∖{i}):=qk(Ni;z).(21)N_k = z_k - f_k\left(f_i(z_{\mathrm{PA}_i}) + N_i,\ z_{\mathrm{PA}_k \setminus\{i\}}\right) := q_k(N_i;z). \tag*{(21)}

Overall, substituting into (20) and using that all ∇Nk\nabla N_k, ∂fk/∂xi\partial f_k/\partial x_i, and ∇(∂fk/∂xi)\nabla(\partial f_k/\partial x_i) are deterministic functions once zz is fixed, the conditional Hessian row has the form

Hi∣XNBi=z=sni′(Ni)⋅ci−∑k∈CHisnk′(qk(Ni;z))⋅αk(z)⋅dk(z)+R(Ni;z),(22)H_i \mid X_{\mathrm{NB}_i} = z = s'_{n_i}(N_i) \cdot c_i - \sum_{k \in\mathrm{CH}_i} s'_{n_k}(q_k(N_i;z)) \cdot\alpha_k(z) \cdot d_k(z) + R(N_i;z), \tag*{(22)}

where ∂fk/∂xi:=αk(z)\partial f_k/\partial x_i := \alpha_k(z), ∇Nk:=dk(z)\nabla N_k := d_k(z) are deterministic scalars/vectors and R(Ni;z)R(N_i; z) collects the mechanism curvature terms (also deterministic functions of NiN_i through qkq_k).

Finally, consider the number of independent functions. The conditional Hessian row (22) is a vector-valued function of the single scalar NiN_i. Its components include at least two functionally distinct terms:

  • si′(Ni)s_i^{\prime}(N_i), arising from the own-noise contribution, and

  • sk′(qk(Ni;z))s_k^{\prime}(q_k(N_i; z)), arising from the kk-th child noise.

For the conditional rank to equal 1, every component of Hi∣zH_i|z must be an affine function of a single “base function” ψ(Ni)\psi(N_i). In particular, restricting to the entries at positions ii and kk, this requires the existence of constants α\alpha, β\beta such that

si′(t)=α⋅sk′(qk(t;z))+βfor all t∈supp⁡(Ni).(23)s_i^{\prime}(t) = \alpha\cdot s_k^{\prime}(q_k(t; z)) + \beta\quad\text{for all } t \in\operatorname{supp}(N_i). \tag*{(23)}

Since qk(t;z)=zk−fk(fi(zPAi)+t,zPAk∖{i})q_k(t; z) = z_k - f_k(f_i(z_{\mathrm{PA}_i}) + t, z_{\mathrm{PA}_k \setminus\{i\}}), this is a smooth invertible (generically) reparametrization of tt. Equation (23) then asserts that si′s_i^{\prime} and sk′∘qk(⋅;z)s_k^{\prime} \circ q_k(\cdot; z) are affinely related.

For non-Gaussian noise, under the restricted ANM identifiability condition [24], the noise score functions si′s_i^{\prime} and sk′s_k^{\prime} are non-constant nonlinear functions of their arguments. The composition sk′∘qks_k^{\prime} \circ q_k introduces an additional nonlinearity through the mechanism fkf_k. Formally, the set of zz for which the affine relation (23) holds is contained in the zero set of the analytic function and has measure zero.

Therefore, for Lebesgue-almost every zz, the components of Hi∣zH_i|z span at least a 2-dimensional function space, and rank⁡(Micond(z))≥2\operatorname{rank}(M_i^{\mathrm{cond}}(z)) \ge2.

For Gaussian noise, si′s_i^{\prime} and sk′s_k^{\prime} are constant, so Hi∣zH_i|z is composed of a linear combination of the base functions ψ(Ni)\psi(N_i), so rank⁡(Micond(z))=1\operatorname{rank}(M_i^{\mathrm{cond}}(z)) = 1.

Proofs of Unconditional Hessian Rank Test

The following method introduces the rank test of unconditional Hessian outer product matrix MiM_i for sink identification, but no conditioning on the neighbors means that we are not blocking the contribution of noise terms from the upstream (parents) of XiX_i, thus the rank of MiM_i is determined by the number of parents and children of XiX_i instead of just the number of children. A particular challenge is to distinguish a sink node with mm parents from a source node with the same number of mm children, as in Example 3.

Example 3 (Unconditional Rank Test Failure). Consider a chain X1→X2→X3X_1 \to X_2 \to X_3, where the unconditional rank of M1M_1 is 2, but the rank of M3M_3 is also 2. Therefore, we cannot distinguish the sink node X3X_3 from the non-sink node X1X_1 by just looking at the rank of MiM_i.

More generally, the following result (Proposition 10) characterizes the rank of MiM_i for sink vs. non-sink nodes under both linear and nonlinear ANM.

Proposition 10 (Unconditional Rank). Let X\mathbf{X} be generated by a restricted ANM (1) with mutually independent non-Gaussian noise terms (i.e., si′s_i^{\prime} is non-constant for each ii).

(a) sink: If XlX_l is a sink with ∣PAl∣|\mathrm{PA}_l| parents, then for linear mechanisms, rank⁡(Ml)=1\operatorname{rank}(M_l) = 1. For nonlinear mechanisms, rank⁡(Ml)≤∣PAl∣+1\operatorname{rank}(M_l) \le|\mathrm{PA}_l| + 1.

(b) Non-sink: If XiX_i has ∣PAi∣|\mathrm{PA}_i| parents and ∣CHi∣≥1|\mathrm{CH}_i| \ge1 children, then for linear mechanisms, rank⁡(Mi)≥2\operatorname{rank}(M_i) \ge2. For nonlinear mechanisms, rank⁡(Mi)≤∣PAi∣+∣CHi∣+1\operatorname{rank}(M_i) \le|\mathrm{PA}_i| + |\mathrm{CH}_i| + 1 and generically rank⁡(Mi)>∣PAi∣+1\operatorname{rank}(M_i) > |\mathrm{PA}_i| + 1.

If XlX_l is a sink node, it is identifiable if and only if for every non-sink node XiX_i, ∣PAi∣+∣CHi∣−∣PAl∣≥1|\mathrm{PA}_i| + |\mathrm{CH}_i| - |\mathrm{PA}_l| \ge1, (i.e. there exists a rank gap between a sink node and all non-sink nodes).

Proof sketch. For a sink XlX_l: the decomposition (11) reduces to Hl(x)=sl′(Nl)⋅∇NlH_l(x) = s_l^{\prime}(N_l) \cdot\nabla N_l. If flf_l is linear, then ∇Nl\nabla N_l is a constant vector cl\mathbf{c}_l, and every Hl(x)H_l(x) is parallel to cl\mathbf{c}_l. Thus Ml=E[sl′2]⋅clclTM_l = \mathbb{E}[s_l^{\prime2}] \cdot\mathbf{c}_l\mathbf{c}_l^{\mathsf{T}}, which has rank 1. If flf_l is nonlinear, ∇Nl\nabla N_l varies with xPAlx^{\mathrm{PA}_l} and spans at most m+1m+1 dimensions (the entries corresponding to {l}∪PAl\{l\} \cup\mathrm{PA}_l). For a non-sink XiX_i with child XkX_k: HiH_i contains an additional term with coefficient sk′(Nk)s'_k(N_k) (independent of si′(Ni)s'_i(N_i) since Ni⊥ ⁣ ⁣ ⁣⊥NkN_i \perp\!\!\!\perp N_k) multiplying the direction ∇Nk\nabla N_k. Since ∇Nk\nabla N_k has a non-zero entry at position k∉{i}∪PAik \notin\{i\} \cup\mathrm{PA}_i, it is linearly independent of ∇Ni\nabla N_i. The two independent random coefficients times two linearly independent directions produce a matrix of rank ≥2\ge2 (linear case), or of rank at least rank⁡(Ml)+1\operatorname{rank}(M_l)+1 (nonlinear case).

Under non-Gaussianity, si′s'_i is non-constant, preventing the random coefficients from collapsing to scalars (which would happen for Gaussian noise where s′(N)=−1/σ2s'(N)=-1/\sigma^2 is constant).

Under Gaussianity but with non-linear mechanisms, si′s'_i is constant, but the mechanism curvature term ∇(∂fk∂xj)\nabla\left(\frac{\partial f_k}{\partial x_j}\right) is generally non-zero and linearly independent of ∇Ni\nabla N_i, so the rank gap still exists.

Settingsink rankNon-sink rankGap
Linear + Gaussian111100 (not identifiable)
Linear + non-Gaussian11≥1+∣CHl∣\ge1 + |\mathrm{CH}_l|∣CHj∣≥1|\mathrm{CH}_j| \ge1
Nonlinear + Gaussian≤∣PAl∣+1\le|\mathrm{PA}_l| + 1≤∣PAl∣+∣CHl∣+1\le|\mathrm{PA}_l| + |\mathrm{CH}_l| + 1∣PAj∣+∣CHj∣−∣PAl∣|\mathrm{PA}_j| + |\mathrm{CH}_j| - |\mathrm{PA}_l|
Nonlinear + non-Gaussian≤∣PAl∣+1\le|\mathrm{PA}_l| + 1≤∣PAl∣+∣CHl∣+1\le|\mathrm{PA}_l| + |\mathrm{CH}_l| + 1∣PAj∣+∣CHj∣−∣PAl∣|\mathrm{PA}_j| + |\mathrm{CH}_j| - |\mathrm{PA}_l|

Table 5. Rank of MjM_j for sink vs. non-sink nodes across different ANM settings.

Remark 5 (Comparing Conditional and Unconditional Rank Test). The unconditional rank test in Proposition 10 imposes stronger conditions on the graph structure, since it requires that ∣PAj∣+∣CHj∣−∣PAl∣≥1|\mathrm{PA}_j| + |\mathrm{CH}_j| - |\mathrm{PA}_l| \ge1 for all non-sink nodes XiX_i for sink-node identification. A tree-like structure (where a non-sink node has more than one child and a sink node has at most one parent) satisfies this condition, but more general graphs may not. In contrast, the conditional rank test in Proposition 6 and 9 does not require such a degree constraint, since conditioning on the neighbors blocks the contribution of the parents, thus only counting the number of noise terms that directly feed into the score of XiX_i.

Proofs of Consistent Estimator of MicondM_i^{\mathrm{cond}}

Conditional Variance Matrix Estimation In Algorithm 2, we directly estimate Micond(z)M_i^{\mathrm{cond}}(z) via a local kernel-weighted covariance estimator. In practice, when the ANM is linear non-Gaussian or nonlinear Gaussian, we find that the residual-based estimator is more robust to estimation errors in the Hessian, as a direct estimator of MicondM_i^{\mathrm{cond}} relies on selecting the number of conditional neighbors xNBix_{\mathrm{NB}_i} and the kernel bandwidth, thus suffers more from estimation errors.

Specifically, we define the test statistic as M^icond:=1n∑t=1nri(x(t))ri(x(t))⊤\widehat{M}_i^{\mathrm{cond}} := \frac{1}{n}\sum_{t=1}^{n} r_i(x^{(t)})r_i(x^{(t)})^\top as a proxy, where ri(x):=Hi(x)−m^i(xNBi)r_i(x):=H_i(x)-\widehat{m}_i(x_{\mathrm{NB}_i}) is the residual of using m^i(⋅)\widehat{m}_i(\cdot) to estimate HiH_i, i.e. m^i(⋅)\widehat{m}_i(\cdot) is a regressor of HiH_i on XNBiX_{\mathrm{NB}_i} approximating mi:=E[Hi∣XNBi]m_i:=\mathbb{E}[H_i\mid X_{\mathrm{NB}_i}].

Proposition 11 (Consistent Estimator of MicondM_i^{\mathrm{cond}}). Under a linear non-Gaussian or nonlinear Gaussian ANM, M^icond\widehat{M}_i^{\mathrm{cond}} is a consistent estimator of MicondM_i^{\mathrm{cond}} if m^i\widehat{m}_i is a consistent estimator of mim_i.

Proof. The proof of Proposition 11 relies on the law of total variance: EMicond=Var⁡(Hi)−Var⁡(mi(XNBi))\mathbb{E}M_i^{\mathrm{cond}}=\operatorname{Var}(H_i)-\operatorname{Var}(m_i(X_{\mathrm{NB}_i})). We first show that Micond=E[riri⊤]M_i^{\mathrm{cond}}=\mathbb{E}[r_i r_i^\top], and then by the continuous mapping theorem, If m^i→mi\widehat{m}_i \to m_i in L2L^2 as n→∞n\to\infty, then M^icond→Micond\widehat{M}_i^{\mathrm{cond}}\to M_i^{\mathrm{cond}}.

E[riri⊤]=E(Hi(x)−m^i)(Hi(x)−m^i)⊤=E[HiHi⊤]−E[m^iHi⊤]−E[Him^i⊤]+Em^im^i⊤\mathbb{E}[r_i r_i^\top] = \mathbb{E}(H_i(x)-\widehat{m}_i)(H_i(x)-\widehat{m}_i)^\top = \mathbb{E}[H_iH_i^\top]-\mathbb{E}[\widehat{m}_iH_i^\top]-\mathbb{E}[H_i\widehat{m}_i^\top]+\mathbb{E}\widehat{m}_i\widehat{m}_i^\top

By the tower property, we can expand Hi=E[Hi∣XNBi]=miH_i=\mathbb{E}[H_i\mid X_{\mathrm{NB}_i}]=m_i, so

E[riri⊤]=E[HiHi⊤]−E[E[Hi∣XNBi]Hi⊤]−E[HiE[Hi∣XNBi]⊤]+Em^im^i⊤=E[HiHi⊤]−E[m^im^i⊤]−E[m^im^i⊤]+E[m^im^i⊤]=E[HiHi⊤]−E[m^im^i⊤].\begin{aligned} \mathbb{E}[r_i r_i^\top] &=\mathbb{E}[H_iH_i^\top]-\mathbb{E}[\mathbb{E}[H_i\mid X_{\mathrm{NB}_i}]H_i^\top]-\mathbb{E}[H_i\mathbb{E}[H_i\mid X_{\mathrm{NB}_i}]^\top]+\mathbb{E}\widehat{m}_i\widehat{m}_i^\top\\ &=\mathbb{E}[H_iH_i^\top]-\mathbb{E}[\widehat{m}_i\widehat{m}_i^\top]-\mathbb{E}[\widehat{m}_i\widehat{m}_i^\top]+\mathbb{E}[\widehat{m}_i\widehat{m}_i^\top]\\ &=\mathbb{E}[H_iH_i^\top]-\mathbb{E}[\widehat{m}_i\widehat{m}_i^\top]. \end{aligned}

On the other hand,

EMicond=Var⁡(Hi)−Var⁡(mi(XNBi))=E[HiHi⊤]−E[m^im^i⊤]−E[m^im^i⊤]+E[m^im^i⊤]=E[HiHi⊤]−E[m^im^i⊤]=E[riri⊤]EM_i^{\mathrm{cond}} = \operatorname{Var}(H_i) - \operatorname{Var}(m_i(X_{\mathrm{NB}_i})) = \mathbb{E}[H_iH_i^{\top}] - \mathbb{E}[\hat{m}_i\hat{m}_i^{\top}] - \mathbb{E}[\hat{m}_i\hat{m}_i^{\top}] + \mathbb{E}[\hat{m}_i\hat{m}_i^{\top}] = \mathbb{E}[H_iH_i^{\top}] - \mathbb{E}[\hat{m}_i\hat{m}_i^{\top}] = \mathbb{E}[r_ir_i^{\top}]

When the ANM is linear non-Gaussian or nonlinear Gaussian, the local and averaged conditional matrix coincide, i.e. Micond(z)=EzMicondM_i^{\mathrm{cond}}(z) = \mathbb{E}_zM_i^{\mathrm{cond}} for generic zz. As is in the proof of Proposition 10, for a sink node ll, the geometrical factorization of the target matrix Mlcond(z)=Var⁡(snl′(Nl))cl(z)cl(z)⊤M_l^{\mathrm{cond}}(z) = \operatorname{Var}(s'_{n_l}(N_l))c_l(z)c_l(z)^{\top}, where cl(z)=ek−∇xfl(z)c_l(z) = e_k - \nabla_x f_l(z). In the linear case, cl(z)c_l(z) is a constant vector that does not rotate with zz. Therefore the aggregation EzMlcond(z)\mathbb{E}_zM_l^{\mathrm{cond}}(z) is an aggregation of rank 1 matrices that has the same eigenvector, therefore its value is preserved after pooling for linear ANM. In the nonlinear-Gaussian case, Var⁡(snl′)=0\operatorname{Var}(s'_{n_l}) = 0 thus gives 0 rank of the matrix, and the rotation of cl(z)c_l(z) also does not matter.

Related Works

Causal Discovery and Inference under Selection Bias There are limited works on causal discovery under selection bias, and they either focus on local causal structure learning [43], or assuming access to interventional data [9, 18], or assuming sequential data [46], or performing discovery at latent variable level [10] with linear Gaussian assumption. In contrast, we focus on learning the full causal structure among observed variables under selection bias, without requiring interventional or structural assumptions on the selection mechanism, and allowing for nonlinear and non-Gaussian mechanisms.

Causal Inference under Selection Bias Selection bias is a well-known problem in causal inference, and there are various methods to address it, such as [3, 1, 2, 8, 4], which characterizes conditions under which causal effects remain identifiable despite selection bias. Subsequent works extended this approach by developing testable implications of selection mechanisms [8] and providing adjustment criteria. Additionally, Van der Zander et al. [ [42], Jaber et al. [ [16] developed causal effect identification results under Markov equivalence classes (MEC) which takes into account the potential presence of latent selections. Selection bias has been studied extensively in economics Heckman [ [13] and epidemiology Robins et al. [ [27]. Selection bias has been studied extensively in economics Heckman [ [13] and epidemiology Robins et al. [ [27]. However, these works primarily focus on correcting the bias rather than causal structure learning, which is the focus of our work.

Algorithm

Main Algorithm

The overall algorithm for causal discovery via the Conditional Hessian Rank Test (CHess) is outlined in Algorithm 1.

Algorithm 1 Causal discovery via Conditional HessianRank Test (CHess)

Require: Data {x(i)}i=1n\{x^{(i)}\}_{i=1}^{n} (potentially from truncated distribution P(X∣S=1)P(\mathbf{X}\mid S=1))

Ensure: Causal DAG G\mathcal{G}

  1. Estimate Hessian: Compute ∇2log⁡p(x(i))\nabla^{2}\log p(x^{(i)}) at each data point (e.g., via Stein estimator or kernel score matching on the truncated data).

  2. X←{X1,…,Xd}\mathbf{X}\leftarrow\{X_{1},\ldots,X_{d}\}

  3. while X≠∅\mathbf{X}\ne\varnothing do

  4. MEC recovery: For all pairs Xi,Xj∈XX_{i},X_{j}\in\mathbf{X}, test ∂2log⁡p∂Xi∂Xj∣x=0\left.\frac{\partial^{2}\log p}{\partial X_{i}\partial X_{j}}\right|_{\mathbf{x}}=0 for conditional independence [20]. Recover skeleton via Proposition 8.

  5. Sink identification: For each Xj∈XX_{j}\in\mathbf{X}, find its neighbor NBj\mathrm{NB}_{j} and estimate its conditional Hessian matrix rank rjr_{j} via Algorithm 2.

  6. Xl←arg⁡min⁡jrjX_{l}\leftarrow\arg\min_{j}r_{j} ▷ Smallest estimated rank = sink

  7. Orient edges: Orient all edges adjacent to XlX_{l} as incoming.

  8. X←X∖{Xl}\mathbf{X}\leftarrow\mathbf{X}\setminus\{X_{l}\}; update Hessian estimates for the reduced variable set.

  9. DAS pruning: a final pruning step that is robust to hard selection [20].

  10. end while

  11. return G\mathcal{G}

Algorithm for Conditional Hessian Matrix Estimation

The algorithms used for estimating MicondM_{i}^{\mathrm{cond}} and sink node identification. We present two alternative algorithms for estimating the conditional Hessian matrix rank: (1) Algorithm 2 is a conditional rank estimator based on local averaging, used for nonlinear non-Gaussian ANMs and (2) Algorithm 3 is a residual rank estimator based on regression, used for linear non-Gaussian ANMs and nonlinear Gaussian ANMs.

Algorithm 2 Conditional Rank Estimation: Kernel-Weighted Local Covariance

Require: Data {x(i)}i=1n\{x^{(i)}\}_{i=1}^{n}; neighborhood sets {NBj}j=1d\{\mathrm{NB}_{j}\}_{j=1}^{d} from MEC recovery; number of reference points LL; bandwidth hh.

Ensure: Identified sink node XlX_{l}.

  1. for each node Xj∈VX_{j}\in V do

  2. Select LL reference points {z(ℓ)}ℓ=1L\{z^{(\ell)}\}_{\ell=1}^{L} in the support of NBj\mathrm{NB}_{j} ▷ e.g., KK-means centroids

  3. for ℓ=1,…,L\ell=1,\ldots,L do

  4. Compute weights: wi(ℓ)←Kh(xNBj(i)−z(ℓ))w_{i}^{(\ell)}\leftarrow K_{h}(x_{\mathrm{NB}_{j}}^{(i)}-z^{(\ell)}), Kh(u)=exp⁡(−∥u∥22h2)K_{h}(u)=\exp\left(-\frac{\lVert u\rVert^{2}}{2h^{2}}\right), i=1,…,ni=1,\ldots,n

  5. Compute Hˉj(ℓ)←∑iwi(ℓ)Hj(x(i))∑iwi(ℓ)\bar{H}_{j}^{(\ell)}\leftarrow\frac{\sum_{i}w_{i}^{(\ell)}H_{j}(x^{(i)})}{\sum_{i}w_{i}^{(\ell)}}.

  6. Compute Mjcond(z(ℓ))←∑iwi(ℓ)(Hj(x(i))−Hˉj(ℓ))(Hj(x(i))−Hˉj(ℓ))T∑iwi(ℓ)M_{j}^{\mathrm{cond}}(z^{(\ell)})\leftarrow\frac{\sum_{i}w_{i}^{(\ell)}\left(H_{j}(x^{(i)})-\bar{H}_{j}^{(\ell)}\right)\left(H_{j}(x^{(i)})-\bar{H}_{j}^{(\ell)}\right)^{\mathsf{T}}}{\sum_{i}w_{i}^{(\ell)}}.

  7. Compute eigenvalues λ^1(ℓ)≥λ^2(ℓ)≥⋯≥λ^d(ℓ)\hat{\lambda}_{1}^{(\ell)}\ge\hat{\lambda}_{2}^{(\ell)}\ge\cdots\ge\hat{\lambda}_{d}^{(\ell)}

  8. rj(ℓ)←(∑kλ^k(ℓ))2/∑k(λ^k(ℓ))2r_{j}^{(\ell)}\leftarrow\left(\sum_{k}\hat{\lambda}_{k}^{(\ell)}\right)^{2}/\sum_{k}\left(\hat{\lambda}_{k}^{(\ell)}\right)^{2} ▷ effective rank at z(ℓ)z^{(\ell)}

  9. end for

  10. r^j←median⁡(rj(1),…,rj(L))\hat{r}_{j}\leftarrow\operatorname{median}(r_{j}^{(1)},\ldots,r_{j}^{(L)}) ▷ aggregate over reference points

  11. end for

  12. Xl←arg⁡min⁡jr^jX_{l}\leftarrow\arg\min_{j}\hat{r}_{j} ▷ smallest conditional effective rank = sink

  13. return XlX_{l}

More Details on the Experiments

Datasets

Synthetic Dataset The binary adjacency BbinB_{\mathrm{bin}} is sampled by drawing ⌊d⋅degree/2⌋\lfloor d\cdot\mathrm{degree}/2\rfloor edges uniformly over all possible indices. For linear SEM, we generate edge weights BijB_{ij} uniformly from [−0.8,−0.2]∪[0.2,0.8][-0.8,-0.2]\cup[0.2,0.8], and per-node noise variances are drawn i.i.d. from U(1,3)U(1,3). For each configuration we sample n=1000n=1000 observations and average over 20 seeds. And the datas are generated Algorithm 3 Residual Rank Estimator

Require: Data {x(i)}i=1n\{x^{(i)}\}_{i=1}^{n}; neighborhood sets {NBj}j=1d\{\mathrm{NB}_j\}_{j=1}^{d} from MEC recovery Ensure: Identified sink node XlX_l

  1. for each candidate node XjX_j do

  2. for i=1,…,ni = 1, \ldots, n do

  3. Compute Hj(x(i))←∇x∂xjlog⁡p(x(i))∈RdH_j(x^{(i)}) \leftarrow\nabla_x \partial_{x_j} \log p(x^{(i)}) \in\mathbb{R}^d ▷ estimate Hessian rows

  4. end for

  5. Fit m^j←arg⁡min⁡f1n∑i=1n∥Hj(x(i))−f(xNBj(i))∥2\hat{m}_j \leftarrow\arg\min_f \frac{1}{n}\sum_{i=1}^{n}\left\|H_j(x^{(i)}) - f(x_{\mathrm{NB}_j}^{(i)})\right\|^2 ▷ estimate conditional mean via regression

  6. for i=1,…,ni = 1, \ldots, n do

  7. ej(i)←Hj(x(i))−m^j(xNBj(i))∈Rde_j^{(i)} \leftarrow H_j(x^{(i)}) - \hat{m}_j(x_{\mathrm{NB}_j}^{(i)}) \in\mathbb{R}^d ▷ compute residuals

  8. end for

  9. M^jcond←1n∑i=1nej(i)(ej(i))⊤∈Rd×d\widehat{M}_j^{\mathrm{cond}} \leftarrow\frac{1}{n}\sum_{i=1}^{n} e_j^{(i)}(e_j^{(i)})^\top\in\mathbb{R}^{d\times d} ▷ form conditional outer-product matrix

  10. Compute eigenvalues λ^1≥λ^2≥⋯≥λ^d≥0\hat{\lambda}_1 \ge\hat{\lambda}_2 \ge\cdots\ge\hat{\lambda}_d \ge0 of M^jcond\widehat{M}_j^{\mathrm{cond}}

  11. r^j←Rank⁡(M^jcond)\hat{r}_j \leftarrow\operatorname{Rank}\left(\widehat{M}_j^{\mathrm{cond}}\right) ▷ effective rank

  12. end for

  13. return Xl←arg⁡min⁡jr^jX_l \leftarrow\arg\min_j \hat{r}_j

as: Xi=B⋅i⊤X+ϵiX_i = \mathbf{B}_{\cdot i}^{\top}\mathbf{X} + \epsilon_i, with ϵi\epsilon_i drawn from a Gumbel or log-normal distribution. For nonlinear SEM, we use a one-layer MLP with 64 hidden units and a sigmoid activation: fi(x)=σ(xW1)W2f_i(\mathbf{x}) = \sigma(\mathbf{x}W_1)W_2, where the entries of W1∈R∣Pa⁡(Xi)∣×64W_1 \in\mathbb{R}^{|\operatorname{Pa}(X_i)|\times64} and W2∈R64W_2 \in\mathbb{R}^{64} are drawn i.i.d. from U(0.5,2)U(0.5, 2) with each entry’s sign flipped independently with probability 1/21/2.

Sachs [29] Dataset The Sachs data [29] is a single-cell biological dataset in order to estimate protein interactions. It consists of nine files, each with one interventional context and the same set of variables raf\mathit{raf}, mek\mathit{mek}, plc\mathit{plc}, pip2\mathit{pip2}, pip3\mathit{pip3}, erk\mathit{erk}, akt\mathit{akt}, pka\mathit{pka}, pkc\mathit{pkc}, p38\mathit{p38}, jnk\mathit{jnk}, representing the measurements of different biochemical concentrations. There are between 700 and 900 data points in each file, for a total of 7466 data points. The data is continuous and very skewed, shifting far away from our assumptions of Gaussian distributions. Following Ramsey and Andrews [ [26], we apply log transformation to the data.

DREAM4 Dataset We consider the in-silico Size-10 sub-challenge of DREAM45 [25, 32], which provides five ground-truth gene regulatory networks of d=10d = 10 genes each.

Estimation Method

Diffusion model-based score estimation [30] sidesteps the boundary problem by learning the score ∇xlog⁡pσ(x)\nabla_x \log p_\sigma(x) via denoising score matching with noise level σ\sigma. We use diffusion probabilistic models (DPMs) to learn to reverse a diffusion process, by starting with noise and recovery data distribution to be estimated. A DPM is trained with the denoising score matching objective:

θ∗=arg⁡min⁡θEx0,t,ϵ[λ(t)∥ϵθ(xt,t)−ϵ∥22]\theta^* = \arg\min_\theta\mathbb{E}_{x_0,t,\epsilon}\left[\lambda(t)\left\|\epsilon_\theta(x_t,t)-\epsilon\right\|_2^2\right]

where xt=αtx0+1−αtϵx_t = \sqrt{\alpha_t}x_0 + \sqrt{1-\alpha_t}\epsilon, with ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0,I). The key result [35] is that the trained noise predictor ϵθ\epsilon_\theta approximates the score of the data distribution: ϵθ(x,t)≈∇xlog⁡p(x)\epsilon_\theta(x,t) \approx\nabla_x \log p(x). Once ϵθ\epsilon_\theta is trained, the (i,j)(i,j)-th entry of the Hessian is obtained by a single backpropagation pass through the network: Hi,j(log⁡p(x))≈∇i,jϵθ(x,t)H_{i,j}(\log p(x)) \approx\nabla_{i,j}\epsilon_\theta(x,t), i.e. differentiate the ii-th output of ϵθ\epsilon_\theta with respect to the jj-th input.

Evaluation matrics

The output of PC [37] and GES [6] are complete partially directed acyclic grap (CPDAGs), while the output of FCI [38] is a partial acyclic graph (PAG). We convert the output of the baseline algorithms according to Table. Table 6.

TrueEstimatedAdjacencyArrowhead
a←ba \leftarrow ba←ba \leftarrow bTPTP, TN
a→ba \to bTPFP, FN
a−ba-bTPFN
aba \quad bFNFN
aba \quad ba←ba \leftarrow bFPFP
a→ba \to bFPFP
a−ba-bFP\\backslash
aba \quad bTN\\backslash

Table 6. Metrics used for evaluation. Precision=TP/(TP+FP), Recall=TP/(TP+FN).

Hyperparameters

We have the following hyperparameters for our method, which are set to the same values across all experiments unless otherwise specified:

  1. MEC threshold: relative off-diagonal cutoff for the MEC skeleton recovery step. An off-diagonal entry of the RMS Hessian matrix is treated as a skeleton edge if it exceeds MEC threshold. Set to 0.1 in all experiments.

  2. Rank test: method for estimating the numerical rank of MjcondM_{j}^{\mathrm{cond}}. chi2 uses an eigenvalue-based χ2\chi^{2} test (EigRankTest) at significance level. Set to chi2 in all scripts.

  3. Rank test significance level: α\alpha for the χ2\chi^{2} rank test above. Set to 0.05 in all scripts.

  4. KRR ridge: the ridge regularization parameter λ\lambda for the kernel ridge regressor used by residual estimator of MjcondM_{j}^{\mathrm{cond}}. Controls the bias–variance tradeoff of the residual score estimate. Set to 10−510^{-5} in all scripts.

  5. CAM pruning threshold: p-value cutoff for the final CAM-style edge pruning step. Each candidate edge is tested by a GAM regression; edges whose coefficient p-value exceeds this threshold are removed. Set to 0.001 for DREAM4, 0.01 for Sachs.

Baseline Implementations

For PC, GES, FCI, GRaSP, LiNGAM, we use the implementations in the causallearn Python package [45] (https://github.com/py-why/causal-learn), with the default hyperparameters. For CAM, SCORE, DAS, and NoGAM, we use the implementations in dodiscover (https://www.pywhy.org/dodiscover/dev/index.html), with the default hyperparameters.

More Experimental Results

All Baselines in Linear non-Gaussian ANM

Results. When hard selection bisa is not present, LiNGAM-based methods achieves the best performance, which is not a surprising result. However, when selection bias becomes severe, our conditional Hessian rank-based method starts to outperform. We also underlines the second-best performance.

MethodF1 (Adj) ↑\uparrow K=0K = 0F1 (Adj) ↑\uparrow K=1K = 1F1 (Adj) ↑\uparrow K=2K = 2F1 (Arrow) ↑\uparrow K=0K = 0F1 (Arrow) ↑\uparrow K=1K = 1F1 (Arrow) ↑\uparrow K=2K = 2
PC0.96(0.00)0.76(0.02)0.70(0.02)\\\
FCI0.96(0.00)0.76(0.02)0.70(0.02)\\\
Exact0.70(0.02)0.65(0.02)0.66(0.01)0.29(0.04)0.31(0.02)0.34(0.06)
GES0.96(0.00)0.78(0.02)0.72(0.02)\\\
GRaSP0.89(0.01)0.79(0.03)0.71(0.02)\\\
ICA-LiNGAM<u>0.96</u>(0.00)0.74(0.02)0.72(0.01)0.95(0.01)0.59(0.07)0.50(0.08)
Direct-LiNGAM<u>0.96</u>(0.00)0.79(0.02)<u>0.74</u>(0.01)0.95(0.01)0.76(0.02)<u>0.68</u>(0.04)
CAM0.78(0.01)0.71(0.01)0.72(0.01)0.12(0.03)0.07(0.01)0.13(0.02)
SCORE0.91(0.01)0.71(0.01)0.68(0.02)<u>0.89</u>(0.01)0.53(0.04)0.47(0.06)
DAS0.91(0.01)0.71(0.01)0.68(0.02)<u>0.89</u>(0.01)0.53(0.04)0.47(0.06)
NoGAM0.91(0.01)0.74(0.01)0.69(0.02)0.83(0.03)0.54(0.05)0.49(0.05)
DiffAN0.79(0.01)0.74(0.01)0.71(0.01)0.26(0.05)0.30(0.03)0.23(0.05)
CHess (Stein)0.94(0.01)0.76(0.01)0.73(0.01)<u>0.91</u>(0.02)0.70(0.03)0.70(0.02)
CHess (DiffAN)0.93(0.01)0.76(0.01)0.74(0.02)0.88(0.03)<u>0.72</u>(0.02)0.70(0.03)

Table 7. d=5d = 5, noise=lognormal: F1 Metrics

MethodSHD ↓\downarrow K=0K = 0SHD ↓\downarrow K=1K = 1SHD ↓\downarrow K=2K = 2
PC2.81(1.85)4.81(3.26)5.11(2.25)
FCI4.48(0.92)5.96(0.85)6.33(2.07)
Exact6.11(2.84)6.33(2.59)6.22(4.02)
GES2.78(1.58)4.63(3.79)5.70(3.54)
GRaSP3.44(1.80)4.00(2.74)5.15(2.13)
ICA-LiNGAM0.41(0.39)4.00(4.59)5.04(7.07)
Direct-LiNGAM0.41(0.39)2.63(2.16)3.63(3.20)
CAM7.15(3.83)8.30(1.34)7.43(1.65)
SCORE1.11(1.14)4.43(3.25)5.03(5.37)
DAS1.11(1.14)4.43(3.25)5.03(5.37)
NoGAM1.44(2.32)4.33(4.22)5.03(3.97)
DiffAN6.04(4.63)6.26(3.08)6.78(3.95)
CHess (Stein)<u>0.81</u>(1.19)<u>3.17</u>(2.34)<u>3.53</u>(1.92)
CHess (DiffAN)1.11(2.32)<u>3.03</u>(2.10)3.47(2.85)

Table 8. d=5d = 5, noise=lognormal: SHD Metrics

MethodF1 (Adj) ↑\uparrow K=0K = 0F1 (Adj) ↑\uparrow K=1K = 1F1 (Adj) ↑\uparrow K=2K = 2F1 (Arrow) ↑\uparrow K=0K = 0F1 (Arrow) ↑\uparrow K=1K = 1F1 (Arrow) ↑\uparrow K=2K = 2
PC0.90(0.01)0.76(0.01)0.73(0.01)0.59(0.04)\\backslash\\backslash
FCI0.90(0.01)0.76(0.01)0.73(0.01)0.55(0.03)\\backslash\\backslash
Exact0.53(0.00)0.50(0.00)0.46(0.00)0.23(0.01)0.25(0.01)0.21(0.01)
GES0.89(0.00)0.70(0.01)0.64(0.01)0.58(0.04)0.49(0.02)0.44(0.02)
GRaSP0.88(0.01)0.80(0.01)0.75(0.02)0.55(0.05)\\backslash\\backslash
ICA-LiNGAM<u>0.93</u>(0.00)0.66(0.01)0.58(0.01)<u>0.92</u>(0.00)0.51(0.05)0.40(0.04)
Direct-LiNGAM0.93(0.00)0.72(0.01)0.62(0.01)0.93(0.00)0.71(0.01)0.60(0.02)
CAM0.72(0.01)0.61(0.00)0.57(0.01)0.09(0.01)0.09(0.01)0.09(0.01)
SCORE0.80(0.01)0.65(0.01)0.58(0.01)0.75(0.03)0.52(0.02)0.40(0.03)
DAS0.82(0.01)0.66(0.01)0.60(0.02)<u>0.77</u>(0.02)0.56(0.02)0.46(0.03)
NoGAM0.81(0.01)0.63(0.01)0.58(0.01)0.67(0.04)0.46(0.03)0.42(0.03)
DiffAN0.70(0.01)0.61(0.01)0.57(0.01)0.22(0.02)0.21(0.02)0.17(0.01)
CHess (Stein)0.80(0.01)0.65(0.01)0.58(0.01)0.68(0.03)<u>0.57</u>(0.02)0.48(0.02)
CHess (DiffAN)0.81(0.01)0.65(0.01)0.58(0.01)0.70(0.02)<u>0.58</u>(0.02)<u>0.51</u>(0.01)

Table 9. d=10d = 10, noise=lognormal: F1 Metrics

MethodSHD ↓\downarrow K=0K = 0SHD ↓\downarrow K=1K = 1SHD ↓\downarrow K=2K = 2
PC5.89(4.84)7.78(6.10)9.85(7.02)
FCI9.74(1.97)11.85(3.61)12.85(5.31)
Exact20.56(6.17)21.74(11.16)24.56(6.32)
GES6.11(4.40)10.33(7.19)13.33(20.44)
GRaSP5.96(5.07)7.22(6.84)9.15(15.16)
ICA-LiNGAM<u>1.63</u>(1.94)12.07(46.59)16.37(44.60)
Direct-LiNGAM1.48(1.66)7.22(11.58)12.15(31.31)
CAM16.67(11.04)20.40(8.31)23.23(15.98)
SCORE5.07(13.25)10.67(9.29)15.67(29.29)
DAS4.22(6.47)9.07(8.93)12.13(15.72)
NoGAM5.96(13.52)11.93(15.06)15.50(30.85)
DiffAN15.56(19.36)18.70(26.36)21.12(21.49)
CHess (Stein)5.93(13.48)10.40(16.37)14.40(18.04)
CHess (DiffAN)5.52(9.81)10.00(12.13)13.93(18.20)

Table 10. d=10d = 10, noise=lognormal: SHD Metrics

MethodF1 (Adj) ↑\uparrow K=0K = 0F1 (Adj) ↑\uparrow K=1K = 1F1 (Adj) ↑\uparrow K=2K = 2F1 (Arrow) ↑\uparrow K=0K = 0F1 (Arrow) ↑\uparrow K=1K = 1F1 (Arrow) ↑\uparrow K=2K = 2
PC0.98(0.00)0.75(0.01)0.67(0.01)\0.41(0.05)\
FCI0.98(0.00)0.75(0.01)0.66(0.02)\0.41(0.05)\
Exact0.76(0.01)0.71(0.01)0.68(0.01)0.30(0.03)0.31(0.03)0.36(0.03)
GES0.96(0.00)0.71(0.01)0.65(0.01)\\\
GRaSP0.95(0.00)0.76(0.01)0.66(0.02)\\\
ICA-LiNGAM1.00(0.00)0.72(0.01)0.67(0.00)0.99(0.00)0.41(0.05)0.38(0.04)
Direct-LiNGAM1.00(0.00)0.71(0.01)0.67(0.01)1.00(0.00)0.67(0.01)0.51(0.03)
CAM0.88(0.01)0.72(0.01)0.68(0.01)0.15(0.02)0.17(0.03)0.23(0.02)
SCORE0.90(0.01)0.73(0.01)0.69(0.01)0.62(0.03)0.41(0.04)0.38(0.03)
DAS0.90(0.01)0.73(0.01)0.69(0.01)0.62(0.03)0.41(0.04)0.38(0.03)
NoGAM0.94(0.01)0.74(0.01)0.70(0.01)0.78(0.05)0.49(0.03)0.41(0.04)
DiffAN0.87(0.01)0.75(0.01)0.70(0.01)0.43(0.07)0.30(0.04)0.28(0.03)
CHess (Stein)0.97(0.00)0.75(0.01)0.70(0.01)0.94(0.02)0.69(0.03)0.65(0.02)
CHess (DiffAN)0.95(0.01)0.75(0.01)0.70(0.01)0.86(0.05)0.69(0.02)0.64(0.01)

Table 11. d=5d = 5, noise=gumbel: F1 Metrics

MethodSHD ↓\downarrow K=0K = 0SHD ↓\downarrow K=1K = 1SHD ↓\downarrow K=2K = 2
PC2.37(1.94)5.00(3.11)5.93(1.55)
FCI4.19(1.04)6.63(1.64)7.19(1.04)
Exact5.74(1.75)5.81(2.00)5.81(1.85)
GES2.59(2.32)5.89(1.73)6.33(1.85)
GRaSP2.78(2.10)4.85(2.50)6.04(2.85)
ICA-LiNGAM0.07(0.07)5.70(3.39)6.30(2.65)
Direct-LiNGAM0.00(0.00)4.00(1.48)5.37(1.86)
CAM5.52(2.03)6.77(2.45)7.00(2.33)
SCORE2.70(2.13)5.30(2.54)6.07(2.60)
DAS2.70(2.13)5.30(2.54)6.07(2.60)
NoGAM1.59(3.13)4.83(2.81)5.73(2.93)
DiffAN4.15(4.94)5.78(2.62)6.56(2.91)
CHess (Stein)0.52(0.99)3.43(2.58)4.10(1.09)
CHess (DiffAN)1.11(3.14)0.35(2.38)4.10(1.22)

Table 12. d=5d = 5, noise=gumbel: SHD Metrics

MethodF1 (Adj) ↑ K=0K = 0F1 (Adj) ↑ K=1K = 1F1 (Adj) ↑ K=2K = 2F1 (Arrow) ↑ K=0K = 0F1 (Arrow) ↑ K=1K = 1F1 (Arrow) ↑ K=2K = 2
PC0.96(0.00)0.77(0.01)0.66(0.01)\0.54(0.02)0.47(0.02)
FCI0.96(0.00)0.77(0.01)0.67(0.01)\0.46(0.01)0.37(0.01)
Exact0.57(0.00)0.53(0.00)0.52(0.00)0.19(0.01)0.25(0.01)0.27(0.02)
GES0.96(0.00)0.64(0.00)0.55(0.01)0.64(0.06)0.44(0.02)0.32(0.01)
GRaSP0.97(0.00)0.81(0.01)0.69(0.01)0.65(0.05)0.45(0.05)0.34(0.03)
ICA-LiNGAM0.95(0.01)0.57(0.01)0.49(0.00)0.82(0.06)0.34(0.03)0.21(0.02)
Direct-LiNGAM0.98(0.00)0.60(0.01)0.52(0.00)0.98(0.00)0.59(0.01)0.50(0.01)
CAM0.86(0.00)0.70(0.01)0.61(0.01)0.20(0.02)0.21(0.01)0.17(0.01)
SCORE0.90(0.01)0.70(0.01)0.59(0.01)0.63(0.03)0.46(0.02)0.34(0.01)
DAS0.84(0.01)0.66(0.01)0.55(0.01)0.63(0.03)0.45(0.02)0.35(0.02)
NoGAM0.90(0.01)0.69(0.01)0.60(0.01)0.73(0.03)0.50(0.02)0.41(0.01)
DiffAN0.85(0.01)0.68(0.01)0.59(0.01)0.37(0.03)0.26(0.02)0.22(0.01)
CHess (Stein)0.92(0.01)0.72(0.01)0.60(0.01)0.72(0.04)0.56(0.03)0.48(0.02)
CHess (DiffAN)0.90(0.01)0.70(0.01)0.60(0.01)0.66(0.02)0.52(0.02)0.40(0.02)

Table 13. d=10d = 10, noise=gumbel: F1 Metrics

MethodSHD ↓ K=0K = 0SHD ↓ K=1K = 1SHD ↓ K=2K = 2
PC4.96(5.29)9.37(6.60)12.26(10.64)
FCI9.30(2.43)13.67(9.56)16.15(10.13)
Exact20.26(6.19)21.48(7.95)20.96(11.89)
GES5.30(9.84)14.78(9.14)19.48(20.18)
GRaSP4.81(5.56)8.96(7.22)12.56(11.73)
ICA-LiNGAM2.81(17.34)19.11(24.10)25.11(21.14)
Direct-LiNGAM0.37(0.46)13.59(11.28)18.48(19.81)
CAM10.85(6.64)14.93(9.40)18.47(17.78)
SCORE5.52(11.21)11.47(8.05)16.53(18.05)
DAS5.67(10.74)10.67(6.76)14.80(11.76)
NoGAM4.15(9.24)11.03(9.77)15.27(21.40)
DiffAN9.15(10.94)14.96(15.29)18.85(17.39)
CHess (Stein)4.00(11.04)10.07(19.60)14.17(20.47)
CHess (DiffAN)4.85(6.13)10.87(13.72)15.80(24.23)

Table 14. d=10d = 10, noise=gumbel: SHD Metrics

All Baselines in MLP non-Gaussian ANM

Results. When hard selection bias is not present, the performance of all methods are similar (F1 around 0.7 − 0.8). However, when selection bias becomes severe, our conditional Hessian rank-based method starts to outperform while other methods’ performance drops significantly.

MethodF1 (Adj) ↑, K=0K = 0F1 (Adj) ↑, K=1K = 1F1 (Adj) ↑, K=2K = 2F1 (Arrow) ↑, K=0K = 0F1 (Arrow) ↑, K=1K = 1F1 (Arrow) ↑, K=2K = 2
PC0.79(0.02)0.67(0.02)0.64(0.02)\\\
FCI0.79(0.02)0.67(0.02)0.64(0.02)\\\
Exact0.62(0.02)0.62(0.02)0.65(0.01)0.33(0.05)0.32(0.03)0.34(0.03)
GES0.77(0.01)0.67(0.03)0.66(0.02)\\\
GRaSP0.68(0.04)0.65(0.03)0.62(0.02)\\\
ICA-LiNGAM0.79(0.01)0.65(0.01)0.65(0.01)0.56(0.04)0.38(0.03)0.35(0.03)
Direct-LiNGAM0.75(0.01)0.67(0.02)0.67(0.01)0.50(0.05)0.40(0.05)0.45(0.04)
SCORE0.86(0.01)0.68(0.01)0.70(0.01)0.81(0.02)0.57(0.02)0.55(0.03)
DAS0.86(0.01)0.68(0.01)0.70(0.01)0.81(0.02)0.57(0.02)0.55(0.03)
CAM0.86(0.02)0.72(0.01)0.72(0.01)0.37(0.06)0.28(0.03)0.31(0.04)
NoGAM0.87(0.01)0.68(0.02)0.70(0.01)0.83(0.02)0.57(0.02)0.55(0.02)
DiffAN0.86(0.01)0.72(0.01)0.71(0.01)0.65(0.03)0.47(0.03)0.36(0.03)
CHess (Stein)0.86(0.02)0.69(0.01)0.72(0.01)0.77(0.03)0.64(0.02)0.67(0.02)
CHess (DiffAN)0.85(0.02)0.70(0.01)0.71(0.01)0.78(0.05)0.62(0.03)0.65(0.02)

Table 15. d=5d = 5, noise=lognormal, MLP: F1 Metrics

MethodSHD ↓, K=0K = 0SHD ↓, K=1K = 1SHD ↓, K=2K = 2
PC3.77(1.85)5.67(2.82)5.83(2.47)
FCI5.70(0.74)6.73(1.60)6.93(1.86)
Exact6.23(2.91)6.53(2.78)6.33(1.89)
GES4.27(2.46)5.63(3.37)6.50(2.98)
GRaSP4.43(2.58)5.20(2.49)5.60(1.71)
ICA-LiNGAM3.37(1.77)6.00(2.20)6.30(2.48)
Direct-LiNGAM3.87(1.92)5.70(3.48)5.67(3.49)
SCORE1.67(1.09)4.57(1.78)4.80(2.43)
DAS1.67(1.09)4.57(1.78)4.80(2.43)
CAM4.23(4.18)6.43(2.58)6.17(2.61)
NoGAM1.47(1.05)4.53(2.45)4.70(2.08)
DiffAN2.67(2.49)5.07(2.20)6.00(2.47)
CHess (Stein)1.77(1.65)4.17(2.54)3.90(1.62)
CHess (DiffAN)1.80(2.96)4.17(2.21)4.03(2.30)

Table 16. d=5d = 5, noise=lognormal, MLP: SHD Metrics

DREAM4 experiments

Results. We report the SHD of all methods across 5 networks in Table 17. Due to the extremely small sample size (30 observations for each network), we compare all methods on the full data without selection. We see that our methods achieve the best performance for all networks, with the only exception being Network 5, where DAS [20] achieves the best performance. This shows that our methods perform competitively on small-sized real-world datasets even without selection bias.

MethodNetwork 1Network 2Network 3Network 4Network 5
SCORE12.012.012.013.09.0
DAS12.013.013.013.08.0
NoGAM13.013.013.012.010.0
CAM12.011.014.012.010.0
CHess (stein)11.014.013.012.013.0
CHess (diffan)12.09.012.011.810.4

Table 17. SHD Results for K=0K = 0 Across All Networks

Sachs experiments

We provide extra results for the Sachs dataset in Table 18–Table 20 for F1 arrow and Table 21–Table 23 for causal ordering accuracy on the aggregated perturbational dataset and in Table 24 for F1 arrow on the separated dataset. We vary the strength and shape of the selection bias, and apply random downsampling when ρ=1\rho= 1 to the same sample size as when selection bias is present, to enable a fair comparison. The results are consistent with the main text, where our methods achieve the best performance.

Methodρ=1\rho= 1 n=1493/747/373n = 1493 / 747 / 373ρ=0.2\rho= 0.2 (n=1493)(n = 1493)ρ=0.1\rho= 0.1 (n=747)(n = 747)ρ=0.05\rho= 0.05 (n=373)(n = 373)
SCORE0.21 (±\pm0.04) / 0.26 (±\pm0.06) / 0.28 (±\pm0.05)0.28 (±\pm0.04)0.29 (±\pm0.05)0.28 (±\pm0.08)
DAS0.17 (±\pm0.06) / 0.18 (±\pm0.10) / 0.19 (±\pm0.10)0.24 (±\pm0.05)0.23 (±\pm0.08)0.20 (±\pm0.10)
NoGAM0.23 (±\pm0.02) / 0.26 (±\pm0.01) / 0.29 (±\pm0.04)0.28 (±\pm0.04)0.30 (±\pm0.06)0.31 (±\pm0.08)
CAM0.41 (±\pm0.06) / 0.42 (±\pm0.08) / 0.40 (±\pm0.08)0.23 (±\pm0.08)0.28 (±\pm0.09)0.27 (±\pm0.10)
PC0.27 (±\pm0.10) / 0.26 (±\pm0.10) / 0.25 (±\pm0.09)0.23 (±\pm0.07)0.23 (±\pm0.07)0.20 (±\pm0.09)
FCI0.16 (±\pm0.05) / 0.16 (±\pm0.06) / 0.13 (±\pm0.04)0.11 (±\pm0.10)0.14 (±\pm0.11)0.11 (±\pm0.13)
GES0.27 (±\pm0.05) / 0.25 (±\pm0.05) / 0.25 (±\pm0.06)0.26 (±\pm0.08)0.22 (±\pm0.08)0.23 (±\pm0.09)
GRaSP0.25 (±\pm0.07) / 0.24 (±\pm0.06) / 0.28 (±\pm0.07)0.23 (±\pm0.11)0.22 (±\pm0.10)0.28 (±\pm0.14)
ICA-LiNGAM0.23 (±\pm0.07) / 0.23 (±\pm0.06) / 0.27 (±\pm0.08)0.29 (±\pm0.06)0.30 (±\pm0.07)0.27 (±\pm0.09)
DirectLiNGAM0.30 (±\pm0.06) / 0.28 (±\pm0.06) / 0.30 (±\pm0.07)0.30 (±\pm0.07)0.33 (±\pm0.09)0.31 (±\pm0.09)
DiffAN0.34 (±\pm0.06) / 0.36 (±\pm0.09) / 0.30 (±\pm0.08)0.18 (±\pm0.08)0.19 (±\pm0.05)0.20 (±\pm0.09)
CHess (Stein)0.40 (±\pm0.05) / 0.44 (±\pm0.06) / 0.42 (±\pm0.09)0.34 (±\pm0.12)0.32 (±\pm0.12)0.36 (±\pm0.08)
CHess (DiffAN)0.36 (±\pm0.06) / 0.42 (±\pm0.07) / 0.41 (±\pm0.10)0.41 (±\pm0.12)0.38 (±\pm0.12)0.36 (±\pm0.10)

Table 18. F1 (Arrow), halfspace selection

Methodρ=1\rho= 1<br>n=1493/747/373n = 1493 / 747 / 373ρ=0.2\rho= 0.2<br>(n=1493n = 1493)ρ=0.1\rho= 0.1<br>(n=747n = 747)ρ=0.05\rho= 0.05<br>(n=373n = 373)
SCORE0.21 (±0.04) / 0.26 (±0.06) / 0.28 (±0.05)0.21 (±0.06)0.24 (±0.06)0.21 (±0.05)
DAS0.17 (±0.06) / 0.18 (±0.10) / 0.19 (±0.10)0.21 (±0.05)0.21 (±0.07)0.19 (±0.09)
NoGAM0.23 (±0.02) / 0.26 (±0.01) / 0.29 (±0.04)0.26 (±0.05)0.27 (±0.04)0.24 (±0.04)
CAM0.41 (±0.06) / 0.42 (±0.08) / 0.40 (±0.08)0.31 (±0.09)0.34 (±0.08)0.31 (±0.09)
PC0.27 (±0.10) / 0.26 (±0.10) / 0.25 (±0.09)0.29 (±0.08)0.27 (±0.07)0.21 (±0.12)
FCI0.16 (±0.05) / 0.16 (±0.06) / 0.13 (±0.04)0.13 (±0.11)0.18 (±0.07)0.16 (±0.11)
GES0.27 (±0.05) / 0.25 (±0.05) / 0.25 (±0.06)0.25 (±0.06)0.27 (±0.09)0.28 (±0.09)
GRaSP0.25 (±0.07) / 0.24 (±0.06) / 0.28 (±0.07)0.26 (±0.09)0.27 (±0.11)0.25 (±0.13)
ICA-LiNGAM0.23 (±0.07) / 0.23 (±0.06) / 0.27 (±0.08)0.25 (±0.06)0.28 (±0.06)0.26 (±0.06)
DirectLiNGAM0.30 (±0.06) / 0.28 (±0.06) / 0.30 (±0.07)0.32 (±0.07)0.35 (±0.08)0.32 (±0.10)
DiffAN0.34 (±0.06) / 0.36 (±0.09) / 0.30 (±0.08)0.20 (±0.08)0.23 (±0.09)0.22 (±0.09)
CHess (Stein)0.40 (±0.05) / 0.44 (±0.06) / 0.42 (±0.09)0.32 (±0.10)0.28 (±0.11)0.29 (±0.11)
CHess (DiffAN)0.36 (±0.06) / 0.42 (±0.07) / 0.41 (±0.10)0.37 (±0.10)0.40 (±0.14)0.39 (±0.12)

Table 20. F1 (Arrow), two boxes selection

Methodρ=1\rho= 1, n=1493/747/373n = 1493 / 747 / 373ρ=0.2\rho= 0.2, (n=1493)(n = 1493)ρ=0.1\rho= 0.1, (n=747)(n = 747)ρ=0.05\rho= 0.05, (n=373)(n = 373)
SCORE0.38 (±\pm0.06) / 0.42 (±\pm0.07) / 0.42 (±\pm0.04)0.52 (±\pm0.08)0.52 (±\pm0.08)0.52 (±\pm0.09)
DAS0.38 (±\pm0.06) / 0.42 (±\pm0.07) / 0.42 (±\pm0.04)0.52 (±\pm0.08)0.52 (±\pm0.08)0.52 (±\pm0.09)
NoGAM0.42 (±\pm0.03) / 0.42 (±\pm0.03) / 0.44 (±\pm0.04)0.53 (±\pm0.06)0.52 (±\pm0.07)0.52 (±\pm0.06)
CAM0.64 (±\pm0.07) / 0.61 (±\pm0.12) / 0.59 (±\pm0.12)0.40 (±\pm0.12)0.45 (±\pm0.12)0.43 (±\pm0.14)
PC- / - / ----
FCI- / - / ----
GES- / - / ----
GRaSP- / - / ----
ICA-LiNGAM0.46 (±\pm0.12) / 0.44 (±\pm0.10) / 0.48 (±\pm0.13)0.54 (±\pm0.10)0.56 (±\pm0.10)0.48 (±\pm0.10)
DirectLiNGAM0.60 (±\pm0.11) / 0.58 (±\pm0.07) / 0.61 (±\pm0.12)0.59 (±\pm0.12)0.62 (±\pm0.14)0.57 (±\pm0.13)
DiffAN0.58 (±\pm0.09) / 0.58 (±\pm0.11) / 0.56 (±\pm0.11)0.36 (±\pm0.10)0.38 (±\pm0.07)0.41 (±\pm0.10)
CHess (Stein)0.73 (±\pm0.04) / 0.75 (±\pm0.05) / 0.71 (±\pm0.07)0.55 (±\pm0.13)0.48 (±\pm0.15)0.55 (±\pm0.12)
CHess (DiffAN)0.72 (±\pm0.05) / 0.71 (±\pm0.06) / 0.71 (±\pm0.09)0.66 (±\pm0.12)0.60 (±\pm0.16)0.56 (±\pm0.08)

Table 21. Causal ordering accuracy 1−Dtop/∣E∣1 - D_{\mathrm{top}}/|E| (0.5 = random order), halfspace selection

Methodρ=1\rho= 1; n=1493/747/373n = 1493 / 747 / 373ρ=0.2\rho= 0.2; (n=1493n = 1493)ρ=0.1\rho= 0.1; (n=747n = 747)ρ=0.05\rho= 0.05; (n=373n = 373)
SCORE0.38 (±\pm0.06) / 0.42 (±\pm0.07) / 0.42 (±\pm0.04)0.39 (±\pm0.06)0.40 (±\pm0.07)0.40 (±\pm0.07)
DAS0.38 (±\pm0.06) / 0.42 (±\pm0.07) / 0.42 (±\pm0.04)0.39 (±\pm0.06)0.40 (±\pm0.07)0.40 (±\pm0.07)
NoGAM0.42 (±\pm0.03) / 0.42 (±\pm0.03) / 0.44 (±\pm0.04)0.45 (±\pm0.05)0.43 (±\pm0.06)0.41 (±\pm0.06)
CAM0.64 (±\pm0.07) / 0.61 (±\pm0.12) / 0.59 (±\pm0.12)0.51 (±\pm0.14)0.52 (±\pm0.15)0.51 (±\pm0.13)
PC- / - / ----
FCI- / - / ----
GES- / - / ----
GRaSP- / - / ----
ICA-LiNGAM0.46 (±\pm0.12) / 0.44 (±\pm0.10) / 0.48 (±\pm0.13)0.48 (±\pm0.11)0.51 (±\pm0.11)0.46 (±\pm0.10)
DirectLiNGAM0.60 (±\pm0.11) / 0.58 (±\pm0.07) / 0.61 (±\pm0.12)0.65 (±\pm0.10)0.64 (±\pm0.11)0.60 (±\pm0.14)
DiffAN0.58 (±\pm0.09) / 0.58 (±\pm0.11) / 0.56 (±\pm0.11)0.36 (±\pm0.14)0.37 (±\pm0.12)0.43 (±\pm0.12)
CHess (Stein)0.73 (±\pm0.04) / 0.75 (±\pm0.05) / 0.71 (±\pm0.07)0.58 (±\pm0.13)0.55 (±\pm0.14)0.52 (±\pm0.11)
CHess (DiffAN)0.72 (±\pm0.05) / 0.71 (±\pm0.06) / 0.71 (±\pm0.09)0.67 (±\pm0.09)0.66 (±\pm0.12)0.61 (±\pm0.13)

Table 23. Causal ordering accuracy 1−Dtop/∣E∣1 - D_{\mathrm{top}}/|E| (0.5 = random order), two boxes selection

Methodρ=1.0\rho= 1.0; non-selectρ=0.5\rho= 0.5; halfspaceρ=0.5\rho= 0.5; annulusρ=0.5\rho= 0.5; two boxes
SCORE0.37 (±\pm0.09)0.36 (±\pm0.07)0.37 (±\pm0.08)0.38 (±\pm0.09)
DAS0.31 (±\pm0.08)0.31 (±\pm0.07)0.31 (±\pm0.08)0.32 (±\pm0.07)
NoGAM0.35 (±\pm0.07)0.35 (±\pm0.07)0.35 (±\pm0.07)0.34 (±\pm0.07)
CAM0.28 (±\pm0.11)0.28 (±\pm0.09)0.28 (±\pm0.08)0.29 (±\pm0.11)
PC0.08 (±\pm0.05)0.16 (±\pm0.02)0.11 (±\pm0.03)0.15 (±\pm0.03)
FCI0.03 (±\pm0.05)0.09 (±\pm0.03)0.07 (±\pm0.04)0.12 (±\pm0.06)
GES0.12 (±\pm0.03)0.21 (±\pm0.02)0.18 (±\pm0.02)0.17 (±\pm0.02)
GRaSP0.07 (±\pm0.04)0.11 (±\pm0.02)0.11 (±\pm0.05)0.11 (±\pm0.07)
ICA-LiNGAM0.34 (±\pm0.08)0.31 (±\pm0.05)0.33 (±\pm0.06)0.34 (±\pm0.06)
DirectLiNGAM0.29 (±\pm0.14)0.29 (±\pm0.07)0.29 (±\pm0.09)0.28 (±\pm0.10)
DiffAN0.27 (±\pm0.08)0.26 (±\pm0.07)0.27 (±\pm0.08)0.27 (±\pm0.08)
CHess (Stein)0.36 (±\pm0.13)0.36 (±\pm0.11)0.37 (±\pm0.13)0.39 (±\pm0.12)
CHess (DiffAN)0.34 (±\pm0.06)0.34 (±\pm0.05)0.34 (±\pm0.07)0.34 (±\pm0.06)

Table 24. F1 arrow of per-condition Sachs dataset

Extra result for aggregated Sachs Dataset We combine all 9 experimental conditions into one dataset and score against the ground truth (n=7466n = 7466 before selection bias is applied), which is inline with the main text. We apply selection of different shapes (half-space, annulus, two-box) and different selection fraction ρ∈{1.0 (unselected),0.2,0.1,0.05}\rho\in\{1.0\text{ (unselected)}, 0.2, 0.1, 0.05\}.

Extra result for separate Sachs Dataset (per-condition) Each of the 9 experimental conditions is treated as its own dataset and scored against its own ground truth: a perfect intervention makes

Methodρ=1\rho= 1<br>n=1493/747/373n = 1493 / 747 / 373ρ=0.2\rho= 0.2<br>(n=1493n = 1493)ρ=0.1\rho= 0.1<br>(n=747n = 747)ρ=0.05\rho= 0.05<br>(n=373n = 373)
SCORE0.21 (±0.04) / 0.26 (±0.06) / 0.28 (±0.05)0.29 (±0.06)0.32 (±0.07)0.34 (±0.08)
DAS0.17 (±0.06) / 0.18 (±0.10) / 0.19 (±0.10)0.26 (±0.06)0.29 (±0.09)0.32 (±0.08)
NoGAM0.23 (±0.02) / 0.26 (±0.01) / 0.29 (±0.04)0.28 (±0.05)0.31 (±0.06)0.33 (±0.09)
CAM0.41 (±0.06) / 0.42 (±0.08) / 0.40 (±0.08)0.30 (±0.08)0.31 (±0.13)0.26 (±0.10)
PC0.27 (±0.10) / 0.26 (±0.10) / 0.25 (±0.09)0.23 (±0.10)0.25 (±0.07)0.23 (±0.12)
FCI0.16 (±0.05) / 0.16 (±0.06) / 0.13 (±0.04)0.11 (±0.08)0.15 (±0.08)0.15 (±0.11)
GES0.27 (±0.05) / 0.25 (±0.05) / 0.25 (±0.06)0.22 (±0.05)0.21 (±0.07)0.20 (±0.10)
GRaSP0.25 (±0.07) / 0.24 (±0.06) / 0.28 (±0.07)0.17 (±0.07)0.18 (±0.09)0.19 (±0.08)
ICA-LiNGAM0.23 (±0.07) / 0.23 (±0.06) / 0.27 (±0.08)0.21 (±0.06)0.26 (±0.06)0.27 (±0.07)
DirectLiNGAM0.30 (±0.06) / 0.28 (±0.06) / 0.30 (±0.07)0.29 (±0.07)0.27 (±0.07)0.30 (±0.07)
DiffAN0.34 (±0.06) / 0.36 (±0.09) / 0.30 (±0.08)0.14 (±0.05)0.20 (±0.06)0.19 (±0.07)
CHess (Stein)0.40 (±0.05) / 0.44 (±0.06) / 0.42 (±0.09)0.39 (±0.07)0.45 (±0.11)0.48 (±0.12)
CHess (DiffAN)0.36 (±0.06) / 0.42 (±0.07) / 0.41 (±0.10)0.36 (±0.08)0.41 (±0.09)0.37 (±0.14)

Table 19. F1 (Arrow), annulus selection

Methodρ=1\rho= 1, n=1493/747/373n = 1493 / 747 / 373ρ=0.2\rho= 0.2, (n=1493)(n = 1493)ρ=0.1\rho= 0.1, (n=747)(n = 747)ρ=0.05\rho= 0.05, (n=373)(n = 373)
SCORE0.38 (±\pm0.06) / 0.42 (±\pm0.07) / 0.42 (±\pm0.04)0.45 (±\pm0.07)0.48 (±\pm0.07)0.49 (±\pm0.06)
DAS0.38 (±\pm0.06) / 0.42 (±\pm0.07) / 0.42 (±\pm0.04)0.45 (±\pm0.07)0.48 (±\pm0.07)0.49 (±\pm0.06)
NoGAM0.42 (±\pm0.03) / 0.42 (±\pm0.03) / 0.44 (±\pm0.04)0.46 (±\pm0.04)0.46 (±\pm0.05)0.47 (±\pm0.08)
CAM0.64 (±\pm0.07) / 0.61 (±\pm0.12) / 0.59 (±\pm0.12)0.49 (±\pm0.14)0.51 (±\pm0.17)0.45 (±\pm0.19)
PC- / - / ----
FCI- / - / ----
GES- / - / ----
GRaSP- / - / ----
ICA-LiNGAM0.46 (±\pm0.12) / 0.44 (±\pm0.10) / 0.48 (±\pm0.13)0.42 (±\pm0.10)0.49 (±\pm0.09)0.50 (±\pm0.10)
DirectLiNGAM0.60 (±\pm0.11) / 0.58 (±\pm0.07) / 0.61 (±\pm0.12)0.58 (±\pm0.10)0.53 (±\pm0.10)0.57 (±\pm0.11)
DiffAN0.58 (±\pm0.09) / 0.58 (±\pm0.11) / 0.56 (±\pm0.11)0.26 (±\pm0.09)0.34 (±\pm0.13)0.34 (±\pm0.14)
CHess (Stein)0.73 (±\pm0.04) / 0.75 (±\pm0.05) / 0.71 (±\pm0.07)0.65 (±\pm0.16)0.71 (±\pm0.09)0.71 (±\pm0.10)
CHess (DiffAN)0.72 (±\pm0.05) / 0.71 (±\pm0.06) / 0.71 (±\pm0.09)0.65 (±\pm0.11)0.71 (±\pm0.10)0.65 (±\pm0.12)

Table 22. Causal ordering accuracy 1−Dtop/∣E∣1 - D_{\mathrm{top}}/|E| (0.5 = random order), annulus selection

the perturbed protein independent of its parents, so that protein’s incoming edges are cut. We apply selection of different shapes (half-space, annulus, two-box) to each of the per-condition subdataset, with 50% of the data remaining. Results show that the proposed CHess achieves the best performance when hard selection is present in the data. Overall CHess (Stein) dominates when selection is present, CHess (DiffAN) dominates in some of the 9 conditions (psitect, aktinhib,pma) as well, which is not shown in this averaged table.

Hardware

All experiments were conducted on a server running Debian GNU/Linux 12, equipped with an Intel Xeon E5-2680 v4 CPU (2.40 GHz), 503 GB RAM, and ten NVIDIA GeForce GTX 1080 Ti GPUs (11 GB VRAM each), using Python 3.13.

References

  1. [1]Elias Bareinboim and Judea Pearl. Controlling selection bias in causal inference. In Artificial Intelligence and Statistics, pages 100–108. PMLR, 2012.
  2. [2]Elias Bareinboim and Jin Tian. Recovering causal effects from selection bias. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 29, 2015.DOI
  3. [3]Elias Bareinboim, Jin Tian, and Judea Pearl. Recovering from selection bias in causal and statistical inference. In Probabilistic and causal inference: The works of Judea Pearl, pages 433–450, 2014.
  4. [4]Elias Bareinboim, Jin Tian, and Judea Pearl. Recovering from selection bias in causal and statistical inference. In Probabilistic and causal inference: The works of Judea Pearl, pages 433–450, 2022.
  5. [5]Peter Bühlmann, Jonas Peters, and Jan Ernest. CAM: Causal additive models, high-dimensional order search and penalized regression. Ann. Statist., 42(6), December 2014. ISSN 0090-5364. doi: 10.1214/14-AOS1260.DOI
  6. [6]David Maxwell Chickering. Optimal structure identification with greedy search. J. Mach. Learn. Res., 3(null):507–554, mar 2003. ISSN 1532-4435. doi: 10.1162/153244303321897717. URL https://doi.org/10.1162/153244303321897717.
  7. [7]Diego Colombo, Marloes H Maathuis, Markus Kalisch, and Thomas S Richardson. Learning high-dimensional directed acyclic graphs with latent and selection variables. The Annals of Statistics, pages 294–321, 2012.DOI
  8. [8]Juan D. Correa, Jin Tian, and Elias Bareinboim. Identification of Causal Effects in the Presence of Selection Bias. AAAI, 33(01):2744–2751, July 2019. ISSN 2374-3468, 2159-5399. doi: 10.1609/aaai.v33i01.33012744.DOI
  9. [9]Haoyue Dai, Ignavier Ng, Jianle Sun, Zeyu Tang, Gongxu Luo, Xinshuai Dong, Peter Spirtes, and Kun Zhang. When Selection Meets Intervention: Additional Complexities in Causal Discovery, March 2025a.arxiv.org/abs/2503.07302
  10. [10]Haoyue Dai, Yiwen Qiu, Ignavier Ng, Xinshuai Dong, Peter Spirtes, and Kun Zhang. Latent Variable Causal Discovery under Selection Bias, December 2025b.arxiv.org/abs/2512.11219
  11. [11]Zachary W Dwyer and Jeffrey A Pleiss. The problem of selection bias in studies of pre-mrna splicing. nature communications, 14(1):1966, 2023.DOI
  12. [12]Cooper Gregory. Causal Discovery from Data in the Presence of Selection Bias, 1995.
  13. [13]James J Heckman. Sample selection bias as a specification error (with an application to the estimation of labor supply functions), volume 172. National Bureau of Economic Research Cambridge, MA, 1977.DOI
  14. [14]James J. Heckman. Sample Selection Bias as a Specification Error. Econometrica, 47(1):153–161, 1979. ISSN 0012-9682. doi: 10.2307/1912352.DOI
  15. [15]Miguel A Hernán, Sonia Hernández-Díaz, and James M Robins. A structural approach to selection bias. Epidemiology, pages 615–625, 2004.pubmed.ncbi.nlm.nih.gov/15308962
  16. [16]Amin Jaber, Jiji Zhang, and Elias Bareinboim. Causal identification under markov equivalence: Completeness results. In International Conference on Machine Learning, pages 2981–2989. PMLR, 2019.
  17. [17]Wai-Yin Lam, Bryan Andrews, and Joseph Ramsey. Greedy relaxations of the sparsest permutation algorithm. In Uncertainty in Artificial Intelligence, pages 1052–1062. PMLR, 2022.arxiv.org/abs/2206.05421
  18. [18]Gongxu Luo, Haoyue Dai, Loka Li, Chengqian Gao, Boyang Sun, and Kun Zhang. Gene regulatory network inference in the presence of selection bias and latent confounders. arXiv preprint arXiv:2501.10124, 2025.arxiv.org/abs/2501.10124
  19. [19]Takashi Nicholas Maeda and Shohei Shimizu. Causal additive models with unobserved variables. In Uncertainty in Artificial Intelligence, pages 97–106. PMLR, 2021.
  20. [20]Francesco Montagna, Nicoletta Noceti, Lorenzo Rosasco, Kun Zhang, and Francesco Locatello. Scalable Causal Discovery with Score Matching. In Proceedings of the Second Conference on Causal Learning and Reasoning, pages 752–771. PMLR, August 2023.arxiv.org/abs/2304.03382
  21. [21]Francesco Montagna, Philipp M. Faller, Patrick Bloebaum, Elke Kirschbaum, and Francesco Locatello. Score matching through the roof: Linear, nonlinear, and latent variables causal discovery, March 2025.arxiv.org/abs/2407.18755
  22. [22]Judea Pearl. Causality. Cambridge university press, 2009.
  23. [24]Jonas Peters, Joris M Mooij, Dominik Janzing, and Bernhard Schölkopf. Causal discovery with continuous additive noise models. 2014.arxiv.org/abs/1309.6779
  24. [25]Andrea Pinna, Nicola Soranzo, and Alberto De La Fuente. From knockouts to networks: establishing direct cause-effect relationships through graph analysis. PloS one, 5(10):e12912, 2010.DOI
  25. [26]Joseph Ramsey and Bryan Andrews. Fask with interventional knowledge recovers edges from the sachs model. arXiv. org preprint. arXiv preprint arXiv:1805.03108, 2018.arxiv.org/abs/1805.03108
  26. [27]James M Robins, Miguel Angel Hernan, and Babette Brumback. Marginal structural models and causal inference in epidemiology, 2000.pubmed.ncbi.nlm.nih.gov/10955408
  27. [28]Paul Rolland, Volkan Cevher, Matthäus Kleindessner, Chris Russel, Bernhard Schölkopf, Dominik Janzing, and Francesco Locatello. Score matching enables causal discovery of nonlinear additive noise models, March 2022.arxiv.org/abs/2203.04413
  28. [29]Karen Sachs, Omar Perez, Dana Pe’er, Douglas A Lauffenburger, and Garry P Nolan. Causal protein-signaling networks derived from multiparameter single-cell data. Science, 308(5721):523–529, 2005.
  29. [30]Pedro Sanchez, Xiao Liu, Alison Q. O’Neil, and Sotirios A. Tsaftaris. Diffusion Models for Causal Discovery via Topological Ordering, June 2023.arxiv.org/abs/2210.06201
  30. [31]Hiroaki Sasaki, Yung-Kyun Noh, Gang Niu, and Masashi Sugiyama. Direct density derivative estimation. Neural computation, 28(6):1101–1140, 2016.DOI
  31. [32]Ashka Shah, Arvind Ramanathan, Valerie Hayot-Sasson, and Rick Stevens. Causal discovery and optimal experimental design for genome-scale biological network recovery. In Proceedings of the Platform for Advanced Scientific Computing Conference, pages 1–11, 2023.arxiv.org/abs/2304.03210
  32. [33]Shohei Shimizu, Patrik O Hoyer, Aapo Hyvärinen, Antti Kerminen, and Michael Jordan. A linear non-gaussian acyclic model for causal discovery. Journal of Machine Learning Research, 7(10), 2006.
  33. [34]Shohei Shimizu, Takanori Inazumi, Yasuhiro Sogawa, Aapo Hyvarinen, Yoshinobu Kawahara, Takashi Washio, Patrik O Hoyer, Kenneth Bollen, and Patrik Hoyer. Directlingam: A direct method for learning a linear non-gaussian structural equation model. Journal of Machine Learning Research-JMLR, 12(Apr):1225–1248, 2011.
  34. [35]Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019.arxiv.org/abs/1907.05600
  35. [36]Alessio Spantini, Daniele Bigoni, and Youssef Marzouk. Inference via low-dimensional couplings. Journal of Machine Learning Research, 19(66):1–71, 2018.arxiv.org/abs/1703.06131
  36. [37]Peter Spirtes, Clark N Glymour, and Richard Scheines. Causation, prediction, and search. MIT press, 2000.
  37. [38]Peter L. Spirtes, Christopher Meek, and Thomas S. Richardson. Causal Inference in the Presence of Latent Variables and Selection Bias, February 2013.arxiv.org/abs/1302.4983
  38. [39]Charles Stein. A bound for the error in the normal approximation to the distribution of a sum of dependent random variables. In Proceedings of the sixth Berkeley symposium on mathematical statistics and probability, volume 2: Probability theory, volume 6, pages 583–603. University of California Press, 1972.DOI
  39. [40]James M. Swanson. The UK Biobank and selection bias. The Lancet, 380(9837):110, July 2012. ISSN 0140-6736, 1474-547X. doi: 10.1016/S0140-6736(12)61179-9.DOI
  40. [41]Sjoerd van Alten, Benjamin W Domingue, Jessica Faul, Titus Galama, and Andries T Marees. Reweighting UK Biobank corrects for pervasive selection bias due to volunteering. Int J Epidemiol, 53(3):dyae054, May 2024. ISSN 0300-5771. doi: 10.1093/ije/dyae054.DOI
  41. [42]Benito Van der Zander, Maciej Liskiewicz, and Johannes Textor. Constructing separators and adjustment sets in ancestral graphs. In C I@ UAI, pages 11–24, 2014.
  42. [43]Philip Versteeg, Joris Mooij, and Cheng Zhang. Local Constraint-Based Causal Discovery under Selection Bias. In Proceedings of the First Conference on Causal Learning and Reasoning, pages 840–860. PMLR, June 2022.arxiv.org/abs/2203.01848
  43. [44]Kun Zhang, Jiji Zhang, Biwei Huang, Bernhard Scholkopf, and Clark Glymour. On the Identifiability and Estimation of Functional Causal Models in the Presence of Outcome-Dependent Selection. In Uncertainty in Artificial Intelligence (UAI), 2016.
  44. [45]Yujia Zheng, Biwei Huang, Wei Chen, Joseph Ramsey, Mingming Gong, Ruichu Cai, Shohei Shimizu, Peter Spirtes, and Kun Zhang. Causal-learn: Causal discovery in python. Journal of Machine Learning Research, 25(60):1–8, 2024a.arxiv.org/abs/2307.16405
  45. [46]Yujia Zheng, Zeyu Tang, Yiwen Qiu, Bernhard Schölkopf, and Kun Zhang. Detecting and Identifying Selection Structure in Sequential Data, June 2024b.arxiv.org/abs/2407.00529

Paper details

vlnc:W_b83exsfw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents