Tokenized Graph Transformer with Neighborhood Augmentation for Node Classification in Large Graphs

Jinsong Chen, Chang Liu, Kai-Xin Gao, Gaichao Li, Kun He

Main figure for Tokenized Graph Transformer with Neighborhood Augmentation for Node Classification in Large Graphs

Abstract

Graph Transformers, emerging as a new architecture for graph representation learning, suffer from the quadratic complexity on the number of nodes when handling large graphs. To this end, we propose a Neighborhood Aggregation Graph Transformer (NAGphormer) that treats each node as a sequence containing a series of tokens constructed by our proposed Hop2Token module. For each node, Hop2Token aggregates the neighborhood features from different hops into different representations, producing a sequence of token vectors as one input. In this way, NAGphormer could be trained in a mini-batch manner and thus could scale to large graphs. Moreover, we mathematically show that compared to a category of advanced Graph Neural Networks (GNNs), called decoupled Graph Convolutional Networks, NAGphormer could learn more informative node representations from multi-hop neighborhoods. In addition, we propose a new data augmentation method called Neighborhood Augmentation (NrAug) based on the output of Hop2Token that augments simultaneously the features of neighborhoods from global as well as local views to strengthen the training effect of NAGphormer. Extensive experiments on benchmark datasets from small to large demonstrate the superiority of NAGphormer against existing graph Transformers and mainstream GNNs, and the effectiveness of NrAug for further boosting NAGphormer.

Proposed method: NAGphormer

Benchmark Results

Tested on 2 datasets 1 baseline value reported too low Non-standard metric on 1 dataset

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

Classic

Reddit

Global leaderboard →
Non-default metric. This paper reports Accuracy; the dataset default is F1. Values below use Accuracy only.

Sorted by Accuracy. Highlighted rows are from other papers.

#ModelAccuracy ↑Paper
1
GAP-EDP
0.9870 ±0.0003
2
NE-ASGCN
0.9758 ±0.0027
3
HSGT
0.9730 ±0.0024
18
GraphSAINT
actual #18 vs paper #100 82 places worse
0.9660 ±0.0010
best reported
actual #18 vs paper #100 82 places worse
paper 0.9235 ±0.0008
paper 0.9235 ±0.0008 Δ at pub 0.0425 Δ today 0.0425
21
GraphSAGE
0.9653 ±0.0011
84
NAGphormer
0.9374 ±0.0006
This paper
97
GRAND
0.9281 ±0.0003
This paper
118
PPRGo
0.9038 ±0.0011
This paper
147
MLP
0.8240 ±0.0010

Other Graph Benchmarks

#ModelAccuracy ↑Paper
1
MA-GCL
0.8883 ±0.0030
2
CCA-SSG
0.8842 ±0.0030
3
ARIEL
0.8827 ±0.0020
10
GCN
0.8651 ±0.0050
17
NAGphormer
0.7798 ±0.0016
This paper
20
GRAND
actual #20 vs paper #20
0.7583 ±0.0021
best reported
actual #20 vs paper #20
paper 0.7549 ±0.0011
paper 0.7549 ±0.0011 Δ today 0.0034
21
GraphSAINT
0.7521 ±0.0015
This paper
26
PPRGo
0.6612 ±0.0059
This paper
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