Layer-wise Relevance Propagation (LRP) is a decomposition technique that redistributes a model's prediction score backward through the network layers using a local conservation property, ensuring the total relevance received by a neuron equals the total relevance it redistributes to its inputs. Unlike standard gradient-based methods, LRP defines specific propagation rules tailored to different layer types—such as the LRP-ε or LRP-αβ rules—that leverage the network's learned weights and activations to produce high-resolution, semantically meaningful heatmaps without relying on input perturbations.
Glossary
Layer-wise Relevance Propagation

What is Layer-wise Relevance Propagation?
A conservative redistribution technique for explaining deep neural network predictions by backpropagating the output score through the network's layers to assign relevance scores to individual input features.
The method operates by treating the prediction as the total amount of relevance to be explained and iteratively applying a Taylor-type decomposition at each layer, redistributing relevance proportionally to each lower-layer neuron's contribution to the upper-layer activation. This process satisfies the relevance conservation axiom, meaning no relevance is artificially created or destroyed during backpropagation, which distinguishes LRP from methods like Guided Backpropagation and makes it particularly robust for identifying the exact input features—such as pixels or tokens—that constitute positive evidence for a specific classification decision.
Core Properties of LRP
Layer-wise Relevance Propagation is governed by a strict set of mathematical properties that ensure its explanations are not just visual approximations but conservative, consistent, and physically meaningful decompositions of a model's output.
Conservation of Relevance
The total relevance score assigned to the input vector must exactly equal the model's output prediction score. This is the completeness axiom in action. No relevance is created or destroyed during backpropagation; it is merely redistributed.
- Sum Rule: (\sum_i R_i^{(l)} = \sum_j R_j^{(l+1)} = f(x))
- This ensures the explanation is a true decomposition of the prediction, not a heuristic approximation.
- Violating conservation leads to 'leakage' where the explanation fails to account for the full output magnitude.
Positive Relevance Preservation
LRP rules are designed to ensure that neurons contributing positively to the target class receive positive relevance. This avoids the gradient shattering problem seen in raw gradients.
- z⁺-Rule: Only positive contributions are propagated, ignoring inhibitory connections.
- This property is critical for generating clean, non-noisy heatmaps where only supporting evidence is highlighted.
- It prevents negative relevance from canceling out positive evidence in different regions of the input.
Deep Taylor Decomposition
LRP can be mathematically derived as a series of Deep Taylor Decompositions applied at each layer. This provides a theoretical justification for the propagation rules.
- Each neuron's output is decomposed using a first-order Taylor expansion around a root point in the input space.
- The choice of root point (e.g., nearest root, rescaled root) directly determines the specific LRP rule (e.g., (\alpha\beta), (w^2)).
- This connects heuristic propagation rules to a rigorous functional decomposition framework.
Layer-wise Relevance Conservation
Relevance is conserved locally between adjacent layers, not just globally between input and output. This layer-wise conservation is a stricter constraint than simple input-output conservation.
- (\sum_i R_i^{(l)} = \sum_j R_j^{(l+1)}) for all layers (l).
- This prevents intermediate layers from acting as 'relevance sinks' or 'relevance sources'.
- It ensures that the attribution is stable and interpretable at every stage of the network's hierarchy.
Rule Composability
LRP is not a single algorithm but a composable framework of propagation rules. Different layers can use different rules to optimize for stability and interpretability.
- Deep Taylor LRP: Uses (\alpha\beta)-rules for hidden layers and (z^+)-rules for the final layer.
- Composite LRP: Applies (LRP-\epsilon) for flat layers and (LRP-\alpha\beta) for convolutional layers.
- This composability allows practitioners to tailor the explanation to the specific architecture, avoiding numerical instability in deep networks.
Absence of Bias
Unlike gradient-based methods, LRP does not treat the model's bias terms as contributing to relevance. The bias is considered a baseline shift that does not explain the input's specific contribution.
- Biases are explicitly excluded from the relevance propagation formula.
- This prevents a constant offset from being distributed across the input, which would dilute the explanation of the actual input features.
- The result is a sparser, more focused attribution that highlights the true signal in the data.
LRP vs. Other Feature Attribution Methods
A technical comparison of Layer-wise Relevance Propagation against gradient-based and perturbation-based attribution methods across key properties for neural network interpretability.
| Property | Layer-wise Relevance Propagation | Integrated Gradients | Guided Backpropagation | Occlusion Sensitivity |
|---|---|---|---|---|
Conservation Axiom | ||||
Positive Relevance Only | Configurable via rule | |||
Implementation Invariance | ||||
Requires Baseline Input | ||||
Computational Cost | Single backward pass | 50-300 forward/backward passes | Single backward pass | Thousands of forward passes |
Class Discriminative | ||||
Saturation Sensitivity | Handled via alpha-beta rule | Handled via path integral | Vulnerable | Handled via direct measurement |
Theoretical Foundation | Deep Taylor Decomposition | Axiomatic path integration | Modified ReLU gradient | Empirical perturbation |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about how LRP redistributes prediction scores backward through neural networks to assign relevance to individual input features.
Layer-wise Relevance Propagation (LRP) is a decomposition technique that explains individual neural network predictions by redistributing the model's output score backward through all layers using local conservation rules until it assigns a relevance value to each input feature. The core mechanism operates on a strict relevance conservation principle: the total relevance received by a neuron in a lower layer must equal the sum of the relevance it distributes to neurons in the layer above. Starting from the output neuron corresponding to the predicted class, LRP iteratively applies propagation rules—such as the epsilon-rule, alpha-beta rule, or z^+-rule—at each layer to decompose the signal. Each rule defines how to partition a neuron's relevance across its inputs based on their contribution to the forward activation. Unlike gradient-based methods that measure local sensitivity, LRP produces a signed, additive decomposition where the sum of all input relevances exactly equals the model's output score, satisfying the completeness axiom. This makes LRP particularly suitable for auditing decisions where a full accounting of the prediction magnitude is required, such as identifying which pixels in an image or which words in a text document drove a classifier's decision.
Related Terms
Layer-wise Relevance Propagation belongs to a family of techniques that decompose a neural network's output. The following concepts define the theoretical foundations, alternative methods, and evaluation protocols that contextualize LRP within the broader field of algorithmic explainability.
Axiomatic Attribution
The theoretical framework defining the mathematical properties a feature attribution method must satisfy to be considered reliable. LRP is explicitly designed to satisfy the conservation property (completeness), ensuring the sum of relevance scores across all input features equals the model's total output score. Other key axioms include sensitivity (a feature receiving zero attribution must not affect the prediction) and implementation invariance (functionally equivalent networks must yield identical attributions).
Deep Taylor Decomposition
The mathematical framework underpinning the most common LRP rules. It propagates relevance by performing a first-order Taylor expansion of the neuron's function at a carefully chosen root point in the input space. This provides a principled way to derive propagation rules for different layer types:
- LRP-α1β0: Emphasizes positive contributions
- LRP-ε: Absorbs weak or contradictory relevance with a small stabilizer
- LRP-γ: Favors positive over negative contributions
Integrated Gradients
An axiomatic attribution method that computes feature importance by accumulating gradients along a straight-line path from a baseline input (typically a black image or zero vector) to the actual input. Unlike LRP, which uses a backward pass with modified gradient rules, Integrated Gradients relies on standard gradients and satisfies the completeness axiom through path integration. It requires careful baseline selection, whereas LRP's reference point is implicitly defined by the propagation rules.
Faithfulness Metrics
Quantitative evaluation criteria that measure how accurately an attribution map reflects true feature importance. The core principle is perturbation-based evaluation:
- Deletion Metric: Remove pixels from most to least important and measure prediction decay
- Insertion Metric: Add pixels from most to least important into a blurred baseline and measure probability increase
- ROAR (RemOve And Retrain): Iteratively retrain the model after removing top-attributed features to assess if the method identifies genuinely used features
DeepLIFT
A backpropagation-based attribution method that explains predictions by comparing neuron activations to a reference activation. It distributes contribution scores according to differences from that reference state using a summation-to-delta property analogous to LRP's conservation rule. DeepLIFT uses multiplier-based rules (Rescale and RevealCancel) to handle nonlinearities, making it closely related to LRP in spirit but differing in its reference-dependent formulation.
Grad-CAM
A localization technique that produces coarse heatmaps by using the gradients of a target concept flowing into the final convolutional layer. Unlike LRP, which propagates relevance through all layers to produce fine-grained pixel-level attributions, Grad-CAM is restricted to convolutional architectures and generates class-discriminative but spatially coarse explanations. It is often combined with Guided Backpropagation to achieve higher resolution through pointwise multiplication.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us