Curve Your Attention: Mixed-Curvature Transformers for Graph Representation Learning

Sungjun Cho, Seunghyuk Cho, Sungwoo Park, Hankook Lee, Ho Hin Lee, Moontae Lee

Main figure for Curve Your Attention: Mixed-Curvature Transformers for Graph Representation Learning

Abstract

Real-world graphs naturally exhibit hierarchical or cyclical structures that are unfit for the typical Euclidean space. While there exist graph neural networks that leverage hyperbolic or spherical spaces to learn representations that embed such structures more accurately, these methods are confined under the message-passing paradigm, making the models vulnerable against side-effects such as oversmoothing and oversquashing. More recent work have proposed global attention-based graph Transformers that can easily model long-range interactions, but their extensions towards non-Euclidean geometry are yet unexplored. To bridge this gap, we propose Fully Product-Stereographic Transformer, a generalization of Transformers towards operating entirely on the product of constant curvature spaces. When combined with tokenized graph Transformers, our model can learn the curvature appropriate for the input graph in an end-to-end fashion, without the need of additional tuning on different curvature initializations. We also provide a kernelized approach to non-Euclidean attention, which enables our model to run in time and memory cost linear to the number of nodes and edges while respecting the underlying geometry. Experiments on graph reconstruction and node classification demonstrate the benefits of generalizing Transformers to the non-Euclidean domain.

Proposed method: FPS-T

Benchmark Results

Tested on 7 datasets 8 baseline values reported too low Non-standard metric on 7 datasets

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

Classic

Cora

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
ACM-GCN
0.8894 ±0.0054
2
APPNP
0.8880 ±0.0010
3
GraphSAGE
0.8810 ±0.0010
6
GCN
actual #6 vs paper #30 24 places worse
0.8790 ±0.0010
best reported
actual #6 vs paper #30 24 places worse
paper 0.8040 ±0.0053
paper 0.8040 ±0.0053 Δ at pub 0.0750
11
GAT
actual #11 vs paper #27 16 places worse
0.8670 ±0.0020
best reported
actual #11 vs paper #27 16 places worse
paper 0.8229 ±0.0046
paper 0.8229 ±0.0046 Δ at pub 0.0441
14
GIN
0.8537 ±0.0074
15
SAGE
actual #15 vs paper #37 22 places worse
0.8536
best reported
actual #15 vs paper #37 22 places worse
paper 0.7888 ±0.0087
27
FPS-T
0.8232 ±0.0070
This paper
29
TokenGT
0.8142 ±0.0079
This paper
31
HGCN
0.8000 ±0.0085
This paper
33
HAT
0.7981 ±0.0058
This paper
34
SGC
0.7968 ±0.0065
This paper
35
Q-GCN
0.7963 ±0.0057
This paper
36
HGNN
0.7930 ±0.0051
This paper
43
MLP
actual #43 vs paper #43
0.6570 ±0.0190
best reported
actual #43 vs paper #43
paper 0.5244 ±0.0108
best at pub: Graph Unlearning (2021)
paper 0.5244 ±0.0108 Δ at pub 0.1326

CiteSeer

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
MixHop
0.7800 ±0.0010
2
SGCONV
0.7630 ±0.0020
3
APPNP
0.7540 ±0.0010
4
GraphSAGE
0.7470 ±0.0010
5
GAT
actual #5 vs paper #17 12 places worse
0.7460 ±0.0060
best reported
actual #5 vs paper #17 12 places worse
paper 0.7170 ±0.0028
best at pub: Graph Unlearning (2021)
paper 0.7170 ±0.0028 Δ at pub 0.0290
7
GCN
actual #7 vs paper #18 11 places worse
0.7420 ±0.0010
best reported
actual #7 vs paper #18 11 places worse
paper 0.7138 ±0.0043
paper 0.7138 ±0.0043 Δ at pub 0.0282
16
SGC
0.7211 ±0.0038
This paper
18
SAGE
actual #18 vs paper #20 2 places worse
0.7160 ±0.0070
best reported
actual #18 vs paper #20 2 places worse
paper 0.7058 ±0.0042
best at pub: Graph Unlearning (2021)

Difference within reported uncertainty; not counted as underperformance.

paper 0.7058 ±0.0042 Δ at pub 0.0102
20
TokenGT
0.7123 ±0.0051
This paper
21
FPS-T
0.7003 ±0.0071
This paper
22
HGCN
0.6992 ±0.0061
This paper
23
HGNN
0.6982 ±0.0053
This paper
24
HAT
0.6814 ±0.0053
This paper
27
Q-GCN
0.6615 ±0.0045
This paper
35
MLP
0.5258 ±0.0197
This paper

