Abstract
Graph generation has traditionally been confined to domain-specific models trained on narrow datasets. This paper presents the Large Graph Generative Model (LGGM), a foundation model approach that learns fundamental structural patterns across a diverse "graph universe." By pre-training on over 5,000 graphs from 13 distinct domains using a discrete denoising diffusion framework, LGGM achieves state-of-the-art performance in zero-shot generation and fine-tuning. Furthermore, the integration of a text-conditioning branch enables precise text-to-graph synthesis, leveraging large language models to bridge natural language descriptions with complex graph topologies.
Introduction
The success of Large Generative Models (LGMs) in natural language processing and computer vision has demonstrated the power of training on massive, heterogeneous datasets. In contrast, graph generative models have largely remained specialized, with models like GraphRNN or DiGress typically trained on single datasets such as chemical molecules or social networks. This specialization is driven by the vast structural differences between domains; for instance, social networks exhibit high clustering and density, whereas road networks are characterized by sparse, grid-like structures.
As illustrated in Figure 2, previous models have operated within a "tiny region" of the possible graph space. LGGM aims to break this limitation by building a universal generator capable of capturing the shared structural "grammar" that transcends specific domains.
Methodology
LGGM is built upon a discrete denoising diffusion framework, enhanced with several key innovations to support its role as a foundation model.
- Large-Scale Pre-training: The model is pre-trained on a curated corpus of 5,000+ graphs. To handle the diversity of these graphs, the authors employ a unified node and edge transition strategy, allowing the model to learn a shared representation of graph structures.
- Text-to-Graph (T2G) Architecture: Inspired by latent diffusion models like Stable Diffusion, LGGM incorporates a text-conditioning branch. A pre-trained Large Language Model (LLM) encodes text prompts into embeddings, which are then integrated into a Graph Transformer. This allows users to guide graph generation using natural language (e.g., "A power grid network with low average degree").
- Subgraph Sampling: To address the scalability challenges of real-world networks, which can contain millions of nodes, LGGM utilizes an ego-subgraph sampling strategy. This creates a manageable training set of subgraphs with hundreds of nodes while preserving local structural properties.
Experimental Setup
The model was evaluated using a comprehensive dataset from the Network Repository, covering 13 domains including social networks (Facebook, Email, Retweet), infrastructure (Road, Power), and scientific networks (Chemical, Biological, Citation). For text-to-graph experiments, synthetic graphs were generated using the Watts–Strogatz small-world model to provide a ground truth for various structural statistics.
Results and Discussion
The experimental results highlight the advantages of the foundation model approach:
- Zero-Shot Capabilities: In "leave-one-domain-out" evaluations, LGGM-X (pre-trained on 12 domains) consistently outperformed specialized models like DiGress trained on standard chemical datasets. This suggests that the model learns transferable structural features.
- Fine-tuning Efficiency: Fine-tuning a pre-trained LGGM on a target domain yielded a 29.59% performance improvement compared to training a state-of-the-art model from scratch on the same data. This "warm start" is particularly beneficial in low-data regimes.
- Controllable Synthesis: The T2G variant demonstrated high alignment between textual prompts and generated graph statistics. Prompts specifying high clustering successfully resulted in graphs with increased triangular connectivity.
Conclusion
LGGM represents a significant step toward universal graph generation. By moving from domain-specific training to a foundation model paradigm, it enables more robust, efficient, and controllable graph synthesis. While current limitations include scalability to millions of nodes and the need for further evaluation in downstream tasks, LGGM provides a powerful framework for future research in graph-based AI.
Summary updated