Abstract
We introduce a novel kernel that upgrades the Weisfeiler-Lehman and other graph kernels to effectively exploit high-dimensional and continuous vertex attributes. Graphs are first decomposed into subgraphs. Vertices of the subgraphs are then compared by a kernel that combines the similarity of their labels and the similarity of their structural role, using a suitable vertex invariant. By changing this invariant we obtain a family of graph kernels which includes generalizations of Weisfeiler-Lehman, NSPDK, and propagation kernels. We demonstrate empirically that these kernels obtain state-of-the-art results on relational data sets.
Introduction
Traditional graph kernels have primarily been designed for symbolic structures where nodes and edges possess discrete labels. However, modern relational data—ranging from molecular representations with pixel intensity vectors to natural language processing with high-dimensional word embeddings—often contains continuous attributes. Existing methods for handling such data, such as Random Walk or Shortest Path kernels, frequently suffer from high computational complexity or structural issues like "tottering."
To address these limitations, we propose the Graph Invariant Kernels (GIK) framework. GIK is designed to respect both the structural role of a vertex (its position within the graph topology) and its intrinsic continuous attributes without sacrificing computational efficiency.
Methodology
The core of the GIK framework involves decomposing a graph into subgraphs and comparing vertices based on two primary components: attribute similarity ($k_{ATTR}$) and structural weighting ($w$). Attribute similarity is typically handled by standard kernels, such as the RBF kernel, to compare raw continuous features. Structural weighting is determined by Vertex Invariants—functions that characterize a vertex's role in a way that is invariant to graph isomorphism.
As shown in Figure 1, we explore several invariant types, including:
- Weisfeiler-Lehman (WL) Coloring: Captures local neighborhood structures through iterative refinement.
- Propagation Kernels: Utilizes diffusion to spread information across the graph.
- Spectral Coloring: A novel approach using eigenvalues and eigenvectors of the Graph Laplacian to reveal global symmetries that local methods might overlook.
Experimental Setup
GIK was evaluated across a diverse set of benchmarks to test its versatility:
- Bioinformatics:
PROTEINSandENZYMES_SYMM(protein structures). - Synthetic Data:
SYNTHETIC_NEW(random graphs with scalar attributes). - Hybrid Chemistry/CV:
FRANKENSTEIN, where molecular atom symbols are replaced with MNIST digit images, requiring the kernel to process high-dimensional pixel data. - Natural Language Processing:
QC(Question Classification), where vertices represent tokens as 300-dimensional word vectors.
Results and Discussion
Empirical results demonstrate that GIK variants consistently achieve state-of-the-art performance. A key finding is the "continuous upgrade" effect: incorporating continuous attributes significantly improves classification accuracy across all datasets compared to using discrete labels alone.
As detailed in Figure 3, GIK variants outperformed the previous leading method, GraphHopper, in nearly every category. For instance, in the QC dataset, the inclusion of continuous word vectors boosted accuracy to over 94%. On the FRANKENSTEIN dataset, GIK effectively handled high-dimensional pixel data to identify underlying molecular structures, significantly outperforming baselines.
Furthermore, the study suggests that local invariants (like LWL) often perform better than global ones because they are less prone to overfitting and better capture meaningful local correlations. While spectral methods introduce higher computational costs due to eigen-decompositions, the overall runtime of GIK remains competitive and often faster than GraphHopper on large-scale datasets.
Conclusion
Graph Invariant Kernels provide a robust and flexible framework for graph classification that excels in the presence of continuous attributes. By bridging structural roles and high-dimensional features, GIK sets a new standard for relational data analysis. Future work will focus on improving the scalability of spectral invariants through dimensionality reduction and sketching techniques to accommodate web-scale graphs.
Summary updated