GNN-LRP (Graph Neural Network Layer-wise Relevance Propagation) is a post-hoc explainability method that decomposes a trained GNN's prediction backward through the network's message-passing layers. By applying conservative relevance conservation rules at each layer, it redistributes the output score to the input space, producing a heatmap of relevance scores over the graph's nodes and edges. This identifies the specific subgraph structures and features that drove the model's decision.
Glossary
GNN-LRP

What is GNN-LRP?
A decomposition technique that backpropagates a GNN's output prediction through its layers to assign relevance scores to individual input nodes and edges, identifying which structural elements most influenced the decision.
Unlike perturbation-based explainers, GNN-LRP leverages the deep Taylor decomposition framework to propagate relevance signals without altering the input graph. It respects the GNN's learned latent representations, ensuring high faithfulness to the model's internal reasoning. Variants like GNN-LRP and GNN-HRP adapt the propagation rules for different aggregation functions, making the technique applicable across GCNs, GINs, and other message-passing architectures.
Key Features of GNN-LRP
GNN-LRP adapts Layer-wise Relevance Propagation to graph-structured data, decomposing a model's output prediction backwards through message-passing layers to assign relevance scores to individual input nodes and edges.
Higher-Order Taylor Decomposition
GNN-LRP replaces simple gradient×input attribution with a higher-order Taylor expansion of the model's prediction function at each layer. This captures the joint effect of neuron interactions rather than treating contributions independently. The decomposition distributes relevance proportional to the partial derivatives of the output with respect to the inputs of each layer, ensuring that relevance is conserved across non-linear activation functions like ReLU and tanh.
Message-Passing Relevance Conservation
The core axiom of LRP is the conservation property: the sum of relevance scores at any layer equals the model's output score. In GNN-LRP, this principle is extended to graph convolutions. Relevance is redistributed from a target node's embedding backwards to its neighborhood aggregation step. The method decomposes the message-passing operation (e.g., GraphSAGE or GCN aggregation) by assigning relevance to each incoming message based on its proportional contribution to the node's updated representation.
Edge-Level Relevance Attribution
Unlike node-only explanation methods, GNN-LRP explicitly computes relevance scores for individual edges in the input graph. After backpropagating relevance through the feature transformation and aggregation functions, the method isolates the contribution of each edge's message to the final prediction. This produces a weighted, directed relevance graph where edge weights indicate how critical that connection was for the model's decision, enabling fine-grained structural explanations.
Deep Taylor Decomposition Rules
GNN-LRP employs a set of composite propagation rules tailored to different layer types:
- LRP-ε: Adds a small stabilizing term to the denominator to prevent relevance explosion when neuron activations approach zero.
- LRP-γ: Favors positive contributions by adding a multiplicative factor to positive weights, sharpening the explanation's focus on excitatory inputs.
- LRP-αβ: Separates positive and negative weight contributions, weighting them differently to control the influence of inhibitory signals. These rules are applied sequentially through the GNN's layers.
Contrastive Explanations via Biased Backpropagation
GNN-LRP can generate contrastive explanations that answer 'Why class A instead of class B?' by backpropagating the difference between two output logits rather than a single class score. The relevance signal is initialized as f(x)_A - f(x)_B at the output layer. The resulting node and edge relevance scores highlight the structural patterns that discriminate between the two classes, revealing the specific subgraph features that swayed the model's decision toward one class over the other.
Faithfulness and Fidelity Validation
GNN-LRP explanations are evaluated using perturbation-based fidelity metrics:
- Faithfulness: The top-k relevant edges are removed, and the drop in prediction accuracy is measured. A steep drop indicates the explanation captured truly important structures.
- Fidelity: The model's prediction on the subgraph formed by only the top-k relevant edges is compared to its original prediction. High fidelity means the explanation subgraph alone is sufficient to reproduce the decision. GNN-LRP consistently outperforms gradient-based saliency maps on both metrics.
Frequently Asked Questions
Layer-wise Relevance Propagation adapted for Graph Neural Networks decomposes predictions backward through message-passing layers to assign relevance scores to individual nodes and edges, enabling fine-grained structural explanations.
GNN-LRP (Graph Neural Network Layer-wise Relevance Propagation) is a decomposition-based explainability method that redistributes a GNN's output prediction backward through its layers to assign relevance scores to input nodes, edges, and features. Unlike perturbation-based approaches, GNN-LRP leverages the conservation property—the total relevance across all inputs equals the model's output score. The method operates by defining local redistribution rules for each operation in the GNN (message passing, aggregation, update, and readout), ensuring that relevance flows from higher-layer neurons to lower-layer neurons proportionally to their activation contributions. For a node classification task, GNN-LRP starts with the target class logit and iteratively propagates relevance through each layer using the alpha-beta rule or the epsilon rule to handle numerical instabilities. The result is a heatmap over the input graph where each node and edge receives a signed relevance value indicating its positive or negative contribution to the prediction. This technique is particularly powerful because it respects the graph's connectivity structure—relevance flows only along existing edges, preserving the topological semantics of the explanation.
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.
Related Terms
Core concepts and complementary techniques for understanding how GNN-LRP decomposes graph neural network predictions into node and edge relevance scores.
Layer-wise Relevance Propagation
The foundational conservation principle that underpins GNN-LRP. LRP redistributes a model's output prediction backwards through each layer using tailored propagation rules, ensuring that the total relevance is preserved. For graph data, this means relevance flows from the final classification score through message-passing layers back to individual input nodes and edges. The key constraint is that the sum of relevance scores across all input features equals the model's output score, providing a complete decomposition of the prediction.
Deep Taylor Decomposition
A mathematical framework for deriving relevance propagation rules used in GNN-LRP. It approximates the model's decision function locally using a first-order Taylor expansion at a root point, then redistributes relevance proportional to the partial derivatives. For GNNs, this yields specific rules for different layer types:
- GCN layers: Use the epsilon-stabilized rule to handle the neighborhood aggregation
- GAT layers: Incorporate attention coefficients into the relevance distribution
- Readout layers: Distribute relevance uniformly or proportionally to node contributions
Graph Pruning
A downstream application of GNN-LRP relevance scores. After computing node and edge relevance, practitioners can remove low-relevance components to create a sparser, more interpretable subgraph that preserves the original prediction. This process:
- Reduces computational overhead for subsequent analyses
- Identifies the minimal causal subgraph responsible for the prediction
- Enables visualization of only the structurally meaningful graph regions
- Validates explanation quality by measuring prediction fidelity after pruning
Faithfulness Metric
The primary quantitative evaluation score for GNN-LRP explanations. Faithfulness measures how accurately the relevance scores reflect the model's true reasoning by removing the most relevant nodes or edges and measuring the drop in prediction performance. A faithful explanation will cause a sharp decline when high-relevance components are deleted. This is typically computed as:
- Area under the perturbation curve: Iteratively removing top-k nodes and tracking accuracy
- Correlation with ground-truth explanations: When synthetic datasets with known motifs are available
GNNExplainer
A complementary model-agnostic explainer that identifies a compact subgraph and feature subset maximizing mutual information with the GNN's prediction. Unlike GNN-LRP's gradient-based decomposition, GNNExplainer learns a continuous mask over edges and features through optimization. Key differences:
- GNN-LRP: Deterministic, single backward pass, provides fine-grained relevance per node/edge
- GNNExplainer: Requires iterative optimization, produces a binary subgraph selection
- Both methods can be used together for consensus validation of important graph structures
Graph Rationalization
A self-explainable GNN paradigm where a generator module extracts a concise, causal subgraph (the rationale) and a predictor makes decisions based solely on that rationale. GNN-LRP serves as a post-hoc alternative, explaining a pre-trained model without modifying its architecture. The rationalization approach:
- Trains end-to-end with an information bottleneck objective
- Guarantees the explanation is causally sufficient for the prediction
- Contrasts with GNN-LRP's ability to explain any black-box GNN without retraining

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