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

Generating Graphs via Spectral Diffusion

Giorgia Minello, Alessandro Bicciato, Luca Rossi, Andrea Torsello, Luca Cosmo

TL;DR

GGSD (Generating Graphs via Spectral Diffusion) is a novel generative model that performs diffusion on the eigenvalues and eigenvectors of a graph's Laplacian matrix rather than its adjacency matrix. By truncating the spectrum to a subset of $k$ eigenpairs, the model achieves linear complexity in the number of nodes, effectively capturing global structural properties while bypassing the quadratic bottleneck that plagues many existing graph diffusion methods.

The Challenge of Graph Generation

Generating realistic graphs is notoriously difficult for two main reasons: permutation invariance and computational complexity.

First, a graph with $n$ nodes can be represented by $n!$ different adjacency matrices depending on node ordering. A robust model must treat all these representations as equivalent. Second, the adjacency matrix grows quadratically ($O(n^2)$) with the number of nodes. This makes diffusion-based models—which typically operate on every potential edge—prohibitively slow for large graphs. Furthermore, many models focus heavily on local edge dependencies and struggle to capture "global" features like community structures or overall connectivity patterns.

The GGSD Approach

To overcome these limitations, the authors propose a two-stage pipeline called GGSD:

  1. Spectral Diffusion: Instead of diffusing the adjacency matrix directly, the model adds Gaussian noise to the eigenvalues ($\lambda$) and eigenvectors ($\Phi$) of the graph Laplacian. The reverse (denoising) process uses a novel transformer-based architecture. This "score model" employs cross-attention blocks to let eigenvalues and eigenvectors condition each other during denoising. Crucially, by using only the $k$ most significant eigenpairs, the complexity of this stage is reduced to $O(kn)$, making it linear relative to the number of nodes.
  2. Graph Predictor: Because a truncated spectrum provides only an approximation of the graph, the second stage uses a Provably Powerful Graph Network (PPGN) to refine the noisy spectral reconstruction into a clean, binary adjacency matrix.
The GGSD pipeline: Spectral diffusion generates eigenpairs, which are then refined by a PPGN-based Graph Predictor.

The architecture is inherently designed to be permutation invariant and can handle node features by simply concatenating them to the eigenvectors.

Key Insights

  • Truncation as a Feature: Truncating the spectrum isn't just a compression trick; it acts as a natural low-pass filter. This allows the model to focus on the global "skeleton" of the graph (captured by low frequencies) while ignoring high-frequency noise that doesn't contribute to the overall structure.
  • Spectral Inpainting: Because the model operates in the spectral domain, it can perform "spectral inpainting." Users can fix a specific set of eigenvalues (e.g., those representing a specific number of communities) and let the model generate the rest of the graph to match.
  • Covariance over Adjacency: By treating eigenvectors as node embeddings, the model transforms the complex node-permutation problem into a simpler covariance problem in the embedding space, which transformers are well-suited to handle.

Experimental Results

The model was evaluated on a mix of synthetic benchmarks (Community-Small, Planar, and Stochastic Block Model (SBM)) and real-world datasets (Proteins and QM9). GGSD demonstrated superior or competitive performance across these benchmarks using Maximum Mean Discrepancy (MMD) metrics for degree, clustering, and spectral distributions.

  • Synthetic Performance: On the SBM dataset, GGSD achieved the best scores for degree and clustering distributions compared to state-of-the-art models like SPECTRE and DiGress.
Comparison of MMD metrics on synthetic datasets.
  • Real-world Scaling: On the Proteins dataset (containing graphs up to 500 nodes), GGSD significantly outperformed all baselines across every metric, proving its scalability.
  • Efficiency: GGSD is remarkably faster than other diffusion models. For example, on the SBM dataset, GGSD generated 100 graphs in ~18.6 seconds, whereas the competitive model DiGress took over 3,882 seconds—a speedup of over 200x.

Limitations and Future Work

Despite its strengths, the authors note a few areas for future improvement:

  • Frequency Selection: Currently, the number of eigenpairs ($k$) is a fixed hyperparameter. Ideally, the model should learn to select the most informative frequencies automatically for a given dataset.
  • The PPGN Bottleneck: While the spectral diffusion part is linear ($O(kn)$), the PPGN-based graph predictor still has quadratic complexity ($O(n^2)$). Future iterations might explore sparse representations to make the entire pipeline truly linear.
  • Orthonormality: Standard diffusion doesn't guarantee that generated eigenvectors remain orthonormal. While the authors found that manual re-orthonormalization didn't significantly boost performance, finding a way to bake this constraint into the diffusion process remains an open research question.

Summary updated

BibTeX
@inproceedings{minello2025generating,
  author = {Giorgia Minello and Alessandro Bicciato and Luca Rossi and Andrea Torsello and Luca Cosmo},
  title = {{Generating Graphs via Spectral Diffusion}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=AAXBfJNHDt},
}
Figure