
148 Chapter 5
5.2.5.5 Continuous node features There is no doubt that the scaffold
offered by the k-WL hierarchy has had outsized impact to the development
of graph representation learning. As we’ve just seen, this algorithm family,
and the observation that GNNs naturally align to it, has informed countless
contributions in feature engineering, architecture design, graph rewiring, and
even asynchronous models. Its flexibility does not come without limitations,
however—and perhaps the most glaring of these is its assumption on dis-
crete features in the nodes. For many scientific and industrial tasks arising
from real-world data, features we have available will often be real-valued. We
will only focus on this particular extension, and how it leads to transcending
the WL hierarchy. That said, we remark several other approaches that are not
well-aligned with k-WL emerged in recent times; e.g., Tönshoff et al. (2021).
While K. Xu et al. (2018) left the study of aligning GNNs with real-valued
features to deciding graph isomorphism to future work, it was already evident
from the work of Zaheer et al. (2017) that extending such results even in the
domain of sets was going to be difficult. The essence of difficulties governing
this transition were finally exposed and settled by Corso et al. (2020). The
key issue arises in the larger flexibility of the objects that need to be injectively
aggregated: while in the WL setting we dealt with aggregating multisets of one-
hot vectors—and hence all we had to track for injectivity was the preservation
of their cardinalities—with real-valued features, non-isomorphic graphs can
have clashing embeddings from unexpected directions.
To illustrate this, let us first recall that, according to 1-WL, aggregator
choices for
L
are ordered by expressivity as max <
1
|N
u
|
P
<
P
, with
P
being
maximally expressive. Now, assume that our inbound messages are in R rather
than ∆
k
. It is relatively straightforward to play around with examples of real-
valued, non-isomorphic multisets where not only this hierarchy is broken, but
some may not be injectively distinguished by any of these three aggregators:
•
{{4, 1, 1}} vs. {{3, 3, 0}}: distinguished by max but not by mean or sum.
•
{{4, 2, 2, 0}} vs. {{4, 4, 0, 0}}: cannot be distinguished by either max, mean or
sum—however, they can be distinguished by standard deviation.
Following these leads, with a little help from standard facts in algebraic topol-
ogy
21
, it is possible to show that no single aggregator choice for
L
is sufficient
to injectively embed real-valued neighbourhoods. In fact, it can be shown that
the number of aggregators, N, needed for injectivity is equal to the maximal
neighbourhood size, max
u∈V
|N
u
|, in our dataset. While it is not yet clear what
property these collections of aggregators need to satisfy to be injective, Corso
et al. (2020) showed that the first N moments of the neighbourhood multiset