AbC Benchmark: Synthetic Graph & Hypergraph Models
- AbC Benchmark is a family of synthetic graph and hypergraph models that generates realistic, community-structured networks using power-law distributions.
- The methodology employs controlled mixing, input parameters, and parallelized implementations to achieve fast, scalable community detection evaluations.
- Variants like mABCD, ABCDe, and h-ABCD enable flexible testing on multilayer, overlapping, and hypergraph data, outperforming traditional LFR benchmarks.
The term AbC Benchmark (and its variants: ABC, ABCD, mABCD, h-ABCD, ABCDe, ABCD+o, ABCD+oΒ²) designates a family of synthetic random graph and hypergraph models with built-in community structure, designed to systematically evaluate community detection algorithms across a spectrum of modularity, degree and community-size distributions. Originating as a response to scalability and theoretical limitations in the LFR (LancichinettiβFortunatoβRadicchi) benchmark, AbC models have become central tools for generating realistic, analytically tractable testbeds for unsupervised community detection, including extensions for multilayer, hypergraph, overlapping, and outlier-rich network regimes (KamiΕski et al., 2020, Barrett et al., 5 Jun 2025, KamiΕski et al., 2022, KraiΕski et al., 14 Jul 2025, KamiΕski et al., 2022).
1. The Classical AbC/ABCD Model: Principles and Construction
The core Artificial Benchmark for Community Detection (ABCD) model is a random-graph generator defined by the following ingredients:
- Input parameters:
: number of nodes; : power-law exponent for node degrees; : min/max degree; : power-law exponent for community sizes; : min/max community sizes; : mixing (βexternal-noiseβ) parameter.
- Generative process:
- Sample the degree sequence from a truncated power-law for .
- Sample the community-size sequence from a truncated power-law for , with 0.
- Assign nodes to communities via a greedy random assignment.
- Split each nodeβs degree 1 into community stubs 2 and background stubs 3.
- Generate intra-community subgraphs (community graphs) using the configuration or ChungβLu model with degrees 4.
- Generate the background graph on all nodes with residual degrees 5.
- Merge all edges, remove loops/multiedges by rewiring.
Interpretation of 6:
7 yields strictly separated communities; 8 gives a purely random graph; intermediate 9 provides a tunable transition from modular to structureless ensembles. The expected inter-community edge fraction is 0, where 1 with 2 the sum of degrees in community 3 (KamiΕski et al., 2020).
2. Theoretical Properties and Parameterization
Degree and Community-Size Distributions
Both are realized as discrete power-laws, with normalization integrated over integer support:
4
for 5, 6 (degree), 7 (community).
Edge Placement and Mixing
In the (default) configuration-model variant, intra-community and background edges are placed independently. The probability that two nodes 8 in the same community are connected is
9
and, for background,
0
The final edge-probability is additive for small probabilities:
1
Scalability and Analytical Tractability
Generation runs in 2 time (3 = edges); power-law properties and edge statistics can be derived in closed form; modularity and self-similarity limits are analytically provable. By contrast, LFRβs edge-switching is slower (4), with less interpretable mixing scaling (KamiΕski et al., 2020, KamiΕski et al., 2022).
3. Implementation: Parallelization and Variants
ABCDe
ABCDe is a multi-threaded Julia implementation of ABCD, supporting linear scaling to 5β6 on multi-core servers. All community graphs and the background graph are generated in parallel threads, with reproducibility and seed determinism (KamiΕski et al., 2022).
Performance:
- 10β60Γ faster per edge than LFR (NetworKit) at 7.
- Graph properties (clustering, modularity, assortativity, centrality, path length) closely match LFR (in the βlocalβ variant); ABCDe generally outperforms LFR in scalability and output fidelity.
| Generator | Wall-time per 8 edges | Modularity 9 | Degreeβdegree correl |
|---|---|---|---|
| LFR | high | 0 | 1 |
| ABCDe | 210β60 speedup | 3 | 4 |
mABCD
mABCD generalizes ABCD to multilayer networks, generating 5 correlated layers 6 on a shared node set, with per-layer: degree distribution, community-size distribution, mixing 7, actor activity 8, degree-label correlation 9, community-reference correlation 0, and specified inter-layer overlap 1 (KraiΕski et al., 14 Jul 2025). Phase 6 enforces edge-overlap via targeted edge swaps. mABCD dominates in speed and configurability compared to existing multilayer models (mLFR, multilayerGM).
Overlapping and Outliers: ABCD+o and ABCD+oΒ²
ABCD+o designates a subset of outlier nodes, assigning all their connectivity to the background graph. ABCD+oΒ² further allows non-outliers to belong to multiple communities (parameter 2 for average memberships), with overlap structure induced by geometric clustering in a latent reference space, and user-specified degreeβmembership correlation 3. Community assignment and the background graph proceed as in ABCD, with edge counts and pseudocode fully specified (Barrett et al., 5 Jun 2025).
Hypergraph Extension: h-ABCD
h-ABCD produces simple hypergraphs with ground-truth community partition, power-law degree and community-size sequences, specified hyperedge size-distribution 4, and tunable mixing 5. Hyperedge homogeneity is controlled via weights 6; the model admits analytic control over 2-section and hypergraph modularity. Parameterization mirrors LFR for direct comparison (KamiΕski et al., 2022).
4. Comparison to LFR and Competing Benchmarks
- Parameterization:
ABCDβs mixing 7 encodes the fraction of edge stubs devoted to inter-community (background) links directly and globally, whereas LFRβs per-node 8 governs external-degree fractions but creates interpretability and threshold ambiguities near 9.
- Scalability:
No edge-switching MCMC step; ABC(D)e is 010Γ faster than LFR for large graphs. Parallel ABCDe yields near-linear wall-time scaling.
- Analytical transparency:
Allows explicit calculation of modularity, degree, size, assortativity, and clustering statistics.
- Flexibility:
ABCD, mABCD, ABCD+o/ABCD+oΒ², and h-ABCD accommodate disjoint, overlapping, multilayer, heterogeneous, outlier-rich, and hypergraph datasets, supporting a broad range of experimental and theoretical evaluations.
- Empirical fidelity:
Key statistics (clustering, centrality, intra-community edge fraction, modularity) are closely matched to LFR in the local ABCD variant; ABCD avoids βanti-communityβ artifacts at high mixing.
5. Usage, Evaluation Protocols, and Extensions
ABC(D) and its extensions are extensively used for benchmarking community detection algorithms. Typical evaluation practices:
- Ground truth:
True community partition is available for AMI, NMI, ARI, modularity, and overlap-aware metrics.
- Noise sweeps:
Analyze algorithm performance as 1 increases, interpolating from strong to weak community regime.
- Multilayer tests:
Evaluate layerwise and joint community recovery.
- Hypergraph benchmarks:
Measure clustering algorithms on h-ABCD via recovered partitions (2-section or true hypergraph modularity).
Limitations:
Configuration models yield low local triangle density; communities are strictly disjoint unless using ABCD+oΒ². Temporal and attribute-driven correlations are not modeled by default.
6. Practical Recommendations and Impact
For scalable, theoretically-grounded benchmarking:
- Use ABCDe for high-throughput synthetic graph generation, especially when LFR is infeasible.
- mABCD is recommended for multiplex/multilayer settings, with explicit control over inter-layer correlation matrices.
- Use ABCD+oΒ² for realistic modeling of overlapping communities and outlier nodes, with tuneable degreeβoverlap correlation.
- h-ABCD is suitable for benchmarking hypergraph clustering and evaluating homogeneity vs. noise sensitivity.
- Parameter sweeps over 2 can be tailored to mimic empirical datasets or stress specific failure modes in algorithms.
The AbC/ABCD suite enables reproducible, analytic, and scalable testing of clustering and community detection methods, forming the backbone of contemporary methodological development in network science (KamiΕski et al., 2020, Barrett et al., 5 Jun 2025, KamiΕski et al., 2022, KraiΕski et al., 14 Jul 2025, KamiΕski et al., 2022).