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

Jiawei Zhang, Haopeng Zhang, Congying Xia, Li Sun
1/15/2020
cs.LGcs.NEstat.ML

Official code: jwzhanggy/Graph-Bert (504 stars, MIT, last commit 2023-07-24).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Source code of Graph-Bert

50485PythonJan 20, 20203 years agoMIT

Similar Papers

Cite this paper

@article{zhang2020graphbert,
  title  = {Graph-Bert: Only Attention is Needed for Learning Graph Representations},
  author = {Jiawei Zhang and Haopeng Zhang and Congying Xia and Li Sun},
  year   = {2020},
  eprint = {2001.05140},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.05140}
}

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/2001.05140.svg)](https://codeofpaper.com/paper/2001.05140)

Discussion