arXiv:2610.22126cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22126

Causal Integrated Gradients: Scalable Feature Attribution Along Causal Paths

Joran Michiels, Anis Ismail, Maarten De Vos, Alejandro Sifrim

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

Abstract

Existing feature attribution methods that account for feature dependencies do not scale to high dimensions. We propose causal integrated gradients (CIG) and causal expected gradients (CEG), which extend integrated gradients to incorporate prior causal structure among input features while retaining its computational efficiency and, under conditions on the causal graph, its axiomatic guarantees. In many settings, some causal structure between features is already known—for example, that a transcription factor causally regulates a target gene's expression. Yet existing gradient-based methods cannot exploit this structure, instead crediting a feature's downstream effects over its true upstream cause, such as ranking the target gene above the transcription factor that regulates it. Our key idea is to embed this causal structure by routing the integration path along the causal graph. The method thereby decomposes each feature's attribution into a direct effect and effects mediated through its causal descendants. We evaluate CIG in three settings of increasing realism. First, on a synthetic benchmark with a known causal model, CIG's attributions best match the ground-truth causal effect from Pearl's do-calculus, matching the accuracy of causal Shapley values at a fraction of the computational cost. Second, on simulated single-cell gene expression data with a known gene regulatory network (Dyngen), CIG most accurately recovers the transcription factors driving the simulation. Third, on real interferon- β\beta stimulation data, where only an approximate causal graph is available, CIG better prioritizes the transcription factors driving the measured response than DeepSHAP and integrated gradients. Together, these results show that incorporating causal structure into gradient-based attributions recovers upstream drivers that existing methods miss, without sacrificing scalability. Code is available at https://github.com/sifrimlab/CausalIG.

1 Introduction

As machine learning models grow increasingly complex, particularly deep neural networks trained on large-scale datasets, the need for interpretable explanations of their predictions becomes critical. Local post-hoc explanation methods have emerged as a popular approach for understanding the contribution of individual input features to model predictions. However, most existing methods assume that input features are independent, which is often unrealistic in practice.

Feature dependencies are common in real-world applications—in gene expression, for instance, genes exhibit complex inter-dependencies reflecting underlying biological processes. Ignoring them can

Preprint.

Figure

Figure 1: Simulated example inspired by attribution of gene regulation. Existing graph-agnostic methods assign the highest attribution scores to the directly correlated target genes, missing the true upstream regulators; our graph-aware method correctly pushes the transcription factors to the top.

produce misleading attributions that fail to uncover the true data-generating mechanism [Aas et al., 2021, Chen et al., 2020], with significant consequences for biological discovery.

Some approaches have been proposed to incorporate feature dependencies into attribution methods. Methods based on Shapley values, such as conditional SHAP [Aas et al., 2021] and causal Shapley values [Heskes et al., 2020], can account for dependencies but rely on sampling-based computations that become prohibitively expensive in high-dimensional settings. Conversely, gradient-based methods like integrated gradients (IG) [Sundararajan et al., 2017] and expected gradients [Erion et al., 2021] offer computational efficiency but fundamentally assume feature independence.

To address this gap, we propose causal integrated gradients (CIG) and causal expected gradients (CEG), principled extensions of integrated gradients that incorporate causal structure among input features. Like causal Shapley values [Heskes et al., 2020], our methods require the structure of a causal graph over the inputs; unlike them, we need only a deterministic, off-the-shelf surrogate rather than a full conditional distribution to sample from. Conditional SHAP needs no causal graph but does need that conditional distribution, while standard integrated and expected gradients need neither. In return for this graph, our methods keep the efficiency of integrated gradients and, under conditions on the causal graph and surrogate, its axiomatic guarantees. They scale to high-dimensional settings, recovering upstream causal drivers that graph-agnostic methods miss, as in gene regulation (Figure 1).

The main contributions of this paper are as follows:

• We propose causal integrated and expected gradients (CIG and CEG), extending integrated gradients to incorporate causal structure among input features. Both methods are applicable to any differentiable model for which causal dependencies among inputs are available.

• We evaluate the proposed methods on a synthetic benchmark with known causal effects and compare against the state-of-the-art (causal Shapley values [Heskes et al., 2020] and conditional SHAP [Aas et al., 2021]), demonstrating improved causal attribution performance at substantially lower computational cost — reducing runtimes from hours to minutes.

• We demonstrate the real-world applicability of our method on two high-dimensional single-cell datasets: identifying transcription factors driving cell differentiation in simulated data, and prioritizing transcription factors that are most sensitive to interferon- β\beta stimulation. Across both tasks, our method outperforms existing approaches in recovering causal transcription factors, while scaling efficiently to high-dimensional RNA expression data.