Wasserstein Graph Distance Based on L₁-Approximated Tree Edit Distance between Weisfeiler-Lehman Subtrees

Zhongxi Fang, Jianming Huang, Xun Su, Hiroyuki Kasai
7/9/2022
cs.LGcs.AI

No official code found. Best implementation: Fzx-oss/WWLS (9 stars, last commit 2022-07-12).

Abstract

The Weisfeiler-Lehman (WL) test is a widely used algorithm in graph machine learning, including graph kernels, graph metrics, and graph neural networks. However, it focuses only on the consistency of the graph, which means that it is unable to detect slight structural differences. Consequently, this limits its ability to capture structural information, which also limits the performance of existing models that rely on the WL test. This limitation is particularly severe for traditional metrics defined by the WL test, which cannot precisely capture slight structural differences. In this paper, we propose a novel graph metric called the Wasserstein WL Subtree (WWLS) distance to address this problem. Our approach leverages the WL subtree as structural information for node neighborhoods and defines node metrics using the $L_1$-approximated tree edit distance ($L_1$-TED) between WL subtrees of nodes. Subsequently, we combine the Wasserstein distance and the $L_1$-TED to define the WWLS distance, which can capture slight structural differences that may be difficult to detect using conventional metrics. We demonstrate that the proposed WWLS distance outperforms baselines in both metric validation and graph classification experiments.

View on arXivView PDF

Code Implementations(1)

Fzx-oss/WWLSCommunity100%
90C, C++Jul 8, 20224 years ago

Similar Papers

Cite this paper

@article{fang2022wasserstein,
  title  = {Wasserstein Graph Distance Based on L₁-Approximated Tree Edit Distance between Weisfeiler-Lehman Subtrees},
  author = {Zhongxi Fang and Jianming Huang and Xun Su and Hiroyuki Kasai},
  year   = {2022},
  eprint = {2207.04216},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.04216v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.04216.svg)](https://codeofpaper.com/paper/2207.04216)

Discussion