Agent-based Graph Neural Networks
Abstract
We present a novel graph neural network we call AgentNet, which is designed specifically for graph-level tasks. AgentNet is inspired by sublinear algorithms, featuring a computational complexity that is independent of the graph size. The architecture of AgentNet differs fundamentally from the architectures of traditional graph neural networks. In AgentNet, some trained neural agents intelligently walk the graph, and then collectively decide on the output. We provide an extensive theoretical analysis of AgentNet: We show that the agents can learn to systematically explore their neighborhood and that AgentNet can distinguish some structures that are even indistinguishable by 2-WL. Moreover, AgentNet is able to separate any two graphs which are sufficiently different in terms of subgraphs. We confirm these theoretical results with synthetic experiments on hard-to-distinguish graphs and real-world graph classification tasks. In both cases, we compare favorably not only to standard GNNs but also to computationally more expensive GNN extensions.
Benchmark Results
Tested on 5 datasets 1 baseline value reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
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 | |
| 35 | AgentNet | 0.9360
±0.0860 | This paper |
| 39 | GIN | 0.9330
±0.0290 best reported | best at pub: ProtGNN: Towards Self-Explaining Graph Neural Networks (AAAI 2021) Difference within reported uncertainty; not counted as underperformance. |
| 63 | GCN | 0.9220
±0.0440 | |
| 140 | PPGN | 0.9060
±0.0870 | This paper |
| 162 | CRaWl | 0.9040
±0.0710 | This paper |
| 248 | 1-AgentNet | 0.8940
±0.1090 | This paper |
| 294 | 1-2-3 GNN | 0.8880
±0.0700 | prev best: Provably Powerful Graph Networks (NeurIPS 2019) Improvement within reported uncertainty; not highlighted. |
| 403 | MLP | 0.8660
±0.0495 |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | OEPG | 0.9630
±0.0090 | |
| 2 | MSH-GNN | 0.9580
±0.0090 | |
| 3 | GNN-AK+ | 0.9480
±0.0080 | |
| 4 | AgentNet | 0.9420
±0.0120 | This paper |
| 7 | ESAN | 0.9330
±0.0130 | This paper |
| 9 | CRaWl | 0.9280
±0.0220 | This paper |
| 13 | GIN | 0.9240
±0.0250 | This paper |
| 41 | DropGIN | 0.8990
±0.0170 | This paper |
| 74 | 1-AgentNet | 0.7790
±0.0300 | This paper |
| 84 | GCN | 0.7060
±0.0369 |
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 | |
| 89 | AgentNet | 0.7833
±0.0069 | This paper |
| 101 | ESAN | 0.7800
±0.0142 | This paper |
| 109 | GIN | 0.7780
±0.0182 best reported | best at pub: GRPE: Relative Positional Encoding for Graph Transformer (2022) Difference within reported uncertainty; not counted as underperformance. |
| 110 | CRaWl | 0.7778
±0.0087 | This paper |
| 146 | GIN+virtual node | 0.7710
±0.0150 best reported | best at pub: Wasserstein Embedding for Graph Learning (ICLR 2020) Difference within reported uncertainty; not counted as underperformance. |
| 160 | GraphSAGE | 0.7690
±0.0136 |
| # | Model | AP ↑ | Paper |
|---|---|---|---|
| 1 | GRPE-Large | 0.3150
±0.0010 | |
| 2 | Graphormer | 0.3140 | |
| 3 | Graphormer-FLAG | 0.3139
±0.0032 | |
| 9 | CRaWl | 0.2986
±0.0025 | This paper |
| 31 | GIN | 0.2902
±0.0017 best reported | best at pub: GRPE: Relative Positional Encoding for Graph Transformer (2022) |
| 53 | GIN+virtual node | 0.2703
±0.0023 | This paper |
| 56 | GCN | 0.2690
±0.0020 | |
| 59 | ESAN | 0.2664
±0.0027 | This paper |
| 72 | AgentNet | 0.2549
±0.0027 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | A-NLSF | 0.8149
±0.0067 | |
| 2 | differential encoding | 0.8096
±0.0029 | |
| 3 | MPNN + VN + NoPE | 0.8055
±0.0038 | |
| 16 | GatedGCN | 0.7531
±0.0083 | |
| 24 | AgentNet | 0.7233
±0.0062 | This paper |
| 33 | GIN | 0.7037
±0.0107 best reported | best at pub: Parameterized Hypercomplex Graph Neural Networks for Graph Classification (2021) best today: Adaptive Canonicalization with Application to Invariant Anisotropic Geometric Networks (2025) Difference within reported uncertainty; not counted as underperformance. |
| 35 | GIN+virtual node | 0.7037
±0.0107 | This paper |
| 37 | CRaWl | 0.7025
±0.0052 | This paper |
| 38 | GCN | 0.6857
±0.0061 |
