
WLConvContinuous
Graphs and geometry22 ops
Parameter-free continuous Weisfeiler-Lehman propagation layer from the WWL graph kernel paper.
Graphs and geometry · 67 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.
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.
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},
}