Causal Integrated Gradients: Scalable Feature Attribution Along Causal Paths
Organizations: Laboratory of Multi-omics Integrative Bioinformatics, Department of Human Genetics, KU Leuven, Leuven, Belgium · KU Leuven Institute for Single Cell Omics (LISCO), KU Leuven, Leuven, Belgium · Department of Electrical Engineering, KU Leuven, Leuven, Belgium · Department of Development and Regeneration, KU Leuven, Leuven, Belgium
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- 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.
Figures & tables
Appendix figures & tables42 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | CIG | IG |
|---|---|---|
| Synthetic, 100 features | ||
| Synthetic, 129 features | ||
| Synthetic, 166 features | ||
| Synthetic, 215 features | ||
| Synthetic, 278 features | ||
| Synthetic, 359 features |
| Method | Cost |
|---|---|
| IG (vanilla) | |
| CIG (ours) | for a sparse causal graph ( ); for a dense graph (worst case) |
| Causal Shapley values (sampled, as implemented) | |
| Conditional SHAP (sampled, as implemented) | (one-time Cholesky) |
| Exact Shapley value (causal or conditional) |
| Dataset | Method | Stage | Time (s) | Peak CUDA alloc. (MB) | Peak CUDA reserved (MB) |
|---|---|---|---|---|---|
| Dyngen | CIG (linear basis, 1st order) | Surrogate training | 129.7 4.2 ( 130 s) | 224 7 | 980 958 |
| Attribution computation | 175.4 19.9 ( 175 s) | 17818 927 | 18680 1333 | ||
| Total | 305.1 23.6 ( 305 s) | 17818 927 | 18680 1333 | ||
| Dyngen | CIG (linear basis, 2nd order) | Surrogate training | 130.4 5.0 ( 130 s) | 221 12 | 966 970 |
| Attribution computation | 349.6 39.6 ( 350 s) | 26653 1416 | 27500 2004 | ||
| Total | 480.0 44.6 ( 480 s) | 26653 1416 | 27500 2004 |
| Cells | Genes | Filtered cells per split | |||||
|---|---|---|---|---|---|---|---|
| Seed | Raw | Filtered | Raw | Filtered | Train | Val. | Test |
| 42 | 10,000 | 9,790 | 2,548 | 2,378 | 4,797 | 2,056 | 2,937 |
| 420 | 10,000 | 8,380 | 2,548 | 2,445 | 4,106 | 1,760 | 2,514 |
| 100 | 10,000 | 8,871 | 2,548 | 2,320 | 4,346 | 1,863 | 2,662 |
| 1000 | 10,000 | 10,000 | 2,548 | 2,388 | 4,900 | 2,100 | 3,000 |
| 2000 | 10,000 | 9,876 | 2,548 | 2,494 | 4,839 | 2,074 | 2,963 |
| Method | Used | Baseline | Notes |
|---|---|---|---|
| DeepSHAP [ Lundberg and Lee, 2017 ] | Random set | captum implementation | |
| GradientSHAP [ Lundberg and Lee, 2017 ] | Random set | captum implementation | |
| Integrated gradients [ Sundararajan et al., 2017 ] | Zero | captum implementation | |
| DeepLIFT [ Shrikumar et al., 2017 ] | Zero | captum implementation | |
| Saliency [ Simonyan et al., 2014 ] | captum implementation | ||
| Guided backpropagation [ Springenberg et al., 2015 ] | captum implementation |
| Gene Category | Score | Description |
|---|---|---|
| Backbone transcription factors (TFs) | +1.00 | TFs defining main differentiation trajectory in GRN |
| Direct targets of backbone TFs | +0.25 | Genes regulated by one backbone TF |
| Joint targets with opposing interaction signs | +0.25 | Genes jointly regulated by two TFs with opposite regulatory signs |
| Burn-in phase TFs | -0.25 | TFs active only during burn-in phase |
| Targets of burn-in TFs | -0.25 | Genes regulated by burn-in phase TFs |
| Housekeeping genes | -0.25 | Non-informative constitutively expressed genes |
| Min. seeds | 1 | 2 | 4 | 6 | 8 | 10 |
|---|---|---|---|---|---|---|
| Edges | 74,426 | 58,082 | 42,448 | 33,172 | 26,379 | 19,055 |
| TFs | 252 | 229 | 193 | 174 | 156 | 131 |
| Roots | 1-hop | 2-hop | 3-hop | 4-hop | Isolates | |
|---|---|---|---|---|---|---|
| CIG | 0.1220 | 0.1085 | 0.1126 | 0.1197 | 0.1445 | 0.0959 |
| DeepSHAP | 0.1312 | 0.1194 | 0.1292 | 0.1335 | 0.1598 | 0.1428 |
| Integrated gradients | 0.0980 | 0.0891 | 0.0956 | 0.0987 | 0.1065 | 0.1017 |
| Roots | 1-hop | 2-hop | 3-hop | 4-hop | 5-hop | Isolates | |
|---|---|---|---|---|---|---|---|
| CIG | 0.1057 | 0.1026 | 0.1007 | 0.1041 | 0.1145 | 0.0872 | 0.1095 |
| DeepSHAP | 0.1940 | 0.1326 | 0.1242 | 0.1295 | 0.1502 | 0.1323 | 0.1535 |
| Integrated gradients | 0.1309 | 0.0974 | 0.0929 | 0.0969 | 0.1085 | 0.0535 | 0.1026 |
| Cell type | Method | Mean Spearman | S.d. across seeds |
|---|---|---|---|
| B cells | CIG | 0.3098 | 0.0072 |
| B cells | DeepSHAP | 0.3724 | 0.0015 |
| B cells | Integrated gradients | 0.3465 | 0.0039 |
| CD14 + monocytes | CIG | 0.3530 | 0.0343 |
| CD14 + monocytes | DeepSHAP | 0.3945 | 0.0215 |
| CD14 + monocytes | Integrated gradients | 0.4119 | 0.0395 |
| Cell type | CIG | DeepSHAP | Integrated gradients |
|---|---|---|---|
| F1-score at | |||
| B cells | |||
| CD14 + monocytes | |||
| CD4 T cells | |||
| CD8 T cells | |||
| Dendritic cells | |||
| Cell type | CIG | DeepSHAP | Integrated gradients |
|---|---|---|---|
| Precision | |||
| B cells | |||
| CD14 + monocytes | |||
| CD4 T cells | |||
| CD8 T cells | |||
| Dendritic cells | |||
| Cell type | CIG | DeepSHAP | Integrated gradients |
|---|---|---|---|
| Precision | |||
| B cells | |||
| CD14 + monocytes | |||
| CD4 T cells | |||
| CD8 T cells | |||
| Dendritic cells | |||
| Cell type | CIG | DeepSHAP | Integrated gradients |
|---|---|---|---|
| Precision | |||
| B cells | |||
| CD14 + monocytes | |||
| CD4 T cells | |||
| CD8 T cells | |||
| Dendritic cells | |||
| Cell type | CIG | DeepSHAP | Integrated gradients |
|---|---|---|---|
| Precision | |||
| B cells | |||
| CD14 + monocytes | |||
| CD4 T cells | |||
| CD8 T cells | |||
| Dendritic cells | |||
| Cell type | CIG | DeepSHAP | Integrated gradients |
|---|---|---|---|
| Precision | |||
| B cells | |||
| CD14 + monocytes | |||
| CD4 T cells | |||
| CD8 T cells | |||
| Dendritic cells | |||
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| TNF-alpha Signaling via NF-kB | 0.0003 | 14.1062 | 156.8329 | JUN, KLF6, IRF1, MYC, FOS, NFE2L2 |
| Hypoxia | 0.0003 | 17.0927 | 178.5641 | JUN, KLF6, FOS, NR3C1, ETS1 |
| Interferon Gamma Response | 0.0003 | 12.1222 | 124.9307 | IRF4, IRF1, STAT2, IRF2, IRF8, HIF1A |
| G2-M Checkpoint | 0.0041 | 11.7922 | 86.3737 | MYC, CTCF, E2F4, HIF1A |
| IL-2/STAT5 Signaling | 0.0041 | 10.6567 | 74.2016 | KLF6, IRF4, MYC, IRF8 |
| Inflammatory Response | 0.0041 | 10.5641 | 73.2283 | KLF6, IRF1, MYC, HIF1A |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| TNF-alpha Signaling via NF-kB | 0.0001 | 17.6432 | 214.7754 | CEBPB, JUN, IRF1, MYC, FOS, NFE2L2 |
| Interferon Gamma Response | 0.0002 | 15.1617 | 172.0823 | STAT1, IRF1, STAT2, IRF2, IRF8, HIF1A |
| IL-6/JAK/STAT3 Signaling | 0.0003 | 26.2874 | 267.9484 | JUN, STAT1, IRF1, STAT2 |
| Hypoxia | 0.0016 | 15.7940 | 131.4392 | JUN, FOS, NR3C1, ETS1 |
| G2-M Checkpoint | 0.0018 | 14.4212 | 115.2408 | MYC, CTCF, E2F4, HIF1A |
| UV Response Dn | 0.0027 | 21.2632 | 157.1334 | MYC, NR3C1, RUNX1 |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| IL-6/JAK/STAT3 Signaling | 0.0021 | 21.4953 | 204.3132 | JUN, STAT1, STAT2, STAT3 |
| TNF-alpha Signaling via NF-kB | 0.0028 | 11.1166 | 94.6276 | CEBPB, JUN, MYC, FOS, NFE2L2 |
| Interferon Gamma Response | 0.0036 | 9.5621 | 75.0479 | STAT1, STAT2, IRF2, STAT3, IRF8 |
| G2-M Checkpoint | 0.0046 | 11.7922 | 86.3737 | MYC, CTCF, E2F4, ATF5 |
| UV Response Dn | 0.0057 | 17.5550 | 120.9222 | MYC, NR3C1, RUNX1 |
| Wnt-beta Catenin Signaling | 0.0064 | 44.2436 | 291.5354 | MYC, CTNNB1 |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| Allograft Rejection | 0.0049 | 97.8273 | 656.8822 | CD74, CCL22 |
| Interferon Alpha Response | 0.0685 | 38.4775 | 125.4228 | CD74 |
| Inflammatory Response | 0.0685 | 28.4083 | 84.3200 | CCL22 |
| Interferon Gamma Response | 0.0729 | 19.6686 | 51.4961 | CD74 |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| Complement | 0.0587 | 22.9076 | 117.2823 | PLAUR, PFN1 |
| Allograft Rejection | 0.0587 | 19.5540 | 94.2961 | SOCS1, B2M |
| Interferon Gamma Response | 0.0587 | 15.8199 | 70.0418 | SOCS1, B2M |
| Apical Surface | 0.0587 | 96.1389 | 417.1983 | PLAUR |
| Cholesterol Homeostasis | 0.1113 | 30.2456 | 98.3633 | PLAUR |
| Epithelial Mesenchymal Transition | 0.1113 | 22.9467 | 68.5890 | PLAUR |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| Epithelial Mesenchymal Transition | 0.1406 | 27.5400 | 86.4653 | GLIPR1 |
| Interferon Alpha Response | 0.1406 | 15.3843 | 39.7786 | PARP9 |
| Apoptosis | 0.1406 | 12.7626 | 30.7555 | CD69 |
| Inflammatory Response | 0.1406 | 11.3583 | 26.1335 | CD69 |
| TNF-alpha Signaling via NF-kB | 0.1406 | 9.1087 | 19.0955 | CD69 |
| Interferon Gamma Response | 0.1406 | 7.8640 | 15.4290 | CD69 |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| Interferon Alpha Response | 0.0000 | 236.2069 | 2761.8748 | UBA7, PSME2, NCOA7 |
| Interferon Gamma Response | 0.0090 | 39.5673 | 222.7963 | CXCL9, PSME2 |
| IL-6/JAK/STAT3 Signaling | 0.0588 | 37.5738 | 125.6833 | CXCL9 |
| Inflammatory Response | 0.0788 | 18.9361 | 50.9210 | CXCL9 |
| Allograft Rejection | 0.0788 | 16.1833 | 41.1132 | CXCL9 |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| Interferon Alpha Response | 0.0335 | 31.1182 | 177.3636 | DHX58, PARP12 |
| Interferon Gamma Response | 0.0597 | 15.8199 | 70.0418 | DHX58, PARP12 |
| Cholesterol Homeostasis | 0.0992 | 30.2456 | 98.3633 | CD9 |
| Coagulation | 0.0992 | 26.7093 | 83.6984 | CD9 |
| IL-6/JAK/STAT3 Signaling | 0.0992 | 18.7787 | 52.5521 | CD9 |
| Protein Secretion | 0.0992 | 16.8284 | 45.3449 | NAPA |
| Term | Adjusted P-value | Odds Ratio | Combined Score | Genes |
|---|---|---|---|---|
| Interferon Alpha Response | 0.0002 | 78.7126 | 795.1581 | BST2, IFITM2, IFI27 |
| Interferon Gamma Response | 0.0007 | 39.7941 | 324.4256 | BST2, IFITM2, IFI27 |
| Bile Acid Metabolism | 0.0554 | 36.3000 | 123.5496 | CH25H |
| Inflammatory Response | 0.1252 | 11.3583 | 26.1335 | BST2 |
| Myc Targets V1 | 0.1474 | 7.4630 | 14.2879 | RPL6 |
| Corruption | Community | 25% | 50% | 75% |
|---|---|---|---|---|
| Removed | Backbone | |||
| HK | ||||
| Reversed | Backbone | |||
| HK | ||||
| Added (spurious) | Backbone | |||
| HK |
| Setting | Type | mean | % sig. | Med. rel. err. | % 50% off | |
|---|---|---|---|---|---|---|
| In-graph | Interaction | 31 | 0.574 | 93.5% | 0.286 | 6.5% |
| In-graph | Linear (control) | 33 | 0.086 | 18.2% | 0.288 | 0.0% |
| Omitted-variable | Interaction | 42 | 0.264 | 73.8% | 0.739 | 69.0% |
| Omitted-variable | Linear (control) | 48 | 0.085 | 18.8% | 0.789 | 81.3% |
Causal Attribution
Causal attribution identifies which features, actions, or mechanisms make a difference to an outcome using causal models and interventions.
See all 52 papers