TL;DR
Researchers at ETH Zurich have developed DT+GNN, a Graph Neural Network architecture that replaces standard "black-box" components with interpretable decision trees. Unlike post-hoc explainers that merely highlight important inputs, DT+GNN allows you to inspect the model's logic at every step, revealing that some complex graph problems are actually solved by surprisingly simple counting rules.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are incredibly powerful for tasks like drug discovery or social network analysis, but they are notoriously opaque. While existing tools like GNNExplainer can tell you which nodes or edges were important for a prediction (feature attribution), they can’t tell you how the model combined that information to reach a conclusion.
This lack of transparency is a dealbreaker in high-stakes fields like medicine. The authors argue that we need "fully explainable" models where the decision-making process itself is human-readable, rather than just relying on heatmaps generated after the fact.
Methods
The authors achieve full explainability through a three-step distillation process:
-
Differentiable Categorical Layers: Standard GNNs use continuous vectors (embeddings) that are impossible for humans to parse. The authors first build a version called Diff-DT+GNN that uses a categorical state space. Instead of a vector of numbers, each node exists in a discrete "state" (e.g., State 1, State 2). They use the Gumbel-Softmax trick to keep this categorical setup differentiable so the model can still be trained with standard gradient descent.
Figure 2: A Diff-DT+GNN layer. It follows normal message passing layers to a large extend, except it computes a categorical state in the end, instead of a real-valued embedding vector. -
Decision Tree Distillation: Once the model is trained, they replace the internal Multi-Layer Perceptrons (MLPs) with Decision Trees. Because the states are categorical, this becomes a simple classification problem for the trees. The resulting DT+GNN layer uses three types of branching logic: checking a node's own state, counting neighbors in a specific state, or comparing counts between two different neighbor states.
Figure 3: A DT+GNN layer. We replace the UPDATE of a Diff-DT+GNN layer with a decision tree. DT+GNN receive additional ∆features to compare two features. -
Pruning for Interpretability: To prevent the trees from becoming massive and unreadable, the authors introduce a novel pruning method. They offer both "lossless" pruning (which maintains exact accuracy) and "lossy" pruning (which trades a tiny bit of accuracy for significantly smaller, simpler trees).
Datasets
The model was evaluated on a mix of synthetic and real-world benchmarks:
- Synthetic (Verification): Infection, Negative Evidence, BA-Shapes, Tree-Cycle, Tree-Grid, and BA-2Motifs. These are used to verify if the model's "explanations" match the known ground-truth rules of the dataset.
- Real-World (Performance): MUTAG (molecules), BBBP (blood-brain barrier), Mutagenicity, PROTEINS, and social networks like REDDIT-BINARY, IMDB-BINARY, and COLLAB.
Key Insights and Ideas
-
The "Counting" Revelation: On the PROTEINS dataset, DT+GNN revealed that the model doesn't actually care about how amino acids are connected. It simply counts the occurrences of specific chemical structures. If the count is below a certain threshold, it classifies the protein as an enzyme. This confirms previous suspicions that simple statistics can outperform complex GNNs on certain benchmarks.
Figure 1: Final layer decision rule of DT+GNN for the PROTEINS dataset. This layer counts how many nodes representing certain chemical struc- tures (states 2 and 3) the protein has. If there are not too many, the protein is an enzyme. -
Exposing Dataset Bias: In the BA-2Motifs dataset (where graphs contain either a "house" or a "cycle"), DT+GNN showed that the model only learns to recognize the house. If it doesn't see a house, it defaults to "cycle" via a bias term. This highlights how models can "cheat" by using process-of-elimination rather than truly understanding both classes.
- Stone Age Inspiration: The architecture is inspired by the "Stone Age" model of distributed computing, which assumes nodes have very limited memory and can only count neighbors up to a small number (e.g., "one, two, many"). This simplicity is exactly what makes the model interpretable.
Key Results
- Competitive Accuracy: Despite the move from continuous embeddings to discrete trees, DT+GNN performs virtually identically to the state-of-the-art Graph Isomorphism Network (GIN) across all tested datasets.
- Massive Pruning: The proposed pruning methods reduced the number of nodes in the decision trees by an average of 62% for synthetic datasets and a staggering 84% for real-world datasets without losing accuracy.
- Transparency Tool: The authors released an interactive web tool that lets users click through the layers and see exactly which decision path a specific node took.
Limitations and Future Work
The primary limitation is high-dimensional input features. In datasets like Cora or OGB-ArXiv, where nodes have hundreds of complex features, it is difficult to fit a simple decision tree to the initial embedding MLP. The authors suggest that future work could involve using dimensionality reduction (like PCA) or clustering to pre-process these features into a more "tree-friendly" categorical format before feeding them into the GNN.
Summary updated