IFH: A Diffusion Framework for Flexible Design of Graph Generative Models

Samuel Cognolato, Alessandro Sperduti, Luciano Serafini

Introduction

Graph generative models are essential for applications ranging from drug discovery to social network analysis. Historically, these models have fallen into two distinct categories: one-shot models, which generate the entire graph in a single step, and sequential models, which build graphs iteratively. While one-shot models are fast, they often lack the flexibility needed for conditional generation where graph size varies. Conversely, sequential models offer flexibility but face challenges with large search spaces and computational efficiency.

The Insert-Fill-Halt (IFH) framework addresses this dichotomy by unifying these approaches into a single diffusion-based continuum. By allowing researchers to tune the "degree of sequentiality," IFH enables a flexible trade-off between generation speed and memory efficiency.

The IFH Framework

The IFH framework is built upon the theory of Denoising Diffusion Probabilistic Models (DDPM). In this context, the diffusion process involves the gradual removal of nodes, while the generative process (the reverse) consists of three core modules:

  1. Insertion Model ($p_\phi$): Determines the number of new nodes to add at each step.
  2. Filler Model ($p_\theta$): Samples labels for new nodes and establishes connections within the new set and to the existing graph. A key advantage of IFH is its modularity; existing one-shot models like DiGress can be integrated as Filler Models.
  3. Halt Model ($\lambda_\nu$): A binary classifier that signals when the generation process is complete.
The spectrum of graph generation from one-shot to sequential, illustrating how IFH can emulate different generation strategies.

By adjusting the node addition schedule, IFH can operate anywhere on the spectrum from a standard one-shot model to a fine-grained node-by-node sequential model.

Key Insights: The Sequentiality Spectrum

A primary contribution of this work is the realization that one-shot and sequential models are not fundamentally different but rather represent two ends of the same mathematical spectrum. Interestingly, the authors found that adapting a state-of-the-art one-shot model into a sequential pipeline within the IFH framework often improves its performance.

Furthermore, sequential generation offers a significant memory-time tradeoff. While iterative steps increase generation time, they drastically reduce memory requirements because the model only needs to predict small portions of the adjacency matrix at any given time. For instance, on the Ego dataset, the sequential version used only 1/88th of the memory required by the one-shot version.

Experimental Results

The framework was evaluated on molecular datasets (QM9, ZINC250k) and generic graph datasets (Ego, Enzymes). On the QM9 dataset, the IFH 1-node sequential model (seq-1) achieved a remarkable 99.92% validity rate, surpassing the original one-shot DiGress model and competing effectively with specialized autoregressive baselines.

Performance comparison on the QM9 dataset, showing that IFH (Ours) achieves state-of-the-art validity and competitive metrics across various sequentiality degrees.

As shown in the results, the IFH framework is competitive with CDGS, the current state-of-the-art in discrete diffusion for graphs, while providing significantly more structural flexibility.

Conclusion and Future Work

The IFH framework successfully bridges the gap between one-shot and sequential graph generation. While it offers improved performance and memory efficiency, challenges remain, particularly regarding the sparsity of the halting signal in very large graphs. Future research will focus on improving information routing between existing and new nodes and developing more robust halting mechanisms for massive datasets.

Summary updated

BibTeX
@inproceedings{cognolato2024ifh,
  author = {Samuel Cognolato and Alessandro Sperduti and Luciano Serafini},
  title = {{IFH: A Diffusion Framework for Flexible Design of Graph Generative Models}},
  booktitle = {ECAI},
  year = {2024},
  doi = {10.3233/faia240845},
}
Figure