Grouping Matrix Based Graph Pooling with Adaptive Number of Clusters

Sung Moon Ko, Sungjun Cho, Dae-Woong Jeong, Sehui Han, Moontae Lee, Honglak Lee

TL;DR

This paper introduces GMPOOL, a novel graph pooling architecture that automatically determines the optimal number of clusters for graph coarsening, eliminating the need for manual hyperparameter tuning. By leveraging a "grouping matrix" derived from pairwise node similarities, GMPOOL enables more flexible and effective hierarchical graph representation learning, outperforming existing methods on molecular property prediction tasks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing graph-structured data, but effectively summarizing graph-level information often requires a "pooling" operation. Traditional pooling methods typically rely on clustering nodes into a fixed number of groups. This approach presents a significant challenge in "inductive settings" where the ideal number of clusters can vary greatly between different graphs within a dataset. For instance, in molecular graphs, the number of functional groups (which often dictate chemical properties) can differ substantially from one molecule to another. Requiring a fixed number of clusters as a hyperparameter is not only cumbersome but also imposes a strong inductive bias that can limit model performance, especially when the assumed number of clusters doesn't align with the inherent structure of a given graph.

Methods

The core innovation of this paper is the GMPOOL (Grouping Matrix Pooling) architecture. Instead of directly learning a pooling matrix that assigns nodes to clusters, GMPOOL first constructs a grouping matrix. This matrix, derived from the quadratic form of a potential pooling operator, captures the pairwise similarity of nodes being assigned to the same cluster. Specifically, it's computed by classifying the probability that any two nodes belong to the same group.

The key idea is that this grouping matrix implicitly encodes the desired clustering structure. To obtain the actual pooling matrix, GMPOOL then decomposes this grouping matrix. The paper proposes two decomposition schemes:

  1. Eigendecomposition: This method decomposes the grouping matrix into its eigenvalues and eigenvectors. By rearranging these components, a pooling matrix can be derived. This approach is robust for matrices with non-zero determinants but can suffer from numerical instability during backpropagation if eigenvalues are very close or small.
  2. Pooling without Decomposition (NGMPOOL): A simpler variant, NGMPOOL, directly uses the grouping matrix itself (or a related transformation) for pooling, bypassing the decomposition step. This is computationally more efficient but has limitations regarding sequential pooling operations due to the non-commutativity of grouping matrices.

The grouping matrix's rank naturally reflects the number of clusters, allowing the model to adapt this number per graph.

Datasets

The authors evaluated their methods on five datasets:

  • PLQY: Photoluminescence quantum yield for fluorescence molecules.
  • Amax Solvents & Amax Films: Wavelengths of maximum fluorescence emission under different conditions.
  • PIC50: Negative log of IC50 values for ATP receptor inhibition (a measure of drug efficacy).
  • Tox21: Results from toxicity screening tests for molecules.

For PIC50 and Tox21, molecules with fewer than 20 nodes were dropped to ensure they contained sufficient structural complexity for meaningful pooling. Additionally, molecules with more than 40 nodes were removed from these two datasets to manage computational cost.

Key Insights and Ideas

  • Adaptive Clustering is Crucial: The paper strongly advocates for pooling methods that can adapt the number of clusters per graph, especially in inductive settings like molecular property prediction. Forcing a universal cluster count is a significant limitation.
  • Grouping Matrix as a Bridge: The grouping matrix, representing pairwise node similarities for clustering, is a clever intermediate representation. It allows for learning cluster assignments without explicitly defining the number of clusters beforehand.
  • Decomposition Unlocks Pooling: Decomposing the grouping matrix into a square-root form yields a usable pooling matrix. This decomposition naturally reveals the effective rank, which corresponds to the number of clusters.
  • Soft Clustering Benefits: The use of continuous probabilities in the grouping matrix naturally leads to soft clustering, allowing nodes to belong to multiple groups to varying degrees, which is beneficial for complex molecular structures.
  • NGMPOOL: A Scalable Alternative: The NGMPOOL variant offers a computationally cheaper alternative by avoiding matrix decomposition, making it potentially more scalable for certain applications.

Key Results

GMPOOL and NGMPOOL demonstrated superior performance across most of the tested molecular property prediction tasks compared to several established pooling baselines (GCN, DMPNN, TOP-K, SAGPOOL, DIFFPOOL, ASAPOOL, MEMPOOL). While the performance gains were sometimes modest (e.g., on Amax datasets), the paper argues this is due to the inherent complexity of the chemical effects being modeled, where intuitive functional groups might not always be apparent. The authors highlight that their method's ability to retain sufficient degrees of freedom (by not forcing a low-rank representation) is key to its robustness.

Limitations and Future Work

  • Numerical Instability: The eigendecomposition method can be numerically unstable in rare cases (0.00018% in their experiments) when dealing with small eigengaps, potentially hindering convergence. Future work could involve imposing constraints on the loss function to mitigate this.
  • Scalability: The SVD-based decomposition in GMPOOL is a computational bottleneck for very large graphs. Incorporating faster approximation methods for decomposition is suggested, though this might incur a performance trade-off.
  • Higher-Order Grouping: The current approach focuses on pairwise node relationships. Generalizing to higher-order grouping tensors could offer more expressive power but comes with significant computational challenges.
  • NGMPOOL Limitations: The NGMPOOL variant is limited to single-depth pooling and faces challenges with non-commuting pooling operators in sequential applications.

Summary updated

BibTeX
@inproceedings{ko2023grouping,
  author = {Sung Moon Ko and Sungjun Cho and Dae-Woong Jeong and Sehui Han and Moontae Lee and Honglak Lee},
  title = {{Grouping Matrix Based Graph Pooling with Adaptive Number of Clusters}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=azvgYUCGnK},
}
Figure