The Logic of Graph Neural Network
Paper by: Martin Grohe
RWTH Aachen University, Germany
Presented by: Hritam Basak
Some slides borrowed from the author’s original presentation
Motivation: Neuro-symbolic Integration
Part I: Logic for GNNs
We characterise the logical expressiveness of graph neural network (GNN)
Part II: GNNs for Logic
We propose a generic architecture for compiling GNN-based solvers for constraint satisfaction problems
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Graph Neural Networks
Computation of GNNs
GNN N with d layers maps graph G to sequence of functions
Initialization: encodes node level of v
Aggregation:
Functions computed by GNNs
Recurrent GNNs
Recurrent GNNs: Instead, we can take a single layer and apply it repeatedly. That is, we have a single aggregation function agg and combination function comb and let:
Part I
The Expressiveness of Graph Neural Network
The Weisfeiler-Leman Algorithm
A simple combinatorial algo.
The color refinement algorithm iteratively computed a coloring of the vertices of graph G
Initialization: All vertices get a same color
Refinement Step: Two nodes v, w get different colors if there is some color c such that v and w have different numbers of neighbors of color c.
Refinement is repeated until coloring stays stable
The stable coloring of a given graph with n nodes and m edges can be computed in time O((n + m) log n).
WL distinguishes two graphs G, H if their color histograms differ, that is, some color appears a different number of times in G and H.
Thus 1-WL can be used as an incomplete isomorphism test.
Higher-Dimensional Weisfeiler-Leman
The k-dimensional Weisfeiler-Leman algorithm (k-WL) iteratively colours k-tuples of nodes (Weisfeiler and Leman 1968, Babai ∼1980)
Running time: O(nk+1 log n)
k-WL is much more powerful than 1-WL, but still not a complete isomorphism test.
Theorem (Cai, Fürer, Immerman 1992)
For every k there are non-isomorphic graphs Gk, Hk of size O(k)
not distinguished by k-WL.
Part II
GNN for Constraint Satisfaction Problems
Constraint Satisfaction Problem
Constraint satisfaction problem (CSP) provide a general framework for combinatorial search problems:
RUN-CSP
RUN-CSP (Tönshoff, Ritzert, Wolf, G. 2020+)
(Recurrent Unsupervised NN for Max-CSPs)
Loss Function
Concluding Remarks
References