SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.05358 · 2026

Bayesian Neighborhood Adaptation for Graph Neural Networks

Rui Li, Paribesh Regmi

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
paribeshregmi/BNA-GNN canonical 1 of 3
FunctionStatusWhere it lives
sparse_mx_to_torch_sparse_tensor Ran paribeshregmi/BNA-GNN/utils/utils.py
pointer only (licence: NONE) · get_code("c97b99c4e8201a97")
normalize_adj Not yet run paribeshregmi/BNA-GNN/utils/utils.py
pointer only (licence: NONE) · get_code("96159c4927e6eceb")
preprocess_adj Not yet run paribeshregmi/BNA-GNN/utils/utils.py
pointer only (licence: NONE) · get_code("bc41b31eaba0e3bd")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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: https://github.com/paribeshregmi/BNA-GNN

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2602.05358")
get_code_for_paper("2602.05358")
have("2602.05358")

Connect an agent — have() is free.