
WLConvContinuous-net
Graphs and geometry67 ops
A Weisfeiler-Lehman style averaging step over weighted neighbours, the embedding half of the WWL graph kernel.
Graphs and geometry · 22 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}