Abstract
Graph classification is an important problem with applications across many domains, like chemistry and bioinformatics, for which graph neural networks (GNNs) have been state-of-the-art (SOTA) methods. GNNs are designed to learn node-level representation based on neighborhood aggregation schemes, and to obtain graph-level representation, pooling methods are applied after the aggregation operation in existing GNN models to generate coarse-grained graphs. However, due to highly diverse applications of graph classification, the performance of existing pooling methods varies on different graphs. In other words, it is a challenging problem to design a universal pooling architecture to perform well in most cases, leading to a demand for data-specific pooling methods in real-world applications. To address this problem, we propose to use neural architecture search (NAS) to search for adaptive pooling architectures for graph classification. Firstly we designed a unified framework consisting of four modules: Aggregation, Pooling, Readout, and Merge, which can cover existing human-designed pooling methods for graph classification. Based on this framework, a novel search space is designed by incorporating popular operations in human-designed architectures. Then to enable efficient search, a coarsening strategy is proposed to continuously relax the search space, thus a differentiable search method can be adopted. Extensive experiments on six real-world datasets from three domains are conducted, and the results demonstrate the effectiveness and efficiency of the proposed framework.
Introduction
Graph Neural Networks (GNNs) have revolutionized graph-level tasks by effectively learning node-level features through neighborhood aggregation. However, graph classification requires a "pooling" operation to condense these node-level features into a single, comprehensive representation for the entire graph. Historically, researchers have relied on two main paradigms: global pooling (e.g., summing all nodes) and hierarchical pooling (e.g., coarsening the graph layer by layer).
The core challenge lies in the "No Free Lunch" theorem of graph pooling: no single method is universally optimal. A strategy that excels on small, rigid chemical molecules may fail on large, fluid social networks. While previous Neural Architecture Search (NAS) efforts have focused on aggregation layers, the pooling architecture has remained largely a manual design choice. This paper introduces Pooling Architecture Search (PAS), a novel framework that uses differentiable NAS to automatically design data-specific pooling strategies.
Methodology
The Unified Framework
To facilitate an automated search, the authors decompose the pooling process into four key modules that encapsulate existing human-designed methods:
- Aggregation ($O_a$): Defines how nodes update their features (e.g., GCN, GAT, SAGE).
- Pooling ($O_p$): Determines how the graph is coarsened (e.g., TopK, SAGPool, or
NONEfor global pooling). - Readout ($O_r$): Generates a graph-level summary at each layer.
- Merge ($O_m$): Combines summaries from different layers into the final graph representation ($z^F$).
Differentiable Search with Coarsening
Standard NAS methods like DARTS struggle with pooling because different operations produce outputs with varying dimensions (different numbers of nodes), making gradient-based "mixing" impossible. PAS overcomes this with a novel coarsening strategy. By keeping the graph's "shape" consistent during the search phase—setting features and weights of unselected nodes to zero—the search space can be continuously relaxed. This allows for efficient optimization via gradient descent using Gumbel-Softmax, making the search process significantly faster than traditional reinforcement learning methods.
Experimental Results
The Need for Data-Specific Pooling
A preliminary study conducted using GraphGym across 420 different setups confirmed that popular human-designed pooling methods like ASAP or SAGPool only achieve top performance in approximately 25% of cases. This empirical evidence justifies the need for an automated, data-specific approach.
Performance and Efficiency
PAS was evaluated on six real-world datasets across bioinformatics (D&D, PROTEINS), social networks (IMDB-MULTI), and chemistry (COX2, ENZYMES). Key findings include:
- Superior Accuracy: PAS consistently outperformed SOTA human-designed models (e.g., DiffPool, Graph U-Net) and existing NAS methods (e.g., GraphNAS).
- Massive Efficiency Gains: By utilizing differentiable search, PAS reduced search time by two orders of magnitude (roughly 100x) compared to reinforcement learning-based search methods.
- Architectural Flexibility: The search algorithm automatically adapts to the dataset. For instance, it discovered that the COX2 dataset performs best with a global pooling architecture, while others require complex hierarchical coarsening.
Conclusion
PAS represents a significant step forward in automating GNN design. By moving away from "one-size-fits-all" pooling, the framework achieves state-of-the-art performance with high efficiency. Future work will focus on scaling PAS to larger benchmarks, such as the Open Graph Benchmark (OGB), and investigating the underlying graph properties that drive the selection of specific pooling architectures.
Summary updated