17
0

Improving Expressivity of Graph Neural Networks using Localization

Abstract

In this paper, we propose localized versions of Weisfeiler-Leman (WL) algorithms in an effort to both increase the expressivity, as well as decrease the computational overhead. We focus on the specific problem of subgraph counting and give localized versions of kk-WL for any kk. We analyze the power of Local kk-WL and prove that it is more expressive than kk-WL and at most as expressive as (k+1)(k+1)-WL. We give a characterization of patterns whose count as a subgraph and induced subgraph are invariant if two graphs are Local kk-WL equivalent. We also introduce two variants of kk-WL: Layer kk-WL and recursive kk-WL. These methods are more time and space efficient than applying kk-WL on the whole graph. We also propose a fragmentation technique that guarantees the exact count of all induced subgraphs of size at most 4 using just 11-WL. The same idea can be extended further for larger patterns using k>1k>1. We also compare the expressive power of Local kk-WL with other GNN hierarchies and show that given a bound on the time-complexity, our methods are more expressive than the ones mentioned in Papp and Wattenhofer[2022a].

View on arXiv
Comments on this paper