Permutation Equivariant Generative Adversarial Networks for Graphs

Yoann Boget, Magda Gregorova, Alexandros KalousisarXiv 2021

Abstract

One of the most discussed issues in graph generative modeling is the ordering of the representation. One solution consists of using equivariant generative functions, which ensure the ordering invariance. After having discussed some properties of such functions, we propose 3G-GAN, a 3-stages model relying on GANs and equivariant functions. The model is still under development. However, we present some encouraging exploratory experiments and discuss the issues still to be addressed.

Introduction

Generating graphs, particularly molecular structures, presents a significant challenge for machine learning due to the problem of node ordering. Unlike images with fixed pixel coordinates, a graph's nodes lack an inherent order. Standard neural networks require adjacency matrix representations, which impose an arbitrary order. Swapping node labels changes the matrix entirely while the graph remains identical, forcing models to learn every possible permutation—a computationally inefficient process that often leads to "mode collapse."

Methodology

To address this, we introduce 3G-GAN, a three-stage Generative Adversarial Network designed to be permutation equivariant. The model decomposes the generation process into three sequential stages:

  1. Stage 1: The Skeleton. Generation of the binary adjacency matrix $A$, defining connectivity without bond or atom types.
  2. Stage 2: Node Attributes. Generation of atom types $X$ (e.g., Carbon, Oxygen) conditioned on the skeleton $A$.
  3. Stage 3: Edge Attributes. Generation of bond types $W$ (single, double, triple) conditioned on both $A$ and $X$.

3G-GAN utilizes Permutation Equivariant Graph Neural Networks (GNNs) based on InteractionNet. These architectures employ parameter sharing and aggregation functions (such as sums) to ensure that the output is invariant to node indexing. Specifically, we utilize a mathematical decomposition for equivariant functions: $f(z_i, Z_{-i}) = g(z_i, \sum_{j \neq i} h(z_i, z_j))$. This structure enforces the network to treat every node relationship uniformly, maintaining necessary invariance.

Experimental Setup

The model was evaluated on the QM9 dataset, a standard benchmark containing approximately 134,000 small organic molecules. Unlike many existing models, 3G-GAN avoids using external chemoinformatics software (like RDKit) to "fix" chemical validity post-generation, attempting instead to learn chemical constraints purely through the adversarial process.

Results

We compared 3G-GAN against baseline GAN-based models, including MolGAN and GG-GAN. While 3G-GAN exhibited a lower raw validity score compared to MolGAN (78.5% vs 99.8%), it demonstrated a significant advantage in diversity and novelty metrics.

Table 1: Comparative performance of 3G-GAN and baseline models on the QM9 dataset.

The "Global (all)" metric, representing molecules that are simultaneously valid, unique, and novel, highlights 3G-GAN's efficacy. 3G-GAN achieved a score of 26.2%, a substantial improvement over MolGAN RL's 2.2% and GG-GAN's 16.6%. These results suggest that permutation equivariance is a critical factor in preventing model collapse and ensuring the generation of diverse structures.

Discussion and Future Work

While current results are encouraging, 3G-GAN remains a work in progress. Key challenges include:

  • Skeleton Generation: GNNs struggle to distinguish between non-isomorphic graphs without initial node attributes, making the generation of the initial skeleton difficult.
  • Validity Trade-offs: The decision to avoid post-processing "fixes" results in lower validity scores. Future iterations will focus on refining the adversarial loss to better capture chemical constraints like valency.
  • Scalability: Testing the 3-stage approach on larger, more complex molecular datasets beyond QM9 is a primary objective for future research.

Summary updated

BibTeX
@misc{boget2021permutation,
  author = {Yoann Boget and Magda Gregorova and Alexandros Kalousis},
  title = {{Permutation Equivariant Generative Adversarial Networks for Graphs}},
  year = {2021},
  eprint = {2112.03621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.03621},
}
Figure