Crediting Absent Genes: Dropout-Aware Relevance Propagation for Single-Cell Classifiers

Single-cell RNA sequencing (scRNA-seq) counts the messenger RNA molecules of each gene in each individual cell. It is now routine to train neural networks that read these counts and predict a cell's type or state. Biologists then want to know which genes drove each individual prediction. Layer-wise relevance propagation (LRP) answers that kind of question for images. It takes the network's output score and splits it backward, layer by layer, into per-input shares that add up exactly to the score. Applied naively to single-cell data, though, LRP has a structural blind spot. In the standard rule, an input's share is proportional to its value, so a gene with zero counts can never receive credit. Zero is the most common entry in a single-cell matrix, and many cell identities are defined by what a cell does not express. A CD8 T cell is partly defined by lacking CD4, and a knocked-down cell by losing its target gene. Standard LRP therefore silently discards a whole class of biological evidence. The zeros are also ambiguous: many reflect capture failure ("dropout") rather than true absence.

We propose a version of LRP for count data with two parts. The first is a reference-shifted input rule. Relevance explains the gap between the cell and a biologically meaningful reference expression profile, rather than the gap between the cell and zero, so an expected-but-missing gene can carry relevance. The second is a dropout-confidence score that says how much of an absent gene's relevance rests on a zero that is probably technical. We also propose an evaluation protocol whose faithfulness tests do not treat "set the gene to zero" as removing information, because in this data zero is an ordinary, in-distribution value.

Core Claim

