Efficient and Scalable Graph Generation through Iterative Local Expansion

Andreas Bergmeister, Karolis Martinkus, Nathanaël Perraudin, Roger Wattenhofer

Introduction

Generating realistic graphs—such as molecular structures, social networks, or protein folds—is a notoriously difficult task in machine learning. Researchers have recently developed a new generative model that builds large, complex graphs by starting with a single node and "growing" it through iterative local expansion. By reversing a multiscale coarsening process and using a specialized, efficient neural architecture called Local PPGN, the model achieves subquadratic scaling. This breakthrough allows it to generate graphs with over 5,000 nodes and successfully extrapolate to sizes far beyond its training data.

The Scaling Wall in Graph Generation

Existing deep learning approaches for graph generation generally fall into two camps: one-shot models, which try to generate the entire adjacency matrix at once, and autoregressive models, which add one node or edge at a time.

Both face significant "scaling walls." One-shot models usually scale quadratically ($O(n^2)$), making them memory-intensive and poor at capturing local details in large graphs. Autoregressive models, on the other hand, struggle with "permutation invariance"—the fact that a graph is the same regardless of how you number its nodes—and often fail to maintain global structure as the graph grows. This paper tackles the challenge of generating large, sparse graphs efficiently while maintaining both global coherence and local detail.

Methods: Iterative Local Expansion

To overcome these limitations, the authors introduce a framework based on Iterative Local Expansion. Instead of generating a graph in one go, the model learns to reverse a "coarsening" process.

The coarsening and expansion process
  1. Inverting Coarsening: Imagine taking a complex graph and repeatedly merging neighboring nodes until only one node remains. The authors train their model to do the exact opposite: take a single node, expand it into a small cluster, refine the edges, and repeat until the target size is reached.
  2. Denoising Diffusion: At each expansion step, the model uses a diffusion process to determine the local arrangement of nodes and edges. This allows the model to focus on local "neighborhood" distributions rather than the entire joint distribution of all node pairs.
  3. Local PPGN: To power this, they designed a "Local" version of the Provably Powerful Graph Network (PPGN). While the original PPGN is highly expressive (3-WL powerful) but computationally expensive ($O(n^3)$), the Local PPGN restricts operations to local subgraphs. This maintains high expressivity where it's needed most while keeping the runtime subquadratic ($O(n+m)$).
  4. Spectral Conditioning: To ensure the "global" shape is correct, the model is conditioned on the eigenvalues and eigenvectors of the graph Laplacian, which act as a structural blueprint.

Datasets and Evaluation

The model was evaluated on a mix of synthetic and real-world benchmarks:

  • Synthetic: Planar graphs (triangulations), Trees, and Stochastic Block Models (SBM).
  • Real-World: Protein graphs (up to 500 nodes) and Point Cloud graphs (representing household objects, scaling up to 5,037 nodes).
  • Extrapolation Sets: Specialized versions of the Planar and Tree datasets designed to test if a model trained on small graphs (32–64 nodes) can generate much larger ones (up to 144 nodes).

Key Insights

  • Global-to-Local Refinement: By reversing coarsening, the model naturally builds the "skeleton" of the graph first and fills in the "flesh" (local details) later. This multiscale approach is much more robust than trying to get everything right in one step.
  • The Power of Locality: Modeling a graph as a series of local expansions significantly reduces the search space. The model doesn't need to worry about an edge between node A and node Z if they are in entirely different "branches" of the expansion tree.
  • Breaking the Training Size Barrier: Most graph generators are "locked" to the sizes they saw during training. Because this model learns a rule for growth rather than a static template, it can keep expanding nodes to create graphs significantly larger than any seen in the training set—a feat known as extrapolation.

Key Results

The proposed method demonstrates state-of-the-art fidelity across multiple benchmarks.

Performance comparison on benchmark datasets
  • State-of-the-Art Fidelity: On Planar and Tree datasets, the model achieved the highest "Validity-Uniqueness-Novelty" (V.U.N.) scores, meaning it generated valid, diverse, and non-duplicate graphs more reliably than previous SOTA models like DiGress or GRAN.
  • Scalability: While many baseline models hit "Out of Memory" (OOM) errors on the 5,000-node Point Cloud dataset, this model handled them with ease, maintaining a subquadratic sampling time.
  • Unprecedented Generalization: In extrapolation experiments, the model maintained nearly 100% validity when generating 144-node trees after being trained only on 64-node trees. Competitors' performance typically plummeted as soon as they stepped outside the training size range.

Limitations and Future Work

While powerful, the authors note a few areas for improvement:

  • Deterministic vs. Stochastic Size: While the model can grow graphs, hitting an exact target node count requires a specific "deterministic expansion" strategy which, while effective, adds some complexity to the sampling process.
  • Coarsening Dependency: The quality of the generation is somewhat dependent on the specific coarsening algorithm used during training (e.g., edge contraction vs. neighborhood contraction).
  • Unattributed Graphs: The current work focuses on generating the structure (topology) of the graph. Extending this to "attributed" graphs—where nodes and edges have specific labels or features (like atom types in a molecule)—is a logical next step.

Summary updated

BibTeX
@inproceedings{bergmeister2024efficient,
  author = {Andreas Bergmeister and Karolis Martinkus and Nathanaël Perraudin and Roger Wattenhofer},
  title = {{Efficient and Scalable Graph Generation through Iterative Local Expansion}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=2XkTz7gdpc},
}
Figure