NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DyGDi: Diffusion Model for Continuous-Time Dynamic Graph Generation

Tsiry Mayet, Noé Gille, Simon Bernard, Maxime Berar, Clément Chatelain, Sébastien AdamarXiv 2026

TL;DR

Real-world networks—from financial transactions to social media—are living streams of events, yet generating realistic synthetic versions of them has been painfully slow because existing models generate interactions one by one. DyGDi brings diffusion and flow matching to continuous-time dynamic graphs, denoising entire windows of events and their features simultaneously. The result is a massive leap in both generation speed (up to 175× faster on high-dimensional data) and structural realism, making real-time network simulation practical at scale.

What Problem Does This Paper Address?

Imagine trying to simulate a bustling social network or a web of financial transactions. You can’t just generate a static snapshot; you need to capture how nodes (users) and edges (interactions, complete with timestamps and metadata) appear and evolve over time. Furthermore, a good generator needs to be inductive—meaning it can invent brand-new, unseen nodes rather than just memorizing and replaying the training set.

Historically, researchers modeled these systems in two ways:

  1. Discrete snapshots: Chopping time into static graph slices. This loses fine-grained timing and scales poorly as adjacency matrices blow up in size.
  2. Continuous-Time Dynamic Graphs (CTDGs): Modeling the network as an ordered stream of timestamped events.

While CTDGs scale much better, existing inductive generators are autoregressive—they sample one event, then the next, and so on. This sequential bottleneck makes generation agonizingly slow. If you try to cheat by sampling batches of events in parallel, the events within a batch ignore each other, ruining the structural coherence of the network. Meanwhile, diffusion models have revolutionized image and static-graph generation, but hadn't yet cracked continuous-time event streams.

Methods

DyGDi (Dynamic Graph Diffusion) reframes dynamic graph generation as a sequence-to-sequence problem powered by conditional flow matching (a fast, ODE-based cousin of standard diffusion).

Overview of the DyGDi training pipeline, showing how past events condition the simultaneous denoising of a current event window.

Here is how the pieces fit together:

  • Standard Foundation (Memory Encoder): Instead of hardcoding node IDs, DyGDi uses a standard Temporal Graph Network (TGN) memory bank to maintain evolving latent embeddings for every node seen so far.
  • Event Tokenization: Each interaction is packed into a fixed-size vector containing source and destination node embeddings, the time elapsed since the last event ($\Delta t$), and edge features.
  • Novel Parallel Window Generation: Conditioned on a window of recent past tokens and a summary of all seen nodes, a Transformer velocity network denoises an entire sliding window of multiple future event tokens all at once. At inference, nearest-neighbor search maps generated embeddings back to discrete node IDs.
  • Solving Identity Collapse: Generating unseen nodes in parallel creates a tricky failure mode: if all unseen nodes start with zeroed-out embeddings, the model can't tell two different new nodes apart within the same window. DyGDi solves this with two clever additions: attaching a one-hot event-class vector to each token (flagging whether a node is already seen, brand new, or new, but appeared earlier in this window), and assigning distinct random Gaussian embeddings to unseen nodes during training to anchor their identities.

Datasets

No new datasets are introduced, though the authors mention a controlled synthetic dataset (detailed in their appendix) used for ablations. For main benchmarks, DyGDi is evaluated across eight established, publicly available real-world CTDG datasets:

  • Standard JODIE benchmarks: Reddit, Wikipedia, MOOC, and LastFM.
  • DyGLib benchmarks: Enron, UCI, SocialEvo, and Contacts.

(Note: LastFM, Enron, and UCI are pure topology/time streams without edge features; Reddit and Wikipedia are tested on both 12-feature subsets and their full 172-feature sets).

Key Insights and Ideas

  • Mutual attention prevents "hub" hallucinations: Because DyGDi denoises a whole window of events simultaneously, events and features within that window attend to one another. Autoregressive baselines tend to accidentally dump too many edges onto a few nodes, creating massive, unrealistic hubs and giant clusters. Joint window generation keeps graph density and degree distributions grounded.
  • Parallel generation breaks new-node identities unless anchored: Identifying memory matching collapse and window matching collapse is a major conceptual catch. Without random Gaussian anchors and routing classes, parallel decoders inevitably blur distinct new arrivals into the same identity.
  • Decoupling feature count from generation speed: In autoregressive models that use RNNs to decode features, adding more edge attributes severely bottlenecks sampling speed. Because DyGDi projects features into a fixed-width token processed by a Transformer, generating 172 features takes nearly the exact same time as generating 12.

Key Results

DyGDi is benchmarked against state-of-the-art inductive CTDG generators DG-Gen and Tigger.

Feature generation quality comparing DG-Gen and DyGDi across five datasets.
  • Superior Feature Fidelity: DyGDi matches or beats DG-Gen across all datasets on Jensen–Shannon (JS) divergence and Wasserstein distance. On Reddit, it cuts the feature Wasserstein distance by ~4.2× (from 0.26 to 0.06), and by over an order of magnitude on SocialEvo and Contacts—avoiding the out-of-distribution values that plague DG-Gen.
  • Realistic Topology & Joint Dynamics: On the global Johnson–Lindenstrauss (JL) similarity metric—which jointly evaluates time, features, and topology across the full stream—DyGDi wins on all 8 datasets. On Reddit, baselines suffer Wedge Count errors 23–55× larger than the real data scale due to spurious hubs, whereas DyGDi's errors stay well below the real-data scale (82%).
  • Massive Speedups & Scaling: When scaling from 12 to 172 features on Reddit, DG-Gen's JL similarity drops by 44% and its generation speed plummets by 14× (down to 24 events/sec). DyGDi's JL score drops by only 14%, while generating 583 events/sec at 100 sampling steps (25× faster) and 4,169 events/sec at 10 steps (175× faster) with virtually no loss in quality.

Limitations and Future Work

While the authors do not include a standalone limitations section, two constraints emerge directly from the methodology and experiments:

  • Bounded Node Tracking: The TGN memory bank relies on a fixed-size hyperparameter $N$ of memory slots, which upper-bounds the total number of unique nodes the model can track over a run.
  • Over-fragmentation on Specific Topologies: On the MOOC dataset, DyGDi exhibits a high error on the Number of Connected Components (~7.5× the real-data scale), fragmenting individual snapshots into too many disconnected pieces even though its global stream similarity (JL) remains 5× better than DG-Gen.

Future directions are not explicitly discussed in the main text beyond applying DyGDi to large-scale, real-world simulation tasks.

Summary updated

BibTeX
@misc{mayet2026dygdi,
  author = {Tsiry Mayet and Noé Gille and Simon Bernard and Maxime Berar and Clément Chatelain and Sébastien Adam},
  title = {{DyGDi: Diffusion Model for Continuous-Time Dynamic Graph Generation}},
  year = {2026},
  eprint = {2611.36253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36253},
}
Figure