KerGNNs: Interpretable Graph Neural Networks with Graph Kernels
Abstract
Graph kernels are historically the most widely-used technique for graph classification tasks. However, these methods suffer from limited performance because of the hand-crafted combinatorial features of graphs. In recent years, graph neural networks (GNNs) have become the state-of-the-art method in downstream graph-related tasks due to their superior performance. Most GNNs are based on Message Passing Neural Network (MPNN) frameworks. However, recent studies show that MPNNs can not exceed the power of the Weisfeiler-Lehman (WL) algorithm in graph isomorphism test. To address the limitations of existing graph kernel and GNN methods, in this paper, we propose a novel GNN framework, termed Kernel Graph Neural Networks (KerGNNs), which integrates graph kernels into the message passing process of GNNs. Inspired by convolution filters in convolutional neural networks (CNNs), KerGNNs adopt trainable hidden graphs as graph filters which are combined with subgraphs to update node embeddings using graph kernels. In addition, we show that MPNNs can be viewed as special cases of KerGNNs. We apply KerGNNs to multiple graph-related tasks and use cross-validation to make fair comparisons with benchmarks. We show that our method achieves competitive performance compared with existing state-of-the-art methods, demonstrating the potential to increase the representation ability of GNNs. We also show that the trained graph filters in KerGNNs can reveal the local graph structures of the dataset, which significantly improves the model interpretability compared with conventional GNN models.
Benchmark Results
Tested on 3 datasets 4 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
TU Dortmund
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | WL-MLP | 0.9954 | |
| 2 | GIN | 0.9934 | |
| 3 | GCN | 0.9727 | |
| 28 | PK | 0.8450
±0.0010 best reported | best at pub: Propagation Kernels (2014) |
| 36 | GNTK | 0.8420
±0.0150 best reported | best at pub: Graph Neural Tangent Kernel: Fusing Graph Neural Networks with Graph Kernels (NeurIPS 2019) best today: Multi-Scale Harmonic Encoding for Feature-Wise Graph Message Passing (2025) Difference within reported uncertainty; not counted as underperformance. |
| 55 | Powerful GNN | 0.8340
±0.0180 | This paper |
| 83 | KerGNN-2-DRW | 0.8280
±0.0180 | This paper |
| 131 | GraphSAGE | 0.8200
±0.0100 | |
| 193 | KerGNN-3 | 0.8050
±0.0190 | This paper |
| 248 | WL-sub | 0.7950
±0.0330 | This paper |
| 257 | GCKN | 0.7920
±0.0120 | prev best: Prototypical Graph Contrastive Learning (2021) |
| 383 | KerGNN-2 | 0.7630
±0.0260 | This paper |
| 389 | 1-2-3 GNN | 0.7620 best reported | best at pub: Provably Powerful Graph Networks (NeurIPS 2019) |
| 421 | SP | 0.7450
±0.0030 best reported | best at pub: On Valid Optimal Assignment Kernels and Applications to Graph Classification (NeurIPS 2016) |
| 431 | KerGNN-1 | 0.7430
±0.0220 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | WL-MLP | 0.9792 | |
| 2 | MSH-GNN | 0.9640
±0.0070 | |
| 3 | CoCN | 0.8722
±0.0013 | |
| 23 | GCN | 0.8260
±0.0220 | |
| 151 | MLP | 0.7920
±0.0240 | |
| 193 | WL-sub | 0.7750
±0.0240 | This paper |
| 197 | PK | 0.7730
±0.0240 | This paper |
| 245 | Powerful GNN | 0.7540
±0.0140 | This paper |
| 251 | KerGNN-2-DRW | 0.7510
±0.0230 | This paper |
| 260 | GCKN | 0.7430
±0.0280 | prev best: Prototypical Graph Contrastive Learning (2021) |
| 279 | KerGNN-2 | 0.7270
±0.0210 | This paper |
| 291 | KerGNN-3 | 0.7110
±0.0200 | This paper |
| 297 | KerGNN-1 | 0.7050
±0.0160 | This paper |
| 332 | SP | 0.5880
±0.0020 best reported | best at pub: On Valid Optimal Assignment Kernels and Applications to Graph Classification (NeurIPS 2016) Difference within reported uncertainty; not counted as underperformance. |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GMN | 0.7866 | |
| 2 | MemGNN | 0.7550 | |
| 3 | TFGW SP | 0.7510
±0.0500 | |
| 17 | GatedGCN | 0.7000
±0.0494 | |
| 26 | GraphSAGE | 0.6817
±0.0545 | |
| 74 | KerGNN-1 | 0.6210
±0.0550 | This paper |
| 84 | PK | 0.6100
±0.0670 | This paper |
| 103 | KerGNN-2-DRW | 0.5950
±0.0450 | This paper |
| 106 | GCKN | 0.5930
±0.0560 | This paper |
| 124 | MLP | 0.5583
±0.0352 | |
| 133 | KerGNN-2 | 0.5500
±0.0500 | This paper |
| 136 | Powerful GNN | 0.5480
±0.0550 | This paper |
| 139 | KerGNN-3 | 0.5410
±0.0430 | This paper |
| 154 | WL-sub | 0.5120
±0.0530 | This paper |
| 163 | GNTK | 0.4820
±0.0240 | This paper |
| 179 | SP | 0.4260
±0.0160 best reported | best at pub: On Valid Optimal Assignment Kernels and Applications to Graph Classification (NeurIPS 2016) |
