Distribution Knowledge Embedding for Graph Pooling

Kaixuan Chen, Jie Song, Shunyu Liu, Na Yu, Zunlei Feng, Mingli Song

Abstract

Graph-level representation learning is the pivotal step for downstream tasks that operate on the whole graph. The most common approach to this problem heretofore is graph pooling, where node features are typically averaged or summed to obtain the graph representations. However, pooling operations like averaging or summing inevitably cause massive information missing, which may severely downgrade the final performance. In this paper, we argue what is crucial to graph-level downstream tasks includes not only the topological structure but also the distribution from which nodes are sampled. Therefore, powered by existing Graph Neural Networks (GNN), we propose a new plug-and-play pooling module, termed as Distribution Knowledge Embedding (DKEPool), where graphs are rephrased as distributions on top of GNNs and the pooling goal is to summarize the entire distribution information instead of retaining a certain feature vector by simple predefined pooling operations. A DKEPool network de facto disassembles representation learning into two stages, structure learning and distribution learning. Structure learning follows a recursive neighborhood aggregation scheme to update node features where structure information is obtained. Distribution learning, on the other hand, omits node interconnections and focuses more on the distribution depicted by all the nodes. Extensive experiments demonstrate that the proposed DKEPool significantly and consistently outperforms the state-of-the-art methods.

Introduction

Graph-level representation learning aims to map graphs of varying sizes and topologies into a fixed-dimensional vector space. Traditional "flat" pooling methods, such as Global Mean Pooling (GMP) or Global Sum Pooling (GSP), are widely used due to their simplicity and permutation invariance. However, these methods only capture first-order statistics, effectively ignoring the higher-order distribution of node features. This loss of information can be detrimental to performance on complex graph classification tasks.

While hierarchical pooling methods attempt to capture structural information more effectively, they often introduce significant architectural complexity. In this work, we propose Distribution Knowledge Embedding (DKEPool), a plug-and-play module that treats node embeddings as samples from a multivariate Gaussian distribution, thereby capturing richer statistical information.

Methodology

The DKEPool framework decomposes the learning process into two distinct stages: structure learning and distribution learning.

Structure Learning

In the first stage, a standard Graph Neural Network (GNN) backbone (e.g., GCN, GIN) is employed to perform neighborhood aggregation. This process updates node features by incorporating topological information from the graph structure.

Distribution Learning (DKEPool)

The core of our approach lies in the second stage, where the updated node embeddings are viewed as samples from a multivariate Gaussian distribution $\mathcal{N}(\mu, \Sigma)$.

The DKEPool framework disassembles representation learning into structure learning and distribution learning stages.

COV-MAP: Covariance Mapping Mean Vector

To capture the distribution's shape, we introduce the "covariance mapping mean vector" ($\Sigma\mu$). Unlike the simple mean $\mu$, which only represents the center of the data, $\Sigma\mu$ is a weighted mean that aligns with the principal directions of variance in the feature space. This allows the model to capture how features correlate across the graph.

Comparison between the original mean vector (red) and the COV-MAP mean vector (orange), which aligns with the principal direction of variance.

Robustness and Normalization

To ensure stability when the number of nodes is small relative to the feature dimension, we introduce a robust variant, $DKEPool_R$. This version utilizes iterative matrix square root (iSQRT) normalization via Newton-Schulz iteration to refine the covariance estimation.

Experiments and Results

We evaluated DKEPool across nine benchmark datasets, including social networks (IMDB-B, IMDB-M), bioinformatics (MUTAG, PTC, PROTEINS, NCI1), and molecular property prediction (OGB-MOLHIV, OGB-MOLBBBP).

Performance

DKEPool consistently achieves state-of-the-art results. For instance, it reached 80.9% accuracy on IMDB-B and 78.65% ROC-AUC on OGB-MOLHIV. Furthermore, DKEPool can be integrated into hierarchical pooling frameworks like DiffPool, where it provided a performance boost of approximately 2% on the PROTEINS and MOLHIV datasets.

Stability

Ablation studies demonstrate that DKEPool is robust to variations in representation dimensions and signal-to-noise ratios. Optimal performance is typically achieved with a small number of robust iterations ($k=5$).

Conclusion

DKEPool offers a novel perspective on graph pooling by leveraging distribution knowledge. By capturing higher-order statistics through covariance mapping, it provides more informative graph representations than traditional methods. Its plug-and-play nature and consistent performance gains across diverse benchmarks make it a powerful tool for graph-level representation learning.

Summary updated

BibTeX
@article{chen2023distribution,
  author = {Kaixuan Chen and Jie Song and Shunyu Liu and Na Yu and Zunlei Feng and Mingli Song},
  title = {{Distribution Knowledge Embedding for Graph Pooling}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2023},
  url = {https://openreview.net/forum?id=V84r9xWr9I},
}
Figure