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

Fast Graph Generation via Spectral Diffusion

Tianze Luo, Zhanfeng Mo, Sinno Jialin Pan

TL;DR

This paper introduces the Graph Spectral Diffusion Model (GSDM), a novel approach to generating realistic graph data. GSDM improves upon existing diffusion models by applying diffusion processes to the spectral (eigenvalue) space of graph adjacency matrices, leading to higher quality graph generation and significantly faster computation.

What Problem Does This Paper Address?

Generating realistic graph-structured data is crucial for many applications, from drug discovery to social network analysis. While diffusion models have shown great promise in this area, they often struggle with the inherent sparsity and low-rank nature of graph adjacency matrices. Applying standard diffusion techniques, which work well for dense image data, to the entire adjacency matrix can introduce "lethal noise" that corrupts the graph's topology and degrades generation quality. This paper addresses this limitation by proposing a more graph-friendly diffusion approach.

Methods

The core innovation of GSDM lies in its "spectral diffusion" approach. Instead of directly diffusing the entire adjacency matrix, GSDM operates on the graph's spectrum (eigenvalues). This is achieved by:

  • Spectral Decomposition: Decomposing the adjacency matrix $A$ into its eigenvectors $U$ and eigenvalues $\Lambda$ ($A = U\Lambda U^T$).
  • Low-Rank Diffusion: Applying diffusion Stochastic Differential Equations (SDEs) only to the diagonal entries of the eigenvalue matrix $\Lambda$, effectively performing a low-rank diffusion. The eigenvectors $U$ are kept fixed during this process.
  • Joint Node and Spectrum Diffusion: Simultaneously diffusing node features and the graph spectrum, allowing the model to learn both attribute and structural information.
  • Score Matching: Training neural networks to learn the score functions (gradients of the log-density) for both node features and the spectrum, enabling the reversal of the diffusion process.

This spectral approach is theoretically shown to provide a stronger guarantee for reconstruction quality compared to standard graph diffusion models.

Datasets

The paper evaluates GSDM on several datasets for both generic graph generation and molecule generation:

  • Generic Graph Generation:
    • Community-small (synthetic, small graphs)
    • Enzymes (real-world protein graphs)
    • Grid (synthetic, larger graphs)
  • Molecule Generation:
    • QM9
    • ZINC250k

Key Insights and Ideas

  • Spectrum is Key for Graph Topology: The paper highlights that the spectral properties (eigenvalues) of a graph's adjacency matrix are crucial for capturing its topology. Diffusing in this spectral space is more effective than diffusing the entire dense matrix.
  • Sparsity is a Feature, Not a Bug: Standard diffusion models struggle with sparse data because isotropic noise injection corrupts the sparse structure. GSDM's spectral approach inherently handles this by focusing on the low-dimensional manifold of the spectrum.
  • Theoretical Guarantees: The spectral diffusion approach provides a theoretically sharper reconstruction error bound, suggesting better generation quality and robustness.
  • Efficiency Gains: By operating on the lower-dimensional spectrum instead of the full adjacency matrix, GSDM achieves significant speedups in both training and sampling.

Key Results

  • State-of-the-Art Generation Quality: GSDM outperforms existing graph generative models, including the previous state-of-the-art graph diffusion model GDSS, on various datasets. This is evidenced by lower MMD scores for graph statistics (degree, clustering coefficient, etc.).
  • Faster Computation: GSDM is significantly faster than GDSS, especially for molecule generation, with speedups of up to 58x for QM9 and 46x for ZINC250k in inference time.
  • Robustness to Diffusion Schedules: GSDM shows robustness to different diffusion schedules, reducing the need for extensive hyperparameter tuning.
  • Effective for Molecule Generation: GSDM demonstrates strong performance in generating realistic molecules, achieving high scores in metrics like FCD and NSPDK.

Limitations and Future Work

  • a-quantile GSDM: The paper introduces an "a-quantile GSDM" which further accelerates the process by only considering the top 'a' eigenvalues. While this offers scalability for large graphs, it's noted that it might slightly reduce performance compared to using all eigenvalues.
  • Theoretical Analysis: While theoretical guarantees are provided, further exploration of the model's behavior under different graph structures and the impact of eigenvector choices could be beneficial.
  • Future Work: The authors suggest that the spectral diffusion approach is crucial for improving graph generation and could be extended to other graph-related tasks.

Summary updated

BibTeX
@article{luo2023fast,
  author = {Tianze Luo and Zhanfeng Mo and Sinno Jialin Pan},
  title = {{Fast Graph Generation via Spectral Diffusion}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2023},
  doi = {10.1109/tpami.2023.3344758},
}
Figure