Improving the Expressiveness of K-hop Message-Passing GNNs by Injecting Contextualized Substructure Information

Tianjun Yao, Yiongxu Wang, Kun Zhang, Shangsong Liang
6/27/2024
cs.LG

Official code: tianyao-aka/Expresive_K_hop_GNNs (6 stars, last commit 2024-07-11).

Abstract

Graph neural networks (GNNs) have become the \textit{de facto} standard for representational learning in graphs, and have achieved state-of-the-art performance in many graph-related tasks; however, it has been shown that the expressive power of standard GNNs are equivalent maximally to 1-dimensional Weisfeiler-Lehman (1-WL) Test. Recently, there is a line of works aiming to enhance the expressive power of graph neural networks. One line of such works aim at developing $K$-hop message-passing GNNs where node representation is updated by aggregating information from not only direct neighbors but all neighbors within $K$-hop of the node. Another line of works leverages subgraph information to enhance the expressive power which is proven to be strictly more powerful than 1-WL test. In this work, we discuss the limitation of $K$-hop message-passing GNNs and propose \textit{substructure encoding function} to uplift the expressive power of any $K$-hop message-passing GNN. We further inject contextualized substructure information to enhance the expressiveness of $K$-hop message-passing GNNs. Our method is provably more powerful than previous works on $K$-hop graph neural networks and 1-WL subgraph GNNs, which is a specific type of subgraph based GNN models, and not less powerful than 3-WL. Empirically, our proposed method set new state-of-the-art performance or achieves comparable performance for a variety of datasets. Our code is available at \url{https://github.com/tianyao-aka/Expresive_K_hop_GNNs}.

View on arXivView PDF

Code Implementations(1)

This repository contains code for our KDD23' paper: Improving the Expressiveness of 𝐾-hop Message-Passing GNNs by Injecting Contextualized Substructure Information

60PythonMay 24, 20232 years ago

Similar Papers

Cite this paper

@article{yao2024improving,
  title  = {Improving the Expressiveness of K-hop Message-Passing GNNs by Injecting Contextualized Substructure Information},
  author = {Tianjun Yao and Yiongxu Wang and Kun Zhang and Shangsong Liang},
  year   = {2024},
  eprint = {2406.19244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.19244v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.19244.svg)](https://codeofpaper.com/paper/2406.19244)

Discussion