SPGP: Structure Prototype Guided Graph Pooling

Sangseon Lee, Dohoon Lee, Yinhua Piao, Sun Kim

TL;DR

Standard hierarchical graph pooling methods rely on local $k$-hop neighborhoods, which fail to capture global topological motifs and struggle when pooling disconnects nodes into isolated components. The authors introduce Structure Prototype Guided Pooling (SPGP), which guides node downsampling using explicit, learnable prototype vectors derived from global graph structures like biconnected components and cliques. SPGP matches or exceeds state-of-the-art accuracy across biochemical benchmarks and scales to massive datasets where previous hierarchical pooling methods hit out-of-memory errors.

What Problem Does This Paper Address?

To produce graph-level representations for tasks like molecular property prediction, Graph Neural Networks (GNNs) downsample node sets using graph pooling. However, existing hierarchical pooling methods face two major issues:

  1. Locality trap: Relying on $k$-hop neighborhoods forces an arbitrary trade-off: small $k$ misses long-range structural context, while large $k$ injects noise, particularly in scale-free networks. Furthermore, in regular or homophilic subgraphs where node features are identical, standard message passing cannot distinguish the structural importance of different nodes.
  2. The isolated node problem: Node-selection pooling inevitably breaks edges, creating isolated nodes that can no longer pass messages. Existing remedies rely on full "structure learning" to infer new edges, incurring quadratic ($O(n^2)$) space and up to cubic ($O(n^3)$) time complexity—making them completely unusable on large graphs.

Methods

SPGP directly incorporates prior topological structures into the pooling mechanism:

  • Topological Prototypes: During preprocessing, the algorithm extracts well-characterized topological substructures: Biconnected Components (BCCs) (subgraphs where removing any single vertex does not disconnect the rest) and cliques (fully connected subgraphs) with size $\ge 3$.
  • Learnable Structure Prototype Vectors: For each structure instance $S_t^s$, node embeddings are aggregated into a prototype vector $Z_{S_t^s}$ via an element-wise max operation.
  • Scoring Node Importance: A node $v$ receives a priority score composed of two terms:
  • Prototype score: Combines the node's self-feature with affinity projections measuring its relationship to the prototype vectors of structures it belongs to.
  • Auxiliary score: A learnable discrepancy penalty measuring the difference between the node representation and its aggregated local neighborhood.
  • Efficient Message Exchange for Disconnected Nodes: Because nodes belonging to the same structure interact directly through the shared prototype vector, SPGP preserves communication pathways across isolated nodes without expensive dense edge reconstruction, running in $O(sdn)$ time ($s$ prototypes, $d$ dimensions, $n$ nodes).
  • Feature Augmentation: Input node features are enriched with topological metadata (e.g., relative size of enclosing BCCs/cliques).

Datasets

  • TUDataset (Biochemical domain): DD, PROTEINS, NCI1, NCI109, and FRANKENSTEIN (ranging from 1K to 4.3K graphs).
  • Open Graph Benchmark (OGB): Large-scale molecular property prediction datasets ogbg-molhiv (41.1K graphs) and ogbg-molpcba (437.9K graphs, 128 classification tasks).
  • Synthetic Benchmarks: 6-regular graphs with degree perturbations, as well as random graph families (Erdős–Rényi and Barabási–Albert) for GPU memory profiling.

Key Insights and Ideas

  • Breaking Symmetry on Regular Graphs: The authors prove theoretically (Theorem 1) that standard $k$-hop pooling cannot assign differentiated importance to nodes in regular graphs with uniform node features. SPGP overcomes this limitation because prototype assignment injects global structural roles into node scores.
  • Structure Learning is Unnecessary for Isolated Nodes: Rather than spending $O(n^3)$ operations dynamically rewiring broken graphs, routing node interactions through low-dimensional prototype vectors effectively prevents information loss.
  • Closeness Centrality Governs Local vs. Global Scoring: Ablations showed that the auxiliary local neighborhood score ($\phi_{\text{aux}}$) improved accuracy on graphs with low closeness centrality (DD, NCI1, NCI109), but degraded performance on graphs with high closeness centrality (PROTEINS, FRANKENSTEIN). In highly interconnected networks where signals propagate quickly across the graph, local penalization functions inject redundant noise.

Key Results

  • TUDataset Classification: SPGP using both BCC and clique prototypes (SPGP_BCC+CQ) consistently outperformed all global and hierarchical baselines across all five benchmarks—reaching 77.76% on DD, 75.20% on PROTEINS, 78.90% on NCI1, 77.27% on NCI109, and 68.92% on FRANKENSTEIN (an improvement of up to 2.66% over the best hierarchical baseline).
  • Scalability on OGB:
  • On ogbg-molhiv, SPGP achieved 78.15% ROC-AUC, outperforming the GCN baseline (76.06%) and ASAP (76.89%).
  • On the massive ogbg-molpcba dataset (437.9K graphs), top competitor ASAP crashed with Out-Of-Memory (OOM) errors, whereas SPGP ran smoothly and achieved 23.95% Average Precision (AP) (vs. 20.20% for GCN and 18.64% for HGP-SL).
  • Compatibility with Virtual Nodes: Appending SPGP layers to GIN + Virtual Node architectures further improved test AP on ogbg-molpcba from 0.2703 to 0.2736.

Limitations and Future Work

  • Unassigned Nodes: Nodes that do not belong to any identified structure prototype (such as peripheral tree-like branches) do not benefit from prototype-mediated message exchange if isolated during pooling.
  • Coarse Structural Representations: Prototype vectors currently treat subgraphs via node membership and set size rather than modeling explicit geometric topology or precise internal motif connectivity.
  • Cross-Prototype Interactions: The method aggregates affinities independently across structure types and does not explicitly learn interactions between overlapping cliques and biconnected components.

Summary updated

BibTeX
@inproceedings{lee2022spgp,
  author = {Sangseon Lee and Dohoon Lee and Yinhua Piao and Sun Kim},
  title = {{SPGP: Structure Prototype Guided Graph Pooling}},
  booktitle = {GLFrontiers @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=z3SHKtoG5XZ},
}
Figure