Abstract
Graph representation learning often relies on pooling mechanisms to downsample complex graphs into concise summaries. Traditional "top-K" node-dropping methods frequently suffer from local myopia and information redundancy. This paper presents GTPool, a novel hierarchical graph pooling method that leverages Transformer-based self-attention to capture global context and a diversified "Roulette Wheel" sampling strategy to preserve a representative subset of nodes. Experimental results across 11 benchmarks demonstrate that GTPool achieves state-of-the-art performance, outperforming existing methods by up to 5.3% in accuracy while maintaining competitive scalability.
Introduction
In graph neural networks (GNNs), pooling is essential for learning hierarchical representations. However, most existing pooling layers rely on local GNN backbones, which struggle with long-range dependencies—connections between nodes on opposite sides of a graph. Furthermore, selecting nodes based purely on the highest importance scores often leads to the retention of redundant, clustered nodes, neglecting the broader structural diversity of the graph. To address these limitations, GTPool integrates global significance scoring with a stochastic sampling mechanism to ensure a more holistic and diverse graph summary.
Methodology: The GTPool Architecture
GTPool introduces two primary innovations: Transformer-based scoring and Roulette Wheel Sampling (RWS).
Transformer-Based Scoring
Unlike standard GNNs that focus on immediate neighbors, GTPool utilizes a self-attention mechanism to compute node scores. This allows every node to interact with every other node, capturing a global "big picture" of the graph's structure. The final node score is a weighted sum of this global significance and a local score derived from the graph's adjacency matrix, ensuring the model understands both individual neighborhoods and the node's role in the entire graph.
Diversified Node Sampling
To avoid the pitfalls of deterministic top-K selection, GTPool employs Roulette Wheel Sampling (RWS). By treating node scores as probabilities, RWS ensures that even lower-scoring but potentially informative nodes have a chance to be preserved. An enhanced version, RWSV, further adjusts these probability intervals to maximize the diversity of the sampled set, preventing the model from keeping only redundant clusters of high-scoring neighbors.
Once nodes are sampled, the model refines the attention matrix, allowing the remaining nodes to retain information from the dropped nodes, effectively preserving the "memory" of the original graph structure.
Experimental Evaluation
The model was evaluated on 11 benchmark datasets, including TUDatasets (e.g., MUTAG, PROTEINS) and Open Graph Benchmark (OGB) molecular datasets. GTPool consistently outperformed previous state-of-the-art methods, achieving a 4.7% to 5.3% improvement in accuracy on several TUDatasets. Notably, it significantly surpassed GMT, a popular Transformer-based model that uses "flat" pooling, proving that a hierarchical approach—shrinking the graph in stages—is more effective for complex representation learning.
Key Insights and Conclusion
The success of GTPool underscores the importance of diversity over raw importance scores in graph summarization. Ablation studies revealed that global context is more critical for graph-level tasks than local neighborhood information. While the quadratic complexity of standard self-attention remains a challenge for massive graphs, GTPool demonstrates superior scalability compared to many existing global pooling methods, avoiding memory errors on graphs with over 1,000 nodes where competitors failed.
Future work will focus on integrating "Efficient Transformers" with linear-time attention to extend the benefits of GTPool to large-scale networks with millions of nodes.
Summary updated