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

Autoregressive Diffusion Model for Graph Generation

Lingkai Kong, Jiaming Cui, Haotian Sun, Yuchen Zhuang, B. Aditya Prakash, Chao Zhang

Diffusion models have revolutionized generative AI, but applying them to graph structures—defined by discrete nodes and edges—presents unique challenges. Traditional graph diffusion models often treat graphs like images, adding continuous Gaussian noise to a "dequantized" adjacency matrix. This "one-shot" generation approach, where an entire matrix of noise is refined simultaneously, introduces significant hurdles: continuous approximation distorts discrete topology, solving complex stochastic differential equations (SDEs) results in slow sampling, and enforcing structural constraints is notoriously difficult.

To overcome these limitations, researchers introduce GRAPHARM (Autoregressive Diffusion Model for Graph Generation), a framework that abandons continuous noise in favor of a discrete, sequential construction process.

The GRAPHARM Approach

GRAPHARM shifts the paradigm to node-absorbing autoregressive diffusion, aligning the generative process with the discrete nature of graphs.

  • Forward Process (Diffusion): Instead of injecting Gaussian noise, the model sequentially "absorbs" (masks) one node and its connected edges at a time until the graph is empty.
  • Diffusion Ordering Network: Rather than relying on random node sequences, GRAPHARM employs a Graph Neural Network (GNN) to learn an optimal, data-dependent absorbing order. This allows the model to exploit structural regularities, such as processing entire communities together.
  • Reverse Process (Generation): A denoising network reconstructs the graph from an empty state, adding one node at a time. For each new node, it predicts its connections to previously generated nodes using a mixture of Bernoulli distributions.
  • Training: Because node ordering is a discrete choice, the ordering network is trained using Reinforcement Learning (specifically the REINFORCE algorithm), while the denoising network is optimized via standard gradient descent.

Key Innovations

  • Learned Ordering: The realization that generation sequences profoundly impact model performance is central to GRAPHARM. By learning a data-dependent ordering, the model captures high-level topology, significantly reducing approximation errors during training.
  • Discrete State Space: By utilizing discrete [MASK] tokens instead of continuous noise, GRAPHARM avoids the "blurriness" of dequantization, preserving the sharp connectivity patterns essential for GNNs.
  • Autoregressive Control: Building the graph node-by-node allows for trivial constraint checking at each step, enabling the model to reject or adjust steps that violate predefined rules.

Experimental Results

GRAPHARM was evaluated across six diverse benchmarks, including synthetic datasets (Community-small, Caveman) and real-world networks (Cora, Breast, Enzymes, Ego-small).

  • Unprecedented Speed: By limiting the number of generation steps to the number of nodes ($N$) rather than requiring hundreds of noise-refinement steps, GRAPHARM achieves a 10–100x speedup over previous diffusion models like GDSS and EDP-GNN.
  • High Fidelity: On the Maximum Mean Discrepancy (MMD) metric—evaluating degree and clustering distributions—GRAPHARM consistently matches or outperforms state-of-the-art baselines like GRAN and GDSS.
  • Constraint Satisfaction: When subjected to a "maximum degree" constraint, GRAPHARM achieved 100% validity, a stark contrast to one-shot diffusion models that managed only ~34%.

Limitations and Future Directions

While highly effective for structural topology, GRAPHARM currently focuses on un-attributed graphs. Extending the framework to handle complex node and edge attributes (e.g., atom types in molecular graphs) will require transitioning from Bernoulli to multinomial mixture distributions. Additionally, while local constraints are easily enforced, global properties like spectral radius remain a challenge for autoregressive generation, marking an exciting frontier for future research.

Summary updated

BibTeX
@inproceedings{kong2023autoregressive,
  author = {Lingkai Kong and Jiaming Cui and Haotian Sun and Yuchen Zhuang and B. Aditya Prakash and Chao Zhang},
  title = {{Autoregressive Diffusion Model for Graph Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=zAYDeIq3gp},
}
Figure