Generating Graphs via Spectral Diffusion
Giorgia Minello, Alessandro Bicciato, Luca Rossi, Andrea Torsello, Luca Cosmo
TL;DR
This work develops GGSD, a diffusion-based graph generator that represents graphs via the Laplacian eigenspectrum and learns to sample eigenpairs $(\boldsymbol{\Phi},\boldsymbol{\lambda})$ to reconstruct the graph Laplacian $\mathbf{L}=\boldsymbol{\Phi}\boldsymbol{\Lambda}\boldsymbol{\Phi}^{\top}$ and adjacency. By truncating the spectrum to $k$ components, the diffusion cost scales linearly with the number of nodes $n$, and a permutation-invariant transformer-like backbone can incorporate node features by concatenating them to $\boldsymbol{\Phi}$. A two-stage pipeline couples Spectral Diffusion with a Provably Powerful Graph Network (PPGN) that refines a noisy Laplacian-based adjacency into a binary graph, enabling direct conditioning on spectral properties at inference. The model demonstrates competitive fidelity and controllability on synthetic and real-world graphs, with notable ability to condition generating graphs on targeted eigenvalues or eigenvectors, and to achieve speedups over quadratic-diffusion baselines. Limitations include selecting the most informative frequency components and the quadratic complexity of the predictor, suggesting avenues for future work in adaptive spectrum selection and sparse adjacency representations.
Abstract
In this paper, we present GGSD, a novel graph generative model based on 1) the spectral decomposition of the graph Laplacian matrix and 2) a diffusion process. Specifically, we propose to use a denoising model to sample eigenvectors and eigenvalues from which we can reconstruct the graph Laplacian and adjacency matrix. Using the Laplacian spectrum allows us to naturally capture the structural characteristics of the graph and work directly in the node space while avoiding the quadratic complexity bottleneck that limits the applicability of other diffusion-based methods. This, in turn, is accomplished by truncating the spectrum, which, as we show in our experiments, results in a faster yet accurate generative process, and by designing a novel transformer-based architecture linear in the number of nodes. Our permutation invariant model can also handle node features by concatenating them to the eigenvectors of each node. An extensive set of experiments on both synthetic and real-world graphs demonstrates the strengths of our model against state-of-the-art alternatives.
