SignGT: Signed Attention-based Graph Transformer for Graph Representation Learning
Abstract
The emerging graph Transformers have achieved impressive performance for graph representation learning over graph neural networks (GNNs). In this work, we regard the self-attention mechanism, the core module of graph Transformers, as a two-step aggregation operation on a fully connected graph. Due to the property of generating positive attention values, the self-attention mechanism is equal to conducting a smooth operation on all nodes, preserving the low-frequency information. However, only capturing the low-frequency information is inefficient in learning complex relations of nodes on diverse graphs, such as heterophily graphs where the high-frequency information is crucial. To this end, we propose a Signed Attention-based Graph Transformer (SignGT) to adaptively capture various frequency information from the graphs. Specifically, SignGT develops a new signed self-attention mechanism (SignSA) that produces signed attention values according to the semantic relevance of node pairs. Hence, the diverse frequency information between different node pairs could be carefully preserved. Besides, SignGT proposes a structure-aware feed-forward network (SFFN) that introduces the neighborhood bias to preserve the local topology information. In this way, SignGT could learn informative node representations from both long-range dependencies and local topology information. Extensive empirical results on both node-level and graph-level tasks indicate the superiority of SignGT against state-of-the-art graph Transformers as well as advanced GNNs.
Benchmark Results
Tested on 7 datasets 16 baseline values reported too low Non-standard metric on 1 dataset
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9703
±0.0019 | |
| 2 | GAT | 0.9498
±0.0024 | prev best: Clarify Confused Nodes via Separated Learning (2023) best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Improvement within reported uncertainty; not highlighted. |
| 3 | GAT+T | 0.9660
±0.0007 | |
| 7 | SAGE | 0.9643
±0.0027 | |
| 8 | GCN | 0.9476
±0.0019 | prev best: Clarify Confused Nodes via Separated Learning (2023) |
| 18 | Specformer | 0.9580
±0.0026 best reported | |
| 24 | SignGT | 0.9568
±0.0036 | This paper |
| 33 | GPRGNN | 0.9549
±0.0014 | prev best: Clarify Confused Nodes via Separated Learning (2023) |
| 44 | NodeFormer | 0.9527
±0.0022 | This paper |
| 48 | GloGNN | 0.9517
±0.0029 | prev best: Clarify Confused Nodes via Separated Learning (2023) |
| 50 | SGC | 0.9511
±0.0009 | prev best: ROD: Reception-aware Online Distillation for Sparse Graphs (KDD 2021) |
| 66 | FAGCN | 0.9489
±0.0048 best reported | best at pub: Clarify Confused Nodes via Separated Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 80 | SignGT-O | 0.9444 | This paper |
| 390 | MLP | 0.9128
±0.0063 | |
| 569 | SignGT-T | 0.4094 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9461
±0.0017 | |
| 2 | GCN | 0.9412
±0.0008 best reported | best at pub: Clarify Confused Nodes via Separated Learning (2023) |
| 3 | GAT | 0.9078
±0.0013 | prev best: Clarify Confused Nodes via Separated Learning (2023) |
| 8 | SAGE | 0.9351
±0.0006 | |
| 37 | SignGT | 0.9171
±0.0044 | This paper |
| 48 | NodeFormer | 0.9112
±0.0043 | This paper |
| 49 | Specformer | 0.9109
±0.0027 best reported | Difference within reported uncertainty; not counted as underperformance. |
| 72 | GPRGNN | 0.8932
±0.0029 | prev best: Clarify Confused Nodes via Separated Learning (2023) Improvement within reported uncertainty; not highlighted. |
| 82 | SGC | 0.9022
±0.0021 | |
| 88 | SignGT-O | 0.9015 | This paper |
| 126 | FAGCN | 0.8968
±0.0097 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 152 | GloGNN | 0.8912
±0.0033 | prev best: Clarify Confused Nodes via Separated Learning (2023) |
| 320 | MLP | 0.8463 | |
| 500 | SignGT-T | 0.3742 | This paper |
TU Dortmund
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9910
±0.0030 | |
| 2 | ID-GNN+BEC | 0.9830
±0.0360 | |
| 3 | SupCosine | 0.9830
±0.0250 | |
| 39 | GIN | 0.9330
±0.0290 | |
| 56 | SAT | 0.9260
±0.0430 best reported | best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) |
| 63 | GCN | 0.9220
±0.0440 best reported | best at pub: Breaking the Limits of Message Passing Graph Neural Networks (ICML 2021) best today: Depth-Adaptive Graph Neural Networks via Learnable Bakry-Émery Curvature (KDD 2025) |
| 158 | GraphSAGE | 0.9040
±0.0780 best reported | best at pub: Asynchronous Neural Networks for Learning in Graphs (2022) Difference within reported uncertainty; not counted as underperformance. |
| 183 | GAT | 0.9010
±0.0580 best reported | best at pub: Breaking the Limits of Message Passing Graph Neural Networks (ICML 2021) best today: The Expressive Power of Graph Neural Networks: A Survey (2023) |
| 190 | SortPool | 0.9000
±0.0224 best reported | best at pub: CogDL: A Comprehensive Library for Graph Deep Learning (WWW 2021) |
| 224 | Graphormer | 0.8960
±0.0620 best reported | best at pub: Incorporating Heterophily into Graph Neural Networks for Graph Classification (2022) best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) |
| 378 | GraphTrans | 0.8722
±0.0705 best reported | best today: Dual-perspective Cross Contrastive Learning in Graph Transformers (2024) Difference within reported uncertainty; not counted as underperformance. |
| 403 | MLP | 0.8660
±0.0495 | |
| 518 | SignGT | 0.8314
±0.0056 | This paper |
| 593 | Set2Set | 0.8084
±0.0067 | prev best: Graph Convolutional Networks with EigenPooling (KDD 2019) |
| 596 | GT | 0.8079
±0.0098 | This paper |
| 630 | SAGPool_h | 0.7972
±0.0079 | This paper |
| 724 | Transformer | 0.7425
±0.0069 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | WL-MLP | 0.9954 | |
| 2 | GIN | 0.9934 | |
| 3 | GCN | 0.9727 best reported | best at pub: 1-WL Expressiveness Is (Almost) All You Need (2022) |
| 4 | GAT | 0.9623 best reported | best at pub: 1-WL Expressiveness Is (Almost) All You Need (2022) |
| 54 | SignGT | 0.8342
±0.0072 | This paper |
| 100 | GraphTrans | 0.8260
±0.0120 best reported | best at pub: Search to Capture Long-range Dependency with Stacking GNNs for Graph Classification (WWW 2023) best today: Dual-perspective Cross Contrastive Learning in Graph Transformers (2024) Difference within reported uncertainty; not counted as underperformance. |
| 105 | SAT | 0.8250
±0.0080 best reported | best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) Difference within reported uncertainty; not counted as underperformance. |
| 131 | GraphSAGE | 0.8200
±0.0100 best reported | best at pub: Weisfeiler and Leman Go Infinite: Spectral and Combinatorial Pre-Colorings (TMLR 2022) |
| 154 | Graphormer | 0.8144
±0.0057 | prev best: Fused Gromov-Wasserstein Graph Mixup for Graph-level Classifications (NeurIPS 2023) |
| 219 | GT | 0.8015
±0.0204 | This paper |
| 415 | SortPool | 0.7496
±0.0134 best reported | best at pub: CogDL: A Comprehensive Library for Graph Deep Learning (WWW 2021) best today: Graph Structure Prompt Learning: A Novel Methodology to Improve Performance of Graph Neural Networks (2024) Difference within reported uncertainty; not counted as underperformance. |
| 463 | Set2Set | 0.7170
±0.0073 best reported | |
| 504 | Transformer | 0.6847
±0.0178 | This paper |
| 509 | SAGPool_h | 0.6755
±0.0103 | prev best: Representing Long-Range Context for Graph Neural Networks with Global Attention (NeurIPS 2022) Improvement within reported uncertainty; not highlighted. |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | WL-MLP | 0.9792 | |
| 2 | MSH-GNN | 0.9640
±0.0070 | |
| 3 | CoCN | 0.8722
±0.0013 | |
| 23 | GCN | 0.8260
±0.0220 best reported | best at pub: Fast Graph Representation Learning with PyTorch Geometric (ICLR 2019) best today: Scalable Expressiveness through Preprocessed Graph Perturbations (2024) |
| 26 | SignGT | 0.8240
±0.0014 | This paper |
| 30 | GIN | 0.8220
±0.0210 | |
| 38 | Graphormer | 0.8180
±0.0224 | |
| 101 | SAT | 0.8060
±0.0060 best reported | best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) Difference within reported uncertainty; not counted as underperformance. |
| 125 | SortPool | 0.8007 best reported | best at pub: CogDL: A Comprehensive Library for Graph Deep Learning (WWW 2021) |
| 131 | GraphTrans | 0.7981
±0.0084 | This paper |
| 136 | GraphSAGE | 0.7970
±0.0170 | This paper |
| 139 | GT | 0.7963
±0.0102 | This paper |
| 142 | Set2Set | 0.7960
±0.0230 best reported | best at pub: Fast Graph Representation Learning with PyTorch Geometric (ICLR 2019) |
| 151 | MLP | 0.7920
±0.0240 | |
| 155 | GAT | 0.7908
±0.0136 best reported | best at pub: Improving Subgraph Recognition with Variational Graph Information Bottleneck (2021) best today: Graph Structure Refinement with Energy-based Contrastive Learning (AAAI 2024) |
| 276 | SAGPool_h | 0.7308
±0.0131 | This paper |
| 305 | Transformer | 0.6957
±0.0322 | This paper |
Heterophilic Graphs
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | DiGGR | 0.4535
±0.0353 | |
| 2 | TRIGON | 0.4402
±0.0028 | |
| 3 | DoG | 0.4320
±0.0120 | |
| 19 | Specformer | 0.4193
±0.0104 best reported | best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 42 | MLP | 0.4026
±0.0108 | |
| 52 | GPRGNN | 0.3992
±0.0067 best reported | best at pub: LON-GNN: Spectral GNNs with Learnable Orthonormal Basis (2023) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 56 | FAGCN | 0.3970 best reported | best at pub: Beyond Low-frequency Information in Graph Convolutional Networks (AAAI 2021) |
| 58 | GloGNN | 0.3959
±0.0029 | Improvement within reported uncertainty; not highlighted. |
| 68 | GraphSAGE | 0.3899
±0.0085 | |
| 74 | SignGT | 0.3865
±0.0032 | This paper |
| 135 | GCN | 0.3690 best reported | best at pub: Beyond Low-frequency Information in Graph Convolutional Networks (AAAI 2021) |
| 136 | NodeFormer | 0.3690
±0.0100 best reported | best today: Even Sparser Graph Transformers (NeurIPS 2024) |
| 182 | GAT | 0.3605
±0.0035 best reported | best at pub: Hierarchical Graph Transformer with Adaptive Node Sampling (NeurIPS 2022) |
| 193 | SignGT-T | 0.3586 | This paper |
| 237 | SGC | 0.3490
±0.0070 best reported | best at pub: Restructuring Graphs for Higher Homophily via Adaptive Spectral Clustering (AAAI 2022) |
| 246 | SignGT-O | 0.3467 | This paper |
Heterogeneous Graph Benchmarks
ACM
Global leaderboard →Sorted by Accuracy. Highlighted rows are from other papers.
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | SignGT | 0.9545
±0.0049 | This paper |
| 2 | NodeFormer | 0.9493
±0.0035 | This paper |
| 3 | FAGCN | 0.9487
±0.0059 | prev best: GANN: Graph Alignment Neural Network for Semi-Supervised Learning (2023) |
| 4 | Specformer | 0.9454
±0.0043 | This paper |
| 5 | GPRGNN | 0.9442
±0.0049 | This paper |
| 7 | GAT | 0.9424
±0.0043 | prev best: GANN: Graph Alignment Neural Network for Semi-Supervised Learning (2023) |
| 9 | GloGNN | 0.9407
±0.0046 | This paper |
| 10 | SignGT-O | 0.9401 | This paper |
| 26 | SGC | 0.9315
±0.0022 | prev best: GANN: Graph Alignment Neural Network for Semi-Supervised Learning (2023) |
| 34 | GCN | 0.9233
±0.0038 | prev best: GANN: Graph Alignment Neural Network for Semi-Supervised Learning (2023) Improvement within reported uncertainty; not highlighted. |
| 64 | SignGT-T | 0.8132 | This paper |
| 67 | GraphSAGE | 0.7529
±0.0020 |
