Abstract
Graph kernels are essential for machine learning on structured data, yet they often struggle to balance topological expressivity with computational efficiency. This paper introduces the Depth-Based (DB) graph kernel, which characterizes vertices through an "onion-like" representation of expanding neighborhood layers. By computing the Shannon entropy of these layers using a fast random-walk-based approach, the kernel captures the structural personality of nodes. Our evaluation on computer vision benchmarks shows that the DB kernel outperforms state-of-the-art methods in both classification accuracy and cluster separation.
Introduction
Representing and comparing graphs is a fundamental challenge in machine learning. Existing graph kernels typically fall into two categories: local methods that focus on small sub-structures (e.g., graphlets) and global methods that capture the overall topology. Local methods often miss broader context, while global methods frequently suffer from high computational complexity, such as $O(n^5)$, making them impractical for large datasets.
The proposed Depth-Based (DB) kernel aims to bridge this gap by providing a representation that captures how a vertex relates to its increasingly distant neighbors without the prohibitive overhead of previous depth-based approaches.
Methodology
The construction of the DB kernel involves three primary stages:
- Efficient Entropy Calculation: Traditional graph entropy measures often require $O(n^3)$ matrix inversions. The authors utilize a Shannon entropy measure based on the steady-state of random walks, which simplifies to a function of vertex degrees, reducing the complexity to $O(n^2)$.
- Depth-Based "Onion" Representation: For each vertex, an $h$-layer representation is constructed by considering subgraphs at increasing distances (1 to $h$ steps). The Shannon entropy is calculated for each layer, resulting in a high-dimensional vector that serves as a structural signature for the vertex.
- Vertex Matching: Graphs are compared by finding an optimal one-to-one matching between their vertex entropy vectors using the Hungarian algorithm. The final kernel value is derived from the count of these matched pairs.
The total complexity of this pipeline is $O(hn^3)$, where $n$ is the number of vertices and $h$ is the maximum depth.
Experimental Evaluation
The DB kernel was tested on several standard benchmarks, including 3D shape graphs (BAR31, BSPHERE31, GEOD31) and image graphs (COIL5).
Key Results
The DB kernel consistently achieved superior classification accuracy using Support Vector Machines (SVM). On the COIL5 dataset, it reached 74.22% accuracy, significantly higher than the Shortest Path kernel (69.97%) and the Weisfeiler-Lehman kernel (33.16%).
Furthermore, visualization via Kernel Principal Component Analysis (kPCA) demonstrated the kernel's ability to group similar classes effectively.
As illustrated in the figure above, the DB kernel produces cleaner, more separable clusters than its competitors, which is further supported by higher Rand Index scores in clustering tasks.
Conclusion
The Depth-Based graph kernel offers a powerful way to capture structural information by analyzing the evolution of complexity around vertices. By leveraging efficient entropy calculations and explicit vertex matching, it achieves high discriminative power while maintaining computational feasibility. Future work will focus on reducing the bottleneck of the Hungarian algorithm and extending the kernel to handle attributed graphs with continuous features.
Summary updated