HiGen: Hierarchical Graph Generative Networks

Mahdi Karami

TL;DR

HiGen is a novel graph generative framework that mimics the hierarchical, community-based structure of real-world data by generating graphs in a coarse-to-fine fashion. By processing communities in parallel and using a clever mathematical factorization to handle edge distributions, it achieves state-of-the-art quality while scaling to graphs significantly larger than previous autoregressive models.

The Challenge of Graph Generation

Generating realistic graphs is a cornerstone of modern AI, with applications ranging from drug discovery to circuit design. However, existing models face a persistent "Goldilocks" problem. Autoregressive models, which build graphs node-by-node, capture local details well but are computationally expensive ($O(n^2)$) and struggle to maintain global structural coherence. Conversely, one-shot models like GANs are faster but often fail to capture complex dependencies in large graphs.

Crucially, most real-world graphs are hierarchical: they consist of dense communities (clusters) linked by sparser "cross-edges." Most current methods ignore this multi-scale nature, treating all nodes as a flat sequence. The authors of HiGen address this by building a model that "thinks" like a graph—generating high-level community structures first and then filling in the fine-grained details.

Methods: A Coarse-to-Fine Approach

HiGen introduces a Hierarchical Graph Generative Network that operates in a coarse-to-fine manner, breaking the generation process into manageable, scalable steps.

Overview of the HiGen framework, illustrating the hierarchical graph structure, block adjacency matrix, and multinomial edge modeling.
  1. Hierarchy Construction: During training, the model uses a clustering algorithm (like Louvain) to decompose a graph into a tree-like structure (a dendrogram). A "super-node" at a high level represents an entire community at a lower level.
  2. Parallel Generation: At each level of the hierarchy, HiGen generates multiple communities in parallel. This modular approach is a massive departure from traditional autoregressive models that must wait for one node to finish before starting the next.
  3. Multinomial Edge Modeling: To bridge the levels, the model uses integer-valued edge weights. A "super-edge" between two high-level communities represents the total number of edges that will eventually exist between their constituent nodes.
  4. Recursive Factorization: The mathematical "secret sauce" of the paper is its proof that a joint multinomial distribution of edges can be factorized into a sequence of binomial and smaller multinomial distributions. This allows the model to use a "stick-breaking" process to distribute edges across a community's adjacency matrix efficiently.
  5. GNN Backbone: The model utilizes GraphGPS, a state-of-the-art hybrid architecture that combines local message-passing with global Transformers, ensuring that nodes "know" about both their immediate neighbors and the broader graph structure.

Key Insights and Scalability

  • Modularity is Scalability: By breaking the generation task into independent sub-problems (communities), HiGen bypasses the $O(n^2)$ complexity bottleneck. It only requires $O(n_c \log n)$ sequential steps, where $n_c$ is the size of the largest community.
  • Integer Weights as Constraints: Modeling higher levels with integer weights acts as a "budget" for the lower levels. This ensures that the global edge density is preserved even as the model generates local details.
  • Reduced Ordering Sensitivity: Standard autoregressive models are notoriously sensitive to the order in which nodes are added (e.g., BFS vs. DFS). Because HiGen generates small, localized partitions, the impact of global node ordering is significantly dampened.
  • Cross-Level Context: By concatenating "parent" node embeddings from higher levels into the current level's generation process, the model maintains global coherence while focusing on local structure.

Datasets and Results

The authors evaluated HiGen on five diverse benchmark datasets, ranging from synthetic graphs (Stochastic Block Models) to real-world networks like Proteins, Enzymes, Ego (citation networks), and large-scale 3D Point Clouds (up to 5,000 nodes).

HiGen consistently outperformed or matched state-of-the-art baselines (like GRAN, SPECTRE, and DiGress) across all datasets:

  • Quality: It achieved the lowest Maximum Mean Discrepancy (MMD) scores for degree, clustering, and orbit distributions, meaning its generated graphs were statistically closest to the ground truth.
  • Speed: On the Protein dataset, HiGen demonstrated a 34x speedup in sampling time compared to the popular GRAN model.
  • Scalability: HiGen successfully generated graphs from the 3D Point Cloud dataset (averaging 1.4k nodes), a task where many baseline models failed due to memory exhaustion or prohibitive time costs.

Limitations and Future Work

While HiGen is a leap forward for topological generation, the authors note a few areas for future growth. Currently, the model focuses on the "skeleton" (topology) of the graph and would need extensions to incorporate node and edge attributes (like atom types in a molecule). Additionally, its performance is inherently linked to the quality of the initial partitioning algorithm used during training. Finally, the model assumes that cross-edges between different pairs of communities are independent—a safe assumption for sparse graphs, but potentially limiting for extremely dense networks. Extending HiGen to handle attributed graphs via GNN-based classifiers remains a promising next step.

Summary updated

BibTeX
@inproceedings{karami2024higen,
  author = {Mahdi Karami},
  title = {{HiGen: Hierarchical Graph Generative Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=KNvubydSB5},
}
Figure