Introduction
Graph Neural Networks (GNNs) have become the standard for processing graph-structured data. However, while much effort has been spent on refining graph convolutions, the task of graph pooling—essential for hierarchical representation in graph classification—remains a significant challenge. This paper introduces Hierarchical Graph Pooling with Structure Learning (HGP-SL), a novel operator designed to preserve essential topological information while efficiently downsampling graphs.
The Challenge of Graph Pooling
Existing pooling methods often fall into three categories, each with distinct drawbacks:
- Global Pooling: Simple operations like averaging node features ignore the graph's internal hierarchy.
- Node Grouping: Methods like DiffPool are computationally expensive as they require learning complex soft-assignments for clustering.
- Node Sampling: Efficient methods like gPool or SAGPool risk disconnecting the graph by deleting "unimportant" nodes, which disrupts message passing in subsequent layers.
HGP-SL addresses these issues by combining an informative node selection process with a robust structure learning mechanism.
The HGP-SL Framework
The HGP-SL module consists of two primary innovations:
1. Node Information Score
Unlike methods that rely on trainable projections, HGP-SL employs a non-parametric approach to identify informative nodes. It calculates a "node information score" based on the Manhattan distance between a node’s representation and its reconstruction from its immediate neighborhood. Nodes that are significantly different from their neighbors are deemed more informative and are retained during pooling.
2. Structure Learning Mechanism
The core innovation of HGP-SL is its ability to "re-wire" the graph after pooling. Once the top-K nodes are selected, the model uses a sparse attention mechanism (utilizing the sparsemax function) to learn a refined graph structure. This ensures that the connectivity—the "skeleton"—of the graph is preserved even after nodes are removed.
Experimental Evaluation
The authors evaluated HGP-SL against state-of-the-art baselines on six benchmark datasets, including bioinformatics (PROTEINS, D&D) and chemical compound datasets (NCI1, Mutagenicity).
Key Results
- State-of-the-Art Performance: HGP-SL consistently outperformed baselines like DiffPool and SAGPool. Notably, on the PROTEINS dataset, it achieved 84.91% accuracy, representing a significant improvement over standard "flat" GCNs.
- Importance of Structure Learning: Ablation studies confirmed that removing the structure learning component leads to a marked decrease in accuracy, proving that maintaining topological integrity is vital for hierarchical learning.
Hyperparameter Sensitivity
The effectiveness of HGP-SL is influenced by several key hyperparameters: the embedding dimension ($d$), the number of layers ($K$), and the pooling ratio ($r$).
As shown in the sensitivity analysis, the pooling ratio $r$ is particularly critical; if too many nodes are pruned (low $r$), essential information is lost, leading to lower accuracy. Similarly, the number of layers $K$ must be balanced to capture the right level of hierarchy without over-smoothing.
Conclusion
HGP-SL represents a significant step forward in graph pooling. By treating the pooled graph as a new structure to be learned rather than just a pruned version of the original, it successfully captures hierarchical features while maintaining the graph's structural essence. Future work will focus on scaling the structure learning mechanism for even larger, more complex graphs.
Summary updated