When we try to understand why a deep neural network made a specific prediction, our first instinct is often to look at gradients. Gradients tell us how a tiny change in an input pixel or token affects the final output score. However, gradients measure sensitivity, not attribution. If a network saturates—meaning an important feature has already pushed an activation to its maximum value—the local gradient drops to zero. In these cases, gradient-based explanations can fail to highlight the very features that drove the decision.
To overcome this, researchers developed Layer-wise Relevance Propagation (LRP). Instead of taking derivatives to see how the output changes, LRP takes the final output score itself (the network's total "confidence") and redistributes it backward through the network, layer by layer, until it reaches the input features.
The Core Mechanism: The Conservation Axiom
The defining intuition behind LRP is the conservation principle. Imagine the model's final prediction score as a fixed budget of "relevance." As this relevance flows backward from the output layer to the input layer, the total amount of relevance must be conserved at every single layer.
As noted by Binder et al. in On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation, if the total relevance at layer $l$ is $R_l$, then the sum of the relevance scores assigned to the neurons in the preceding layer $l-1$ must exactly equal $R_l$. Ultimately, when the relevance reaches the input layer, the sum of all pixel or token attributions equals the original prediction score:
$$\sum_{i} R_i = f(x)$$
This mathematical constraint acts as a powerful regularizer. By ensuring that relevance is neither created out of thin air nor lost along the way, the resulting heatmap remains strictly tied to the model's actual output score. Samek et al. explain in Explaining Deep Neural Networks and Beyond: A Review of Methods and Applications that this decomposition allows us to see exactly how much credit each individual input component deserves for the final decision.
To distribute relevance from a downstream neuron $j$ to an upstream neuron $i$, standard LRP looks at their relative forward-pass contribution. For a simple linear transformation where $z_j = \sum_i x_i w_{ij} + b_j$, the relevance $R_j$ is distributed to neuron $i$ based on the ratio of its input contribution to the total activation:
$$R_{i \leftarrow j} = \frac{x_i w_{ij}}{\sum_k x_k w_{kj} + b_j} R_j$$
However, neural networks are rarely this simple. They contain negative weights, zeroes, and complex non-linearities that can cause denominators to approach zero, leading to unstable or wildly noisy explanations. To stabilize this, methods like the one proposed by Nam et al. in Relative Attributing Propagation: Interpreting the Comparative Contributions of Individual Units in Deep Neural Networks separate and normalize positive and negative contributions independently, preventing opposing signals from masking one another.
The Danger of Information Leakage and the Rank-1 Trap
Why must we adhere so strictly to conservation rules? Why not simply modify standard backpropagation heuristics to keep explanations clean?
Sixt et al. uncovered a fundamental mathematical trap in When Explanations Lie: Why Many Modified BP Attributions Fail. They proved that many popular modified backpropagation methods (which do not strictly conserve relevance) act as chains of non-negative matrices that rapidly converge to a "rank-1" state during the backward pass.
When a method falls into this rank-1 trap, the backward pass completely loses track of the higher-level decision logic of the model. The resulting heatmaps will highlight low-level image features (like edges or textures) perfectly, but they become entirely insensitive to the class being predicted. The explanation looks beautiful to a human eye, but it is a lie—it shows where edges are, not why the model chose a specific label. The authors demonstrate that preserving both positive and negative relevance and allowing signed values to intermix is mathematically essential to maintaining class-specificity.
Extending Conservation to Modern Architectures
While the basic rules of LRP work seamlessly for standard feedforward networks, modern architectures introduce complex structural junctions—such as skip connections, attention mechanisms, and recurrent gates—that threaten to break the conservation axiom.
Skip Connections (ResNets)
In a residual network, information splits during the forward pass and merges later via addition. If relevance is propagated backward naively, it can pool disproportionately in one branch, creating severe visual noise. Otsuki et al. address this in Layer-Wise Relevance Propagation with Conservation Property for ResNet by introducing "Relevance Splitting" at these architectural junctions, ensuring that relevance is distributed across parallel paths in exact proportion to their forward-pass contributions.
Transformers and Attention
Transformers present an even steeper challenge. The self-attention mechanism multiplies activations together (tokens multiplying other tokens), creating non-linear interactions that standard LRP rules cannot decompose. Lee et al. note in Relevance-CAM: Your Model Already Knows Where To Look that traditional gradient-based alternatives suffer heavily from noise and saturation in these deep layers.
To solve this for Transformers, Ali et al. introduced a conservative framework in XAI for Transformers: Better Explanations through Conservative Propagation. By strategically "detaching" specific gradients in the Attention and LayerNorm layers during a modified backward pass, they forced the relevance scores to obey the conservation axiom without leaking information. Building on this, Bakish et al. showed in Revisiting LRP: Positional Attribution as the Missing Ingredient for Transformer Explainability that explicitly accounting for positional encodings during the backward pass is vital; otherwise, relevance "leaks" into non-token components, degrading the faithfulness of the explanation.
Recurrent and State Space Models
For sequential architectures, the challenge lies in tracking relevance through time and gating mechanisms. Arras et al. adapted LRP to recurrent networks in Evaluating Recurrent Neural Network Explanations by treating multiplicative gates as direct signal paths, allowing a single backward pass to faithfully attribute relevance to specific sequence elements.
When applied to newer linear-time alternatives like Mamba, the complex recurrent state equations make tracking attribution difficult. Rezaei Jafari et al. resolved this in MambaLRP: Explaining Selective State Space Sequence Models by treating the sigmoid component of activation functions like SiLU as a local constant during the backward pass. This local linearization prevents gradient-induced violations of the conservation axiom, keeping the explanation stable across long sequences.
Real-World Auditing: What Does Relevance Reveal?
Because conservative relevance propagation remains mathematically faithful to the model's actual inference path, it serves as a reliable diagnostic tool for auditing models in high-stakes domains. It allows researchers to detect the "Clever Hans" effect—named after the famous horse that appeared to do math but was actually reading the body language of its handler. As Samek et al. discuss in Towards Explainable Artificial Intelligence, LRP can reveal whether an image classifier is predicting "boat" because it recognizes a boat, or simply because it detects blue water in the background.
[Input Image] ---> [Forward Pass: Complex Non-linear Layers] ---> [Prediction: f(x)]
|
(Total Relevance)
v
[Relevance Map] <-- [Backward Pass: Conservative Splitting] <--- [Layer-wise LRP]
(Sum = f(x))
In medical imaging, this level of fidelity is crucial. Eitel applied LRP to structural MRI data in Layer-Wise Relevance Propagation for Explaining Deep Neural Network Decisions in MRI-Based Alzheimer's Disease Classification, extracting individual "relevance fingerprints" that mapped exactly to known biological regions of neurodegeneration.
By trusting these conservative heatmaps, Klingenberg was able to audit a sex-balanced Alzheimer's detection model in Higher performance for women than men in MRI-based Alzheimer’s disease detection. The audit revealed that a persistent performance gap favoring female patients was not caused by dataset bias, but rather by a higher degree of structural variability in how the disease physically manifests in male brains. Without an attribution method bound by strict conservation, such insights would remain buried inside the black box.
Key Foundational Work
The LRP Toolbox for Artificial Neural Networks (2016) — contributed 5 concept elements to this direction.
Controlling explanatory heatmap resolution and semantics via decomposition depth (2016) — contributed 2 concept elements to this direction.
Explaining NonLinear Classification Decisions with Deep Taylor Decomposition (2015) — contributed 2 concept elements to this direction.