We can use classical Logic �to understand the power of
Graph Neural Networks
GNNs based �on local features capture a logic �heavily used in Knowledge Representation.
GNNs mixing�local + global features can express�First Order Logic �with 2 variables �and counting.
Theorem
Theorem
AC-GNNs:�Aggregate & Combine
Simple AC-GNN
Logical Classifiers
not connected with v
First Order logic with counting (FOC)
v is red, and
there is a node
that has at least two
blue neighbors
FOC-k: FOC with only k variables in every formula.
WL-test�(Graph Isomorphism)
FOC-2
AC-GNNs
?
Morris et al.’19 (AAAI)�Xu et al.’19 (ICLR)
Cai et al.’92 (Combinatorica)
Proposition
There are (infinitely many) FOC-2 formulas
that cannot be captured by AC-GNNs
Which logic is captured �by AC-GNNs?
ALCQ: a Description Logic to define concepts
Theorem
A formula is captured by an AC-GNN �if and only if it is expressible in ALCQ
GNNs for FOC-2?
ALCQ FOC-2
ACR-GNNs:
Aggregate & Combine�+ Readouts
Theorem
Every formula expressed in FOC-2 �can be captured by an ACR-GNN
Other results:
Future work:
The Logical Expressiveness �of Graph Neural Networks
Pablo Barceló
Egor V. Kostylev
Mikaël�Monet
Jorge�Pérez
Juan L.
Reutter
Juan-P.
Silva