Abstract
A fundamental challenge in graph learning is understanding how models generalize to new, unseen graphs. While synthetic benchmarks offer controlled settings for analysis, existing approaches are confined to single-graph, transductive settings where models train and test on the same graph structure. Addressing this gap, we introduce GraphUniverse, a framework for generating entire families of graphs to enable the first systematic evaluation of inductive generalization at scale. Our core innovation is the generation of graphs with persistent semantic communities, ensuring conceptual consistency while allowing fine-grained control over structural properties like homophily and degree distributions. This enables crucial but underexplored robustness tests, such as performance under controlled distribution shifts. Benchmarking a wide range of architectures -- from GNNs to graph transformers and topological architectures -- reveals that strong transductive performance is a poor predictor of inductive generalization. Furthermore, we find that robustness to distribution shift is highly sensitive not only to model architecture choice but also to the initial graph regime (e.g., high vs. low homophily). Beyond benchmarking, GraphUniverse's flexibility and scalability can facilitate the development of robust and truly generalizable architectures. The framework is open-source at https://github.com/LouisVanLangendonck/GraphUniverse.
1. Introduction
In Graph Neural Networks (GNNs), benchmarking has historically focused on transductive settings, where models are trained and evaluated on a single, fixed graph. However, real-world deployment often requires inductive generalization—applying learned patterns to entirely new graph structures. Existing synthetic generators typically produce isolated graphs, making it impossible to study how models handle distribution shifts or maintain performance across related but structurally distinct data. We present GraphUniverse, a hierarchical framework that generates families of graphs with shared semantic "DNA," allowing for the first large-scale systematic study of inductive robustness.
2. Methodology
GraphUniverse utilizes a three-level hierarchical architecture to generate synthetic datasets:
- Universe Level: Defines global rules, establishing persistent communities with specific identities, feature distributions, and connection propensities ($\tilde{P}$).
- Family Level: Sets constraints for a group of graphs, defining ranges for properties such as homophily ($h$), average degree ($d$), and node count ($n$).
- Instance Level: Generates individual graph samples that inherit Universe-level properties while varying according to Family-level constraints.
The framework extends Degree-Corrected Stochastic Block Models (DC-SBMs) using a Bernoulli formulation. This ensures the generation of simple graphs that precisely match intended structural parameters without the artifacts (like multi-edges) common in traditional generators.
3. Experimental Setup and Results
We evaluated various architectures, including standard GNNs (GCN, GAT, GIN), Graph Transformers (GPS), and topological models (Neural Sheaf Diffusion), across synthetic and real-world datasets.
3.1 Transductive vs. Inductive Performance
A key finding is that transductive success is a deceptive metric. Models that perform exceptionally well on a single graph often fail to generalize to new graphs within the same family. Conversely, architectures with specific inductive biases, such as topological models, may demonstrate superior generalization despite average transductive scores.
3.2 Robustness to Distribution Shift
GraphUniverse enables "stress testing" models by introducing controlled shifts in graph properties during inference. Our analysis shows that robustness is context-dependent; for example, models trained in low-homophily regimes may suffer significant performance drops when tested on high-homophily graphs, suggesting they specialize too narrowly on training characteristics. Furthermore, Graph Transformers (GPS) demonstrated superior stability when scaling from small training graphs to larger test graphs.
3.3 Real-World Alignment and Scalability
Model rankings derived from GraphUniverse show a significantly higher correlation with real-world performance (on datasets like OGBG-MolHIV and ZINC) than previous synthetic benchmarks. Additionally, the framework is highly efficient, capable of generating 1,000-node graphs in approximately 1.3 seconds on consumer hardware.
4. Conclusion
GraphUniverse addresses a critical gap in graph machine learning by providing a framework for evaluating inductive generalization. By moving beyond single-graph benchmarks, it reveals the limitations of current architectures and provides a path toward developing more robust, generalizable models. Future work will extend the framework to support overlapping communities and explore its potential as a data augmentation engine for graph foundation models.
Summary updated