arXiv:2610.12163cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12163

Scalable Hierarchical Graph Generation via Soft Community Structure

Ahmet Tüzen, Helge Langseth, Kjetil Nørvåg

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generating large attributed graphs requires reproducing the topology, generating attributes jointly with the structure, and remaining scalable. Many real-world graphs exist as a single large graph, so a generative model has to generalize from the one graph it is fit on, without independent samples. We present SCHEMA, which recursively decomposes a reference graph into a hierarchy of soft communities, assigning each node a membership distribution. Generation is then split into three stages, each trained independently: (1) synthesizing node attributes conditioned on soft memberships, (2) generating intra-community edges from local structural context, and (3) modeling inter-community connections over bridge nodes whose membership mass is distributed across several communities. No stage forms the full adjacency matrix, and each stage operates on a subgraph bounded by the community size. We also introduce an evaluation protocol that covers structural fidelity, memorization, downstream utility, and scalability. On four real-world attributed graphs, SCHEMA recovers the balance between local and long-range structure more closely than any other model that generates attributes, while reproducing only a small fraction of the reference edges. It retains the downstream accuracy of the reference graph without raising it artificially above that level. Baselines that match its structural fidelity memorize the reference, while those with higher downstream accuracy either exceed the reference accuracy or fail to complete on the larger graphs. We measure scalability on six additional graphs with up to 10 million nodes.

1 INTRODUCTION

Graphs represent entities and their relationships across many real-world domains, including molecular discovery, social network analysis, and financial fraud detection. Access to real graph data is often restricted by privacy regulations, licensing, or data collection costs, which creates a need for synthetic graphs.

Graph generation methods fall into two categories, distinguished by the available data and the generation objective. The first category targets collections of relatively small graphs, where a model learns a distribution over independent graph instances and samples new graphs from it, as in molecular generation. The second category targets a single large graph, such as a social, citation, or transaction network, which may contain millions of nodes. In this setting, the model does not sample from a distribution over graph instances; it generates a graph that preserves the structural and attribute characteristics of the reference while generalizing beyond the specific edges and node identities observed during training.

Because the two categories rely on fundamentally different model assumptions, direct transfer between them is impractical. Methods designed for collections of small graphs assume graph-level independence, bounded graph sizes, and access to many training instances, and none of these assumptions hold when a single graph is the only available reference. Learning generative patterns from a single observed graph creates two failure modes that a model must avoid simultaneously: overfitting to the observed edges and node identities, and failing to capture structural characteristics that only become apparent at larger scales, such as community organization and long-range connec-tivity. Methods developed specifically for this setting avoid the assumptions of the first category but face three limitations of their own.

The first limitation is scalability: autoregressive methods decode edges sequentially, incurring a cost that typically scales quadratically with the number of nodes (You et al., 2018), whereas methods that operate on full adjacency representations or require repeated passes over the entire graph become memory-limited as the graph grows. The second limitation concerns the coexistence of multiple structural scales. Real-world graphs typically contain dense local communities, sparse inter-community connections, and global topological dependencies (Fortunato, 2010), and generative fidelity depends on preserving all three at once. A single flat decoder has to fit these different densities with one set of parameters, so fitting one density can come at the cost of the others. The third limitation concerns node features. Several existing methods generate only the topology and omit node features (Bojchevski et al., 2018; Rendsburg et al., 2020), which restricts their use in downstream tasks that operate on attributed graphs, such as node classification, anomaly detection, and recommendation.

Evaluation in this setting is itself underdeveloped. Distributional metrics such as Maximum Mean Discrepancy (MMD) (Gretton et al., 2012) require samples from a reference distribution and do not generalize to a setting with a single reference graph. Existing benchmarks, therefore, often report narrow fidelity metrics and leave open the question of whether a generated graph merely memorizes the reference or remains useful for downstream tasks.

Large real-world graphs are organized into communities, and a generation method can exploit this organization to reduce the size of each subproblem it solves. Following this observation, we present SCHEMA (Soft Community Hierarchies for Efficient Massive Attributed graph generation), which recursively decomposes the reference graph into a hierarchy of communities. The decomposition assigns soft labels: each node carries a distribution over community memberships rather than a single label. Nodes whose membership mass is distributed over several communities are called bridge nodes, and the generated graph routes its inter-community edges through them. Generation is factorized into three stages, each operating at the community level. The intra-community and inter-community edge generators specialize in different structural densities: dense structure within a community and sparse structure between communities, respectively. Node features and edges are conditioned on the same soft memberships, so the attributes and the connectivity are tied to the same decomposition.

The main contributions of this work are summarized as follows:

• Hierarchical factorization. We formulate attributed graph generation as a hierarchical factorization over recursively constructed soft communities, decomposed into node feature generation, intra-community edge generation, and inter-community edge generation. Each stage operates on a subgraph bounded by the community size and does not form the full adjacency matrix.

• Soft communities and bridge nodes. We introduce a learning-free soft-community representation obtained by propagating community memberships over the graph, and an inter-community edge generator that weights candidate pairs by the connectivity observed between communities, so that bridge nodes carry the inter-community structure that hard partitioning removes.

• Evaluation protocol. We introduce an evaluation protocol that covers structural fidelity, memorization and generalization, downstream utility, and scalability.

• Empirical study. We evaluate SCHEMA against nine baselines on attributed graphs ranging from a few thousand to 10 million nodes. Among the models that generate attributes, it is the only one that is competitive on structure, keeps memorization low, preserves downstream accuracy without artificially raising it above the reference graph, and completes on every graph.

References (55)