Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Torch Geometric Pool: the PyTorch library for pooling in Graph Neural Networks

About

Torch Geometric Pool (tgp) is a pooling library built on top of PyTorch Geometric. Graph pooling methods differ in how they assign nodes to supernodes, how they handle batches, what they return after pooling, and whether they expose auxiliary losses. These differences make it hard to compare methods or reuse the same model code across them. tgp addresses this problem with a common software interface based on the Select-Reduce-Connect-Lift (SRCL) decomposition. The library provides 20 hierarchical poolers, standardized output objects, standalone readout modules, support for dense poolers in batched and unbatched mode, and workflows for caching and pre-coarsening. It is released under the MIT license on GitHub and PyPI, with comprehensive documentation, tutorials, and examples.

Carlo Abate, Ivan Marisca, Filippo Maria Bianchi• 2025

Related benchmarks

TaskDatasetResultRank
Graph ClassificationNCI1--
707
Node Classificationamazon-ratings--
354
Node ClusteringCora--
179
Graph ClassificationREDDIT-B--
163
Node Classificationquestions--
161
Graph RegressionPeptides-struct--
156
Node ClusteringCiteseer--
151
Graph ClassificationPeptides func--
132
Node ClassificationMinesweeper--
117
Graph ClassificationMolHIV--
110
Showing 10 of 24 rows

Other info

Follow for update