BN-Pool: a Bayesian Nonparametric Approach to Graph Pooling

Daniele Castellana, Filippo Maria Bianchi
1/16/2025
cs.LGmath.PR

No official code found. Best implementation: NGMLGroup/Bayesian-Nonparametric-Graph-Pooling (15 stars, MIT, last commit 2026-04-01).

Abstract

We introduce BN-Pool, the first clustering-based pooling method for Graph Neural Networks (GNNs) that adaptively determines the number of supernodes in a coarsened graph. By leveraging a Bayesian non-parametric framework, BN-Pool employs a generative model capable of partitioning graph nodes into an unbounded number of clusters. During training, we learn the node-to-cluster assignments by combining the supervised loss of the downstream task with an unsupervised auxiliary term, which encourages the reconstruction of the original graph topology while penalizing unnecessary proliferation of clusters. This adaptive strategy allows BN-Pool to automatically discover an optimal coarsening level, offering enhanced flexibility and removing the need to specify sensitive pooling ratios. We show that BN-Pool achieves superior performance across diverse benchmarks.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of the BNPool layer and code to reproduce the experiments in "Bayesian Nonparametric GNNs for graph pooling and clustering".

153PythonJan 3, 20256 months agoMIT
bayesian-inferencebayesian-nonparametricsgraph-classificationgraph-neural-networksgraph-pooling+1 more

Similar Papers

Cite this paper

@article{castellana2025bnpool,
  title  = {BN-Pool: a Bayesian Nonparametric Approach to Graph Pooling},
  author = {Daniele Castellana and Filippo Maria Bianchi},
  year   = {2025},
  eprint = {2501.09821},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.09821v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.09821.svg)](https://codeofpaper.com/paper/2501.09821)

Discussion