HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Finding Global Homophily in Graph Neural Networks When Meeting Heterophily

Xiang Li; Renyu Zhu; Yao Cheng; Caihua Shan; Siqiang Luo; Dongsheng Li; Weining Qian

Finding Global Homophily in Graph Neural Networks When Meeting Heterophily

Abstract

We investigate graph neural networks on graphs with heterophily. Some existing methods amplify a node's neighborhood with multi-hop neighbors to include more nodes with homophily. However, it is a significant challenge to set personalized neighborhood sizes for different nodes. Further, for other homophilous nodes excluded in the neighborhood, they are ignored for information aggregation. To address these problems, we propose two models GloGNN and GloGNN++, which generate a node's embedding by aggregating information from global nodes in the graph. In each layer, both models learn a coefficient matrix to capture the correlations between nodes, based on which neighborhood aggregation is performed. The coefficient matrix allows signed values and is derived from an optimization problem that has a closed-form solution. We further accelerate neighborhood aggregation and derive a linear time complexity. We theoretically explain the models' effectiveness by proving that both the coefficient matrix and the generated node embedding matrix have the desired grouping effect. We conduct extensive experiments to compare our models against 11 other competitors on 15 benchmark datasets in a wide range of domains, scales and graph heterophilies. Experimental results show that our methods achieve superior performance and are also very efficient.

Code Repositories

recklessronan/glognn
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
node-classification-on-actorGloGNN++
Accuracy: 37.7 ± 1.40
node-classification-on-actorGloGNN
Accuracy: 37.35 ± 1.30
node-classification-on-arxiv-yearGloGNN++
Accuracy: 54.79±0.25
node-classification-on-chameleonGloGNN
Accuracy: 69.78±2.42
node-classification-on-chameleonGloGNN++
Accuracy: 71.21±1.84
node-classification-on-citeseer-48-32-20GloGNN++
1:1 Accuracy: 77.22 ± 1.78
node-classification-on-citeseer-48-32-20GloGNN
1:1 Accuracy: 77.41 ± 1.65
node-classification-on-cora-48-32-20-fixedGloGNN++
1:1 Accuracy: 88.33 ± 1.09
node-classification-on-cora-48-32-20-fixedGloGNN
1:1 Accuracy: 88.31 ± 1.13
node-classification-on-cornellGloGNN
Accuracy: 83.51±4.26
node-classification-on-cornellGloGNN++
Accuracy: 85.95±5.10
node-classification-on-geniusGCNJK
Accuracy: 89.30 ± 0.19
node-classification-on-geniusGloGNN
Accuracy: 90.66 ± 0.11
node-classification-on-geniusGloGNN++
Accuracy: 90.91 ± 0.13
node-classification-on-geniusMLP
Accuracy: 86.68 ± 0.09
node-classification-on-non-homophilic-10GloGNN
1:1 Accuracy: 37.35 ± 1.30
node-classification-on-non-homophilic-10GloGNN++
1:1 Accuracy: 37.70 ± 1.40 
node-classification-on-non-homophilic-11GloGNN++
1:1 Accuracy: 71.21 ± 1.84 
node-classification-on-non-homophilic-11GloGNN
1:1 Accuracy: 69.78 ± 2.42 
node-classification-on-non-homophilic-12GloGNN++
1:1 Accuracy: 57.88 ± 1.76 
node-classification-on-non-homophilic-12GloGNN
1:1 Accuracy: 57.54 ± 1.39 
node-classification-on-non-homophilic-13GloGNN
1:1 Accuracy: 85.57 ± 0.35
node-classification-on-non-homophilic-13GloGNN++
1:1 Accuracy: 85.74 ± 0.42
node-classification-on-non-homophilic-14GloGNN
1:1 Accuracy: 90.66 ± 0.11
node-classification-on-non-homophilic-14GloGNN++
1:1 Accuracy: 90.91 ± 0.13
node-classification-on-non-homophilic-15GloGNN++
1:1 Accuracy: 66.34 ± 0.29
node-classification-on-non-homophilic-15GloGNN
1:1 Accuracy: 66.19 ± 0.29
node-classification-on-non-homophilic-7GloGNN++
1:1 Accuracy: 85.95 ± 5.10 
node-classification-on-non-homophilic-7GloGNN
1:1 Accuracy: 83.51 ± 4.26
node-classification-on-non-homophilic-8GloGNN++
1:1 Accuracy:  88.04 ± 3.22 
node-classification-on-non-homophilic-8GloGNN
1:1 Accuracy: 87.06 ± 3.53 
node-classification-on-non-homophilic-9GloGNN++
1:1 Accuracy: 84.05 ± 4.90
node-classification-on-non-homophilic-9GloGNN
1:1 Accuracy: 84.32 ± 4.15 
node-classification-on-penn94GloGNN
Accuracy: 85.57 ± 0.35
node-classification-on-penn94GloGNN++
Accuracy: 85.74±0.42
node-classification-on-pokecGloGNN++
Accuracy: 83.05±0.07
node-classification-on-pubmed-48-32-20-fixedGloGNN
1:1 Accuracy: 89.62 ± 0.35
node-classification-on-pubmed-48-32-20-fixedGloGNN++
1:1 Accuracy: 89.24 ± 0.39
node-classification-on-squirrelGloGNN
Accuracy: 57.54±1.39
node-classification-on-squirrelGloGNN++
Accuracy: 57.88±1.76–
node-classification-on-texasGloGNN++
Accuracy: 84.05±4.90
node-classification-on-texasGloGNN
Accuracy: 84.32±4.15
node-classification-on-wisconsinGloGNN
Accuracy: 87.06±3.53
node-classification-on-wisconsinGloGNN++
Accuracy: 88.04±3.22

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
Finding Global Homophily in Graph Neural Networks When Meeting Heterophily | Papers | HyperAI