All models

WLConvContinuous

A Weisfeiler-Lehman style averaging step over weighted neighbours, the embedding half of the WWL graph kernel.

Graphs and geometry · 22 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Operations
22
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2019
Cited by
130 (as of 18 October 2026)
Authors
Matteo Togninalli, Elisabetta Ghisu, Felipe Llinares-López and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3366
Graph hash
30598d3376494d57695aa4f3ec4b9550ff5695a5f8eb969289db99c62500c8d9
Skeleton hash
cbe3638cff7a6ab85c1f0330c4ed7ee2e4ceba312bbeec77405b91e6fbc776ec
Architecture hash
90eab6fbd912f5e804ea03188cfb1d1804df086bf6aae0276ac2f66efb0b8d0e
Diagram SHA-256
99704a8555c6613eec676cc75e9d07c56d811a3234658df7594e002506522980
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Wasserstein Weisfeiler-Lehman, or WWL, is a graph kernel rather than a trained network: it compares two graphs through the Wasserstein distance between the distributions of their node feature vectors. The complaint it answers is that most graph kernels aggregate their final set of substructures with a plain sum or average, throwing away information about how the individual components are distributed. Treating graphs as high-dimensional objects instead of simple means lets the method find subtler differences between data sets.

The piece traced here, WLConvContinuous, is the paper's Weisfeiler-Lehman inspired embedding scheme for graphs with continuous node attributes and weighted edges. Its key idea is an explicit propagation scheme that updates the current node features by averaging over the neighbourhoods. Edge weights enter that average directly, and when none are available every weight is set to 1. The step uses a weighted average rather than a sum and adds a 1/2 factor so that features keep a similar scale across iterations. The authors note that this is not a test of graph isomorphism, but that it resembles the propagation scheme used in many graph neural networks.

The kernel itself is a Laplacian kernel of the graph Wasserstein distance, a form chosen because it offers favourable conditions for positive definiteness with non-Euclidean distances. For categorical node labels the WWL kernel is proven positive definite for all λ > 0. For the continuous case definiteness remains an open problem, so the authors employ learning methods built for indefinite kernels. On the continuous-attribute benchmarks WWL significantly outperforms the other methods on 4 out of 7 data sets, is better on another one, and is on a par on the remaining 2.

The reference implementation is a Python package whose listed dependencies are numpy, scikit-learn, POT and cython. It is developed and maintained by members of the Machine Learning and Computational Biology Lab.

Key idea. WWL replaces the sum-or-average aggregation of graph kernels with the Wasserstein distance between the node feature vector distributions of two graphs. It pairs that distance with a Weisfeiler-Lehman inspired embedding scheme for graphs with continuous node attributes and weighted edges.

  • Wasserstein Weisfeiler-Lehman
  • WWL
  • WLConvContinuous
  • continuous Weisfeiler-Lehman
  • Weisfeiler-Lehman
  • WL
  • graph kernel
  • Wasserstein distance
  • optimal transport
  • graph classification
  • continuous node attributes
  • weighted edges
  • PyTorch Geometric

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{togninalli2019wassersteinweisfeilerlehmangraphkernels,
      title={Wasserstein Weisfeiler-Lehman Graph Kernels}, 
      author={Matteo Togninalli and Elisabetta Ghisu and Felipe Llinares-López and Bastian Rieck and Karsten Borgwardt},
      year={2019},
      eprint={1906.01277},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1906.01277}, 
}