Inferensys

Glossary

Layer-wise Relevance Propagation

A decomposition technique that redistributes a model's prediction score backwards through the network layers using a conservation property, assigning a relevance score to each input feature.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
DECOMPOSITION TECHNIQUE

What is Layer-wise Relevance Propagation?

A deterministic explanation method that redistributes a neural network's prediction score backwards, layer by layer, using a strict conservation principle to assign relevance scores to individual input features.

Layer-wise Relevance Propagation (LRP) is a decomposition technique that explains a deep neural network's prediction by redistributing its output score backwards through the network's layers using a local conservation property. Unlike gradient-based methods, LRP treats the prediction as a total quantity of relevance that must be fully decomposed and allocated to the input features, ensuring that the sum of the relevance scores across all input dimensions exactly equals the model's output score for the target class.

The redistribution is governed by specific propagation rules, such as the LRP-ε or LRP-αβ rules, which dictate how relevance is divided among neurons in the preceding layer based on their relative contributions. This process produces a relevance heatmap that identifies which input features (e.g., pixels or words) provided positive evidence for the prediction and which spoke against it, offering a highly interpretable and faithful explanation of the model's decision-making process.

THE CONSERVATION PRINCIPLE

Key Characteristics of LRP

Layer-wise Relevance Propagation (LRP) is defined by a set of strict mathematical properties that distinguish it from standard gradient-based methods. These characteristics ensure the explanation is a faithful, pixel-wise decomposition of the model's actual decision function.

01

The Conservation Axiom

LRP is fundamentally governed by a conservation of evidence property. The total relevance score assigned to the output neuron is redistributed backwards without loss or gain. This means the sum of the relevance scores of the input features exactly equals the model's output score for the target class, satisfying the Completeness Axiom by construction.

ΣR_in = f(x)
Mathematical Invariant
02

Deep Taylor Decomposition Framework

LRP is theoretically grounded in Deep Taylor Decomposition. It explains a neuron's activation by performing a Taylor expansion at a functionally relevant root point in the input space where the neuron's activation is zero. This avoids the shattered gradient problem and provides a more faithful decomposition than simple gradient×input methods.

03

Propagation Rules

LRP uses specific rules to handle non-linearities and prevent noise. Key rules include:

  • LRP-0: Basic rule, redistributes based on activation weights.
  • LRP-ε: Adds a small constant to the denominator to absorb weak or contradictory relevance, improving numerical stability.
  • LRP-αβ: Separates positive and negative contributions to control the influence of inhibitory evidence, often using LRP-α1β0 to focus purely on positive relevance.
04

Contrastive Explanations

Unlike methods that only explain 'why class A,' LRP can explain 'why class A and not class B' through contrastive relevance. By propagating the difference between the target and competitor logits, LRP identifies the unique features that discriminate between two specific classes, providing a much sharper diagnostic tool for model debugging.

05

Structural Fidelity

Because LRP operates layer-by-layer using the network's own weights and activations, it respects the structural topology of the deep model. It does not rely on local approximations or surrogate models. This ensures that the explanation is a true function of the model's internal architecture, satisfying the Implementation Invariance axiom for functionally equivalent networks.

06

Composite Strategy

In practice, a composite LRP strategy is used for deep networks like VGG or ResNet. Convolutional layers typically use LRP-αβ, while the final dense classification layers use LRP-ε. This hybrid approach ensures that high-level semantic relevance is preserved while low-level spatial noise is filtered out, producing crisp, interpretable heatmaps.

LAYER-WISE RELEVANCE PROPAGATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the Layer-wise Relevance Propagation (LRP) decomposition technique, its mechanisms, and its role in the explainability ecosystem.

Layer-wise Relevance Propagation (LRP) is a decomposition technique that redistributes a neural network's prediction score backwards through its layers using a strict conservation property, assigning a relevance score to each input feature. Unlike standard backpropagation, LRP does not compute a gradient. Instead, it takes the model's output for a specific class and treats it as the total amount of relevance to be redistributed. It then applies a set of handcrafted, layer-specific propagation rules that operate on the activations and weights of each neuron. The fundamental constraint is that the sum of relevance arriving at a layer must equal the sum of relevance sent to the preceding layer. This process continues until the input layer is reached, producing a heatmap where each pixel or feature's relevance quantifies its exact contribution to the final prediction.

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.