Disentangled Dynamic Graph Deep Generation

Wenbin Zhang, Liming Zhang, Dieter Pfoser, Liang Zhao

TL;DR

This paper introduces D2G2 (Disentangled Dynamic Graph Deep Generation), a novel framework for generating dynamic graphs that change over time. By explicitly disentangling static vs. dynamic patterns and node vs. edge characteristics into separate latent variables, the model achieves state-of-the-art performance in generating realistic, interpretable temporal networks like protein folding sequences and urban mobility maps.

What Problem Does This Paper Address?

While deep generative models have seen massive success in images (GANs) and text (Transformers), applying them to dynamic graphs remains a significant challenge. Most existing graph generators focus on static snapshots, but real-world data—like a protein folding or a social network—is inherently temporal.

The authors identify three major hurdles:

  1. Joint Modeling: It is difficult to capture how node attributes (continuous values) and edge topologies (discrete connections) evolve together.
  2. Static vs. Dynamic Factors: A dynamic graph is often a mix of things that stay the same (e.g., a protein's backbone) and things that change (e.g., hydrogen bonds). Existing models struggle to separate these.
  3. Decoding Complexity: Converting a low-dimensional latent vector back into a sequence of graph snapshots while maintaining temporal dependency is computationally expensive and architecturally complex.

Methods

The core of the D2G2 framework is a factorized Bayesian model implemented via a Variational Autoencoder (VAE). The "magic" lies in how they structure the latent space $\Theta$ into four distinct factors:

  • $f$ (Static): Captures time-invariant patterns (the "intrinsic nature" of the graph).
  • $z$ (Edge Dynamics): Models changes only in the connections.
  • $z'$ (Node Dynamics): Models changes only in node attributes (e.g., traffic flow on a fixed road network).
  • $z''$ (Joint Dynamics): Models patterns where nodes and edges change simultaneously (e.g., homophily in social networks).

The authors propose two inference architectures:

  • Factorized Inference Model: Assumes conditional independence between time points for efficiency.
  • Full Inference Model: Uses Bi-directional LSTMs to capture complex temporal dependencies across the entire sequence.

For the decoder, they utilize recurrent graph deconvolutions to transform these latent factors back into adjacency matrices (edges) and feature vectors (nodes) for each time step.

Datasets

The model was evaluated on a diverse mix of real-world and synthetic benchmarks:

  • Protein: A simulation of a peptide folding (8 nodes, 100 snapshots).
  • Authentication: A network of 97 users and 27 computers in an enterprise setting.
  • Metro: Trip records from the Washington D.C. metro system (91 stations).
  • Synthetic Scale-Free Graphs: Three datasets with increasing complexity, scaling from 100 to 2,500 nodes to test scalability.

Key Insights and Ideas

  • Interpretability through Disentanglement: Because the latent space is partitioned, researchers can "intervene" by varying one factor while keeping others fixed. For example, by varying only $z$, you can generate a sequence where node properties stay identical but the connections shift, proving the model has truly learned to separate these concepts.
  • The "Static Backbone" Matters: The inclusion of the time-independent variable $f$ is crucial. Ablation studies showed that without $f$, the model fails to capture the underlying topology of the graph, even if it gets the node attributes right.
  • Scalability: Unlike many VAE-based graph models that hit a wall at 100 nodes (due to $O(n^4)$ complexity), D2G2 utilizes a more efficient architecture ($O(cTn^2)$), allowing it to handle graphs with thousands of nodes.

Key Results

  • Topological Accuracy: D2G2 consistently outperformed baselines like GraphRNN, NetGAN, and GraphVAE across multiple Maximum Mean Discrepancy (MMD) metrics (e.g., betweenness centrality and temporal correlation).
  • Node Attribute Generation: In the Protein and Metro datasets, D2G2 achieved significantly lower Mean Squared Error (MSE) and higher $R^2$ scores compared to GraphVAE, which was previously the only baseline capable of handling node attributes.
  • Qualitative Fidelity: Visualizations show that D2G2 generates graph sequences that are visually almost indistinguishable from the ground truth, whereas baselines like NetGAN or DSBM often produce "noisy" or static-looking results.

Limitations and Future Work

  • Discrete vs. Continuous: While the model handles discrete edges and continuous node attributes, the authors note that modeling the interplay between these two different data types remains a complex area for optimization.
  • Future Directions: The authors suggest extending this framework to unbiased scene graph generation, where the relationships between objects in a video need to be generated dynamically and without dataset bias.
  • Computational Cost: While more scalable than some predecessors, generating very long sequences ($T$) with very large node counts ($n$) still requires significant GPU memory, as evidenced by the use of a 10-core i9 system with a 1080Ti for the experiments.

Summary updated

BibTeX
@inproceedings{zhang2021disentangled,
  author = {Wenbin Zhang and Liming Zhang and Dieter Pfoser and Liang Zhao},
  title = {{Disentangled Dynamic Graph Deep Generation}},
  booktitle = {SDM},
  year = {2021},
  doi = {10.1137/1.9781611976700.83},
}
Figure