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--
658
Node Classificationamazon-ratings--
309
Node ClusteringCora--
168
Graph ClassificationREDDIT-B--
145
Node ClusteringCiteseer--
140
Graph RegressionPeptides-struct--
134
Node Classificationquestions--
127
Graph ClassificationPeptides func--
110
Graph ClassificationMolHIV--
102
Node ClassificationMinesweeper--
94
Showing 10 of 24 rows

Other info

Follow for update