Understanding Pooling in Graph Neural Networks

Daniele Grattarola, Daniele Zambon, Filippo Maria Bianchi, Cesare Alippi

Abstract

Graph pooling is a critical yet fragmented component of Graph Neural Networks (GNNs). Unlike the standardized pooling operations in Convolutional Neural Networks, graph pooling methods vary significantly in their approach to downsampling irregular structures. This paper introduces the SRC (Selection, Reduction, Connection) framework, a modular formalism that unifies over thirty disparate pooling operators. By categorizing these methods into a new taxonomy and evaluating them across diverse benchmarks, we provide a systematic roadmap for selecting pooling strategies based on attribute preservation, structural integrity, and task-specific requirements.

Introduction

While message-passing mechanisms in GNNs have matured, graph pooling—the process of reducing graph size while preserving meaningful information—remains a "Wild West" of diverse and often incomparable methods. The lack of a common language makes it difficult to understand why certain operators excel in specific domains, such as molecular modeling or social network analysis, while failing in others. This work addresses this gap by proposing the SRC framework to unify the field.

The SRC Framework

The core contribution is the decomposition of any graph pooling operator into three functional steps:

  1. Selection (SEL): Determines how the original $N$ nodes are grouped into $K$ "supernodes," effectively defining a membership matrix.
  2. Reduction (RED): Aggregates the features of nodes within each supernode to form a single representative feature vector.
  3. Connection (CON): Establishes the edges and weights between the newly formed supernodes.
The SRC framework decomposes graph pooling into Selection (SEL), Reduction (RED), and Connection (CON) operations.

This modularity allows for a clear taxonomy based on trainability (learned vs. fixed functions), density (the size of supernode memberships), and adaptability (whether the output size $K$ is fixed or scales with the input).

Experimental Evaluation

The framework was tested against three categories of data: geometric/synthetic graphs (e.g., Grid2d, Ring), point clouds (ModelNet40), and standard graph classification benchmarks (TUDataset). Evaluation focused on how well methods preserve node attributes, spectral properties, and task-specific labels.

Key Insights and Results

Selection as the Primary Differentiator

Analysis reveals that while Reduction and Connection are often implemented similarly across different papers, the Selection mechanism is the primary source of diversity and performance variation among pooling operators.

Attribute and Structural Preservation

Non-trainable sparse methods, such as Graclus or NDP, are surprisingly effective at preserving node attributes and the Laplacian spectrum. As shown in Figure 6, these methods maintain the global structure of grids and rings more faithfully than some complex trainable counterparts like DiffPool or TopK, which can distort the underlying geometry.

Visual comparison of various pooling methods on geometric graphs (Grid2d, Ring) and point clouds (Airplane).

Efficiency and Scaling

"Dense" pooling methods, where every node can potentially belong to every supernode, suffer from $O(N^2)$ complexity. In contrast, "sparse" methods scale linearly ($O(N)$), enabling the processing of graphs up to four times larger on identical hardware. This makes sparse methods like Top-K and SAGPool essential for scaling GNNs to large-scale industrial graphs.

Task-Specific Performance

Trainable dense operators like DiffPool and MinCut show advantages in specific synthetic classification tasks (e.g., Triangles). However, on real-world datasets like Mutagenicity, simpler baselines or even "no-pooling" models often achieve superior results, suggesting that pooling can sometimes introduce noise rather than useful hierarchy.

Conclusion

The SRC framework provides a much-needed theoretical foundation for graph pooling. Our findings suggest that there is no "one size fits all" operator; the choice depends heavily on the balance between computational efficiency and the need for structural preservation. Future research should explore the "missing link" of trainable, dense, and adaptive operators to further enhance GNN flexibility.

Summary updated

BibTeX
@article{grattarola2021understanding,
  author = {Daniele Grattarola and Daniele Zambon and Filippo Maria Bianchi and Cesare Alippi},
  title = {{Understanding Pooling in Graph Neural Networks}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2021},
  doi = {10.1109/tnnls.2022.3190922},
}
Figure