A Deep Probabilistic Framework for Continuous Time Dynamic Graph Generation

Ryien Hosseini, Filippo Simini, Venkatram Vishwanath, Henry Hoffmann

TL;DR

DG-Gen is a novel deep generative framework for continuous-time dynamic graphs (CTDGs) that directly models edge interactions as a joint probability distribution over time. Unlike prior snapshot-based approaches, DG-Gen is fully inductive, highly scalable, and the first of its kind to successfully generate synthetic graphs with complex, multi-modal edge features.

What Problem Does This Paper Address?

Real-world networks—such as social media interactions, financial transactions, and bike-sharing systems—are inherently dynamic, evolving continuously and non-uniformly over time. Generative models for these Continuous-Time Dynamic Graphs (CTDGs) are crucial for tasks like data augmentation, anomaly detection, and privacy-preserving data obfuscation.

However, existing generative models struggle because they treat dynamic graphs either as a sequence of static snapshots or as a single static graph with timestamped edges. This reliance on static approximations introduces severe limitations:

  • Poor Scalability: Explicitly computing global adjacency matrices over long time horizons leads to massive memory bottlenecks.
  • Transductive Limitations: Most models map directly to fixed node IDs, meaning they cannot handle or generate unseen nodes (lacking inductivity).
  • Feature Blindness: Prior approaches are incapable of incorporating or generating synthetic edge features.

Methods

The authors introduce DG-Gen (Dynamic Graph Generative Network), an encoder-decoder framework that eschews static graph approximations entirely.

1. Encoder

DG-Gen utilizes a Temporal Graph Network (TGN) as its encoder to map raw interaction data into dynamic, time-aware node embeddings. This captures the long-term temporal dependencies and neighborhood evolution of the graph.

2. Decoder

The core novelty lies in the deep probabilistic decoder. Instead of predicting a global matrix, it factorizes the joint probability of an individual edge event—defined by a source node ($src$), destination node ($dst$), timestamp ($t$), and feature vector ($e$)—into a product of conditional probabilities:

$$p(src, dst, t, e) = p(src) \cdot p(dst|src) \cdot p(t, e|dst, src)$$

The framework uses specialized internal modules to sequentially sample these components:

  • Reshape & Product Modules: Compute categorical distributions over potential source and destination nodes using the learned embeddings.
  • Merge & Time+MSG Modules: A GRU-based sequence model predicts the inter-event time (via an Exponential distribution) and edge features. Categorical variables use a Multinomial distribution, while numerical features are modeled via a Gaussian Mixture Model (GMM).

During training, scheduled Gaussian noise is added to numerical variables to stabilize GMM convergence before gradually recovering the true feature distribution shapes.

Overview of DG-Gen’s architecture and internal modules

Datasets

DG-Gen was evaluated against five diverse continuous-time dynamic graph datasets:

  • Wikipedia & Reddit: Standard benchmarks tracking user interactions with pages and posts.
  • MOOC: Student interactions with online course actions.
  • LastFM: A large-scale dataset tracking user music listening histories over time.
  • Capital Bikeshare: A novel dataset introduced by the authors to capture continuous transportation network dynamics.

Key Insights and Ideas

  • Direct Event Modeling over Adjacency Matrices: By modeling individual interaction events sequentially rather than global adjacency matrices, DG-Gen bypasses the $O(V^2)$ memory bottleneck, unlocking generation over massive temporal horizons.
  • Embedding-Driven Inductivity: Because the decoder samples edges based on learned temporal embeddings rather than explicit node IDs, the model naturally generalizes to entirely unseen nodes and timestamps at inference time.
  • Feature-Aware Generation: DG-Gen is the first CTDG generative model capable of synthesizing realistic edge features alongside graph topology, filling a massive gap in existing literature.

Key Results

Graph & Feature Generation

DG-Gen significantly outperforms TIGGER-I (the only other inductive baseline) across key structural metrics like closeness centrality, mean degree, and wedge count. Furthermore, using Jensen-Shannon (J-S) distance, the authors demonstrate that DG-Gen accurately replicates both single-feature distributions and complex joint-feature correlations.

Edge feature distribution and joint distributions comparison

When adapted for discriminative tasks, DG-Gen's probabilistic decoder yields superior representation learning, outperforming state-of-the-art baselines (JODIE, DyRep, TGAT, TGN, CAWN) in inductive link prediction across almost all datasets.

Average Precision for DG-Gen and baselines on link prediction via inductive sampling

Limitations and Future Work

  • Encoder Dependence: While the framework is encoder-agnostic, the current implementation relies heavily on TGN; exploring other temporal graph encoders could yield different performance trade-offs.
  • Sub-sampling at Scale: To maintain training speed on large graphs, the model samples a random subset of nodes to compute source/destination scores. Optimizing this for massive, industrial-scale graphs with billions of nodes remains an open challenge.
  • Edge Deletions: The current formulation focuses primarily on edge additions and feature evolution; explicitly modeling node/edge deletions in continuous time is left for future exploration.

Summary updated

BibTeX
@inproceedings{hosseini2025deep,
  author = {Ryien Hosseini and Filippo Simini and Venkatram Vishwanath and Henry Hoffmann},
  title = {{A Deep Probabilistic Framework for Continuous Time Dynamic Graph Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=NITeJpep2I},
}
Figure