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.
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 →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | Paper |
|---|---|---|---|
| 1 | ACM-GCN | 0.8894
±0.0054 | |
| 2 | APPNP | 0.8880
±0.0010 | |
| 3 | GraphSAGE | 0.8810
±0.0010 | |
| 6 | GCN | 0.8790
±0.0010 best reported | best at pub: Multi-Scale Attributed Node Embedding (2019) |
| 11 | GAT | 0.8670
±0.0020 best reported | best at pub: Multi-Scale Attributed Node Embedding (2019) |
| 14 | GIN | 0.8537
±0.0074 | |
| 15 | SAGE | 0.8536 best reported | |
| 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 | 0.6570
±0.0190 best reported | best at pub: Graph Unlearning (2021) |
CiteSeer
Global leaderboard →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | 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 | 0.7460
±0.0060 best reported | best at pub: Graph Unlearning (2021) |
| 7 | GCN | 0.7420
±0.0010 best reported | best at pub: Multi-Scale Attributed Node Embedding (2019) |
| 16 | SGC | 0.7211
±0.0038 | This paper |
| 18 | SAGE | 0.7160
±0.0070 best reported | best at pub: Graph Unlearning (2021) Difference within reported uncertainty; not counted as underperformance. |
| 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 →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | Paper |
|---|---|---|---|
| 1 | MixHop | 0.8910
±0.0010 | |
| 2 | APPNP | 0.8840
±0.0010 | |
| 3 | GCN | 0.8750
±0.0010 best reported | best at pub: Multi-Scale Attributed Node Embedding (2019) |
| 4 | GAT | 0.8690
±0.0010 best reported | best at pub: Multi-Scale Attributed Node Embedding (2019) |
| 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 | 0.7511
±0.0127 | prev best: Node-wise Diffusion for Scalable Graph Learning (WWW 2023) Improvement within reported uncertainty; not highlighted. |
| 41 | MLP | 0.6717
±0.0091 | This paper |
Heterophilic Graphs
Texas
Global leaderboard →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | 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 | 0.6838
±0.0354 | prev best: Unsupervised Network Embedding Beyond Homophily (TMLR 2022) |
| 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 →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | 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 →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | Paper |
|---|---|---|---|
| 1 | FPS-T | 0.3961
±0.0054 | This paper |
| 2 | HAT | 0.3834
±0.0026 | This paper |
| 3 | SAGE | 0.3687
±0.0050 | prev best: Unsupervised Network Embedding Beyond Homophily (TMLR 2022) |
| 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 →Sorted by F1. Highlighted rows are from other papers.
| # | Model | F1 ↑ | 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 |
