All models

WLConvContinuous-net

Parameter-free continuous Weisfeiler-Lehman propagation layer from the WWL graph kernel paper.

Graphs and geometry · 67 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 (36 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
67
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
m3367
Graph hash
162b143024731ba99eda50b342e5881da620ab419ed43af48bb568ef4fd32db6
Skeleton hash
450bbb0bd3149a59d9132e51f316973026ee69e13721dfd40015f9b67d61a559
Architecture hash
3fd2037e6bec4842c0f72cfda9f21f13c30915998a60a485569b684ca181c822
Diagram SHA-256
718aa4c885993b7085b7652668db32f04de79cadded0b4a57951f5230ebc8da4
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

WLConvContinuous-net is a small network built around the continuous Weisfeiler-Lehman propagation step introduced in the Wasserstein Weisfeiler-Lehman (WWL) graph kernel paper. The paper proposes a Weisfeiler-Lehman inspired embedding scheme for graphs with continuous node attributes and weighted edges. Its motivation is that only a limited instance of existing graph kernels can be extended to continuously attributed graphs.

The key idea is an explicit propagation scheme that updates the current node features by averaging over the neighbourhoods. Each iteration takes half of a node's own attribute plus half of the weighted average of its neighbours' attributes, so that the features keep a similar scale across iterations. When edge weights are not available, the weight of every edge is set to 1. The features from every iteration are concatenated, because the authors observe better empirical results with similarly scaled features when building the kernel on them. The captured member runs three of these iterations on 18-dimensional node attributes over an 8-node graph with symmetric positive edge weights, which the scheme folds into the neighbourhood average.

The authors note that this refinement is not a test of graph isomorphism, but an intuitive extension for continuous attributes of the step used by the WL subtree kernel on categorical node labels. They also point out that it resembles the propagation scheme used in many graph neural networks. In the full method, the node embeddings are only step one: the paper then measures the Wasserstein distance between each pair of graphs and computes a similarity matrix for the learning algorithm. The official WWL package goes all the way to an n x n kernel matrix between a set of n graphs. That package relies on numpy, scikit-learn, POT and cython rather than a deep-learning framework.

A quirk worth knowing: the kernel built on categorical labels is proved positive definite, but for the continuous case the paper leaves the definiteness of the kernel an open problem. On the continuous-attribute benchmarks the paper reports WWL significantly outperforming the other methods on 4 out of 7 data sets.

Key idea. WWL couples a Weisfeiler-Lehman inspired embedding scheme for continuously attributed, edge-weighted graphs with the Wasserstein distance between node feature distributions, giving a graph kernel that the paper reports improves state-of-the-art prediction performance on several graph classification tasks.

  • WWL
  • Wasserstein Weisfeiler-Lehman
  • continuous Weisfeiler-Lehman
  • WLConvContinuous
  • Weisfeiler-Lehman
  • graph kernel
  • graph classification
  • optimal transport
  • Wasserstein distance
  • continuous node attributes

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}, 
}