Disentangling Interpretable Generative Parameters of Random and Real-World Graphs

Niklas Stoehr, Marc Brockschmidt, Jan Stuehmer, Emine YilmazarXiv 2019

Introduction

Network science often grapples with a fundamental trade-off between interpretability and complexity. Classical random graph models, such as the Erdős–Rényi or Barabási-Albert models, are governed by simple, well-understood parameters but often fail to capture the intricate structures of real-world social or biological networks. Conversely, modern deep generative models can replicate complex topologies with high precision but operate as "black boxes," offering little insight into the underlying rules of formation. This work bridges this gap by employing $\beta$-Variational Autoencoders ($\beta$-VAEs) to automatically discover disentangled, interpretable generative parameters from graph data.

Methods

The proposed framework treats graph generation as an inverse problem of graph compression. The architecture utilizes a $\beta$-VAE designed to learn a latent space where individual dimensions correspond to independent factors of variation.

The β-VAE architecture for graph disentanglement, featuring a GCN encoder and a deconvolutional decoder.

The model consists of three primary components:

  1. Encoder: A Graph Convolutional Network (GCN) that compresses the input graph structure into a low-dimensional latent vector $z$.
  2. Decoder: A deconvolutional neural network that attempts to reconstruct the original graph's adjacency matrix from the latent representation.
  3. Disentanglement Mechanism: By increasing the weight ($\beta$) of the Kullback-Leibler (KL) divergence term in the loss function, the model is forced to organize its latent space more strictly. This encourages different physical properties of the graph to "settle" into distinct latent variables.

To quantify success, the researchers use the Mutual Information Gap (MIG), which measures how effectively a single latent variable tracks a specific ground-truth generative parameter.

Key Results and Insights

The model was evaluated across a mix of synthetic random graphs (Erdős–Rényi, Barabási-Albert, Small-World) and real-world citation and link networks (CORA, Wikipedia, Microsoft Academic Graph).

Latent space manifolds and correlation analysis for Erdős–Rényi graphs, demonstrating clear disentanglement of parameters n and p.

On Erdős–Rényi (ER) graphs, the model achieved a high MIG of 0.62. As shown in the manifold plots, traversing the latent space along specific axes reveals interpretable shifts: one variable ($z_0$) naturally learned to represent the linking probability $p$, while another ($z_1$) captured the number of nodes $n$. This demonstrates that the network can "reverse-engineer" the generative rules of a graph without prior knowledge of its parameters.

Beyond synthetic data, the authors proposed a method to measure the dependence between a network's structure and its metadata. In the Microsoft Academic Graph (MAG), the model identified a strong correlation (0.4662) between a node's topological collaboration patterns and its citation count, proving the model's ability to identify meaningful relationships in real-world data.

Limitations and Future Work

Despite its success, the approach faces challenges regarding node ordering sensitivity in the decoder, which can affect scalability to very large graphs. Additionally, there is an inherent tension in $\beta$-VAEs between the degree of disentanglement and the fidelity of graph reconstruction. Future directions include moving toward node-order-independent decoders and exploring generative models that do not sacrifice reconstruction quality to achieve interpretability.

Summary updated

Abstract

While a wide range of interpretable generative procedures for graphs exist, matching observed graph topologies with such procedures and choices for its parameters remains an open problem. Devising generative models that closely reproduce real-world graphs requires domain knowledge and time-consuming simulation. While existing deep learning approaches rely on less manual modelling, they offer little interpretability. This work approaches graph generation (decoding) as the inverse of graph compression (encoding). We show that in a disentanglement-focused deep autoencoding framework, specifically Beta-Variational Autoencoders (Beta-VAE), choices of generative procedures and their parameters arise naturally in the latent space. Our model is capable of learning disentangled, interpretable latent variables that represent the generative parameters of procedurally generated random graphs and real-world graphs. The degree of disentanglement is quantitatively measured using the Mutual Information Gap (MIG). When training our Beta-VAE model on ER random graphs, its latent variables have a near one-to-one mapping to the ER random graph parameters n and p. We deploy the model to analyse the correlation between graph topology and node attributes measuring their mutual dependence without handpicking topological properties.
BibTeX
@misc{stoehr2019disentangling,
  author = {Niklas Stoehr and Marc Brockschmidt and Jan Stuehmer and Emine Yilmaz},
  title = {{Disentangling Interpretable Generative Parameters of Random and Real-World Graphs}},
  year = {2019},
  eprint = {1910.05639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.05639},
}
Figure