Graph generation is a notoriously tricky problem in machine learning. Unlike images (fixed grids) or text (linear sequences), graphs are combinatorial, discrete, and—most annoyingly—unordered. If you swap the labels of two nodes in a social network, the graph remains exactly the same, but a standard sequence model might process it as a completely different input.
In a new paper presented at NeurIPS 2024, researchers introduce PARD (Permutation-invariant Autoregressive Diffusion). PARD bridges the gap between the two dominant paradigms in the field, offering a model that is as efficient as a sequence generator but as robust as a physics-inspired diffusion model.
TL;DR
PARD is the first graph generation framework that combines autoregressive (step-by-step) growth with diffusion (denoising) modeling while remaining completely permutation-invariant. By identifying a unique "structural partial order" in graphs, PARD achieves state-of-the-art performance on massive datasets like MOSES (1.9M molecules) without needing the expensive "extra features" required by previous models.
The Graph Generation Dilemma
Until now, researchers usually chose between two paths for generating graphs:
- Autoregressive (AR) Models: These build graphs node-by-node. They are efficient but suffer from "order sensitivity." Since there is no natural first node in a graph, models must pick an arbitrary order, which often leads to poor generalization and structural inconsistencies.
- Diffusion Models: These start with a "noise" graph and gradually refine it into a clean structure. They are permutation-invariant (they don't care about node order), but they are "one-shot"—they try to generate the whole graph at once. This usually requires thousands of denoising steps and extra "hints" (like eigenvectors or cycle counts) to capture complex structures.
The core challenge PARD addresses is: Can we build a graph block-by-block (like AR) but ensure the model doesn't care about the order of nodes within those blocks (like Diffusion)?
Core Innovations
PARD introduces three clever mechanisms to solve this dilemma:
1. Structural Partial Order
The authors argue that while graphs don't have a total order, they do have a partial order. They use a node's "weighted degree" (how many neighbors it has across multiple hops) to rank nodes. Nodes with similar connectivity are grouped into the same "block." This ranking is deterministic and doesn't change if you permute the node labels.
2. Block-wise AR Diffusion
PARD generates the graph block-by-block. For each new block, it uses a shared discrete diffusion model to "denoise" the new nodes and their edges into existence, conditioned on the blocks already generated.
3. Higher-Order Graph Transformer & Parallel Training
To make the model expressive enough to distinguish complex symmetries (achieving "3-WL" expressivity), the researchers combined a standard Transformer with PPGN (Provably Powerful Graph Networks).
Furthermore, much like GPT, they implemented a causal masking mechanism. This allows the model to train on all blocks of a graph simultaneously rather than one by one, leading to a massive speedup in training.
Key Insights and Results
- The "Symmetry Breaking" Aha-Moment: The authors proved a fundamental limitation: a perfectly equivariant model cannot transform a highly symmetric graph (like a ring) into a less symmetric one without "breaking" the symmetry. They realized that diffusion (adding noise) is the perfect way to break this symmetry, allowing the model to "choose" a path and generate complex structures.
- Efficiency through Decomposition: By breaking the joint probability of a whole graph into conditional blocks, PARD simplifies the learning task. It only needs about 20–40 diffusion steps per block, compared to the 1,000+ steps often required by one-shot diffusion models.
- No "Extra Features" Needed: Most modern graph diffusion models (like DiGress) rely on pre-computed structural features like Laplacian eigenvectors. PARD reaches SOTA performance using only the raw graph structure, proving that the architecture itself is doing the heavy lifting.
Performance Benchmarks
The researchers evaluated PARD on a diverse set of 8 benchmarks, including molecular (QM9, ZINC250K) and generic graphs (Community-Small, Caveman, Cora, Grid).
- State-of-the-Art Performance: On the QM9 and ZINC250K molecular datasets, PARD outperformed or matched top-tier models like DiGress and GraphARM.
- Scalability: PARD is one of the few high-quality graph models that successfully scales to the MOSES dataset (1.9M graphs), maintaining high validity and uniqueness in the generated molecules.
- Generic Graph Quality: On non-molecular datasets, PARD significantly reduced the Maximum Mean Discrepancy (MMD) for degree and clustering metrics, meaning the generated graphs look much more like the real ones compared to previous AR models.
Limitations and Future Work
While PARD is a major step forward, the authors note a few areas for growth:
- Training Time: Although parallelization helps, PARD still takes longer to train than simple one-shot models (e.g., 12 hours vs 6 hours on QM9).
- Expressivity Trade-offs: The "causal" version of their PPGN-Transformer is slightly less expressive than a full, non-causal PPGN, which might affect performance on extremely symmetry-rich datasets like large Grids.
- Foundation Models: The authors suggest that PARD’s autoregressive parallel mechanism makes it a prime candidate for building "Graph GPTs"—foundation models that could be pre-trained on millions of graphs and fine-tuned for specific tasks like drug discovery.
Paper Citation: Zhao, L., Ding, X., & Akoglu, L. (2024). PARD: Permutation-invariant Autoregressive Diffusion for Graph Generation. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).
Summary updated