Explainability of genotype embedding models through observed cohort paths

Amashi Niwarthana, Aloysius Tan, Jagath C. RajapaksearXiv 2026

Deep learning models that combine brain imaging (MRI) with genetic data (SNPs) are becoming powerful tools for predicting neurodegenerative diseases like Parkinson’s. However, for these models to be clinically useful, we need to know why they make a specific prediction. Which genetic variants are driving the decision?

A new paper by Niwarthana et al. argues that our standard "explainability" tools are fundamentally broken when it comes to DNA, and they propose a clever fix: routing explanations through real people.

TL;DR

Standard path-based attribution methods like Integrated Gradients fail for genetic data because they "hallucinate" impossible intermediate genotypes. The authors introduce Cohort-Path Attribution (CPA), which routes the explanation path through real, observed individuals in a dataset, leading to more faithful, stable, and biologically grounded insights.

What Problem Does This Paper Address?

Most state-of-the-art explainability methods, like Integrated Gradients (IG), work by drawing a straight line in "feature space" from a baseline (e.g., a healthy person) to the subject being analyzed. They then integrate the model's gradients along this path to assign importance to each feature.

This approach hits a major wall with genetics. Genotypes are discrete—you have 0, 1, or 2 copies of a specific allele. Modern models process these through "embeddings" (mapping discrete values to continuous vectors). A straight line between two genotypes inevitably passes through fractional values (like having 0.5 of a gene) where the model was never trained and has no defined gradient.

Even if you move the path to the continuous embedding space, a straight line often traverses "unsupported" regions—combinations of genetic variants that simply do not exist in nature. Because the model never saw these combinations during training, its gradients in these regions are "wild" and untrustworthy, leading to noisy and unreliable explanations.

Schematic showing how different attribution methods traverse the genotype space. CPA (bottom right) is the only one that stays on observed data points.

Methods

The authors propose Cohort-Path Attribution (CPA). Instead of a straight mathematical line, they construct a path through the actual training cohort:

  1. Hamming Graph: They build a k-Nearest Neighbor graph where every node is a real person's genotype from the training set, connected based on genetic similarity (Hamming distance).
  2. Shortest Path: To explain a subject, they find the shortest path in this graph from a healthy control baseline to that subject.
  3. Piecewise Integration: They integrate the model's gradients along the edges of this path in embedding space.

This ensures that every "waypoint" on the explanation path is a real, biologically possible genotype that the model actually encountered during training. They also include a "betweenness constraint" to ensure that variants which are identical in the baseline and the subject don't receive spurious importance scores.

The CPA construction process: (a) building the graph, (b) finding the shortest path, and (c) integrating in embedding space.

Datasets

  • PPMI (Parkinson’s Progression Markers Initiative): A real-world dataset of 217 subjects (157 with Parkinson’s, 60 controls) with paired 3D structural MRI and 1,654 genetic variants.
  • Synthetic Benchmark: The authors created a synthetic dataset using real human "haplotype" structures (to keep realistic genetic correlations) but with "planted" causal variants. This allowed them to test if the method could actually recover known ground-truth effects.

Key Insights and Ideas

  • Off-support gradients are noisy: The authors measured the gradients along straight lines versus cohort paths. Gradients on straight lines had nearly an order of magnitude higher variance. This confirms that "hallucinated" genotypes lead to untrustworthy explanations.
  • Completeness is non-trivial: For non-linear models (where genes interact), simple "one-at-a-time" variant checks don't add up to the total prediction. CPA's continuous path restores "completeness," meaning the individual variant scores sum up exactly to the model's total output difference.
  • The "Non-Additivity Gate": Before testing attribution, the authors proved their multimodal model actually uses complex genetic interactions. They showed that a non-linear genotype branch significantly outperformed a simple linear one (AUC 0.732 vs 0.681), justifying the need for advanced attribution.

Key Results

  • Better Faithfulness: In "deletion" tests (where you remove the top-ranked variants and see if the model's confidence drops), CPA significantly outperformed standard Integrated Gradients.
  • Superior Stability: CPA is much more robust. The "rank variance" (how much the top-100 list changes with different baselines) was reduced by nearly 80% compared to standard IG.
  • Synthetic Recovery: In the synthetic benchmark, CPA was nearly twice as effective at identifying "planted" non-additive genetic effects compared to IG (AUPRC of 0.57 vs 0.31).
  • Biological Sanity Check: When applied to the real Parkinson's data, CPA identified 6 known disease-associated loci in its top 100 list, whereas standard IG only found 3.
Synthetic recovery results showing CPA's advantage in identifying non-additive genetic effects.

Limitations and Future Work

  • Cohort Density: The method's success depends on the training cohort being "dense" enough to find a path. In very small or sparse datasets, the path might still have to make large, unsupported jumps.
  • Computational Overhead: Building the graph and calculating shortest paths for every explanation is more computationally intensive than drawing a straight line.
  • Resolving Interactions: While CPA handles non-linear models better, it doesn't yet explicitly "unravel" exactly which gene is interacting with which; it just ensures the joint effect is captured accurately in the attribution. The authors suggest this as a natural next step.

Summary updated

Abstract

Deep learning models that combine genotypes with neuroimaging predict neurological diseases more accurately than either modality alone. Their clinical use, however, requires identifying which genetic variants a prediction is based on. Path-based attribution methods like Integrated Gradients address this by integrating the model's gradient from a baseline to the input. These methods assume the model accepts any point along that path as a valid input. Genotype models violate this assumption. They map the three discrete allele dosages \{0,1,2\} to vectors through a learned embedding defined only at those values, so a straight line passes through fractional genotypes at which no embedding, and therefore no gradient, exists. Attribution must therefore proceed in embedding space where the choice of path can affect the resulting attribution. We show that the commonly used per-variant estimator does not generally satisfy completeness. Additive separability guarantees completeness for this estimator, but interactions between variants generally break that property. Instead, we integrate along piecewise-linear embedding-space paths connecting genotype waypoints observed in the training cohort. Each path satisfies completeness in the continuum although the interiors of its segments are not necessarily observed. Our method improves faithfulness over Integrated Gradients and discretized Integrated Gradients under both perturbation protocols, achieves the strongest results for Parkinson's disease classification under support-preserving perturbations, and is competitive with a support-background Shapley baseline under per-variant perturbations. It also shows higher seed stability and better recovery of planted non-additive effects in a synthetic benchmark.
BibTeX
@misc{niwarthana2026explainability,
  author = {Amashi Niwarthana and Aloysius Tan and Jagath C. Rajapakse},
  title = {{Explainability of genotype embedding models through observed cohort paths}},
  year = {2026},
  eprint = {2611.25681},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25681},
}
Figure