Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Gophormer: Ego-Graph Transformer for Node Classification

About

Transformers have achieved remarkable performance in a myriad of fields including natural language processing and computer vision. However, when it comes to the graph mining area, where graph neural network (GNN) has been the dominant paradigm, transformers haven't achieved competitive performance, especially on the node classification task. Existing graph transformer models typically adopt fully-connected attention mechanism on the whole input graph and thus suffer from severe scalability issues and are intractable to train in data insufficient cases. To alleviate these issues, we propose a novel Gophormer model which applies transformers on ego-graphs instead of full-graphs. Specifically, Node2Seq module is proposed to sample ego-graphs as the input of transformers, which alleviates the challenge of scalability and serves as an effective data augmentation technique to boost model performance. Moreover, different from the feature-based attention strategy in vanilla transformers, we propose a proximity-enhanced attention mechanism to capture the fine-grained structural bias. In order to handle the uncertainty introduced by the ego-graph sampling, we further propose a consistency regularization and a multi-sample inference strategy for stabilized training and testing, respectively. Extensive experiments on six benchmark datasets are conducted to demonstrate the superiority of Gophormer over existing graph transformers and popular GNNs, revealing the promising future of graph transformers.

Jianan Zhao, Chaozhuo Li, Qianlong Wen, Yiqi Wang, Yuming Liu, Hao Sun, Xing Xie, Yanfang Ye• 2021

Related benchmarks

TaskDatasetResultRank
Node ClassificationCiteseer (test)
Accuracy0.3148
1013
Node ClassificationPubMed (test)
Accuracy40.4
628
Node ClassificationChameleon (test)
Mean Accuracy53.16
425
Node ClassificationCornell (test)
Mean Accuracy67.13
403
Node ClassificationTexas (test)
Mean Accuracy81.49
402
Node ClassificationRoman-Empire--
398
Node ClassificationSquirrel (test)
Mean Accuracy37.44
353
Node ClassificationWisconsin (test)
Mean Accuracy81.95
346
Node ClassificationActor (test)
Mean Accuracy0.349
339
Node ClassificationCora (test)
Accuracy49.18
254
Showing 10 of 44 rows

Other info

Follow for update