A Graph Kernel based on Jensen-Shannon Representation

Lu Bai, Zhihong Zhang, Edwin R. HancockWhite 2015

Introduction

Graph classification is a fundamental task in machine learning, with applications ranging from bioinformatics to computer vision. Most state-of-the-art approaches utilize R-convolution kernels, which decompose graphs into substructures like walks or subtrees and count isomorphic instances. However, these methods often treat graphs as a "bag-of-substructures," ignoring the relative spatial arrangement of these components. This limitation hinders their ability to capture precise structural correspondences.

This paper introduces the Jensen-Shannon Matching Kernel (JSMK), a novel framework that explicitly aligns vertices between graphs using information-theoretic signatures. By leveraging Jensen-Shannon (JS) divergence, the proposed kernel establishes structural mappings that go beyond simple isomorphism counts.

Methodology: The Jensen-Shannon Matching Kernel

The JSMK framework operates by creating "vectorial signatures" for each vertex, describing its role within the local and global topology.

1. Depth-Based (DB) Representation

For each vertex, the authors compute the Shannon entropy of its $h$-layer expansion subgraphs. This results in a vector, $DB^h$, which characterizes the "information flow" or complexity of the vertex's neighborhood at varying depths.

2. Jensen-Shannon (JS) Representation

To capture richer contextual information, the Jensen-Shannon Divergence (JSD) is calculated between a vertex's DB representation and those of its neighbors within an $m$-sphere (neighbors at distance $m$). This produces a signature $J^{(m;h)}$ that encapsulates how a vertex relates to its surrounding structural context.

3. Vertex Alignment and Kernel Calculation

Similarity between two graphs is determined by aligning their vertices. An affinity matrix is constructed based on the Euclidean distance between JS signatures. A matching strategy—such as the Hungarian algorithm or a greedy randomized approach—finds a one-to-one correspondence between vertex sets. The final kernel value is derived from these matched pairs across multiple scales of $m$, effectively functioning as an aligned subgraph kernel.

Experimental Evaluation

The JSMK was evaluated using three datasets from the SHREC 3D Shape database: BAR31, BSPHERE31, and GEOD31. These datasets represent graphs mapped via barycenter distance, circumscribing sphere distance, and average geodesic distance, respectively.

Performance and Sensitivity

The JSMK consistently outperformed standard benchmarks, including the Weisfeiler-Lehman subtree kernel (WLSK) and the Shortest Path graph kernel (SPGK). On the BAR31 dataset, JSMK achieved a peak accuracy of 75.93%.

Figure 5: Classification accuracy increases as the depth (h) and the maximum sphere distance (M) increase, allowing the kernel to capture more complex structural information.

As shown in the figure above, accuracy is sensitive to the parameters $h$ (DB representation depth) and $M$ (maximum JS sphere distance). Increasing these values allows the kernel to incorporate higher-dimensional structural data, leading to better discriminative power across all three datasets.

Efficiency

While the vertex alignment process involves solving a matching problem, the JSMK remains computationally feasible. The kernel operates in polynomial time, specifically scaling cubically ($O(n^3)$) with the number of vertices $n$.

Figure 6: Runtime analysis demonstrates that the kernel scales polynomially with graph size (x), layer depth (h), sphere distance (M), and dataset size (N).

The runtime analysis confirms that while the complexity increases with graph size, the growth remains manageable for moderate-sized graphs, making it a practical choice for real-world applications.

Conclusion

The Jensen-Shannon Matching Kernel represents a significant step forward in graph similarity measurement. By moving beyond the "bag-of-substructures" paradigm and utilizing information theory for vertex alignment, it provides a more nuanced understanding of graph topology. Future work may address scalability for massive networks and the extension of these signatures to directed graphs.

Summary updated

BibTeX
@inproceedings{bai2015graph,
  author = {Lu Bai and Zhihong Zhang and Edwin R. Hancock},
  title = {{A Graph Kernel based on Jensen-Shannon Representation}},
  booktitle = {White},
  year = {2015},
}
Figure