Abstract
Graph classification often relies on memory-heavy pooling methods that scale quadratically with graph size, severely limiting their application to large networks. This paper introduces a sparse, hierarchical graph classifier that achieves competitive accuracy by dropping nodes rather than clustering them. The resulting architecture maintains linear memory requirements, making deep hierarchical graph neural networks viable for much larger datasets than previously possible.
Introduction
In image processing, Convolutional Neural Networks (CNNs) use pooling layers to progressively downsample images, extracting higher-level features at each step. Replicating this "hierarchical coarsening" in Graph Neural Networks (GNNs) is difficult because graphs lack a regular grid structure. Historically, GNNs handled graph classification by simply averaging all node features at the end of the network—a rudimentary approach that ignores hierarchical structure.
A recent breakthrough, DiffPool, introduced differentiable graph pooling by learning to cluster nodes. However, DiffPool computes a dense "soft assignment" matrix between all nodes and all clusters, resulting in a quadratic memory complexity of $\mathcal{O}(kV^2)$. This paper proposes a sparse alternative that achieves the benefits of hierarchical pooling while keeping memory requirements linear ($\mathcal{O}(V+E)$).
Methods
The proposed architecture combines several advances into a cohesive, sparse hierarchical GNN:
- Convolutional Layer: The model uses an inductive mean-pooling propagation rule with skip connections to ensure central node information is preserved during message passing.
- Sparse Pooling via Node Dropping: Instead of clustering nodes into "super-nodes," the authors adapt a node-dropping technique. Each node's features are projected onto a learnable vector to calculate a "projection score." The network retains only the top $k$ fraction of nodes. This operation is differentiable and perfectly preserves graph sparsity.
- Multi-Scale Readout Layer: To prevent information loss as the graph shrinks, the network uses a "Jumping Knowledge" approach. After every convolution-pooling block, a global summary (concatenating max and average pooling) is computed. These intermediate summaries are summed at the end and passed to an MLP for final prediction.
Key Results
The model was evaluated on standard graph classification benchmarks, including biological networks (Enzymes, Proteins, D&D) and social networks (Collab).
Accuracy and Performance
The sparse model performs within 1 percentage point of the memory-heavy DiffPool across all datasets (e.g., 78.59% vs 81.15% on D&D). It also significantly outperforms other sparse aggregation baselines like GraphSAGE, proving that dropping nodes is a viable alternative to complex clustering.
Scalability
The primary advantage of this approach is its scalability. While DiffPool's memory usage grows quadratically, the proposed method maintains a linear relationship with the number of nodes.
In experiments on random Erdős-Rényi graphs, DiffPool encountered Out-Of-Memory (OOM) errors at approximately 10,000 nodes. In contrast, the sparse method scaled easily to over 50,000 nodes, using only ~10GB of memory at that scale.
Conclusion
This work demonstrates that hierarchical graph classification does not require dense, quadratic-complexity clustering to be effective. By leveraging sparse node-dropping and multi-scale summaries, the proposed architecture unlocks the ability to process massive, real-world datasets that were previously out of reach for deep hierarchical GNNs.
Summary updated