arXiv:2610.18075cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18075

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

Yiwen Qiu, Francesco Montagna, Shimeng Huang, Francesco Locatello

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 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 [Heckman, 1979, Hernán et al., 2004]. 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 [Swanson, 2012, van Alten et al., 2024], or in molecular biology where only transcripts in cells that are highly expressed are measured and included in the study [Dwyer and Pleiss, 2023].

Some methods have been developed to address this problem in causal discovery, but they often rely on access to interventional data [Dai et al., 2025a, Luo et al., 2025], or only focus on a local structure (with three or four variables) [Gregory, 1995, Versteeg et al., 2022]. The seminal work FCI [Spirtes et al., 2000] and its variants [Colombo et al., 2012] 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. [2016] 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

Preprint.

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 [Rolland et al., 2022, Montagna et al., 2023, 2025]. Unfortunately, we find that while the SCORE [Rolland et al., 2022] algorithm for non-linear additive Gaussian noise is robust to hard selection bias, the more general extensions [Montagna et al., 2025] 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 [Rolland et al., 2022], DAS [Montagna et al., 2023], NoGAM [Montagna et al., 2025]— and show that they can be surprisingly robust to hard selection bias (Section 3). However, failures persist: to tackle these cases, we propose a new method (Section 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 Section 5, and demonstrate its effectiveness through extensive synthetic and real-world [Pinna et al., 2010] experiments in Section 6.

ANM AssumptionLiNGAMCAM-UVSCORENoGAMCHess (Ours)
Nonlinear Gaussian×✓✓✓✓
Linear non-Gaussian✓××✓✓
Nonlinear non-Gaussian×✓×✓✓
Hard Selection (Truncation)××✓*×✓

Table 1: Identifiability guarantees of causal discovery methods across ANM assumptions. ✓ denotes full DAG identifiability; ✕ denotes no guarantee. LiNGAM [Shimizu et al., 2006, 2011] only deals with linear non-Gaussian ANMs, SCORE [Rolland et al., 2022] requires nonlinear mechanisms with Gaussian noise. NoGAM [Montagna et al., 2025] extends SCORE to arbitrary noise distributions. CAM-UV [Maeda and Shimizu, 2021] 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 (✓*). 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.