PubMed

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
MixHop
0.8910 ±0.0010
2
APPNP
0.8840 ±0.0010
3
GCN
actual #3 vs paper #29 26 places worse
0.8750 ±0.0010
best reported
actual #3 vs paper #29 26 places worse
paper 0.7837 ±0.0026
paper 0.7837 ±0.0026 Δ at pub 0.0913
4
GAT
actual #4 vs paper #30 26 places worse
0.8690 ±0.0010
best reported
actual #4 vs paper #30 26 places worse
paper 0.7814 ±0.0031
paper 0.7814 ±0.0031 Δ at pub 0.0876
6
GraphSAGE
0.8640 ±0.0010
26
TokenGT
0.7893 ±0.0027
This paper
28
FPS-T
0.7852 ±0.0058
This paper
32
HAT
0.7750 ±0.0042
This paper
33
SAGE
0.7731 ±0.0059
This paper
35
Q-GCN
0.7713 ±0.0059
This paper
36
HGNN
0.7672 ±0.0086
This paper
37
HGCN
0.7567 ±0.0099
This paper
38
SGC
actual #38 vs paper #38
0.7511 ±0.0127
actual #38 vs paper #38
paper 0.7511 ±0.0127

Improvement within reported uncertainty; not highlighted.

paper 0.7511 ±0.0127 Δ at pub 0.0100
41
MLP
0.6717 ±0.0091
This paper

Heterophilic Graphs

Texas

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
FPS-T
0.8919 ±0.0237
This paper
2
TokenGT
0.8865 ±0.0206
This paper
3
HAT
0.8216 ±0.0252
This paper
4
MLP
0.7054 ±0.0300
This paper
5
SAGE
actual #5 vs paper #5
0.6838 ±0.0354
actual #5 vs paper #5
paper 0.6838 ±0.0354
paper 0.6838 ±0.0354 Δ at pub 0.1208
9
GAT
0.5946 ±0.0112
This paper
11
GCN
0.5784 ±0.0162
This paper
12
SGC
0.5757 ±0.0296
This paper
15
HGCN
0.5459 ±0.0393
This paper
18
Q-GCN
0.5135 ±0.0344
This paper
20
HGNN
0.5081 ±0.0360
This paper

Cornell

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
FPS-T
0.7216 ±0.0296
This paper
2
TokenGT
0.7162 ±0.0213
This paper
3
SAGE
0.7054 ±0.0201
This paper
4
HAT
0.7054 ±0.0167
This paper
5
MLP
0.5838 ±0.0404
This paper
6
Q-GCN
0.5595 ±0.0285
This paper
7
κ-GCN
0.5568 ±0.0559
This paper
8
HGCN
0.5568 ±0.0180
This paper
9
GAT
0.5514 ±0.0180
This paper
10
SGC
0.5297 ±0.0287
This paper
11
HGNN
0.5270 ±0.0142
This paper

Actor

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
FPS-T
0.3961 ±0.0054
This paper
2
HAT
0.3834 ±0.0026
This paper
3
SAGE
actual #3 vs paper #3
0.3687 ±0.0050
actual #3 vs paper #3
paper 0.3687 ±0.0050
paper 0.3687 ±0.0050 Δ at pub 0.0917
4
TokenGT
0.3659 ±0.0089
This paper
6
MLP
0.3362 ±0.0055
This paper
7
HGNN
0.2909 ±0.0019
This paper
8
HGCN
0.2889 ±0.0016
This paper
11
Q-GCN
0.2818 ±0.0055
This paper
13
GAT
0.2743 ±0.0023
This paper
16
SGC
0.2714 ±0.0046
This paper
17
GCN
0.2709 ±0.0036
This paper

Wisconsin

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

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
FPS-T
0.8360 ±0.0114
This paper
2
TokenGT
0.8300 ±0.0065
This paper
3
HAT
0.8180 ±0.0136
This paper
4
MLP
0.8120 ±0.0187
This paper
5
SAGE
0.7840 ±0.0052
This paper
6
HGCN
0.5560 ±0.0253
This paper
7
HGNN
0.5460 ±0.0268
This paper
8
Q-GCN
0.5280 ±0.0220
This paper
9
κ-GCN
0.4660 ±0.0241
This paper
10
SGC
0.4640 ±0.0201
This paper
11
GAT
0.4620 ±0.0230
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 at pub — reported value improved over the best known when published