Union Subgraph Neural Networks
Abstract
Graph Neural Networks (GNNs) are widely used for graph representation learning in many application domains. The expressiveness of vanilla GNNs is upper-bounded by 1-dimensional Weisfeiler-Leman (1-WL) test as they operate on rooted subtrees through iterative message passing. In this paper, we empower GNNs by injecting neighbor-connectivity information extracted from a new type of substructure. We first investigate different kinds of connectivities existing in a local neighborhood and identify a substructure called union subgraph, which is able to capture the complete picture of the 1-hop neighborhood of an edge. We then design a shortest-path-based substructure descriptor that possesses three nice properties and can effectively encode the high-order connectivities in union subgraphs. By infusing the encoded neighbor connectivities, we propose a novel model, namely Union Subgraph Neural Network (UnionSNN), which is proven to be strictly more powerful than 1-WL in distinguishing non-isomorphic graphs. Additionally, the local encoding from union subgraphs can also be injected into arbitrary message-passing neural networks (MPNNs) and Transformer-based models as a plugin. Extensive experiments on benchmarks of both graph-level and node-level tasks demonstrate that UnionSNN outperforms state-of-the-art baseline models, with competitive computational efficiency. The injection of our local encoding to existing models is able to boost the performance by up to 11.09\
Benchmark Results
Tested on 11 datasets 27 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 | GraphSAGE+CNA | 0.9418
±0.0033 | |
| 2 | GCN+CNA | 0.9366
±0.0048 | |
| 3 | TransformerConv | 0.9350
±0.0058 | |
| 21 | GCN | 0.9004 best reported | best at pub: SplineCNN: Fast Geometric Deep Learning with Continuous B-Spline Kernels (2017) best today: Understanding Heterophily for Graph Neural Networks (ICML 2024) |
| 39 | SAGE | 0.8911
±0.0012 | |
| 44 | GAT | 0.8897
±0.0014 best reported | best at pub: Learned Low Precision Graph Neural Networks (2020) |
| 141 | GraphSAGE | 0.8708
±0.0085 best reported | best at pub: From Node Interaction to Hop Interaction: New Effective and Scalable Graph Learning Paradigm (2022) best today: Large Language Model Meets Graph Neural Network in Knowledge Distillation (AAAI 2024) |
| 165 | GIN | 0.8660
±0.0091 best reported | best at pub: Weisfeiler and Leman Go Infinite: Spectral and Combinatorial Pre-Colorings (TMLR 2022) best today: Large Language Model Meets Graph Neural Network in Knowledge Distillation (AAAI 2024) |
| 316 | GraphSNN | 0.8380
±0.0120 best reported | best today: The Expressive Power of Graph Neural Networks: A Survey (2023) |
| 458 | CurvGN | 0.8260
±0.0060 best reported | |
| 724 | MLP | 0.7768 | |
| 741 | UnionSNN | 0.7686
±0.0158 | This paper |
| 760 | UnionGIN | 0.7590
±0.0080 | This paper |
| 766 | UnionGraphSNN | 0.7558
±0.0049 | This paper |
| 782 | UnionGCN | 0.7448
±0.0042 | This paper |
| 808 | GeniePath | 0.7216
±0.0269 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | CNA | 0.9575
±0.0058 | |
| 2 | IS-GIB | 0.9390
±0.0187 | |
| 3 | EERM | 0.9112
±0.0145 | |
| 35 | GAT | 0.8080
±0.0026 best reported | best at pub: Feature Expansion for Graph Neural Networks (ICML 2023) |
| 44 | GCN | 0.8033
±0.0088 best reported | best at pub: Gophormer: Ego-Graph Transformer for Node Classification (2021) |
| 61 | GraphSAGE | 0.7923
±0.0053 best reported | best at pub: Gophormer: Ego-Graph Transformer for Node Classification (2021) |
| 259 | SAGE | 0.7361
±0.0190 | |
| 275 | GraphSNN | 0.7350
±0.0160 best reported | best today: The Expressive Power of Graph Neural Networks: A Survey (2023) |
| 350 | MLP | 0.7289
±0.0010 | |
| 389 | GIN | 0.7250
±0.0080 best reported | best at pub: Towards Self-Explainable Graph Neural Network (2021) |
| 506 | CurvGN | 0.7150
±0.0080 best reported | |
| 769 | UnionGraphSNN | 0.6522
±0.0112 | This paper |
| 772 | UnionSNN | 0.6502
±0.0102 | This paper |
| 798 | UnionGIN | 0.6366
±0.0175 | This paper |
| 836 | UnionGCN | 0.5902
±0.0364 | This paper |
| 847 | GeniePath | 0.5740
±0.0216 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | LGTL | 0.9518
±0.0011 | |
| 2 | MixHop (LO) | 0.9513
±0.0038 | |
| 3 | GraphSAGE (LO) | 0.9511
±0.0036 | |
| 18 | GCN | 0.9296
±0.0015 best reported | best at pub: Tackling Over-Smoothing for General Graph Convolutional Networks (2020) |
| 20 | GAT | 0.9233
±0.0018 best reported | best at pub: Tackling Over-Smoothing for General Graph Convolutional Networks (2020) |
| 116 | SAGE | 0.8881
±0.0015 | |
| 125 | GraphSAGE | 0.8864
±0.0030 best reported | best at pub: Feature Expansion for Graph Neural Networks (ICML 2023) best today: Non-backtracking Graph Neural Networks (TMLR 2023) |
| 157 | GIN | 0.8810 best reported | best at pub: Learning Conjoint Attentions for Graph Neural Nets (NeurIPS 2021) best today: UGSL: A Unified Framework for Benchmarking Graph Structure Learning (2023) |
| 210 | MLP | 0.8690
±0.0074 | |
| 489 | GraphSNN | 0.7960
±0.0140 best reported | best today: The Expressive Power of Graph Neural Networks: A Survey (2023) |
| 616 | CurvGN | 0.7880
±0.0060 best reported | |
| 635 | GeniePath | 0.7850 best reported | best at pub: SPAGAN: Shortest Path Graph Attention Network (IJCAI 2019) |
| 738 | UnionSNN | 0.7706
±0.0107 | This paper |
| 742 | UnionGraphSNN | 0.7692
±0.0056 | This paper |
| 748 | UnionGIN | 0.7678
±0.0102 | This paper |
| 801 | UnionGCN | 0.7482
±0.0110 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9703
±0.0019 | |
| 2 | GAT | 0.9669
±0.0014 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 3 | GAT+T | 0.9660
±0.0007 | |
| 7 | SAGE | 0.9643
±0.0027 | |
| 8 | GCN | 0.9632
±0.0008 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 56 | GraphSAGE | 0.9508
±0.0026 best reported | best at pub: Elastic Graph Neural Networks (ICML 2021) best today: A Quasi-Wasserstein Loss for Learning Graph Neural Networks (WWW 2023) |
| 226 | UnionSNN | 0.9292
±0.0038 | This paper |
| 280 | CurvGN | 0.9250
±0.0050 | This paper |
| 308 | UnionGCN | 0.9233
±0.0053 | This paper |
| 314 | UnionGIN | 0.9228
±0.0019 | This paper |
| 328 | GIN | 0.9211
±0.0032 | prev best: Learning Graph Augmentations to Learn Graph Representations (2022) |
| 390 | MLP | 0.9128
±0.0063 | |
| 407 | GraphSNN | 0.9082
±0.0030 | This paper |
| 422 | UnionGraphSNN | 0.9060
±0.0058 | This paper |
| 450 | GeniePath | 0.8998
±0.0114 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9461
±0.0017 | |
| 2 | GCN | 0.9412
±0.0008 best reported | best at pub: Learning on Attribute-Missing Graphs (2020) |
| 3 | GAT | 0.9398
±0.0022 best reported | best at pub: Unifying Graph Contrastive Learning with Flexible Contextual Scopes (2022) |
| 8 | SAGE | 0.9351
±0.0006 | |
| 46 | GraphSAGE | 0.9120
±0.0029 best reported | best at pub: Elastic Graph Neural Networks (ICML 2021) best today: Can TabPFN Compete with GNNs for Node Classification via Graph Tabularization? (LoG 2025) |
| 167 | UnionGCN | 0.8884
±0.0027 | This paper |
| 222 | UnionSNN | 0.8776
±0.0036 | This paper |
| 260 | UnionGIN | 0.8681
±0.0212 | This paper |
| 277 | CurvGN | 0.8630
±0.0070 | This paper |
| 282 | GIN | 0.8626
±0.0056 | prev best: On the Ability of Graph Neural Networks to Model Interactions Between Vertices (NeurIPS 2022) |
| 320 | MLP | 0.8463 | |
| 322 | UnionGraphSNN | 0.8458
±0.0046 | This paper |
| 345 | GraphSNN | 0.8411
±0.0057 | This paper |
| 388 | GeniePath | 0.8268
±0.0045 | 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 | |
| 24 | GraphSNN | 0.9470
±0.0190 best reported | |
| 39 | GIN | 0.9330
±0.0290 best reported | best at pub: ProtGNN: Towards Self-Explaining Graph Neural Networks (AAAI 2021) |
| 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) |
| 160 | DropGIN | 0.9040
±0.0700 best reported | best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) Difference within reported uncertainty; not counted as underperformance. |
| 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) |
| 291 | UnionGIN | 0.8886
±0.0433 | This paper |
| 318 | GatedGCN-LSPE | 0.8833
±0.0388 | This paper |
| 371 | UnionSNN | 0.8731
±0.0529 | This paper |
| 375 | CurvGN | 0.8725
±0.0628 | This paper |
| 403 | MLP | 0.8660
±0.0495 | |
| 412 | NestedGIN | 0.8623
±0.0882 | This paper |
| 456 | MEWISPool | 0.8473
±0.0473 | This paper |
| 483 | 3WL-GNN | 0.8406
±0.0662 | prev best: Multi-grained Semantics-aware Graph Neural Networks (2020) Improvement within reported uncertainty; not highlighted. |
| 519 | UnionGraphSAGE | 0.8304
±0.0870 | This paper |
| 573 | UnionGCN | 0.8187
±0.0381 | This paper |
| 677 | UnionGatedGCN | 0.7714
±0.0814 | This paper |
| 678 | GatedGCN | 0.7711
±0.1005 | This paper |
| 703 | UGformer | 0.7566
±0.0867 | This paper |
| 718 | SAGE | 0.7490
±0.0870 |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | WL-MLP | 0.9954 | |
| 2 | GIN | 0.9934 best reported | best at pub: 1-WL Expressiveness Is (Almost) All You Need (2022) |
| 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) |
| 114 | UnionSNN | 0.8234
±0.0193 | This paper |
| 119 | UnionGIN | 0.8229
±0.0198 | This paper |
| 123 | DropGIN | 0.8219
±0.0139 | This paper |
| 129 | NestedGIN | 0.8204
±0.0223 | This paper |
| 131 | GraphSAGE | 0.8200
±0.0100 best reported | best at pub: Weisfeiler and Leman Go Infinite: Spectral and Combinatorial Pre-Colorings (TMLR 2022) |
| 181 | UnionGatedGCN | 0.8095
±0.0211 | This paper |
| 185 | GatedGCN-LSPE | 0.8075
±0.0167 | This paper |
| 202 | UnionGCN | 0.8041
±0.0194 | This paper |
| 209 | GatedGCN | 0.8032
±0.0207 | This paper |
| 253 | 3WL-GNN | 0.7938
±0.0173 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) Difference within reported uncertainty; not counted as underperformance. |
| 255 | CurvGN | 0.7932
±0.0165 | This paper |
| 434 | MEWISPool | 0.7421
±0.0326 | This paper |
| 475 | GraphSNN | 0.7087
±0.0278 | This paper |
| 493 | UnionGraphSAGE | 0.6936
±0.0164 | This paper |
| 501 | UGformer | 0.6884
±0.0154 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9410
±0.0330 | |
| 2 | GRDL | 0.8260
±0.0120 | |
| 3 | GMN | 0.8225 | |
| 32 | GIN | 0.7880
±0.0410 best reported | best at pub: CI-GNN: A Granger Causality-Inspired Graph Neural Network for Interpretable Brain Network-Based Psychiatric Diagnosis (2023) best today: Permutation-Invariant graph partitioning: How graph neural networks capture structural interactions? (2023) Difference within reported uncertainty; not counted as underperformance. |
| 39 | GraphSNN | 0.7842
±0.0270 best reported | |
| 49 | GAT | 0.7800
±0.0300 best reported | best at pub: CI-GNN: A Granger Causality-Inspired Graph Neural Network for Interpretable Brain Network-Based Psychiatric Diagnosis (2023) Difference within reported uncertainty; not counted as underperformance. |
| 50 | 3WL-GNN | 0.7792
±0.0209 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) |
| 67 | SAGE | 0.7726
±0.0228 | |
| 87 | UnionGatedGCN | 0.7691
±0.0306 | This paper |
| 88 | DropGIN | 0.7690
±0.0430 best reported | best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) Difference within reported uncertainty; not counted as underperformance. |
| 95 | GatedGCN | 0.7672
±0.0311 best reported | best at pub: GNNBenchmark (JMLR 2023) Difference within reported uncertainty; not counted as underperformance. |
| 148 | GCN | 0.7600
±0.0320 best reported | best at pub: CI-GNN: A Granger Causality-Inspired Graph Neural Network for Interpretable Brain Network-Based Psychiatric Diagnosis (2023) best today: Simplifying Graph Convolutional Networks with Redundancy-Free Neighbors (2025) Difference within reported uncertainty; not counted as underperformance. |
| 149 | MLP | 0.7600
±0.0320 | |
| 155 | GraphSAGE | 0.7590
±0.0320 best reported | best at pub: On Structural Expressive Power of Graph Transformers (KDD 2023) best today: Simplifying Graph Convolutional Networks with Redundancy-Free Neighbors (2025) Difference within reported uncertainty; not counted as underperformance. |
| 175 | CurvGN | 0.7573
±0.0287 | This paper |
| 244 | UnionSNN | 0.7502
±0.0250 | This paper |
| 243 | UnionGCN | 0.7502
±0.0250 | This paper |
| 287 | UnionGraphSAGE | 0.7457
±0.0235 | This paper |
| 319 | GatedGCN-LSPE | 0.7394
±0.0272 | This paper |
| 356 | UnionGIN | 0.7322
±0.0390 | This paper |
| 457 | UGformer | 0.7017
±0.0542 | This paper |
| 464 | MEWISPool | 0.6940
±0.0144 best reported | 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. |
| 467 | NestedGIN | 0.6855
±0.0322 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GMN | 0.7866 | |
| 2 | MemGNN | 0.7550 | |
| 3 | TFGW SP | 0.7510
±0.0500 | |
| 17 | GatedGCN | 0.7000
±0.0494 best reported | best at pub: GNNBenchmark (JMLR 2023) Difference within reported uncertainty; not counted as underperformance. |
| 20 | GAT | 0.6850
±0.0524 best reported | best at pub: GNNBenchmark (JMLR 2023) Difference within reported uncertainty; not counted as underperformance. |
| 25 | UnionSNN | 0.6817
±0.0570 | This paper |
| 26 | GraphSAGE | 0.6817
±0.0545 best reported | best at pub: GNNBenchmark (JMLR 2023) |
| 28 | UnionGatedGCN | 0.6783
±0.0687 | This paper |
| 29 | UnionGIN | 0.6783
±0.0610 | This paper |
| 31 | GraphSNN | 0.6767
±0.0374 | This paper |
| 32 | GIN | 0.6767
±0.0583 best reported | best at pub: GNNBenchmark (JMLR 2023) Difference within reported uncertainty; not counted as underperformance. |
| 33 | DropGIN | 0.6750
±0.0642 | prev best: Template based Graph Neural Network with Optimal Transport Distances (NeurIPS 2022) Improvement within reported uncertainty; not highlighted. |
| 36 | GCN | 0.6650
±0.0691 best reported | best at pub: Hierarchical Graph Capsule Network (AAAI 2020) Difference within reported uncertainty; not counted as underperformance. |
| 51 | UnionGCN | 0.6467
±0.0714 | This paper |
| 52 | UGformer | 0.6457
±0.0453 | This paper |
| 53 | GatedGCN-LSPE | 0.6450
±0.0592 | This paper |
| 112 | UnionGraphSAGE | 0.5832
±0.0264 | This paper |
| 122 | CurvGN | 0.5650
±0.0713 | This paper |
| 124 | MLP | 0.5583
±0.0352 | |
| 126 | SAGE | 0.5550
±0.0511 | |
| 137 | NestedGIN | 0.5467
±0.0999 | This paper |
| 138 | 3WL-GNN | 0.5417
±0.0625 | This paper |
| 142 | MEWISPool | 0.5366
±0.0607 | This paper |
OGB
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | Multi-RF Fusion with Multi-GNN Blending | 0.8476
±0.0002 | |
| 2 | HyperFusion | 0.8475
±0.0003 | |
| 3 | PAS+FPs | 0.8420
±0.0015 | |
| 9 | GatedGCN | 0.8090
±0.0160 | |
| 80 | GraphSNN | 0.7851
±0.0170 best reported | |
| 109 | GIN | 0.7780
±0.0182 best reported | best at pub: GRPE: Relative Positional Encoding for Graph Transformer (2022) |
| 140 | GAT | 0.7717
±0.0137 best reported | best at pub: Do We Need Anisotropic Graph Neural Networks? (ICLR 2021) |
| 160 | GraphSAGE | 0.7690
±0.0136 best reported | best at pub: SoGCN: Second-Order Graph Convolutional Networks (2021) |
| 184 | GCN | 0.7630
±0.0030 best reported | best at pub: Motif-based Graph Representation Learning with Application to Chemical Molecules (2022) |
| 249 | UnionSNN | 0.7444
±0.0121 | This paper |
| 269 | CurvGN | 0.7317
±0.0089 | This paper |
MoleculeNet
Tox21
Global leaderboard →Sorted by Accuracy. Highlighted rows are from other papers.
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphSNN | 0.9224
±0.0059 | This paper |
| 2 | UnionSNN | 0.9176
±0.0085 | This paper |
| 3 | GIN | 0.9174
±0.0095 | This paper |
| 4 | UnionGIN | 0.9174
±0.0074 | This paper |
| 5 | GatedGCN-LSPE | 0.9171
±0.0071 | This paper |
| 6 | DropGIN | 0.9166
±0.0092 | This paper |
| 7 | UnionGCN | 0.9163
±0.0072 | This paper |
| 8 | NestedGIN | 0.9142
±0.0118 | This paper |
| 9 | UnionGatedGCN | 0.9131
±0.0089 | This paper |
| 10 | CurvGN | 0.9087
±0.0038 | This paper |
| 11 | GatedGCN | 0.9083
±0.0096 | This paper |
| 12 | GAT | 0.9035
±0.0071 | This paper |
| 13 | 3WL-GNN | 0.9031
±0.0133 | This paper |
| 14 | GCN | 0.9010
±0.0077 | prev best: Graph convolutions that can finally model local structure (2020) |
| 15 | UnionGraphSAGE | 0.8859
±0.0012 | This paper |
| 16 | GraphSAGE | 0.8836
±0.0015 | This paper |
| 17 | MEWISPool | 0.8813
±0.0005 | This paper |
| 18 | UGformer | 0.8806
±0.0050 | This paper |
