Abstract
Generating realistic graphs with complex topological properties remains a significant challenge in machine learning. While diffusion models have shown promise, traditional discrete approaches suffer from high computational costs and struggle with the inherent sparsity of graph data. Furthermore, standard latent diffusion models often rely on Euclidean spaces that fail to capture the hierarchical and scale-free nature of real-world networks. We present HypDiff, a novel generative framework that performs diffusion within a hyperbolic latent space. By leveraging the natural "curved" geometry of hyperbolic space, HypDiff effectively represents hierarchical structures and community memberships. Our experiments demonstrate that HypDiff achieves state-of-the-art performance in graph generation fidelity and node classification while significantly reducing computational overhead compared to existing discrete diffusion models.
Introduction
Graph generation is a fundamental task with applications ranging from social network analysis to drug discovery. However, graphs are notoriously difficult to model due to their non-Euclidean nature, extreme sparsity, and complex dependencies. Recent advancements in generative modeling have introduced Latent Diffusion Models (LDMs), which compress data into a continuous vector space before applying a diffusion process.
Despite their efficiency, LDMs typically utilize Euclidean latent spaces. This choice introduces a fundamental geometric mismatch: graphs often exhibit hierarchical (tree-like) or scale-free properties that are inherently non-Euclidean. Forcing these structures into a "flat" Euclidean space results in anisotropy, where data distribution stretches along specific directions. This makes standard isotropic Gaussian noise—which diffuses equally in all directions—an ineffective tool for capturing vital topological information. HypDiff addresses this by shifting the diffusion process to a hyperbolic manifold, which naturally accommodates the growth patterns and hierarchical organization of complex graphs.
Methodology
HypDiff operates through a two-stage process: hyperbolic autoencoding and geometric latent diffusion.
1. Hyperbolic Autoencoding
The framework first learns a compressed representation of the graph using a Hyperbolic Graph Convolutional Network (HGCN) as the encoder. This maps the graph into a hyperbolic disk (e.g., the Poincaré ball model). To reconstruct the graph, a Fermi-Dirac decoder is employed, which calculates the probability of edges based on the hyperbolic distance between node embeddings.
2. Hyperbolic Anisotropic Diffusion
Once the latent space is established, HypDiff performs diffusion constrained by the geometric properties of hyperbolic space. Unlike Euclidean diffusion, this process respects two key structural dimensions:
- Radial Constraints (Popularity): In hyperbolic geometry, the distance from the origin (the radius) corresponds to a node's "popularity" or its level within a hierarchy. Nodes closer to the center act as high-degree hubs.
- Angular Constraints (Similarity): The angular coordinate represents a node's "similarity" or its membership within a specific community.
By adding noise that respects these constraints, the model preserves the underlying "skeleton" of the graph during the denoising process. A U-Net-based denoising network is trained to reverse this geometric diffusion, allowing for the generation of new, topologically consistent latent representations.
Experimental Results
Performance and Fidelity
The authors evaluated HypDiff against several synthetic (SBM, BA, Community, Ego, Grid) and real-world (MUTAG, IMDB-B, PROTEINS, COLLAB) datasets. HypDiff consistently achieved the lowest Maximum Mean Discrepancy (MMD) scores, a metric indicating how closely the generated graphs match the topological distribution of the training data. Notably, on the Community dataset, HypDiff achieved an MMD (Degree) of 0.002, significantly outperforming state-of-the-art models like GDSS and EDGE.
In node classification tasks on citation networks (Cora, Citeseer) and political blogs (Polblogs), HypDiff's latent representations proved superior to Euclidean alternatives like VGAE, suggesting that hyperbolic embeddings preserve more semantic and structural information.
Computational Efficiency
A key advantage of HypDiff is its efficiency. By operating in a low-dimensional latent space rather than on massive, sparse adjacency matrices, it avoids the "structural sparsity" bottleneck. On the IMDB-B dataset, HypDiff required only 2519 MB of GPU memory, a substantial reduction compared to the 6205 MB required by the EDGE model, while maintaining comparable or faster training times.
Discussion and Limitations
The primary strength of HypDiff lies in its use of hyperbolic geometry as a structural prior. By "unfolding" the anisotropy of graph data, the model makes the global distribution of node embeddings more isotropic, thereby making the diffusion process more effective.
However, the model does exhibit a specific limitation regarding regular grid structures. Because hyperbolic space is optimized for curved, hierarchical data, it struggles to represent the "flat" connectivity of 2D grids. This was reflected in higher MMD scores for the Grid dataset compared to other benchmarks.
Conclusion
HypDiff represents a significant step forward in graph generation by aligning the geometry of the latent space with the intrinsic geometry of the data. By performing diffusion in hyperbolic space, the model captures complex hierarchies and community structures with high fidelity and low computational cost. Future research may explore mixed-curvature spaces to create a more universal generator capable of handling both hierarchical networks and rigid, grid-like molecular structures.
Summary updated