HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Nested Graph Neural Networks

Muhan Zhang; Pan Li

Nested Graph Neural Networks

Abstract

Graph neural network (GNN)'s success in graph classification is closely related to the Weisfeiler-Lehman (1-WL) algorithm. By iteratively aggregating neighboring node features to a center node, both 1-WL and GNN obtain a node representation that encodes a rooted subtree around the center node. These rooted subtree representations are then pooled into a single representation to represent the whole graph. However, rooted subtrees are of limited expressiveness to represent a non-tree graph. To address it, we propose Nested Graph Neural Networks (NGNNs). NGNN represents a graph with rooted subgraphs instead of rooted subtrees, so that two graphs sharing many identical subgraphs (rather than subtrees) tend to have similar representations. The key is to make each node representation encode a subgraph around it more than a subtree. To achieve this, NGNN extracts a local subgraph around each node and applies a base GNN to each subgraph to learn a subgraph representation. The whole-graph representation is then obtained by pooling these subgraph representations. We provide a rigorous theoretical analysis showing that NGNN is strictly more powerful than 1-WL. In particular, we proved that NGNN can discriminate almost all r-regular graphs, where 1-WL always fails. Moreover, unlike other more powerful GNNs, NGNN only introduces a constant-factor higher time complexity than standard GNNs. NGNN is a plug-and-play framework that can be combined with various base GNNs. We test NGNN with different base GNNs on several benchmark datasets. NGNN uniformly improves their performance and shows highly competitive performance on all datasets.

Code Repositories

muhanzhang/NestedGNN
pytorch
Mentioned in GitHub
muhanzhang/nestedgnn
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
graph-property-prediction-on-ogbg-molhivNested GIN+virtual node (ens)
Test ROC-AUC: 0.7986 ± 0.0105
Validation ROC-AUC: 0.8080 ± 0.0278
graph-property-prediction-on-ogbg-molhivNested GIN+virtual node
Test ROC-AUC: 0.7834 ± 0.0186
Validation ROC-AUC: 0.8317 ± 0.0199
graph-property-prediction-on-ogbg-molpcbaNested GIN+virtual node (ensemble)
Ext. data: No
Number of params: 44187480
Test AP: 0.3007 ± 0.0037
Validation AP: 0.3059 ± 0.0056
graph-property-prediction-on-ogbg-molpcbaNested GIN+virtual node (ens)
Test AP: 0.3007 ± 0.0037
Validation AP: 0.3059 ± 0.0056
graph-property-prediction-on-ogbg-molpcbaNested GIN+virtual node
Test AP: 0.2832 ± 0.0041
Validation AP: 0.2915 ± 0.0035

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Nested Graph Neural Networks | Papers | HyperAI