SGVAE: Sequential Graph Variational Autoencoder

Bowen Jing, Ethan A. Chi, Jillian TangarXiv 2019

TL;DR

This paper introduces SGVAE, a novel variational autoencoder that generates graphs by treating graph construction and deconstruction as sequential processes. Unlike prior methods, SGVAE learns a latent space directly from graph structures, aiming to capture richer relational information. While promising, it highlights challenges in learning meaningful latent space interpolations due to permutation complexities.

What Problem Does This Paper Address?

Generating realistic graphs is a challenging but important task with applications ranging from social network analysis to drug discovery. Existing graph generative models often struggle with scalability and expressivity. Some models generate graphs from vectorized representations, which can be unnatural, while others generate graphs step-by-step but don't learn a latent space for exploring graph variations. A key gap is the lack of models that can learn a meaningful latent representation of graphs while fully leveraging their inherent relational structure.

Methods

The core of SGVAE is a variational autoencoder (VAE) framework. The decoder is based on a Sequential Graph Generative Network (SGNN), which constructs a graph node by node and edge by edge. The encoder, termed the "graph destructor," reverses this process by deconstructing a graph into a latent representation and a sequence of node removal operations.

Key novelties include:

  • Direct Graph Representation: SGVAE operates directly on graph structures, preserving relational inductive biases, unlike models that rely on matrix or tensor representations.
  • Latent Space Learning: It explicitly learns a latent space, allowing for interpolation and exploration of graph variations, which is absent in SGNN.
  • Sequential Construction/Deconstruction: Both encoding and decoding are framed as sequential processes, mimicking how graphs might be built or taken apart.
  • Learned Permutation Order: Instead of fixing or randomizing the order of node construction/deconstruction, SGVAE aims to learn this order, which is crucial for capturing graph structure.

The paper also discusses modifications to the original SGNN to handle the learned permutation order and edge generation more effectively within the VAE framework.

Datasets

The experiments were conducted on a custom-built toy cycle dataset. This dataset consists of 100 graphs, each being a cycle with lengths ranging from 5 to 14. The dataset uses only one node type and one edge type, simplifying the initial proof-of-concept.

Key Insights and Ideas

  • Latent Space Clusters: The learned latent space isn't a single, continuous region. Instead, it exhibits multiple clusters, each with an interpretable principal axis. This suggests different "destruction modalities" or ways of deconstructing the graph.
  • Permutation Complexity: The paper highlights the significant challenge posed by the discrete and large space of node permutations. This complexity makes it difficult to optimize the VAE's objective, particularly the KL-divergence term between the learned posterior and the prior.
  • Encoder Ignoring Latent Space: A surprising finding is that the encoder might learn to ignore the latent representation z when generating graphs. This is a common issue in expressive generative models and suggests the need for techniques like mutual information maximization.
  • Branching Effect: The latent space clusters show a "branching effect," which is attributed to the combinatorial growth of permutation space and the deterministic relationship between z and π.

Key Results

  • Lower Perplexity: SGVAE achieves lower perplexity (below 5.1) on the cycle dataset compared to prior methods like SGNN.
  • Generation Accuracy: While perplexity improved, generation accuracy peaked around epochs 50-60 and did not consistently improve with loss. The authors attribute this to the looseness of the lower-bound approximation and the challenges with multimodal posteriors.
  • Interpretable Principal Axis: The tSNE visualization of the latent space reveals a principal axis that correlates with cycle length, demonstrating some level of semantic interpretability.
  • Interpolation Challenges: Interpolating along the principal axis of the largest cluster did not yield a compelling trend in cycle lengths, indicating that the model struggles to learn a smooth, semantically meaningful progression in generated graphs based on z.

Limitations and Future Work

  • Multimodal Posterior: The primary limitation identified is the difficulty in fitting a multimodal posterior q(z|x) to a unimodal Gaussian prior p(z), which complicates VAE optimization.
  • Latent Space Interpolation: The model fails to generate semantically meaningful progressions when interpolating in the latent space, suggesting the encoder might ignore z.
  • Permutation Handling: The paper suggests future work could involve relaxing the discrete permutation decisions, perhaps by down-weighting nodes instead of permanently removing them, to create a more well-behaved distribution.
  • Mutual Information: Incorporating mutual information terms (like in InfoVAEs) is proposed to encourage the encoder to better utilize the latent representation z.
  • Independent Edge Assumption: The assumption of independent edge generation is noted as a potential limitation for more complex datasets.

Summary updated

Abstract

Generative models of graphs are well-known, but many existing models are limited in scalability and expressivity. We present a novel sequential graphical variational autoencoder operating directly on graphical representations of data. In our model, the encoding and decoding of a graph as is framed as a sequential deconstruction and construction process, respectively, enabling the the learning of a latent space. Experiments on a cycle dataset show promise, but highlight the need for a relaxation of the distribution over node permutations.
BibTeX
@misc{jing2019sgvae,
  author = {Bowen Jing and Ethan A. Chi and Jillian Tang},
  title = {{SGVAE: Sequential Graph Variational Autoencoder}},
  year = {2019},
  eprint = {1912.07800},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.07800},
}
Figure