Inferensys

Glossary

Layer-wise Relevance Propagation

A pixel-wise decomposition technique that redistributes a deep neural network's prediction score backwards through its layers using specific propagation rules to generate a relevance heatmap at the input.
Enterprise console with connected nodes and monitoring panels for orchestrated systems.
EXPLAINABLE AI

What is Layer-wise Relevance Propagation?

A pixel-wise decomposition technique that redistributes a deep neural network's prediction score backwards through its layers using specifically designed propagation rules until it reaches the input, generating a relevance heatmap.

Layer-wise Relevance Propagation (LRP) is a post-hoc explainability method that assigns a relevance score to each input feature by performing a controlled backward pass through the network. Unlike gradient-based methods, LRP uses a conservation principle—the total relevance received by a neuron is fully redistributed to its predecessors—ensuring no relevance is lost or artificially created during propagation.

The technique employs distinct propagation rules, such as the LRP-ε or LRP-αβ rules, tailored to different layer types to handle non-linear activations and suppress noise. In medical imaging, LRP produces high-resolution, clinically meaningful heatmaps that allow radiologists to verify whether a diagnostic model's decision is based on actual pathological structures rather than confounding artifacts or background pixels.

CORE MECHANISMS

Key Properties of LRP

Layer-wise Relevance Propagation (LRP) is defined by a set of mathematical properties that ensure its explanations are conservative, consistent, and computationally tractable for deep neural networks.

01

The Conservation Principle

LRP's foundational axiom is relevance conservation. The total relevance assigned to the input must equal the model's output prediction score. At each layer, the sum of relevance scores received by neurons equals the sum redistributed to the layer below. This ensures no relevance is created or destroyed during backpropagation, providing a complete accounting of the prediction's evidence.

02

Deep Taylor Decomposition

LRP rules are theoretically grounded in Deep Taylor Decomposition (DTD). This framework views relevance propagation as a series of Taylor expansions applied at each neuron. By decomposing the function of a neuron around a root point, DTD provides a principled way to derive propagation rules that satisfy the conservation axiom while minimizing approximation error.

03

Composite Propagation Strategy

A single propagation rule is insufficient for deep networks. LRP employs a composite strategy that applies different rules to different layer types:

  • LRP-ε: Stabilizes division for layers with high activation variance
  • LRP-γ: Enhances positive contributions in fully-connected layers
  • LRP-αβ: Separates positive and negative influences in convolutional layers
  • LRP-0: A baseline rule for layers with ReLU activations
04

Positive and Negative Evidence

LRP explicitly separates positive relevance (evidence for a class) from negative relevance (evidence against it). The αβ-rule achieves this by treating positive and negative weighted activations asymmetrically. This dual-channel attribution is critical in medical imaging, where both the presence of a lesion and the absence of healthy tissue patterns contribute to a diagnosis.

05

Pixel-Level Resolution

Unlike gradient-based methods that produce coarse localization maps, LRP propagates relevance all the way to the input pixel space. Each pixel receives a signed relevance score, producing a fine-grained heatmap. This property makes LRP particularly suitable for identifying the exact boundaries of small pathologies in high-resolution medical images.

06

Computational Efficiency

LRP requires a single forward pass to compute the prediction and a single backward pass to redistribute relevance. This linear complexity with respect to network depth makes it feasible for real-time clinical applications. Implementations in libraries like iNNvestigate and Zennit provide optimized LRP backpropagation hooks for PyTorch and TensorFlow.

FEATURE ATTRIBUTION COMPARISON

LRP vs. Other Explainability Methods

A technical comparison of Layer-wise Relevance Propagation against other widely used post-hoc feature attribution techniques for deep neural networks.

FeatureLRPGrad-CAMIntegrated GradientsSHAP

Attribution Granularity

Pixel-wise

Coarse region

Pixel-wise

Pixel-wise

Conservation Property

Implementation Complexity

High

Low

Medium

High

Computational Cost

1 backward pass

1 backward pass

50-200 forward/backward passes

200+ model evaluations

Model Architecture Support

Any feed-forward DNN

CNN only

Any differentiable model

Any model

Positive/Negative Relevance

Layer-wise Relevance Conservation

Noise Sensitivity

Low

Medium

Medium

High

LAYER-WISE RELEVANCE PROPAGATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Layer-wise Relevance Propagation (LRP), its mechanisms, and its role in making deep neural network decisions interpretable for medical imaging and diagnostic applications.

Layer-wise Relevance Propagation (LRP) is a pixel-wise decomposition technique that redistributes the prediction score of a deep neural network backwards through the network's layers using a set of purposely designed propagation rules until it reaches the input, creating a relevance heatmap. The core mechanism operates on the principle of relevance conservation, where the total relevance assigned to a neuron in a given layer is fully redistributed to the neurons in the preceding layer that contributed to its activation. Unlike gradient-based methods, LRP does not rely on computing partial derivatives of the output with respect to the input. Instead, it defines specific propagation rules—such as the LRP-0, LRP-ε, and LRP-αβ rules—that dictate how relevance flows backward through different layer types, including linear layers, convolutional layers, and activation functions. The result is a signed heatmap where each input pixel receives a relevance score indicating its contribution to the model's final decision, with positive values supporting the prediction and negative values opposing it.

Prasad Kumkar

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.