Abstract
This paper introduces a highly efficient graph kernel based on Jensen-Shannon divergence. By representing graphs as nested subgraphs expanding from a central centroid vertex and comparing their entropy signatures, the proposed method achieves significant computational speedups. It reduces worst-case complexity from $O(n^6)$ to $O(n^3 + mn)$, enabling scalability to graphs with thousands of vertices while maintaining competitive classification accuracy.
Introduction
In machine learning on graphs, "graph kernels" are essential for measuring similarity between complex structures. Most existing kernels follow the R-convolution framework, breaking graphs into small components like walks or paths for comparison. However, these methods face a "scalability wall." Capturing global topology with larger substructures often leads to exponential computational costs; for instance, the classic "all-subgraphs" kernel is NP-hard. Even relatively efficient kernels struggle with graphs containing hundreds or thousands of vertices, often requiring days of computation or prohibitive amounts of memory. This research aims to bridge this gap by creating a kernel that is both structurally descriptive and computationally fast.
Methodology
The proposed Fast Jensen-Shannon Subgraph Kernel is built on three main pillars:
- The Centroid Vertex: Instead of comparing every possible subgraph, the method identifies a single "anchor" for each graph called the centroid. This is the vertex with the minimum variance in its shortest path lengths to all other vertices, acting as a stable representative center of the graph's topology.
- Depth-Based Representation: Starting from the centroid, the authors grow a family of subgraphs ($K$-layer expansions) by gradually increasing the allowed path distance $K$. This creates a nested view of the graph, capturing structural evolution from the center outward.
- Information Theoretic Comparison: Rather than checking for exact isomorphism between subgraphs, the method calculates the entropy (either von Neumann or Shannon entropy) of each layer. It then uses the Jensen-Shannon (JS) divergence to measure the distance between these entropy signatures.
By transforming structural comparison into a comparison of entropy distributions, the kernel bypasses the expensive combinatorial matching required by traditional methods.
Datasets
The researchers evaluated the kernel on two distinct types of data:
- Bioinformatics: Standard benchmarks including MUTAG (chemical compounds), D&D (large protein structures), ENZYMES, and PPIs (protein-protein interaction networks). The D&D dataset is particularly challenging due to its scale.
- Computer Vision: Graphs extracted from images in the ALOI, MOVI-CMU, and COIL datasets, representing 3D objects viewed from different angles via Delaunay triangulations.
Key Insights
- Entropy as a Structural Proxy: The core innovation is that "intrinsic complexity" (entropy) is often a sufficient proxy for structural similarity in classification tasks, removing the need for exact edge matching.
- Centroid Stability: Anchoring the decomposition to a centroid ensures the representation is robust to noise, as the centroid remains relatively stable across different samples.
- Quadratic Entropy Approximation: To handle massive datasets, the authors utilize a quadratic approximation for von Neumann entropy ($O(n^2)$), avoiding the $O(n^3)$ cost of full eigenvalue decomposition.
- JS Divergence as a Kernel: Because JS divergence is naturally negative definite, it can be easily transformed into a valid Positive Semi-Definite (PSD) kernel suitable for Support Vector Machines (SVMs) using the diffusion kernel trick.
Key Results
The most significant result is the massive computational speedup without sacrificing accuracy:
- Efficiency on Large Data: On the D&D protein dataset, the proposed JSSS kernel took only 2 minutes and 49 seconds. For comparison, the Random Walk Graph Kernel (RWGK) required 48 days, and the Weisfeiler-Lehman (WL) kernel took 11 minutes.
- Competitive Accuracy: On the PPIs dataset, the JSSS kernel achieved 80.01% accuracy, outperforming the state-of-the-art WL kernel (75.90%) and the Shortest Path kernel (70.93%).
- Scalability: On image datasets like ALOI, where graphs average 1,200 vertices, traditional algebraic methods often failed or produced infinite values, while the JS kernel maintained high performance (~90% accuracy).
Limitations and Future Work
While effective, the kernel's performance can be sensitive to the choice of entropy measure; von Neumann entropy is more sensitive to graph size than Shannon entropy. Additionally, the centroid's stability may decrease in extremely sparse or "stringy" graphs (like long chains). Future research may explore non-extensive entropy measures or more complex methods for combining depth-based layers to further refine discriminative power.
Summary updated