Abstract
Among the data structures commonly used in machine learning, graphs are arguably one of the most general. Graphs allow the modelling of complex objects, each of which can be annotated by metadata. Nonetheless, seemingly simple questions, such as determining whether two graphs are identical or whether one graph is contained in another graph, are remarkably hard to solve in practice. Machine learning methods operating on graphs must therefore grapple with the need to balance computational tractability with the ability to leverage as much of the information conveyed by each graph as possible. This monograph provides a review of existing graph kernels, their applications, software plus data resources, and an empirical comparison of state-of-the-art graph kernels. Finally, the authors outline the future trends and open challenges for graph kernels.
Introduction
Graphs serve as a fundamental representation for complex objects, ranging from chemical compounds to social networks. However, the inherent flexibility of graphs comes with significant computational challenges. Determining whether two graphs are identical (the graph isomorphism problem) or whether one is a subgraph of another is notoriously difficult. To bridge the gap between the rich topological information of graphs and the requirements of standard machine learning algorithms, researchers have turned to graph kernels.
Graph kernels implicitly embed graphs into high-dimensional feature spaces, allowing practitioners to apply kernel-based methods like Support Vector Machines (SVMs) for classification and regression. This paper provides a comprehensive review of the field, offering a taxonomy of existing kernels and a rigorous empirical evaluation of their performance across 41 benchmark datasets.
A Taxonomy of Graph Kernels
The landscape of graph kernels can be broadly categorized into three primary families based on how they decompose and compare graph structures:
1. Bag of Structures
These kernels decompose a graph into a "bag" of basic components. By counting the occurrences of specific sub-structures, they create a feature vector for comparison. Examples include Graphlet kernels, which count small, non-isomorphic subgraphs, and Shortest-Path kernels, which compare the lengths of shortest paths between all pairs of nodes.
2. Information Propagation
These methods focus on how information or "flow" moves across the graph's topology. Random Walk kernels measure similarity based on the number of matching walks between two graphs, while Spectral kernels utilize the eigenvalues and eigenvectors of the graph Laplacian to capture global structural properties.
3. Iterative Label Refinement
Currently the most successful modern family, these kernels use iterative schemes to update node labels based on their neighborhood. The Weisfeiler-Lehman (WL) kernel is the archetype here, effectively "coloring" the graph to capture multi-scale local topology. This family is particularly efficient, often achieving linear complexity relative to the number of edges.
Large-Scale Empirical Analysis
To move beyond theoretical claims, the authors conducted a massive empirical study involving 11 representative kernels across 41 benchmark datasets from the TUDataset repository. These datasets span several domains, including small molecules (MUTAG, NCI1), bioinformatics (PROTEINS, ENZYMES), and social networks (Reddit, IMDB).
Key Findings and the "WL Supremacy"
The study yielded several critical insights into the current state of graph-based machine learning:
- The Dominance of WL-based Kernels: Variants of the Weisfeiler-Lehman algorithm, specifically the WL-Optimal Assignment (WL-OA) and Message Passing (MP) kernels, emerged as the most consistent winners. They achieved the best results on 21 of the 41 datasets, proving that capturing hierarchical neighborhood information is essential for robustness.
- The "Easy Dataset" Trap: Perhaps the most striking revelation was the performance of simple baselines. In 16 out of 41 datasets, a "Node Histogram" kernel—which ignores all edge connectivity and only looks at node label distributions—performed within 10% of the most sophisticated structural kernels. This suggests that many popular benchmarks may not actually require complex topological analysis to solve.
- Scalability and Complexity: While kernels like the Subgraph Matching kernel offer deep structural insights, their high computational complexity (up to $O(n^6)$) makes them unusable for large-scale data. In contrast, WL-based methods maintain a linear complexity $O(hm)$, making them the only viable choice for large graphs.
The Connection to Graph Neural Networks (GNNs)
The paper highlights an important theoretical bridge: modern GNNs are essentially "learnable" versions of the WL kernel. While GNNs can adapt their features to specific tasks through backpropagation, the WL kernel remains a powerful, parameter-free baseline that often matches or exceeds GNN performance on smaller datasets where data for training complex neural networks is scarce.
Future Challenges and Limitations
The authors identify several hurdles for the next generation of graph research:
- Benchmark Quality: There is an urgent need for "harder" datasets where simple node distributions are insufficient for high accuracy. Several datasets, like AIDS, are effectively "solved" and should be retired from comparative studies.
- Continuous Attributes: Most current kernels excel at categorical labels but struggle to integrate continuous vectorial data (e.g., sensor readings or 3D coordinates) without significant loss of information.
- Hybridization: Future work should focus on combining the mathematical rigor and guarantees of graph kernels with the flexible, end-to-end learning capabilities of GNNs.
Conclusion
Graph kernels remain a cornerstone of graph-based machine learning, providing a vital tool for classification and regression on networked data. While the field has matured, the "WL supremacy" and the limitations of current benchmarks suggest that the community must look toward more complex, attribute-rich data to drive the next wave of innovation.
Summary updated