Explainability and Interpretability in Graph Neural Networks
Nov 3rd, 2026
BMI/CS 775 Computational Network Biology�Fall 2026
Sushmita Roy, Prakriti Garg
Goals for the next two lectures
Goals for today
Interpretability vs Explainability
1. Yuan, H., Yu, H., Gui, S. & Ji, S. Explainability in Graph Neural Networks: A Taxonomic Survey. IEEE Trans Pattern Anal Mach Intell 45, 5782–5799 (2023).
Why should we care about interpretability?
Christopher Molnar book on Interpretable Machine Learning: https://christophm.github.io/interpretable-ml-book/overview.html
Landscape of interpretability in ML models
Christopher Molnar book on Interpretable Machine Learning: https://christophm.github.io/interpretable-ml-book/overview.html
There are global, local model-specific methods too..
local
global
How to think about interpretability of ML models
Interpretable by design/Inherently interpretable
Posthoc Model Agnostic Interpretability
Model-agnostic approaches treat the model as a black box. They work directly with inputs and outputs
ML model
Common Model-Agnostic Interpretability tools
Common Model-specific Interpretability tools
https://christophm.github.io/interpretable-ml-book/overview.html
Goals for today
XAI for GNNs: Why is it hard?
XAI for GNNs: Approaches
XAI for GNNs: Approaches
Yuan, H., Yu, H., Gui, S. & Ji, S. Explainability in Graph Neural Networks: A Taxonomic Survey. IEEE Trans Pattern Anal Mach Intell 45, 5782–5799 (2023).
Instance-based or Local methods
Yuan, H., Yu, H., Gui, S. & Ji, S. Explainability in Graph Neural Networks: A Taxonomic Survey. IEEE Trans Pattern Anal Mach Intell 45, 5782–5799 (2023).
Gradient-based or feature-based methods
Perturbation-based XAI methods for GNNs
Yuan, H., Yu, H., Gui, S. & Ji, S. Explainability in Graph Neural Networks: A Taxonomic Survey. IEEE Trans Pattern Anal Mach Intell 45, 5782–5799 (2023).
Surrogate methods
Decomposition methods
Benchmarking XAI methods for graphs
Agarwal, C., Queen, O., Lakkaraju, H. & Zitnik, M. Evaluating explainability for graph neural networks. Sci Data 10, 144 (2023).
TopHat
Goals for today
GNNExplainer – Generating Explanations for GNNs
GNNExplainer learns structural and feature explanation simultaneously
Structural explanation
Feature explanation
Optimizes for masks that learn structure and feature explanation
GNNExplainer input notation
Consider a node classification task for node v�
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
G
G꜀(v)
v
v
L-hop graph
What the explanation returns
XSF = {xjF : vj ∈ GS}
xjF = [xj,t₁, …, xj,tₖ]�
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
Gₛ example
v
Mutual information (MI) objective
max over GS MI(Y ; (AS, XSF))
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
https://en.wikipedia.org/wiki/Mutual_information
From mutual information to conditional entropy
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
Fixed!
ChatGPT helped in writing intermediate equations
Why the graph search is relaxed
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
Learning the structural edge mask
Ãc(v) = Ac(v) ⊙ σ(M), M ∈ ℝn×n�
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
Learning the node feature mask
XSF = { xj ⊙ F : vj ∈ GS }
X = Z + (XS − Z) ⊙ F, ∑t Ft ≤ KF
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
Regularization
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
a smaller sum of weights favors a shorter explanation
For one mask value p:
h(p) = −p log p − (1−p) log(1−p)
h(p) is largest at 0.5 and smallest at 0 or 1. Adding entropy to minimize loss discourages weights near 0.5 which are ambiguous.
Optimization, one update at a time
Colors: blue input; orange edge mask; pink feature mask; green selected; purple prediction
Datasets used for evaluation
Explanation accuracy
Explanation subgraphs
Relating GNNExplainer to PPI interpretation
How to assess an explanation
Demo
PyGeometric Interpretability links
References