Bayesian Neighborhood Adaptation for Graph Neural Networks
Abstract
The neighborhood scope (i.e., number of hops) where graph neural networks (GNNs) aggregate information to characterize a node's statistical property is critical to GNNs' performance. Two-stage approaches, training and validating GNNs for every pre-specified neighborhood scope to search for the best setting, is a time-consuming task and tends to be biased due to the search space design. How to adaptively determine proper neighborhood scopes for the aggregation process for both homophilic and heterophilic graphs remains largely unexplored. We thus propose to model the GNNs' message-passing behavior on a graph as a stochastic process by treating the number of hops as a beta process. This Bayesian framework allows us to infer the most plausible neighborhood scope for message aggregation simultaneously with the optimization of GNN parameters. Our theoretical analysis shows that the scope inference improves the expressivity of a GNN. Experiments on benchmark homophilic and heterophilic datasets show that the proposed method is compatible with state-of-the-art GNN variants, achieving competitive or superior performance on the node classification task, and providing well-calibrated predictions. Implementation is available at:
Benchmark Results
Tested on 2 datasets 2 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Heterophilic Graphs
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | P^2GNN | 0.9672
±0.0147 | |
| 2 | DoG | 0.9660
±0.0210 | |
| 3 | GPF-plus | 0.9583
±0.0419 | |
| 5 | ACM-GCN | 0.9557
±0.0360 best reported | best at pub: Diffusion on Graph: Augmentation of Graph Structure for Node Classification (TMLR 2025) best today: $P^2$GNN: Two Prototype Sets to boost GNN Performance (2026) Difference within reported uncertainty; not counted as underperformance. |
| 12 | general Bayesian inference strategy + GCNII | 0.9410
±0.0353 | This paper |
| 34 | MLP | 0.9230
±0.0070 | |
| 53 | GraphSAGE | 0.9000
±0.0365 | |
| 70 | GCNII | 0.8918
±0.0443 best reported | best at pub: Piecewise Constant Spectral Graph Neural Network (TMLR 2025) |
| 211 | GAT | 0.8162
±0.0645 best reported | best at pub: Equivariance Everywhere All At Once: A Recipe for Graph Foundation Models (2025) Difference within reported uncertainty; not counted as underperformance. |
| 230 | ResGCN | 0.8082
±0.0360 | This paper |
| 257 | GCN | 0.7933
±0.0447 best reported | best at pub: Graph Wave Networks (WWW 2025) Difference within reported uncertainty; not counted as underperformance. |
| 268 | general Bayesian inference strategy + ResGCN | 0.7852
±0.0624 | This paper |
| 392 | JKNet | 0.7000
±0.0549 | prev best: Language Models as Messengers: Enhancing Message Passing in Heterophilic Graph Learning (2025) Improvement within reported uncertainty; not highlighted. |
| 466 | BBGDC | 0.6262
±0.0808 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | P^2GNN | 0.9541
±0.0272 | |
| 2 | ACM-GCN | 0.9480
±0.0380 best reported | best at pub: Heterophily-informed Message Passing (TMLR 2025) Difference within reported uncertainty; not counted as underperformance. |
| 3 | RF-GCN | 0.9429 | |
| 7 | general Bayesian inference strategy + GCNII | 0.9361
±0.0213 | This paper |
| 24 | MLP | 0.9136
±0.0070 | |
| 35 | GCNII | 0.8770
±0.0515 | prev best: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) Improvement within reported uncertainty; not highlighted. |
| 138 | SAGE | 0.8269 | |
| 158 | GAT | 0.8190
±0.0540 best reported | best at pub: Restructuring Graphs for Higher Homophily via Adaptive Spectral Clustering (AAAI 2022) |
| 170 | GCN | 0.8082
±0.0360 | prev best: Differentiable Cluster Graph Neural Network (2024) Improvement within reported uncertainty; not highlighted. |
| 171 | ResGCN | 0.8082
±0.0360 | This paper |
| 184 | BBGDC | 0.7934
±0.0550 | This paper |
| 206 | general Bayesian inference strategy + ResGCN | 0.7770
±0.0410 | This paper |
| 241 | JKNet | 0.7443
±0.0830 | prev best: Language Models as Messengers: Enhancing Message Passing in Heterophilic Graph Learning (2025) Improvement within reported uncertainty; not highlighted. |
