Graph-Bert: Only Attention is Needed for Learning Graph Representations

Jiawei Zhang, Haopeng Zhang, Li Sun, Congying Xia

Main figure for Graph-Bert: Only Attention is Needed for Learning Graph Representations

Abstract

The dominant graph neural networks (GNNs) over-rely on the graph links, several serious performance problems with which have been witnessed already, e.g., suspended animation problem and over-smoothing problem. What's more, the inherently inter-connected nature precludes parallelization within the graph, which becomes critical for large-sized graph, as memory constraints limit batching across the nodes. In this paper, we will introduce a new graph neural network, namely Graph-Bert (Graph based Bert), solely based on the attention mechanism without any graph convolution or aggregation operators. Instead of feeding Graph-Bert with the complete large input graph, we propose to train Graph-Bert with sampled linkless subgraphs within their local contexts. Graph-Bert can be learned effectively in a standalone mode. Meanwhile, a pre-trained Graph-Bert can also be transferred to other application tasks directly or with necessary fine-tuning if any supervised label information or certain application oriented objective is available. We have tested the effectiveness of Graph-Bert on several graph benchmark datasets. Based the pre-trained Graph-Bert with the node attribute reconstruction and structure recovery tasks, we further fine-tune Graph-Bert on node classification and graph clustering tasks specifically. The experimental results have demonstrated that Graph-Bert can out-perform the existing GNNs in both the learning effectiveness and efficiency.

Proposed method: Graph-Bert

Benchmark Results

Tested on 3 datasets 9 baseline values reported too low

Tables show presented results in global context (best 3 papers + GCN + MLP).

Classic

#ModelAccuracy ↑Paper
1
GraphSAGE+CNA
0.9418 ±0.0033
2
GCN+CNA
0.9366 ±0.0048
3
TransformerConv
0.9350 ±0.0058
21
GCN
actual #21 vs paper #573 552 places worse
0.9004
best reported
actual #21 vs paper #573 552 places worse
paper 0.8150
paper 0.8150 Δ at pub 0.0567 Δ today 0.0854
39
SAGE
0.8911 ±0.0012
44
GAT
actual #44 vs paper #424 380 places worse
0.8897 ±0.0014
best reported
actual #44 vs paper #424 380 places worse
paper 0.8300
273
Graph-Bert
0.8430
This paper
435
DeepWalk
actual #435 vs paper #843 408 places worse
0.8290
best reported
actual #435 vs paper #843 408 places worse
paper 0.6720
paper 0.6720 Δ at pub 0.1570
462
LoopyNet
0.8260
This paper
508
MoNet
actual #508 vs paper #558 50 places worse
0.8220 ±0.0070
best reported
actual #508 vs paper #558 50 places worse
paper 0.8170
best at pub: Graph Attention Networks (ICLR 2017)
best today: GRAND: Graph Neural Diffusion (ICML 2021)

Difference within reported uncertainty; not counted as underperformance.

paper 0.8170 Δ today 0.0050
724
MLP
0.7768
762
Planetoid
0.7570
This paper
775
ICA
0.7510
This paper
835
LP
actual #835 vs paper #836 1 place worse
0.6820
best reported
actual #835 vs paper #836 1 place worse
paper 0.6800
875
ManiReg
actual #875 vs paper #877 2 places worse
0.6040 ±0.0080
best reported
actual #875 vs paper #877 2 places worse
paper 0.5950

Difference within reported uncertainty; not counted as underperformance.

paper 0.5950 Δ today 0.0090
880
SemiEmb
0.5900
This paper
#ModelAccuracy ↑Paper
1
CNA
0.9575 ±0.0058
2
IS-GIB
0.9390 ±0.0187
3
EERM
0.9112 ±0.0145
35
GAT
actual #35 vs paper #388 353 places worse
0.8080 ±0.0026
best reported
actual #35 vs paper #388 353 places worse
paper 0.7250
paper 0.7250 Δ today 0.0830
44
GCN
actual #44 vs paper #603 559 places worse
0.8033 ±0.0088
best reported
actual #44 vs paper #603 559 places worse
paper 0.7030
paper 0.7030 Δ at pub 0.0090 Δ today 0.1003
61
GraphSAGE
0.7923 ±0.0053
350
MLP
0.7289 ±0.0010
501
LoopyNet
0.7160
This paper
544
Graph-Bert
0.7120
This paper
649
ICA
0.6910
This paper
681
SemiEmb
actual #681 vs paper #833 152 places worse
0.6810 ±0.0010
best reported
actual #681 vs paper #833 152 places worse
paper 0.5960
paper 0.5960 Δ at pub 0.0850
692
DeepWalk
actual #692 vs paper #883 191 places worse
0.6785 ±0.0079
best reported
actual #692 vs paper #883 191 places worse
paper 0.4320
697
ManiReg
actual #697 vs paper #831 134 places worse
0.6770 ±0.0160
best reported
actual #697 vs paper #831 134 places worse
paper 0.6010
paper 0.6010 Δ at pub 0.0760
782
Planetoid
0.6470
This paper
877
LP
0.4530
This paper
#ModelAccuracy ↑Paper
1
LGTL
0.9518 ±0.0011
2
MixHop (LO)
0.9513 ±0.0038
3
GraphSAGE (LO)
0.9511 ±0.0036
18
GCN
actual #18 vs paper #585 567 places worse
0.9296 ±0.0015
best reported
actual #18 vs paper #585 567 places worse
paper 0.7900
paper 0.7900 Δ at pub 0.0050 Δ today 0.1396
20
GAT
actual #20 vs paper #585 565 places worse
0.9233 ±0.0018
best reported
actual #20 vs paper #585 565 places worse
paper 0.7900
116
SAGE
0.8881 ±0.0015
210
MLP
0.8690 ±0.0074
223
DeepWalk
actual #223 vs paper #861 638 places worse
0.8652 ±0.0012
best reported
actual #223 vs paper #861 638 places worse
paper 0.6530
446
MoNet
actual #446 vs paper #614 168 places worse
0.8006 ±0.0055
best reported
actual #446 vs paper #614 168 places worse
paper 0.7880
549
Graph-Bert
0.7930
This paper
568
LoopyNet
0.7920
This paper
727
Planetoid
0.7720
This paper
811
ICA
0.7390
This paper
826
SemiEmb
actual #826 vs paper #831 5 places worse
0.7170
best reported
actual #826 vs paper #831 5 places worse
paper 0.7110
best at pub: Graph Attention Networks (ICLR 2017)
paper 0.7110 Δ at pub 0.0060
831
ManiReg
actual #831 vs paper #834 3 places worse
0.7130 ±0.0140
best reported
actual #831 vs paper #834 3 places worse
paper 0.7070

Difference within reported uncertainty; not counted as underperformance.

paper 0.7070 Δ today 0.0060
861
LP
actual #861 vs paper #866 5 places worse
0.6580
best reported
actual #861 vs paper #866 5 places worse
paper 0.6300
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported result worse than the best known when published (best reported in green) Best today — OK at publication; today's leaderboard best is elsewhere