Abstract Generating large-scale, realistic graphs remains a significant challenge due to their non-Euclidean nature and varying topologies. We present GrAD (Graph Auto-Decoder), a novel generative framework that optimizes latent codes and generator parameters jointly, eliminating the need for a traditional encoder. By integrating an auto-decoding architecture with graph-based normalizing flows, GrAD addresses the distribution mismatch common in latent variable models. Our approach achieves a 1.5x improvement in accuracy and a 2x inference speedup over current state-of-the-art models while demonstrating superior scalability to unseen, large-scale graph structures.
Introduction
The synthesis of realistic graphs—ranging from social networks to protein structures—is hindered by a "trilemma" of scalability, efficiency, and fidelity. Existing tensor-based models often fail to scale beyond 100 nodes, while sequential models like GraphRNN suffer from $O(N^2)$ complexity. Furthermore, block-based models like GRAN, while faster, are often limited by fixed-size architectures. A pervasive issue in these generative models is the distribution mismatch: latent codes optimized during training often diverge from the simple Gaussian distributions used during test-time sampling, leading to poor structural coherence.
Methodology
GrAD introduces a two-stage generative process designed to bypass the limitations of traditional auto-encoders.
- The Auto-Decoder ($D_\theta$): GrAD eschews a traditional encoder. Instead, latent codes for training data are treated as learnable parameters, optimized jointly with the generator's weights. The generator utilizes Graph Attention (GA) modules to synthesize blocks of $K$ nodes, capturing global structural patterns more effectively than local neighborhood-based Graph Neural Networks (GNNs).
- The Density Model ($\mathcal{F}_\Phi$): To resolve the distribution mismatch, GrAD employs Normalizing Flows. This model learns a reversible mapping between a simple Gaussian distribution and the empirical distribution of the learned latent codes. At inference, samples from the Gaussian are transformed through the flow to produce realistic latent codes for the decoder.
- Edge Sampling: GrAD utilizes a finite mixture of multivariate Bernoulli distributions for edge generation, allowing the model to capture complex intra-block correlations.
Experimental Setup
The model was evaluated on synthetic benchmarks (Cycles, 2D Grids, Lobster, and Community graphs) and real-world datasets (Protein and Ego citation networks). Crucially, the authors tested Out-of-Distribution (OOD) performance by training on small graphs and tasking the model with generating significantly larger structures (e.g., 600-node proteins).
Results and Discussion
GrAD demonstrates significant improvements in both quality and performance.
- Accuracy and Fidelity: GrAD outperformed state-of-the-art models by 1.5x in mean accuracy across metrics such as node degree and clustering coefficients. It achieved the lowest average rank across all datasets.
- Efficiency: The model is approximately 2x faster than GRAN and an order of magnitude faster than GraphRNN during inference.
- Generalization: Unlike previous models, GrAD successfully "hallucinates" larger structures that maintain the qualitative traits of the training set, demonstrating true size agnosticism.
Conclusion
By ditching the encoder and bridging the latent space gap with normalizing flows, GrAD sets a new standard for graph generation. While the model currently relies on BFS node ordering and faces higher training complexity per epoch, its ability to generate high-fidelity, large-scale graphs efficiently marks a major step forward. Future work may explore optimal node ordering and stricter mathematical constraints for specific graph families.
Summary updated