Abstract
Traditional graph kernels often struggle with continuous node attributes or scalability, while Message Passing Neural Networks (MPNNs) can lack the expressive power of sophisticated kernel functions. This paper introduces Message Passing Graph Kernels (MPGK), a framework that iteratively updates vertex kernels by aggregating information from neighboring nodes. By combining this iterative scheme with low-rank approximations via the Nyström method, MPGK achieves a scalable and highly expressive approach for graph classification and regression. Experimental results demonstrate that MPGK outperforms state-of-the-art kernels and neural networks on diverse datasets, particularly in capturing structural identity and handling continuous features.
Introduction
Graph-structured data is ubiquitous in domains ranging from drug discovery to social network analysis. A fundamental task is graph classification: predicting labels for entire graphs. Historically, this has been addressed by graph kernels, which provide a rigorous mathematical framework for similarity, or more recently by MPNNs, which offer flexibility and handle continuous data well. However, a gap remains between the formal expressiveness of kernels and the practical flexibility of message passing.
The MPGK Framework
The authors propose bridging this gap by performing message passing directly in the kernel space. The framework consists of two primary components:
-
Iterative Vertex Kernel Updates: Similar to the hidden state updates in GNNs, the similarity $k_v^{t+1}(v_1, v_2)$ between two nodes is updated by combining their current similarity with the similarity of their neighborhoods: $$k_v^{t+1}(v_1, v_2) = \alpha k_v^t(v_1, v_2) + \beta k_{N(v)}(N(v_1), N(v_2))$$
-
Neighborhood Comparison Paradigms: Two methods are used to compare neighborhoods ($k_{N(v)}$):
- R-convolution: Summing similarities between all pairs of neighbors.
- Optimal Assignment: Finding the best matching between neighbors.
To ensure scalability, the authors employ the Nyström method, a low-rank approximation technique that projects vertex representations into a lower-dimensional space. This reduces the computational complexity from $O(n^2 N^2)$ to a level feasible for large-scale datasets.
Key Insights: Structural Identity
A significant advantage of MPGK is its ability to identify structural equivalence. Unlike proximity-based embeddings that group nodes based on distance, MPGK can recognize nodes with identical roles regardless of their position in the graph.
As shown in the figure above, MPGK effectively clusters nodes by their structural roles (indicated by colors), demonstrating superior performance in capturing local topology compared to methods like struc2vec.
Experimental Results
The framework was evaluated on bioinformatics, social network, and synthetic datasets. MPGK variants (RR, RA, AR, AA) were tested, where "A" stands for Assignment and "R" for R-convolution.
Key findings include:
- Superior Accuracy: MPGK outperformed baselines on 7 out of 10 classification datasets.
- Social Media Performance: On the COLLAB dataset, MPGK achieved an 8.84% improvement over the best competitor.
- Optimal Assignment: The MPGK AA variant generally performed best, suggesting that finding "best matches" between neighborhoods is more effective than simple summation.
- Regression: On the QM9 molecular dataset, MPGK achieved lower error than specialized molecular neural networks on the majority of target properties.
Conclusion
Message Passing Graph Kernels provide a powerful synthesis of kernel methods and message passing intuitions. By generalizing the Weisfeiler-Lehman kernel and incorporating continuous attribute handling with scalable approximations, MPGK sets a new standard for graph representation learning. Future work may involve exploring more diverse neighborhood comparison functions and deeper integration with neural architectures.
Summary updated