Our claim is narrow and testable. On single-cell classifiers, the choice of reference point matters more than the choice of attribution method, and zero is the wrong reference. We make three predictions. First, standard LRP and gradient-times-input will rank known absence-defined drivers (a CRISPR-silenced target gene, a lineage's negative marker) near the bottom. A reference-shifted LRP will rank them near the top. Second, the reference-shifted version will stay faithful to the classifier under a faithfulness test that masks genes by resampling from a count noise model instead of zeroing them. Third, given a matched reference, LRP will need one backward pass per cell and give attributions that change less than gradient-based alternatives when sequencing depth is artificially reduced. That property is what makes per-cell explanations affordable across an atlas of millions of cells.

The first two predictions are about the reference and could hold for other attribution methods too. We say so openly and test it (see "Why not just…?"). The third is where LRP itself has to earn its place.

Relation to Prior Work

The attribution side supplies the method. On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation introduced the conservation principle, under which relevance at every layer sums to the output score. Explaining Deep Neural Networks and Beyond reviews why this gives an exact allocation of credit. Both papers explain a score relative to an implicit zero input, which is harmless for pixels and misleading for counts. Two later papers show that the propagation rules matter, and they constrain our design. Relative Attributing Propagation handles positive and negative contributions separately so they do not cancel. When Explanations Lie proves that backward rules which drop signed relevance collapse toward a class-independent "rank-1" map. That result rules out any stabilization trick that clips negative relevance. This matters here because relevance for an absent gene is naturally signed: it is negative evidence relative to the reference. We therefore keep signed propagation in all hidden layers and change only the input layer and the quantity being explained.

The single-cell side supplies the motivation and the competitors. MarkerMap and LassoNet both pick one global gene subset for a whole dataset. MarkerMap does this with a differentiable sampling layer, and LassoNet with a sparsity penalty tied to a linear skip path. Neither explains an individual cell, and neither decomposes a prediction into additive shares. expiMap builds interpretability into a variational autoencoder by tying latent dimensions to curated pathways. It explains at the level of gene programs and inherits the gaps of the pathway databases. Our method works after training on any architecture, at the level of individual genes. Deep generative modeling for single-cell transcriptomics (scVI) gives us a count noise model that separates technical zeros from biological ones, and we reuse it to build references and dropout scores. Work showing that cell states form continua supports our use of contrastive references ("why this state rather than that neighbouring one") over only "why this class" explanations. Examples are intermediate EMT states, where EMT is the transition of cells from an epithelial to a mesenchymal state, and striatal interneuron gradients. Finally, PerturbCausal is a cautionary constraint. There, deep perturbation models did not beat a sparse linear ElasticNet on recovering gene regulatory networks. Any claim that a deep model plus attribution adds value must therefore be tested against sparse linear coefficients on the same task.

Research Program

The method starts with a reference profile $r$ for each cell to be explained. The default is a contrastive reference: the noise-model-denoised mean expression of the competing class nearest to the cell in latent space. A population-mean reference is the non-contrastive alternative. Both are computed from scVI's decoded means, so the reference is never itself zero-inflated. We then run the classifier on both the cell $x$ and the reference $r$ and propagate activation differences backward. For a layer with inputs $a_i$, weights $w_{ij}$ and output relevance $R_j$, the rule is

$$R_{i \leftarrow j} = \frac{(a_i - \bar a_i)\, w_{ij}}{\sum_k (a_k - \bar a_k)\, w_{kj} + \epsilon\,\mathrm{sign}(\cdot)}\, R_j .$$

Here $a_i$ is neuron $i$'s activation on the cell, $\bar a_i$ is its activation on the reference, and $\epsilon$ is a small stabilizer that takes the sign of the denominator. The propagated quantity is $f_c(x) - f_c(r)$, the class-$c$ score gap. It is conserved, so gene relevances sum to it. A gene with zero counts but a high reference value now gets a nonzero, typically negative-for-the-competitor, share. Denominators no longer vanish on sparse inputs, because $x - r$ is rarely all-zero where $x$ is. This addresses the numerical instability of sparse inputs directly.

On top of this sits the dropout score. For each zero-count gene, scVI's zero-inflated likelihood gives the posterior probability that the zero is technical. We report this probability next to that gene's relevance, and we aggregate relevance that rests on probably-technical zeros into a per-cell "fragility" number.

The engineering target is a hook-based implementation for multilayer perceptrons and residual classifiers that follows the residual splitting of Layer-Wise Relevance Propagation with Conservation Property for ResNet. We leave attention models to future work. We test conservation numerically on every run.

Baselines

The naive reference point is per-cluster Wilcoxon differential expression. It is the standard pipeline answer: a global, per-class gene ranking assigned identically to every cell in the cluster. Beating it requires per-cell attributions whose top genes predict the cell's label better, under the resampling-mask test described below, than the cluster's DE list at equal gene count.

The strongest attribution competitor is Integrated Gradients (IG), an attribution method that averages gradients along a straight path from a baseline input to the cell, with the same reference $r$ as its baseline. Following the path-sampled variant in Path-sampled integrated gradients, we run it on the same trained classifiers. It gets an equal wall-clock budget, and we sweep its step count until results stabilize. It also satisfies completeness relative to a baseline, so it isolates whether LRP's backward rules add anything beyond the reference. "Beating" it means equal or better faithfulness and target recovery together with lower attribution variance under depth thinning at a small fraction of its compute. If it matches on all three, we report that the reference is the contribution.

The strongest non-deep competitor is XGBoost with TreeSHAP, a fast exact method for computing Shapley-value feature attributions on tree ensembles. Evaluation of single-cell classifiers found tree ensembles (CaSTLe, Seurat's random forest) among the top classifiers. We tune it on the same splits with a matched search budget. The sparse linear competitor is an ElasticNet classifier whose coefficient-times-(x minus r) gives per-cell additive attributions. It is the comparator PerturbCausal found hardest to beat. MarkerMap's global panel serves as a global-selection reference when we aggregate per-cell attributions into a panel.

Two ablations isolate our ingredients. Standard ε-LRP with a zero reference tests the reference shift. Our method with the population-mean reference in place of the contrastive one tests contrastivity. The file contains no reported per-cell attribution numbers on any of these datasets, so there is no reported result found on Lacuna for gene-attribution faithfulness or target recovery. The closest reported figures are qualitative: MarkerMap reports "near-perfect classification … with only a few dozen markers" on Zeisel. Where classification accuracy is our control, the bar is set by our own reproductions.

Why not just…?

Why not just use differential expression? DE produces one list per cluster. It cannot say that two cells with the same label rely on different genes, and FLeCS reports that on K562 knockdowns DE conflated direct effects with downstream ripples, matching known biology less often than a network model (11 of 12 knockdowns favored FLeCS). DE does credit absent genes, since it compares means, so it is a genuine competitor on target recovery. We expect it to lose on per-cell faithfulness in heterogeneous clusters, and the resampling-mask test measures exactly that.

Why not just use Integrated Gradients with a sensible baseline? This is the real threat. IG with our reference $r$ inherits the fix for absent genes, and our first two predictions may hold for it equally. We do not argue around this. The head-to-head comparison at matched reference decides it. If IG matches LRP on faithfulness, stability and cost, the paper's claim reduces to "reference choice and dropout-aware evaluation are what matter for single-cell attribution." That is still a useful, falsifiable result for the field. LRP's remaining case is a single backward pass versus tens of passes, and conservation that holds exactly rather than up to integration error.

Why not just use XGBoost with SHAP? Tree ensembles are strong single-cell classifiers, and SHAP gives per-cell additive attributions. But the Shapley baseline is a background distribution that is typically zero-heavy, which brings back the absence blind spot unless the background is carefully chosen. We give SHAP the same contrastive background to keep the comparison fair. Trees also cannot be trained jointly with the generative model that supplies references and dropout scores. If SHAP-on-XGBoost wins at matched background, we will recommend it.

Why not just read ElasticNet coefficients? PerturbCausal shows sparse linear models are hard to beat on regulatory-network recovery. The synthetic benchmark below plants non-additive logic that a linear model cannot represent, such as a state defined by gene A present and gene B absent together. On real data we report both, and the linear model winning on real data would be an honest negative result for the deep route.

Proposed Experiments

The first experiment is a synthetic benchmark with planted ground truth. We simulate counts from a zero-inflated negative binomial with realistic dropout, and define cell states by known rules: single markers, absence-defined states, and two-gene exclusive-or states. Metrics are per-cell precision of the top-k genes against the planted drivers, and fraction of absent drivers ranked in the top-k. Varying the dropout rate tests whether the fragility score tracks the true probability that a zero is technical.

The second is the decisive real-data test on Replogle K562 CRISPRi. We train a classifier to separate each knockdown from control cells. The silenced target gene is a known driver that is absent by design. We measure its per-cell rank under every method. Standard zero-reference LRP should fail here almost by construction. Our method, IG with reference, DE and SHAP compete on equal footing. Replogle RPE1 tests whether rankings transfer across cell contexts.

The third tests absence-defined lineages on CITE-seq cord blood, where surface proteins give independent labels. We ask whether attributions for CD4-versus-CD8 T cells credit the absent coreceptor transcript. On Zeisel and Paul we test contrastive explanations between neighbouring states along the myeloid trajectory.

Across all datasets we run two checks. Faithfulness uses a deletion curve in which "deleted" genes are resampled from the scVI posterior rather than zeroed. Stability uses the rank correlation of attributions between a cell and its binomially thinned copy at 50% and 25% depth. We record wall-clock time per million cells for every method. Classification accuracy is reported only as a control, so that no method wins by explaining a worse model. The outcome that would sink the proposal is simple. If zero-reference LRP already recovers the K562 targets, or if the resampling-mask and zero-mask deletion curves agree, then the absence problem is not real in practice, and we would say so.