Graph kernels have emerged as a foundational technique for applying machine learning to graph-structured data. In scientific domains such as chemoinformatics, social network analysis, and computer vision, data is naturally represented as graphs rather than standard flat vectors. Traditional machine learning algorithms often struggle to process this relational data directly. Graph kernels bridge this gap by defining a similarity measure between graphs, allowing kernel machines like Support Vector Machines (SVMs) to perform classification and regression tasks.
The Evolution of Graph Classification
Over the past 15 years, dozens of graph kernels have been proposed, each with distinct theoretical properties and structural biases. However, the rapid proliferation of methods has made it difficult for practitioners to identify the best approach for specific problems, particularly when dealing with large-scale graphs or continuous node attributes.
This survey by Kriege, Johansson, and Morris categorizes 15 years of research, providing a rigorous evaluation of state-of-the-art methods on diverse benchmark datasets to offer a practical, data-driven guide for selection.
Design Paradigms in Graph Kernels
The authors systematically categorize existing graph kernels into five main design paradigms based on the structural elements they compare:
- Neighborhood Aggregation: These kernels, such as the highly influential Weisfeiler-Lehman (WL) kernel, iteratively update vertex labels based on their local neighborhoods.
- Assignment and Matching: These methods find the optimal mapping between components of two graphs to determine similarity.
- Subgraph Patterns: These count occurrences of specific small structures, such as Graphlet kernels.
- Walks and Paths: These compare sequences of vertices and edges, including Random Walk and Shortest-Path kernels.
- Kernels for Continuous Labels: Specialized methods like GraphHopper and Hash Graph kernels are designed to handle real-valued node attributes.
Experimental Evaluation and Datasets
The study evaluates these kernels using a C-SVM with nested cross-validation across a wide array of datasets. These include standard chemoinformatics benchmarks (e.g., MUTAG, NCI1), bioinformatics (e.g., PROTEINS, ENZYMES), and social networks (e.g., IMDB-BINARY). To test scalability, the authors introduced larger datasets from the Tox21 Data Challenge 2014, each containing over 7,000 graphs.
Notably, the authors tested a novel approach: applying a non-linear Gaussian RBF kernel on top of the feature vectors generated by graph kernels, rather than relying solely on the standard linear dot product.
Key Insights and Results
- Expressivity vs. Accuracy: A kernel's theoretical ability to perfectly distinguish non-isomorphic graphs (completeness) does not strictly correlate with higher classification accuracy. Simpler kernels often generalize better to unseen data by avoiding overfitting.
- The "RBF Trick": Applying a Gaussian RBF kernel to simple baseline features (like basic vertex or edge label histograms) drastically improves performance, making trivial baselines competitive with sophisticated structural kernels.
- Best Overall Performers: The Weisfeiler-Lehman (WL) and WL Optimal Assignment (WL-OA) kernels provided the best balance of accuracy and computational efficiency across most datasets. They are recommended as the default starting point for discrete-label datasets.
- Continuous Attributes: For graphs with real-valued attributes, the Hash Graph kernel framework achieved state-of-the-art results, proving both accurate and fast.
Limitations and Future Work
While powerful, implicit kernels like Random Walk scale poorly for large datasets, sometimes reaching $O(n^6)$ time complexity. Furthermore, the field is rapidly shifting toward Graph Neural Networks (GNNs). A major future challenge is developing neural techniques that can learn dynamic feature representations that consistently outperform the fixed, engineered feature spaces of traditional graph kernels.
Summary updated