From GNNs to Trees: Multi-Granular Interpretability for Graph Neural Networks

Jie Yang, Yuwen Wang, Kaixuan Chen, Tongya Zheng, Yihe Zhou, Zhenbang Xiao, Ji Cao, Mingli Song, Shunyu Liu

Abstract

Graph Neural Networks (GNNs) are powerful tools for graph classification but suffer from a lack of transparency. Existing interpretability methods often focus exclusively on local subgraphs or fixed-scale global structures, failing to capture the hierarchical nature of real-world graphs like proteins. We propose the Tree-like Interpretable Framework (TIF), which restructures GNNs into hierarchical trees. TIF utilizes hierarchical coarsening, learnable perturbations, and adaptive routing to provide multi-granular explanations. Our evaluation shows that TIF maintains competitive classification performance while providing intrinsic, stable, and multi-level insights into model decision-making.

Introduction

Graph Neural Networks (GNNs) have become the standard for analyzing complex relational data. However, their "black box" nature limits their deployment in high-stakes fields like drug discovery. Current "explainers" typically fall into two categories: local methods that identify small, influential subgraphs, and global methods that coarsen the entire graph to a single simplified level.

Neither approach captures the multi-scale hierarchy inherent in complex systems. For instance, a protein's function is determined by its functional groups (fine-grained), amino acids (medium-grained), and overall domains (coarse-grained). The Tree-like Interpretable Framework (TIF) addresses this by allowing models to "zoom" through different levels of granularity, as illustrated in Figure 1.

Comparison of interpretability approaches: (a) Local focus, (b) Global coarsening, and (c) the proposed multi-granular TIF approach.

Methodology: The TIF Framework

TIF replaces the standard flat GNN architecture with a tree-based structure where each node represents an iterative cycle of graph processing. The framework is built on three core modules:

  1. Hierarchical Graph Coarsening Module: This module iteratively clusters nodes to simplify the graph. The root of the tree contains the original graph, while deeper branches represent increasingly coarsened versions.
  2. Learnable Graph Perturbation Module: To ensure the tree explores a diverse range of structural representations, this module introduces learnable "nudges" during the clustering process. This prevents redundancy and helps the model capture long-range dependencies that might be lost in a single coarsening path.
  3. Adaptive Routing Module: Acting as the decision-maker, an MLP-based router dynamically selects the most informative path through the tree for a given input. The final classification is derived from the leaf node of this path, making the path itself an intrinsic, multi-level explanation.
The TIF architecture, highlighting the (a) Hierarchical Graph Coarsening, (b) Learnable Graph Perturbation, and (c) Adaptive Routing modules.

Experimental Evaluation

The researchers evaluated TIF across a variety of benchmarks, including protein datasets (ENZYMES, PROTEINS, D&D), molecular datasets (MUTAG), and social networks (COLLAB). They also introduced a new benchmark, MultipleCycle, designed to test a model's ability to recognize nested structures at different scales.

Key Results

  • Performance: TIF achieved competitive or superior accuracy compared to state-of-the-art GNNs. Notably, on the MUTAG dataset, TIF significantly outperformed several baselines, demonstrating that its hierarchical structure does not come at the cost of predictive power.
  • Interpretability: Using "Explanation Accuracy" metrics, TIF outperformed post-hoc explainers like GNNExplainer and SubgraphX. It consistently identified ground-truth structures in synthetic data more reliably.
  • Stability: A key advantage of TIF is the stability of its decision paths. Similar inputs tend to follow the same routing paths, providing a consistent and trustworthy reasoning process.

Conclusion

TIF represents a significant shift toward intrinsic, multi-granular interpretability in GNNs. By transforming the classification process into a hierarchical tree search, it provides a transparent "reasoning path" that aligns more closely with human hierarchical perception. While scaling to massive graphs with millions of nodes remains a computational challenge, TIF offers a robust framework for understanding complex graph-based decisions in scientific and social domains.

Summary updated

BibTeX
@inproceedings{yang2025from,
  author = {Jie Yang and Yuwen Wang and Kaixuan Chen and Tongya Zheng and Yihe Zhou and Zhenbang Xiao and Ji Cao and Mingli Song and Shunyu Liu},
  title = {{From GNNs to Trees: Multi-Granular Interpretability for Graph Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=KEUPk0wXXe},
}
Figure