Abstract
Learning graph generative models over latent spaces has received less attention compared to models that operate on the original data space and has so far demonstrated lacklustre performance. We present GLAD, a latent space graph generative model. Unlike most previous latent space graph generative models, GLAD operates on a discrete latent space that preserves to a significant extent the discrete nature of the graph structures making no unnatural assumptions such as latent space continuity. We learn the prior of our discrete latent space by adapting diffusion bridges to its structure. By operating over an appropriately constructed latent space we avoid relying on decompositions that are often used in models that operate in the original data space. We present experiments on a series of graph benchmark datasets that demonstrates GLAD as the first equivariant latent graph generative method achieves competitive performance with the state of the art baselines.
Introduction
Generating graphs, such as molecular structures or social networks, presents a unique challenge due to their discrete and combinatorial nature. Existing approaches typically fall into two categories: graph-space models and latent-space models. Graph-space models operate directly on nodes and edges, which can be computationally intensive and require complex denoising processes. Conversely, latent-space models, like Variational Autoencoders (VAEs), compress graphs into continuous vector spaces. While more efficient, these models often suffer from "latent-node collapse," where the model fails to distinguish between distinct local structures, resulting in poor reconstruction and "blurry" generated graphs.
GLAD (Graph Discrete Latent Diffusion) addresses this fundamental conflict by introducing a model that respects the discrete nature of graphs throughout the generative process.
Methodology: Bridging the Discrete-Continuous Gap
GLAD utilizes a two-stage approach to graph generation that maintains permutation equivariance—a crucial inductive bias for graph data.
Quantized Latent Space
The core innovation of GLAD is its quantized latent space. An Equivariant Graph Neural Network encoder maps nodes to a discrete grid rather than a continuous cloud. By applying a tanh function followed by rounding, the model forces latent representations to remain distinct. This quantization acts as a powerful spatial regularizer, preventing the node embeddings from collapsing into one another. To maintain end-to-end differentiability during training, the authors employ the Straight-Through Estimator (STE).
Latent Diffusion Bridges
To generate new graphs, GLAD learns the distribution of these discrete latent points using "diffusion bridges." This specific type of diffusion model is tailored for constrained or discrete domains, learning to transition from a simple prior distribution to the complex, quantized latent distribution of real-world graphs. Unlike other diffusion models that treat nodes and edges separately, GLAD treats the latent graph as a unified geometric set, ensuring structural consistency.
Experimental Results
The authors evaluated GLAD on several benchmarks, including molecular datasets (QM9, ZINC250k) and generic graph datasets (ego-small, community-small, enzymes).
Reconstruction and Generative Performance
A standout result of the GLAD architecture is its near-perfect reconstruction capability. While traditional continuous latent models struggle to accurately reconstruct complex graphs, GLAD achieves nearly 100% reconstruction accuracy on the QM9 dataset.
In terms of generative quality, GLAD consistently achieved the lowest average Maximum Mean Discrepancy (MMD) across generic graph datasets, indicating that its generated graphs are statistically most similar to the training data. On the ZINC250k dataset, GLAD achieved a Frechet ChemNet Distance (FCD) of 2.54, significantly outperforming other latent-space models like DGAE (4.4) and GraphDF (33.55).
Conclusion
GLAD demonstrates that discreteness in the latent space is a feature rather than a limitation for graph generation. By combining simple quantization with diffusion bridges, the model achieves state-of-the-art performance while remaining computationally efficient and fully equivariant. Future work may explore more specialized architectures for the quantized domain and methods to handle highly variable node counts more effectively.
Summary updated