TL;DR
GenCAT is a novel synthetic graph generator that allows researchers to precisely control the complex interplay between node attributes, class labels, and graph topology. By utilizing a latent factor approach and inverse transform sampling, it achieves linear scalability, enabling the generation of high-quality, billion-edge graphs that exhibit realistic phenomena like core/border structures and heterophily.
What Problem Does This Paper Address?
Evaluating graph analytic methods—such as clustering, classification, and subgraph matching—requires large-scale graphs with ground-truth labels. While real-world datasets exist, they are often small-scale or lack reliable labels. Consequently, researchers rely on synthetic graph generators.
However, existing generators face a "trilemma." They typically fail to simultaneously satisfy three critical requirements:
- Topology Control: Modeling real-world distributions like power-law node degrees.
- Class Structure: Capturing the relationship between labels, attributes, and edges. This includes core/border phenomena (where some nodes are "pure" members of a class while others are on the fringe) and homophily/heterophily (whether similar nodes prefer to connect to each other or to different types of nodes).
- Scalability: Generating massive graphs (millions or billions of edges) in a reasonable timeframe.
Traditional generators often ignore attributes or class-level connection nuances, while modern deep-learning-based generators (like VGAE or NetGAN) struggle to scale beyond small graphs.
Methods
GenCAT introduces a framework based on latent factors to bridge the gap between attributes and topology. The authors define three key intermediate matrices:
- $U$ (Node-class membership): Represents how likely a node belongs to each class (capturing core vs. border nodes).
- $U'$ (Node-class connection): Represents a node's preference for connecting to specific classes.
- $V$ (Attribute-class proportions): Represents the correlation between specific attributes and classes.
The generator produces the adjacency matrix $S$ by approximating the product $UU'^T$ and the attribute matrix $X$ via $UV^T$. By sharing the membership matrix $U$ across both processes, the topology and attributes are inherently tied to the same underlying class structure.
To solve the scalability issue, GenCAT avoids the $O(n^2)$ cost of calculating all possible edge probabilities. Instead, it uses a heuristic edge generation approach combined with inverse transform sampling. This technique allows the algorithm to select target nodes for edges in $O(1)$ time, resulting in a total time complexity of $O(mkr + dkn)$, which is linear with respect to the number of edges ($m$).
Datasets
The authors evaluated GenCAT's performance using two primary real-world citation networks:
- CORA: A small-scale dataset (2,810 nodes, 7,981 edges, 7 classes) used to test how precisely GenCAT can reproduce a given graph's class structure.
- ogbn-arxiv: A large-scale dataset (169,343 nodes, ~1.1M edges, 40 classes) from the Open Graph Benchmark, used to demonstrate scalability and the ability to maintain structural accuracy at scale.
Key Insights and Ideas
- Decoupling Membership from Connection: A major "aha moment" is the separation of $U$ and $U'$. In homophilic graphs (birds of a feather), $U$ and $U'$ are similar. In heterophilic graphs (opposites attract), $U'$ is essentially a "reversed" version of $U$. This flexibility allows GenCAT to model diverse network types that previous generators couldn't touch.
- Prioritizing Constraints: Satisfying multiple graph constraints (degree distribution, class mean, class deviation) is NP-complete. GenCAT handles this by heuristically prioritizing constraints—generating edges for high-degree nodes first to ensure they have enough candidates to connect to.
- Linearity is Essential: By achieving $O(m)$ scaling, GenCAT moves synthetic graph generation from a bottleneck to a utility, allowing for testing on a "billion-edge" scale that was previously inaccessible for attributed graphs with controlled structures.
Key Results
- Scalability: GenCAT successfully generated a graph with $2^{30}$ (over 1 billion) edges in approximately 35 hours on a single machine. In contrast, the popular LFR generator timed out, and DC-SBM failed due to memory limits.
- Reproducibility: When tasked with mimicking the CORA dataset, GenCAT outperformed all baselines (VGAE, NetGAN, LFR, DC-SBM) in accurately reproducing class preference means and deviations, achieving significantly lower Mean Squared Error (MSE).
- Feature Support: As shown in the comparison table below, GenCAT is the first to support node-class membership proportions, flexible class labels, and node attributes while maintaining topological reproducibility and linear complexity.
Limitations and Future Work
While GenCAT is a significant step forward, the authors acknowledge several areas for expansion:
- Graph Types: The current version focuses on undirected and unweighted graphs. Extending the logic to directed and weighted edges is a logical next step.
- Complex Communities: The model assumes each node belongs primarily to one class. Future iterations aim to support overlapping and hierarchical community structures.
- Attribute Variety: Currently, the generator supports Normal and Bernoulli distributions for attributes. Support for power-law or categorical attribute distributions is planned for future work.
Summary updated