JMLR

Weisfeiler-Lehman Meets Optimal Transport: Theory, Algorithms, and Implications

Authors
Yusu Wang Facundo Mémoli Samantha Chen Sunhyuk Lim Zhengchao Wan
Research Topics
Computational Statistics
Paper Information
  • Journal:
    Journal of Machine Learning Research
  • Added to Tracker:
    Nov 08, 2026
Abstract

We introduce the Weisfeiler–Lehman (WL) distance, a pseudometric defined on labeled measure Markov chains (LMMCs)—a general class of structures encompassing labeled graphs. This distance is computable in polynomial time and is closely aligned with the classical WL graph isomorphism test: it assigns a positive value if and only if the WL test distinguishes the two input graphs. The WL distance captures fine structural differences in the underlying LMMCs and is, consequently, more discriminative than the state-of-the-art Wasserstein WL graph kernel. The distance motivates a neural network architecture on LMMCs, which we call Markov chain neural networks (MCNNs), that is universal for continuous functions over LMMCs (hence all graphs) under the topology induced by the WL distance. This finding further extends to the analysis of graph neural networks (GNNs). Additionally, the WL distance admits an alternative characterization through Markovian couplings and Causal Optimal Transport (COT), offering a stochastic-process perspective that uncovers a surprising connection between the seemingly unrelated WL test and COT. Finally, we show that the WL distance is stable under a natural variant of the Gromov-Wasserstein (GW) distance that we propose. The GW distance is generally NP-hard to compute and hence the WL distance provides a polynomial-time computable lower bound for it.

Author Details
Yusu Wang
Author
Facundo Mémoli
Author
Samantha Chen
Author
Sunhyuk Lim
Author
Zhengchao Wan
Author
Research Topics & Keywords
Computational Statistics
Research Area
Citation Information
APA Format
Yusu Wang , Facundo Mémoli , Samantha Chen , Sunhyuk Lim & Zhengchao Wan . Weisfeiler-Lehman Meets Optimal Transport: Theory, Algorithms, and Implications. Journal of Machine Learning Research .
BibTeX Format
@article{paper1864,
  title = { Weisfeiler-Lehman Meets Optimal Transport: Theory, Algorithms, and Implications },
  author = { Yusu Wang and Facundo Mémoli and Samantha Chen and Sunhyuk Lim and Zhengchao Wan },
  journal = { Journal of Machine Learning Research },
  url = { https://www.jmlr.org/papers/v27/25-0947.html }
}