SaGess: Sampling Graph Denoising Diffusion Model for Scalable Graph Generation

Stratis Limnios, Praveen Selvaraj, Mihai Cucuringu, Carsten Maple, Gesine Reinert, Andrew ElliottarXiv 2023 · DOI

Introduction

Generative modeling for graphs is a critical frontier in machine learning, with applications spanning drug discovery, social network analysis, and privacy-preserving data synthesis. Recently, denoising diffusion models—the architecture underlying state-of-the-art image generation—have demonstrated exceptional performance in capturing complex graph structures. However, these models face a significant scalability barrier. Most existing frameworks, such as DiGress, are designed for datasets containing many small, independent graphs (e.g., molecular datasets) and suffer from $O(n^2)$ complexity. In contrast, many real-world applications involve a single, massive network where the goal is to generate a synthetic counterpart that preserves the original's structural properties.

SaGess (SAmpling Graph dEnoiSing DiffuSion model) addresses this gap by introducing a "divide-and-conquer" framework. By training on sampled subgraphs and employing a novel agglomeration strategy, SaGess enables the application of high-fidelity diffusion models to large-scale networks.

The Scalability Challenge in Graph Diffusion

Traditional graph diffusion models typically require the entire adjacency matrix to be processed, which becomes computationally prohibitive as the number of nodes ($n$) increases. Furthermore, these models are often ill-equipped to learn from a single observation of a large graph. SaGess overcomes these hurdles by shifting the learning objective from the global graph to a distribution of representative subgraphs, which are then used to reconstruct the global topology.

The SaGess Framework

The SaGess pipeline consists of three primary phases: sampling, local diffusion training, and global agglomeration.

1. Graph Subsampling

To make the problem tractable, SaGess decomposes the large input graph into a "covering" of smaller subgraphs. The researchers evaluated three distinct sampling strategies to capture different structural nuances:

  • Uniform (Unif): Nodes are selected randomly, providing a baseline for global distribution.
  • Random Walk (RW): Captures local connectivity and path-based structures.
  • Ego-Neighborhood (Ego): Focuses on the immediate local neighborhoods (social circles) of nodes.

2. Node Identity as Features

A core innovation of SaGess is the use of node IDs as one-hot encoded features during the diffusion process. This "identity trick" allows the model to move beyond learning generic graph patterns; instead, it learns the specific structural roles and local interactions associated with individual nodes. This ensures that when subgraphs are generated, they contain the necessary information to be correctly reassembled.

3. Agglomeration

In the final phase, the model generates synthetic subgraphs based on the learned distribution. These subgraphs are then "stitched" together to form a single global network. The process continues adding edges until the synthetic graph's edge count matches that of the original observation, ensuring macro-level consistency.

Experimental Evaluation

The researchers evaluated SaGess across four real-world datasets—EuCore (email communication), Cora (citation network), Wiki (web links), and Facebook (social circles)—alongside a synthetic Stochastic Block Model (SBM) benchmark.

Structural Fidelity and Global Recovery

One of the most significant findings is that SaGess can recover global properties, such as the characteristic path length, even though it is trained exclusively on local subgraphs. It also excels at capturing "motifs," such as triangles and clustering coefficients, which are often lost in traditional generative models like NetGAN.

Downstream Utility

To test the practical utility of the generated data, the authors performed link prediction tasks. By training a model on synthetic data generated by SaGess and testing it on real-world data, they found that the RW-SaGess variant outperformed established baselines like NetGAN and CELL. This suggests that SaGess preserves the underlying relational logic of the network, making it suitable for privacy-preserving data sharing and augmentation.

Limitations and Future Work

While SaGess represents a major step forward in scalable graph generation, it is not without limitations:

  • Memory Constraints: The use of one-hot encoded node IDs results in memory usage that scales with the total number of nodes ($O(kn)$). While more efficient than $O(n^2)$, this remains a bottleneck for networks with millions of nodes.
  • Attribute Integration: Currently, node identity features occupy the "feature slots" in the model, making it difficult to incorporate external node attributes (e.g., user demographics or paper categories) simultaneously.
  • Temporal Dynamics: The current framework is designed for static graphs. Extending SaGess to dynamic, time-varying networks remains an open area for research.

Conclusion

SaGess demonstrates that the high-quality generative capabilities of diffusion models can be scaled to large, real-world networks through a principled sampling and agglomeration strategy. By maintaining local structural integrity and recovering global statistics, SaGess provides a robust framework for generating synthetic graphs that are both statistically accurate and practically useful.

Summary updated

BibTeX
@misc{limnios2023sagess,
  author = {Stratis Limnios and Praveen Selvaraj and Mihai Cucuringu and Carsten Maple and Gesine Reinert and Andrew Elliott},
  title = {{SaGess: Sampling Graph Denoising Diffusion Model for Scalable Graph Generation}},
  year = {2023},
  eprint = {2306.16827},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.16827},
}
Figure