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

GraphMaker: Can Diffusion Models Generate Large Attributed Graphs?

Mufei Li, Eleonora Kreacic, Vamsi K. Potluru, Pan Li

Abstract

Large-scale graphs with node attributes are increasingly common in various real-world applications. Creating synthetic, attribute-rich graphs that mirror real-world examples is crucial, especially for sharing graph data for analysis and developing learning models when original data is restricted to be shared. Traditional graph generation methods are limited in their capacity to handle these complex structures. Recent advances in diffusion models have shown potential in generating graph structures without attributes and smaller molecular graphs. However, these models face challenges in generating large attributed graphs due to the complex attribute-structure correlations and the large size of these graphs. This paper introduces a novel diffusion model, GraphMaker, specifically designed for generating large attributed graphs. We explore various combinations of node attribute and graph structure generation processes, finding that an asynchronous approach more effectively captures the intricate attribute-structure correlations. We also address scalability issues through edge mini-batching generation. To demonstrate the practicality of our approach in graph data dissemination, we introduce a new evaluation pipeline. The evaluation demonstrates that synthetic graphs generated by GraphMaker can be used to develop competitive graph machine learning models for the tasks defined over the original graphs without actually accessing these graphs, while many leading graph generation methods fall short in this evaluation.

Introduction

Diffusion models have revolutionized image and molecule generation, but scaling them to large graphs with thousands of nodes and rich attributes remains a significant hurdle. Most existing models focus on small molecular structures or ignore node attributes entirely. GraphMaker addresses three core challenges: capturing complex correlations between attributes and structure, managing the $O(N^2)$ scalability of edge generation, and providing meaningful evaluation metrics for synthetic graph utility.

Methodology: Asynchronous Denoising

The core innovation of GraphMaker is its adaptation of the Discrete Diffusion (D3PM) framework for large attributed graphs. A key finding is the superiority of an asynchronous approach over simultaneous denoising.

Comparison of Synchronous and Asynchronous Denoising in GraphMaker.

In the GraphMaker-Async process, the model first generates node attributes to create a "semantic landscape." It then generates the graph structure conditioned on these attributes. This decomposition simplifies the learning of complex dependencies. To handle scalability, GraphMaker utilizes a customized Message Passing Neural Network (MPNN) and edge mini-batching, which randomly samples subsets of node pairs during training to avoid memory exhaustion.

Experimental Setup and ML Utility

The model was evaluated on three benchmark datasets: Cora (citation network), Amazon Photo (product co-purchase), and Amazon Computer (the largest testbed with over 13,000 nodes). To measure the quality of the generated graphs, the authors proposed a "Train on Synthetic, Test on Real" (TSTR) pipeline. If a GNN trained on synthetic data performs well on real-world test data, the generation is considered high-utility.

Key Results

GraphMaker-Async consistently outperformed leading baselines like GDSS and EDGE in 80% of tested cases. Notably, GraphMaker was the only diffusion model tested that did not run out of memory (OOM) on the Amazon Computer dataset using a 48GB GPU.

ML Utility evaluation across Cora, Amazon Photo, and Amazon Computer datasets.

Key insights from the evaluation include:

  • Structural Fidelity: The model successfully captures high-level statistics like clustering coefficients and triangle counts.
  • Diversity: GraphMaker generates novel, diverse graphs rather than simply memorizing the training data.
  • Labels as Anchors: Using node labels for conditional generation significantly boosts the utility of synthetic data for downstream classification tasks.

Conclusion

GraphMaker represents a major step forward in generating large-scale, attribute-rich synthetic graphs. While currently focused on categorical attributes for graphs up to 13k nodes, future work aims to scale to millions of nodes, support continuous attributes, and integrate formal Differential Privacy frameworks to provide mathematical guarantees against data leakage.

Summary updated

BibTeX
@article{li2024graphmaker,
  author = {Mufei Li and Eleonora Kreacic and Vamsi K. Potluru and Pan Li},
  title = {{GraphMaker: Can Diffusion Models Generate Large Attributed Graphs?}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=0q4zjGMKoA},
}
Figure