Introduction
In domains such as drug discovery and protein analysis, data is inherently structured as graphs. However, traditional machine learning algorithms typically require vector inputs. Comparing two graphs is a non-trivial task; determining if two graphs are identical—the graph isomorphism problem—has no known polynomial-time solution. Graph kernels address this by decomposing complex graphs into smaller substructures (e.g., walks, paths, or subtrees) and computing similarity scores in a high-dimensional feature space without explicit vector representation.
Taxonomy of Graph Kernels
The paper categorizes two decades of graph kernel research into four primary design paradigms:
- R-convolution Kernels: These decompose graphs into sets of substructures like random walks or shortest paths, summing the similarities between these components.
- Neighborhood Aggregation: Inspired by the Weisfeiler-Lehman (WL) test, these kernels iteratively update node labels based on their local neighborhood, capturing increasingly complex hierarchical structures.
- Assignment Kernels: These find an optimal matching between the components of two graphs rather than simply summing them.
- Frameworks: Meta-algorithms like the Core Framework or Deep Graph Kernels use techniques like k-core decomposition or NLP-inspired embeddings to enhance existing kernels.
Most modern Graph Neural Networks (GNNs) can be viewed as differentiable extensions of neighborhood aggregation kernels.
Benchmarking and Key Insights
The authors conducted an extensive benchmark comparing 20 kernels and 4 GNNs across 17 datasets in bioinformatics, social networks, and synthetic domains.
- Kernels vs. GNNs: For graphs with discrete labels (e.g., chemical elements), WL-based kernels often outperform GNNs. GNNs generally perform better on unlabeled graphs or large-scale social network data.
- The Power of WL: The Weisfeiler-Lehman subtree kernel remains a gold standard due to its efficiency and accuracy. Variants like WL-Optimal Assignment (WL-OA) were among the most consistent top performers.
- Expressiveness and Efficiency: There is a trade-off between a kernel's ability to distinguish non-isomorphic graphs and its computational cost. Successful kernels target specific patterns like shortest paths to maintain tractability.
Limitations and Future Directions
Despite their success, graph kernels face two major challenges:
- Continuous Attributes: Handling nodes with real-valued vectors (e.g., physical measurements) remains difficult. Current methods often lose information or suffer from high computational complexity.
- Scalability: While GNNs scale linearly with edges, many kernels scale quadratically with the number of graphs, creating a "scalability wall" for large datasets.
The survey concludes that the future of the field likely lies in assignment-based kernels, which offer more nuanced structural comparisons than traditional summation methods.
Summary updated