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.
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
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphSAGE+CNA | 0.9418
±0.0033 | |
| 2 | GCN+CNA | 0.9366
±0.0048 | |
| 3 | TransformerConv | 0.9350
±0.0058 | |
| 21 | GCN | 0.9004 best reported | best at pub: SplineCNN: Fast Geometric Deep Learning with Continuous B-Spline Kernels (2017) best today: Understanding Heterophily for Graph Neural Networks (ICML 2024) |
| 39 | SAGE | 0.8911
±0.0012 | |
| 44 | GAT | 0.8897
±0.0014 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) |
| 273 | Graph-Bert | 0.8430 | This paper |
| 435 | DeepWalk | 0.8290 best reported | best at pub: Graph Representation Learning: A Survey (2019) |
| 462 | LoopyNet | 0.8260 | This paper |
| 508 | MoNet | 0.8220
±0.0070 best reported | best at pub: Graph Attention Networks (ICLR 2017) best today: GRAND: Graph Neural Diffusion (ICML 2021) Difference within reported uncertainty; not counted as underperformance. |
| 724 | MLP | 0.7768 | |
| 762 | Planetoid | 0.7570 | This paper |
| 775 | ICA | 0.7510 | This paper |
| 835 | LP | 0.6820 best reported | best at pub: Revisiting Semi-Supervised Learning with Graph Embeddings (ICML 2016) best today: Transformers from Diffusion: A Unified Framework for Neural Message Passing (JMLR 2024) |
| 875 | ManiReg | 0.6040
±0.0080 best reported | best at pub: Revisiting Semi-Supervised Learning with Graph Embeddings (ICML 2016) best today: Transformers from Diffusion: A Unified Framework for Neural Message Passing (JMLR 2024) Difference within reported uncertainty; not counted as underperformance. |
| 880 | SemiEmb | 0.5900 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | CNA | 0.9575
±0.0058 | |
| 2 | IS-GIB | 0.9390
±0.0187 | |
| 3 | EERM | 0.9112
±0.0145 | |
| 35 | GAT | 0.8080
±0.0026 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) best today: Feature Expansion for Graph Neural Networks (ICML 2023) |
| 44 | GCN | 0.8033
±0.0088 best reported | best at pub: Graph Neural Ordinary Differential Equations (AAAI 2019) |
| 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 | 0.6810
±0.0010 best reported | best at pub: Learning Discrete Structures for Graph Neural Networks (ICML 2019) |
| 692 | DeepWalk | 0.6785
±0.0079 best reported | best at pub: GraphZoom: A Multi-level Spectral Approach for Accurate and Scalable Graph Embedding (ICLR 2019) best today: Decoupled Self-supervised Learning for Non-Homophilou Graphs (2022) |
| 697 | ManiReg | 0.6770
±0.0160 best reported | best at pub: Learning Discrete Structures for Graph Neural Networks (ICML 2019) |
| 782 | Planetoid | 0.6470 | This paper |
| 877 | LP | 0.4530 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | LGTL | 0.9518
±0.0011 | |
| 2 | MixHop (LO) | 0.9513
±0.0038 | |
| 3 | GraphSAGE (LO) | 0.9511
±0.0036 | |
| 18 | GCN | 0.9296
±0.0015 best reported | best at pub: Graph Neural Ordinary Differential Equations (AAAI 2019) |
| 20 | GAT | 0.9233
±0.0018 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) |
| 116 | SAGE | 0.8881
±0.0015 | |
| 210 | MLP | 0.8690
±0.0074 | |
| 223 | DeepWalk | 0.8652
±0.0012 best reported | |
| 446 | MoNet | 0.8006
±0.0055 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) |
| 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 | 0.7170 best reported | best at pub: Graph Attention Networks (ICLR 2017) |
| 831 | ManiReg | 0.7130
±0.0140 best reported | best at pub: Geometric deep learning on graphs and manifolds using mixture model CNNs (2016) best today: Discovering Data Geometry: Energy-Driven Neural Diffusion (ICLR 2023) Difference within reported uncertainty; not counted as underperformance. |
| 861 | LP | 0.6580 best reported | best at pub: Geometric deep learning on graphs and manifolds using mixture model CNNs (2016) best today: Discovering Data Geometry: Energy-Driven Neural Diffusion (ICLR 2023) |
