Abstract
Graph Neural Networks (GNN) have been shown to work effectively for modeling graph structured data to solve tasks such as node classification, link prediction and graph classification. There has been some recent progress in defining the notion of pooling in graphs whereby the model tries to generate a graph level representation by downsampling and summarizing the information present in the nodes. Existing pooling methods either fail to effectively capture the graph substructure or do not easily scale to large graphs. In this work, we propose ASAP (Adaptive Structure Aware Pooling), a sparse and differentiable pooling method that addresses the limitations of previous graph pooling architectures. ASAP utilizes a novel self-attention network along with a modified GNN formulation to capture the importance of each node in a given graph. It also learns a sparse soft cluster assignment for nodes at each layer to effectively pool the subgraphs to form the pooled graph. Through extensive experiments on multiple datasets and theoretical analysis, we motivate our choice of the components used in ASAP. Our experimental results show that combining existing GNN architectures with ASAP leads to state-of-the-art results on multiple graph classification benchmarks. ASAP has an average improvement of 4%, compared to current sparse hierarchical state-of-the-art method.
Introduction
Standard Graph Neural Networks (GNNs) are inherently "flat" architectures. While they excel at learning representations for individual nodes by aggregating information from local neighborhoods, they often struggle to summarize an entire graph into a single, global representation for classification tasks. To bridge this gap, researchers employ pooling layers to downsample the graph and capture hierarchical features.
Historically, pooling methods have faced a trade-off between structural awareness and scalability. Dense Pooling methods (like DiffPool) capture complex structures through soft assignments but suffer from high computational costs, making them unsuitable for large graphs. Conversely, Sparse or Top-K Pooling methods are efficient but often destroy graph connectivity and fail to recognize how nodes group into meaningful functional substructures. ASAP (Adaptive Structure Aware Pooling) is designed to provide the best of both worlds: a sparse, scalable method that remains deeply aware of the graph's underlying structure.
The ASAP Framework
ASAP implements a hierarchical approach to graph classification. Instead of a single pooling step, the model alternates between Graph Convolutional Network (GCN) layers and ASAP pooling layers. This allows the network to learn increasingly abstract representations of the graph at different scales.
The Pooling Pipeline
The ASAP pooling mechanism follows a sophisticated pipeline to ensure that the most representative substructures are preserved while maintaining graph connectivity.
- Cluster Formation via Master2Token (M2T) Attention: ASAP treats every node as a potential cluster center (medoid). It utilizes a novel self-attention mechanism where a "master query" represents the local neighborhood. This query determines the membership strength of each neighbor, allowing the model to learn which nodes belong together in a local subgraph more efficiently than standard all-to-all attention.
- Scoring via Local Extrema Convolution (LEConv): A key insight of the paper is that standard GCNs act as low-pass filters, smoothing out features and making it difficult to identify important nodes for pooling. ASAP introduces LEConv, which focuses on the differences between a node and its neighbors. By identifying "local extrema"—nodes that stand out from their surroundings—the model can more accurately score and select the most representative clusters.
- Selection and Connectivity Maintenance: After scoring, the top-K clusters are selected. ASAP then recomputes the edges between these clusters. By utilizing a multi-hop receptive field, the model ensures the pooled graph remains well-connected, solving the "isolated node" problem prevalent in previous sparse methods.
Experimental Evaluation
The authors evaluated ASAP against five widely used graph classification benchmarks, including bioinformatics datasets (D&D, PROTEINS) and chemical compound datasets (NCI1, NCI109, FRANKENSTEIN).
Key Results
- State-of-the-Art Performance: ASAP consistently outperformed all baselines, showing an average improvement of 4% over the previous state-of-the-art sparse hierarchical method (SAGPool).
- Stability: The model exhibited lower variance across random seeds, suggesting a more stable training process compared to other hierarchical architectures.
- Theoretical Robustness: The paper provides theoretical proofs (Theorem 2) demonstrating that ASAP maintains superior graph connectivity, ensuring that information flow is preserved even in very deep networks.
Conclusion
ASAP represents a significant advancement in hierarchical graph representation learning. By combining sparse attention with a structure-aware convolution operator (LEConv), it achieves superior accuracy on classification tasks without sacrificing the scalability required for large-scale graph analysis. Future work may extend this adaptive pooling mechanism to tasks beyond classification, such as graph generation and regression.
Summary updated