Relational Pooling for Graph Representations.

Ryan L. Murphy, Balasubramaniam Srinivasan, Vinayak A. Rao, Bruno Ribeiro

Abstract

This work generalizes graph neural networks (GNNs) beyond those based on the Weisfeiler-Lehman (WL) algorithm, graph Laplacians, and diffusions. Our approach, denoted Relational Pooling (RP), draws from the principle of permutation invariance to create maximally expressive graph representations. By averaging permutation-sensitive functions over all node orderings, RP allows standard GNNs, RNNs, and CNNs to surpass traditional WL limits and achieve stronger performance on complex graph tasks.

1. Introduction

A fundamental challenge in graph machine learning is ensuring that models are invariant to the arbitrary ordering of nodes (permutation invariance) while still capturing the full structural complexity of the graph. Most modern Graph Neural Networks (GNNs) achieve this via message-passing schemes. However, these schemes are theoretically bounded by the Weisfeiler-Lehman (WL) graph isomorphism test.

Because of this mathematical ceiling, there are distinct, non-isomorphic graphs that standard GNNs simply cannot tell apart. For example, highly symmetric circular graphs like Circulant Skip Link (CSL) graphs pose a significant challenge. If a network cannot distinguish two different graph structures, it cannot accurately predict different outcomes for them. This work introduces a framework that guarantees maximal representation power—the ability to distinguish any pair of non-isomorphic graphs—without being locked into the limitations of the WL hierarchy.

Circulant Skip Link (CSL) graphs $\mathcal{G}_{\text{skip}}(11, 2)$ and $\mathcal{G}_{\text{skip}}(11, 3)$ which are indistinguishable by standard WL-based GNNs.

2. Methodology

The core contribution is Relational Pooling (RP). Instead of forcing the neural network architecture itself to be permutation-invariant, RP takes an arbitrary, permutation-sensitive function $f$ (such as an RNN, CNN, or a standard GNN with unique node identifiers) and averages its output over all possible permutations $\pi$ of the graph's nodes:

$$ \text{RP}(f) = \frac{1}{|V|!} \sum_{\pi \in \Pi} f(\pi(G)) $$

To implement this as RP-GNN, the authors assign unique one-hot IDs to nodes, making them permutation-sensitive, process them with a GNN, and then pool over the permutations. Since averaging over $|V|!$ permutations is computationally intractable, three approximations are introduced:

  • Canonical Orientations: Heuristics like centrality or Depth-First Search (DFS) are used to sort nodes and reduce the number of permutations.
  • $\pi$-SGD: Random permutations are sampled during training, treating the sum as an expectation optimized via stochastic gradient descent.
  • $k$-ary Dependencies: RP is applied only to $k$-node induced subgraphs, reducing the combinatorial space while maintaining high expressivity.

3. Experiments and Results

The framework was evaluated on both synthetic and real-world datasets.

3.1 Breaking Symmetry in CSL Graphs

The Circulant Skip Links (CSL) dataset consists of highly symmetric regular graphs designed to be indistinguishable by the standard WL test. As shown in the performance table below, the Graph Isomorphism Network (GIN), a state-of-the-art WL-GNN, fails completely on this task, performing no better than random guessing (10% accuracy). In contrast, the RP-augmented version (RP-GIN) successfully breaks this symmetry, achieving significantly higher accuracy.

Performance comparison between RP-GIN and standard GIN on the CSL dataset.

3.2 Molecular Property Prediction

On real-world benchmarks from MoleculeNet (HIV, MUV, Tox21), RP-augmented models demonstrated improved performance. For instance, on the HIV dataset, an RP-augmented GNN (RP-Duvenaud) improved the ROC-AUC from 0.812 to 0.832. The $k$-ary dependency approach also revealed a trade-off between efficiency and accuracy. On the Tox21 dataset, a $k=20$ model was 10% faster than the baseline while achieving a strong ROC-AUC of 0.755.

4. Conclusion

Relational Pooling successfully decouples permutation invariance from the network architecture. This allows the application of sequential (RNN) or grid-based (CNN) models to graphs with theoretical guarantees. While RP-GNNs are mathematically proven to be strictly more expressive than original WL-GNNs, the exact formulation remains computationally expensive. Future work includes exploring Markov Chain Monte Carlo (MCMC) methods for unbiased estimation and learning discrete canonical orientations directly from data.

Summary updated

BibTeX
@inproceedings{murphy2019relational,
  author = {Ryan L. Murphy and Balasubramaniam Srinivasan and Vinayak A. Rao and Bruno Ribeiro},
  title = {{Relational Pooling for Graph Representations.}},
  booktitle = {ICML},
  year = {2019},
  url = {https://openreview.net/forum?id=mYctmLtqdcP},
}
Figure