Sparse Training of Discrete Diffusion Models for Graph Generation

Yiming Qin, Clement Vignac, Pascal Frossard
11/3/2023
cs.LGcs.AI

Official code: qym7/SparseDiff (81 stars, MIT, last commit 2025-08-18).

Abstract

Generative graph models struggle to scale due to the need to predict the existence or type of edges between all node pairs. To address the resulting quadratic complexity, existing scalable models often impose restrictive assumptions such as a cluster structure within graphs, thus limiting their applicability. To address this, we introduce SparseDiff, a novel diffusion model based on the observation that almost all large graphs are sparse. By selecting a subset of edges, SparseDiff effectively leverages sparse graph representations both during the noising process and within the denoising network, which ensures that space complexity scales linearly with the number of chosen edges. During inference, SparseDiff progressively fills the adjacency matrix with the selected subsets of edges, mirroring the training process. Our model demonstrates state-of-the-art performance across multiple metrics on both small and large datasets, confirming its effectiveness and robustness across varying graph sizes. It also ensures faster convergence, particularly on larger graphs, achieving a fourfold speedup on the large Ego dataset compared to dense models, thereby paving the way for broader applications.

View on arXivView PDF

Code Implementations(1)

qym7/SparseDiffOfficial100%
MIT

Official implementation for 'Sparse denoising diffusion for large graph generation'

817C++, PythonOct 30, 20231 years agoMIT

Similar Papers

Cite this paper

@article{qin2023sparse,
  title  = {Sparse Training of Discrete Diffusion Models for Graph Generation},
  author = {Yiming Qin and Clement Vignac and Pascal Frossard},
  year   = {2023},
  eprint = {2311.02142},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.02142v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.02142.svg)](https://codeofpaper.com/paper/2311.02142)

Discussion