Fast Graph Representation Learning with PyTorch Geometric
Abstract
We introduce PyTorch Geometric, a library for deep learning on irregularly structured input data such as graphs, point clouds and manifolds, built upon PyTorch. In addition to general graph data structures and processing methods, it contains a variety of recently published methods from the domains of relational learning and 3D data processing. PyTorch Geometric achieves high data throughput by leveraging sparse GPU acceleration, by providing dedicated CUDA kernels and by introducing efficient mini-batch handling for input examples of different size. In this work, we present the library in detail and perform a comprehensive comparative study of the implemented methods in homogeneous evaluation scenarios.
Benchmark Results
Tested on 5 datasets 3 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | CNA | 0.9575
±0.0058 | |
| 2 | IS-GIB | 0.9390
±0.0187 | |
| 3 | EERM | 0.9112
±0.0145 | |
| 20 | APPNP | 0.8142
±0.0026 best reported | best today: Feature Expansion for Graph Neural Networks (ICML 2023) |
| 35 | GAT | 0.8080
±0.0026 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) best today: Feature Expansion for Graph Neural Networks (ICML 2023) |
| 44 | GCN | 0.7110
±0.0070 | prev best: Topology Adaptive Graph Convolutional Networks (2017) |
| 61 | GraphSAGE | 0.7923
±0.0053 | |
| 96 | SGC | 0.7765
±0.0012 best reported | best at pub: Deep Learning on Graphs: A Survey (2018) |
| 350 | MLP | 0.7289
±0.0010 | |
| 390 | ARMA | 0.7250 best reported | best at pub: Graph Neural Networks With Convolutional ARMA Filters (2019) Difference within reported uncertainty; not counted as underperformance. |
| 612 | Cheby | 0.7020
±0.0100 | 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 | |
| 17 | APPNP | 0.8010
±0.0020 | prev best: Predict then Propagate: Graph Neural Networks meet Personalized PageRank (ICLR 2018) Improvement within reported uncertainty; not highlighted. |
| 18 | GCN | 0.9296
±0.0015 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) |
| 20 | GAT | 0.9233
±0.0018 best reported | best at pub: Topology Adaptive Graph Convolutional Networks (2017) |
| 116 | SAGE | 0.8881
±0.0015 | |
| 141 | SGC | 0.8832
±0.0055 best reported | best at pub: Deep Learning on Graphs: A Survey (2018) |
| 210 | MLP | 0.8690
±0.0074 | |
| 217 | ARMA | 0.8678
±0.0021 best reported | best at pub: Graph Neural Networks With Convolutional ARMA Filters (2019) |
| 650 | Cheby | 0.7840
±0.0040 | 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 | |
| 63 | GCN | 0.9220
±0.0440 best reported | best at pub: Graph Neural Networks With Convolutional ARMA Filters (2019) best today: Depth-Adaptive Graph Neural Networks via Learnable Bakry-Émery Curvature (KDD 2025) |
| 190 | SortPool | 0.9000
±0.0224 best reported | |
| 238 | GIN-0 | 0.8940
±0.0560 best reported | best today: InfoGCL: Information-Aware Graph Contrastive Learning (NeurIPS 2021) Difference within reported uncertainty; not counted as underperformance. |
| 239 | DiffPool | 0.8940
±0.0460 best reported | best today: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) Difference within reported uncertainty; not counted as underperformance. |
| 274 | GIN-ε | 0.8900
±0.0600 best reported | best today: Prototypical Graph Contrastive Learning (2021) Difference within reported uncertainty; not counted as underperformance. |
| 403 | MLP | 0.8660
±0.0495 | |
| 593 | Set2Set | 0.8084
±0.0067 best reported | |
| 679 | Graclus | 0.7710
±0.0720 | This paper |
| 689 | top_k | 0.7630
±0.0750 | This paper |
| 718 | SAGE | 0.7490
±0.0870 | This paper |
| 720 | GlobalAttention | 0.7460
±0.0800 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9410
±0.0330 | |
| 2 | GRDL | 0.8260
±0.0120 | |
| 3 | GMN | 0.8225 | |
| 7 | DiffPool | 0.8161
±0.0232 best reported | |
| 32 | GIN | 0.7880
±0.0410 | |
| 67 | SAGE | 0.7726
±0.0228 best reported | best today: Semi-Supervised Hierarchical Graph Classification (2022) Difference within reported uncertainty; not counted as underperformance. |
| 148 | GCN | 0.7310
±0.0380 | prev best: Graph Neural Networks With Convolutional ARMA Filters (2019) Improvement within reported uncertainty; not highlighted. |
| 149 | MLP | 0.7600
±0.0320 | |
| 152 | SortPool | 0.7598
±0.0176 best reported | |
| 301 | Set2Set | 0.7429 best reported | best today: Memory-Based Graph Networks (ICLR 2020) Difference within reported uncertainty; not counted as underperformance. |
| 367 | Graclus | 0.7300
±0.0410 | This paper |
| 378 | top_k | 0.7270
±0.0410 | This paper |
| 383 | GIN-ε | 0.7260
±0.0490 | This paper |
| 387 | GlobalAttention | 0.7250
±0.0450 | This paper |
| 406 | GIN-0 | 0.7210
±0.0510 | This paper |
| # | 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 today: Scalable Expressiveness through Preprocessed Graph Perturbations (2024) Difference within reported uncertainty; not counted as underperformance. |
| 30 | GIN | 0.8220
±0.0210 | |
| 33 | DiffPool | 0.8213
±0.0043 best reported | best today: Scalable Graph Compressed Convolutions (2024) |
| 107 | Graclus | 0.8040
±0.0150 best reported | best today: The expressive power of pooling in Graph Neural Networks (NeurIPS 2023) Difference within reported uncertainty; not counted as underperformance. |
| 112 | GIN-0 | 0.8020
±0.0190 best reported | best today: InfoGCL: Information-Aware Graph Contrastive Learning (NeurIPS 2021) Difference within reported uncertainty; not counted as underperformance. |
| 120 | GIN-ε | 0.8010
±0.0190 best reported | best today: Prototypical Graph Contrastive Learning (2021) Difference within reported uncertainty; not counted as underperformance. |
| 125 | SortPool | 0.8007 best reported | best today: CogDL: A Comprehensive Library for Graph Deep Learning (WWW 2021) |
| 137 | SAGE | 0.7970
±0.0170 | This paper |
| 138 | top_k | 0.7970
±0.0220 | This paper |
| 144 | GlobalAttention | 0.7960
±0.0220 | This paper |
| 142 | Set2Set | 0.7960
±0.0230 | This paper |
| 151 | MLP | 0.7920
±0.0240 |
