WILTing Trees: Interpreting the Distance Between MPNN Embeddings

Masahiro Negishi, Thomas Gärtner, Pascal Welke
5/1/2025
gnn

No confident code implementation found for this paper.

Abstract

We investigate the distance function learned by message passing neural networks (MPNNs) in specific tasks, aiming to capture the functional distance between prediction targets that MPNNs implicitly learn. This contrasts with previous work, which links MPNN distances on arbitrary tasks to structural distances on graphs that ignore task-specific information.

Show full abstract

To address this gap, we distill the distance between MPNN embeddings into an interpretable graph distance. Our method uses optimal transport on the Weisfeiler Leman Labeling Tree (WILT), where the edge weights reveal subgraphs that strongly influence the distance between embeddings. This approach generalizes two well-known graph kernels and can be computed in linear time. Through extensive experiments, we demonstrate that MPNNs define the relative position of embeddings by focusing on a small set of subgraphs that are known to be functionally important in the domain.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{negishi2025wilting,
  title  = {WILTing Trees: Interpreting the Distance Between MPNN Embeddings},
  author = {Masahiro Negishi and Thomas Gärtner and Pascal Welke},
  year   = {2025},
  eprint = {2505.24642},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.24642},
  journal = {ICML 2025 2025}
}

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/2505.24642.svg)](https://codeofpaper.com/paper/2505.24642)

Discussion