Graph Representation Learning via Ladder Gamma Variational Autoencoders

Arindam Sarkar, Nikhil Mehta, Piyush RaiAAAI 2020

Introduction

Graph representation learning aims to transform discrete graph nodes into continuous vector embeddings. Traditionally, this field has been split between highly interpretable but often shallow Stochastic Blockmodels (SBMs) and powerful, scalable Graph Neural Networks (GNNs) or Variational Autoencoders (VAEs). While GNNs excel at predictive tasks, their dense Gaussian embeddings often lack a clear "generative story" and are difficult for humans to interpret.

This paper introduces Ladder Gamma Variational Autoencoders for Graphs (LGVG), a deep generative model designed to bridge this gap. LGVG learns hierarchical, sparse, and highly interpretable node embeddings by replacing standard Gaussian latent variables with a "ladder" of Gamma-distributed variables. This architecture allows the model to capture community structures at multiple levels of granularity while maintaining competitive performance in link prediction tasks.

The LGVG Architecture

The core innovation of LGVG lies in its combination of Gamma-distributed latent variables with a hierarchical ladder structure.

The LGVG model architecture, showing the generative process (right) and the inference network (left) with plate notation for N nodes.

Gamma-Distributed Latent Variables

Unlike the standard Gaussian "bell curve" used in most VAEs, LGVG utilizes Gamma distributions. Gamma variables are non-negative and naturally sparse, making them ideal for representing node memberships in specific communities. In this framework, the magnitude of a latent variable directly corresponds to the strength of a node's association with a particular community.

The Ladder Structure and Weibull Trick

The model employs a hierarchy of latent variables where information flows upward through a deterministic encoder (a Graph Convolutional Network) and downward through a stochastic generative process. This allows for the discovery of nested community structures—for instance, a broad "Machine Learning" community at a higher layer might be decomposed into "Reinforcement Learning" and "Optimization" at lower layers.

To overcome the difficulty of reparameterizing Gamma distributions for backpropagation, the authors employ the Weibull distribution as a variational approximation. The Weibull distribution is mathematically related to the Gamma distribution but is much easier to differentiate, enabling efficient training via standard gradient-based methods.

Key Insights and Interpretability

LGVG offers several advantages over traditional graph VAEs:

  • Built-in Interpretability: Node embeddings in LGVG represent community memberships directly. Unlike Gaussian VAEs, which require post-hoc clustering (e.g., K-Means), LGVG's dimensions are inherently meaningful.
  • Automatic Model Selection: The "shrinkage" property of the Gamma distribution allows the model to automatically prune unused dimensions, effectively determining the optimal number of communities from the data.
  • Hierarchical Zoom: The ladder architecture acts as a multi-scale microscope, capturing broad organizational patterns in top layers and fine-grained specializations in bottom layers.

Experimental Results

The authors evaluated LGVG on synthetic benchmarks and real-world citation networks (Cora, Citeseer, Pubmed) and co-authorship networks (NIPS12).

Visualization of the learned link probability matrix, demonstrating the model's ability to recover clean, sparse community structures.

In link prediction tasks, LGVG consistently outperformed standard Gaussian-based models. For example, on the Citeseer dataset, LGVG with side information (LGVG-X) achieved an Average Precision (AP) of 0.9624, significantly higher than the 0.9200 achieved by the standard Variational Graph Autoencoder (VGAE). Qualitative analysis on the NIPS12 dataset further confirmed the model's ability to identify hierarchical research topics and author communities.

Conclusion and Future Work

LGVG represents a significant step toward interpretable deep graph learning. By integrating the strengths of SBMs and VAEs, it provides a robust framework for discovering hierarchical structures in complex networks. While the current implementation's $O(N^2)$ complexity poses challenges for massive graphs, future work focusing on mini-batching and more scalable encoder architectures like GraphSAGE promises to extend these benefits to larger datasets.

Summary updated

BibTeX
@inproceedings{sarkar2020graph,
  author = {Arindam Sarkar and Nikhil Mehta and Piyush Rai},
  title = {{Graph Representation Learning via Ladder Gamma Variational Autoencoders}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=KsGlTFUnBU},
}
Figure