Tree Structure for the Categorical Wasserstein Weisfeiler-Lehman Graph Kernel

Abstract

The Wasserstein Weisfeiler-Lehman~(WWL) graph kernel is a popular and efficient approach, utilized in various kernel-dependent machine learning frameworks for practical applications with graph data. It incorporates optimal transport geometry into the Weisfeiler-Lehman graph kernel, to mitigate the information loss inherent in aggregation strategies of graph kernels. While the WWL graph kernel demonstrates superior performance in many applications, it suffers a drawback in its computational complexity, i.e., at least $\mathcal{O}(n_{1} n_{2})$, where $n_{1}, n_{2}$ denote the number of vertices in the input graphs. Consequently, it hinders the practical applicability of the WWL graph kernel, especially in large-scale settings. In this paper, we propose the \emph{Tree Wasserstein Weisfeiler-Lehman}~(TWWL) algorithm, which leverages a \emph{tree structure} to scale up the exact computation of the WWL graph kernel for graph data with categorical node labels. In particular, the computational complexity of the TWWL algorithm is $\mathcal{O}(n_{1} + n_{2})$, which enables its application to large-scale graphs. Numerical experiments demonstrate that the performance of the proposed algorithm compares favorably with baseline kernels, while its computation is several orders of magnitude faster than the classic WWL graph kernel. This paves the way for applications in large-scale datasets where the WWL kernel is computationally prohibitive.

Cite

Text

Sando et al. "Tree Structure for the Categorical Wasserstein Weisfeiler-Lehman Graph Kernel." Transactions on Machine Learning Research, 2025.

Markdown

[Sando et al. "Tree Structure for the Categorical Wasserstein Weisfeiler-Lehman Graph Kernel." Transactions on Machine Learning Research, 2025.](https://mlanthology.org/tmlr/2025/sando2025tmlr-tree/)

BibTeX

@article{sando2025tmlr-tree,
  title     = {{Tree Structure for the Categorical Wasserstein Weisfeiler-Lehman Graph Kernel}},
  author    = {Sando, Keishi and Le, Tam and Hino, Hideitsu},
  journal   = {Transactions on Machine Learning Research},
  year      = {2025},
  url       = {https://mlanthology.org/tmlr/2025/sando2025tmlr-tree/}
}