Wasserstein Graph Distance Based on L1-Approximated Tree Edit Distance between Weisfeiler-Lehman Subtrees
Zhongxi Fang, Jianming Huang, Xun Su, Hiroyuki Kasai
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TopoFormer: Topology Meets Attention for Graph Learning cites A New Perspective on "How Graph Neural Networks Go Beyond Weisfeiler-Lehman?"
- TopoFormer: Topology Meets Attention for Graph Learning cites A Fair Comparison of Graph Neural Networks for Graph Classification
- TopoFormer: Topology Meets Attention for Graph Learning cites TopER: Topological Embeddings in Graph Representation Learning
- TopER: Topological Embeddings in Graph Representation Learning cites A New Perspective on "How Graph Neural Networks Go Beyond Weisfeiler-Lehman?"
- TopER: Topological Embeddings in Graph Representation Learning cites A Fair Comparison of Graph Neural Networks for Graph Classification
Cited by top-tier papers2
- TopoFormer: Topology Meets Attention for Graph LearningMd Joshem Uddin, Astrit Tola, Cuneyt Gurcan Akcora, Baris CoskunuzerICLR 2026 · 2 citations
- TopER: Topological Embeddings in Graph Representation LearningAstrit Tola, Funmilola Mary Taiwo, Cuneyt Gurcan Akcora, Baris CoskunuzerNeurIPS 2025 · 1 citation
Builds on3
- A Fair Comparison of Graph Neural Networks for Graph ClassificationFederico Errica, Marco Podda, Davide Bacciu, Alessio MicheliICLR 2020 · 508 citations
- Weisfeiler and Lehman Go Topological: Message Passing Simplicial NetworksCristian Bodnar, Fabrizio Frasca, Yuguang Wang, Nina Otter et al.ICML 2021 · 315 citations
- A New Perspective on "How Graph Neural Networks Go Beyond Weisfeiler-Lehman?"Asiri Wijesinghe, Qing WangICLR 2022 · 120 citations
Related papers
- Weisfeiler-Lehman Meets Gromov-WassersteinSamantha Chen, Sunhyuk Lim, Facundo Mémoli, Zhengchao Wan et al.ICML 2022 · 20 citations
- Exploring Consistency in Graph Representations: from Graph Kernels to Graph Neural NetworksXuyuan Liu, Yinghao Cai, Qihui Yang, Yujun YanNeurIPS 2024 · 3 citations
- Generalizing Weisfeiler-Lehman Kernels to SubgraphsDongkwan Kim, Alice OhICLR 2025
- Weisfeiler and Leman Go Walking: Random Walk Kernels RevisitedNils M. KriegeNeurIPS 2022 · 22 citations
- A graph similarity for deep learningSeongmin OkNeurIPS 2020 · 16 citations
