Abstract
Measuring similarity between graphs is a fundamental challenge in machine learning, particularly for biological and chemical applications. Traditional graph kernels often suffer from local bias or high computational complexity. This paper introduces a novel family of graph kernels based on Optimal Transport (OT) that effectively capture hierarchical and structural information. By integrating multi-resolution pyramid embeddings and subgraph-based representations with OT distances, and utilizing entropic regularization to ensure positive semidefiniteness, the authors propose three kernels: PG-OT, SG-OT, and RG-OT. Experimental results on bioinformatics and chemical datasets demonstrate that these transport-based kernels consistently outperform state-of-the-art baselines.
Introduction
Graph similarity measurement is critical for analyzing biological networks, social graphs, and chemical compounds. However, existing methods face two primary hurdles:
- Local Bias: Kernels like shortest-path or graphlet kernels often focus on local properties, neglecting global hierarchical structures.
- Computational Complexity: Isomorphism-based methods are often NP-hard and fail to scale to large datasets.
Optimal Transport (OT) offers a robust framework for measuring distances between distributions. However, applying OT to graphs is non-trivial because standard OT distances do not inherently result in a positive semidefinite (p.s.d.) matrix, which is a requirement for kernel-based algorithms like Support Vector Machines (SVMs).
Methodology
The authors propose three distinct kernels to address these challenges:
Pyramid Graph Kernel based on OT (PG-OT)
PG-OT embeds graphs into a multi-resolution pyramid structure. Unlike traditional pyramid match kernels that rely on simple histogram intersections, PG-OT uses OT distances to measure the "flow" of node embeddings between graphs at each hierarchical level. This approach accounts for the geometry of the embedding space rather than just bin overlap.
Subgraph Kernel based on OT (SG-OT)
SG-OT decomposes graphs into sets of subgraphs. It then employs OT to measure the similarity between these sets, capturing local geometric information without requiring expensive isomorphism tests.
Regularized Graph Kernel (RG-OT)
To ensure mathematical validity for kernel methods, RG-OT introduces an entropic regularization term (Sinkhorn distance). This optimization ensures the resulting kernel matrix is p.s.d., making it compatible with standard machine learning pipelines.
For node representations, the paper utilizes eigen-decomposition of the adjacency matrix, treating eigenvectors as "bags-of-vectors" in a continuous space.
Experiments and Results
The proposed kernels were evaluated on six benchmark datasets: MUTAG, NCI109, PTC-MR (molecule compounds), BZR, COX2 (chemical compounds), and KKI (brain networks). These datasets consist of undirected, unlabeled graphs.
The kernels were compared against seven baselines, including Shortest Path (SP), Random Walk (RW), and Gromov-Wasserstein (GW) kernels.
Key Findings
- Superior Accuracy: The proposed kernels outperformed baselines in nearly all scenarios.
- SG-OT Dominance: SG-OT achieved the highest accuracy on five out of six datasets, notably reaching 88.72% on MUTAG and 85.65% on BZR.
- Hierarchical Advantage: PG-OT consistently surpassed the standard Pyramid Match (PM) kernel, validating that OT-based distances provide a more meaningful metric for hierarchical structures than simple intersections.
Conclusion
This work demonstrates that Optimal Transport is a powerful tool for graph similarity when combined with hierarchical embeddings and proper regularization. By prioritizing geometry over simple intersections, the proposed kernels bridge the gap between local features and global topology. Future work may explore alternative node embedding strategies and extending these methods to handle rich node and edge attributes.
Summary updated