Artificial Benchmark for Community Detection (ABCD)
- The paper introduces ABCD, a benchmark that combines planted community structure with realistic power-law distributions for both degrees and community sizes.
- It employs a tunable mixing parameter ξ to smoothly transition between independent communities and random graphs, offering both scalability and analytical tractability.
- Empirical and theoretical analyses show that ABCD outperforms LFR in speed and flexibility, with extensions supporting overlapping, hypergraph, and multilayer network scenarios.
Searching arXiv for the ABCD benchmark paper and closely related follow-up work to ground the encyclopedia entry. arxiv_search.query({"2search_query2 OR all:\2"Artificial Benchmark for Community Detection\"","max_results":2id:(Kamiński et al., 2020) OR all:\2search_query2,"sort_by":"submittedDate","sort_order":"descending"}) Looking up extensions and theoretical follow-ups on ABCD, including modularity, self-similarity, outliers, hypergraph, and multilayer variants. arxiv_search.query({"2search_query2 Benchmark for Community Detection\" OR all:ABCD community detection benchmark","max_results":22search_query2,"sort_by":"submittedDate","sort_order":"descending"}) Artificial Benchmark for Community Detection (ABCD) is a random graph model with community structure and power-law distribution for both degrees and community sizes, introduced as an alternative to the standard and extensively used LFR graph generator for benchmarking community-detection algorithms (&&&2search_query2&&&). It was designed for settings in which synthetic graphs must combine planted community structure with degree heterogeneity and realistic size heterogeneity, while remaining scalable and analytically tractable. In the original formulation, ABCD addresses three issues attributed to LFR—scalability limitations, difficulty of theoretical analysis, and a mixing parameter with non-obvious interpretation—and is constructed so that one can move smoothly between two extremes: a disjoint union of independent communities and a random graph with no community structure (&&&2search_query2&&&).
2id:(Kamiński et al., 2020) OR all:\2. Motivation and benchmark role
Many complex networks of practical interest possess community structure, and many machine learning algorithms and tools developed for complex networks try to take advantage of the existence of communities to improve their performance or speed (&&&2search_query2&&&). Because there are many competing algorithms for detecting communities in large networks, and because these algorithms are often sensitive and cannot be fine-tuned for a given but constantly changing real-world network, synthetic benchmarks with built-in ground truth remain a standard evaluation device (&&&2search_query2&&&).
Within that benchmark landscape, ABCD targets large static graphs with planted, non-overlapping communities and heavy-tailed marginals. The original paper positions it directly against LFR, whereas other benchmark families emphasize different objectives. FARZ, for example, is a one-pass growth model intended to generate intrinsically modular networks with scale-free degrees, nonzero clustering, and tunable assortativity (Fagnan et al., 2018). A separate dynamic benchmark based on a deterministic strongly-assortative block model focuses instead on progressively evolving graphs and scenario languages for merge, split, birth, death, and related temporal events (Cazabet et al., 2020). This suggests that ABCD occupies the niche of a static, power-law, community benchmark whose construction is deliberately simple enough to support both high scalability and asymptotic analysis.
2. Formal specification
The core ABCD input parameters are the number of vertices PRESERVED_PLACEHOLDER_2search_query2; a degree-distribution exponent PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2^ (called in the paper); minimum and maximum degrees ; a community-size exponent (called in the paper); minimum and maximum community sizes ; a mixing parameter ; and a choice between an “exact” configuration-model variant and an “expected” Chung–Lu variant (&&&2search_query2&&&). Recommended defaults in the original summary are , , PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query2, and the exact variant; PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\2^ is suggested as PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\22^ or PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\23 for PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\24 up to PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\25–PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\26, while PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\27 and PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\28 are typically chosen to match the degree bounds (&&&2search_query2&&&).
Both the degree sequence and the community-size sequence are sampled from truncated discrete power laws. If PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\29 is the degree exponent and 2search_query2^ runs from 2id:(Kamiński et al., 2020) OR all:\2^ to 2, then
3
Likewise, if 4 is the community-size exponent and 5 runs from 6 to 7, then
8
In practice one draws i.i.d. samples until the sum of degrees is even and the sum of community sizes is exactly 9 (&&&2search_query2&&&).
The standard notation is as follows. The sampled target degree of vertex 2search_query2^ is 2id:(Kamiński et al., 2020) OR all:\2, and 2. There are 3 communities with sizes 4 summing to 5, and the vertex set of community 6 is denoted 7 (&&&2search_query2&&&).
3. Construction procedure
ABCD generates a graph 8 as a union of 9 independent graphs,
2search_query2^
where 2id:(Kamiński et al., 2020) OR all:\2^ is a background graph and each 2 is a cluster graph for community 3 (&&&2search_query2&&&). The key mechanism is a split of each target degree into an intra-community part and an inter-community part:
4
Roughly, 5 controls intra-community edges and 6 controls inter-community noise (&&&2search_query2&&&).
Vertex-to-community assignment is constrained by feasibility. Vertices are sorted by 7 and communities by 8, and for each vertex one computes
9
where
2search_query2^
A vertex 2id:(Kamiński et al., 2020) OR all:\2^ may only be assigned to a community of size at least 2. The appendix algorithm samples uniformly at random from all admissible assignments in 3 time (&&&2search_query2&&&).
Inside each community, edge generation has two variants. In the expected-degree Chung–Lu version, for each community 4 one restricts 5 to 6, sets 7, and draws exactly 8 edges by repeatedly selecting endpoints in 9 with probabilities proportional to their 2search_query2-weights, rejecting self-loops and duplicate edges. This gives 2id:(Kamiński et al., 2020) OR all:\2^ for 2 (&&&2search_query2&&&). In the exact-degree configuration version, one sets internal stub counts 3 for 4, pairs stubs uniformly at random, and then performs 5 switchings to remove loops and multiedges; each 6 is initially a random multigraph with internal degree sequence 7 (&&&2search_query2&&&).
The background graph 8 is generated analogously from 9. In the Chung–Lu formulation, if 2search_query2, then for vertices in different communities
2id:(Kamiński et al., 2020) OR all:\2^
while for vertices in the same community 2,
3
In the configuration formulation, the residual stub counts are paired globally and conflicts with cluster edges are removed by rejection or simple switchings (&&&2search_query2&&&).
4. Mixing parameter and relation to LFR
The parameter 4 governs the strength of the planted partition. At 5, the background graph is empty and the graph is a disjoint union of independent cluster graphs. At 6, the intra-community component vanishes and the graph is an ordinary random graph—Chung–Lu or configuration model—so the communities have no influence on edge placement (&&&2search_query2&&&). The original paper emphasizes that 7 interpolates smoothly between these two extremes.
In the core Chung–Lu analysis, the expected fraction of inter-community edges in 8 is
9
where
2search_query2^
To match a user’s LFR-style parameter 2id:(Kamiński et al., 2020) OR all:\2, the paper sets
2
This is the precise correspondence given in the original ABCD formulation (&&&2search_query2&&&).
A common simplification is to treat 3 as directly analogous to LFR’s mixing parameter. Later expository summaries and extensions sometimes state this relation asymptotically or in expectation, but the original paper also notes an important structural difference: LFR enforces a constant local 4 across communities, whereas global ABCD produces a negative correlation 5 (&&&2search_query2&&&). A local-6 variant can recover the LFR-style flat profile if desired (&&&2search_query2&&&). This distinction matters when interpreting “equal noise” across communities, since ABCD’s global background mechanism is intentionally simpler and more analyzable than LFR’s rewiring-based construction.
5. Theoretical properties, modularity, and performance
ABCD preserves degrees by design. In expectation each vertex’s degree is exactly 7, and in the configuration variant it is exactly 8 (&&&2search_query2&&&). Standard large-deviation bounds for Chung–Lu and random pairing imply concentration, so with high probability 9 (&&&2search_query2&&&). Under mild sparsity, 2search_query2, the expected number of collisions is 2id:(Kamiński et al., 2020) OR all:\2^ per community, and one can condition on simplicity with 2 change in total variation (&&&2search_query2&&&).
The basic complexity bounds are one of the model’s defining properties. Sampling degrees, community sizes, and assignments is 3; edge generation is 4; overall time is 5 and space is 6; and the construction avoids MCMC or expensive switching as in LFR (&&&2search_query2&&&). Empirically, the original paper reports that ABCD is 7–8 faster than LFR on graphs up to 9 million nodes (&&&2search_query2&&&).
Follow-up work extended this scalability argument. ABCDe is a multi-threaded Julia implementation that parallelizes the PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query2search_query2^ community jobs and the background job, assigns each task its own seed for reproducibility independent of thread scheduling, and uses compact graph representations with minimal synchronization (Kamiński et al., 2022). The reported performance is more than ten times faster and better scaling than the parallel implementation of LFR provided in NetworKit, with speedups of PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query2id:(Kamiński et al., 2020) OR all:\2–PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query22^ over NetworKit-LFR in one-thread comparisons and PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query23–PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query24 in multi-threaded comparisons; the implementation summary also reports successful generation up to PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query25 on a PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query26 GB machine (Kamiński et al., 2022).
Structurally, ABCD and LFR produce similar graphs when the configuration-based variant is used. Reported metrics include clustering coefficient, global transitivity, eigenvector centrality, and average path-length, all of which match LFR closely in that setting, whereas the Chung–Lu variant underestimates clustering, as expected (&&&2search_query2&&&). This is an important practical qualification: the model family contains both an exact-degree and an expected-degree realization, and fidelity to LFR-style local structure is strongest for the configuration version.
Theoretical analysis of modularity further clarifies when the planted partition should be recoverable by modularity-based methods. For the planted partition PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query27, the modularity satisfies
PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query28
with high probability as PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2search_query29 (Kaminski et al., 2022). When noise is small, and under the stated assumptions including PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\2search_query2^ and PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\2^ for an explicit PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\22, the optimal modularity satisfies
PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\23
so the planted communities are essentially modularity-maximizing (Kaminski et al., 2022). For larger noise there is a threshold above which PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\24 exceeds PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\25, meaning that a Louvain-style optimum no longer coincides with the planted partition; and when PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\26, the ground truth is never exactly optimal for any PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\27 because degree-2id:(Kamiński et al., 2020) OR all:\2^ nodes can detach (Kaminski et al., 2022). ABCD therefore functions not only as a generator of “easy” instances but also as a controlled source of cases where a standard quality function ceases to favor the ground truth.
A further analytical development is the self-similarity result: the degree distribution of ground-truth communities is asymptotically the same as the degree distribution of the whole graph, appropriately normalized based on community size (Barrett et al., 2023). This permits estimation of the number of edges induced by each community and of the self-loops and multi-edges generated during the configuration-model stages, which is relevant because rewiring these collisions is an expensive part of the algorithm and slightly perturbs the underlying uniform simple-graph distribution (Barrett et al., 2023).
6. Extensions, variants, and downstream use
ABCD has served as the basis for a family of benchmark generators that preserve its central ingredients—power-law degrees, power-law community sizes, and a tunable noise parameter—while changing the ambient combinatorial object or the form of ground truth.
ABCD+o introduces potential outliers through an additional parameter PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\28, the desired number of outlier nodes (Kamiński et al., 2023). Community sizes are sampled to sum to PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2id:(Kamiński et al., 2020) OR all:\29, and eligible outliers are chosen under the feasibility condition
PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\22search_query2^
where PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\22id:(Kamiński et al., 2020) OR all:\2; chosen outliers are assigned PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\222^ and PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\223, so all their edges are placed in the background graph (Kamiński et al., 2023). The paper identifies high participation coefficient, low ECG coefficient, and small community-association strength as distinguishing properties, and on synthetic experiments with PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\224 and PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\225, participation coefficient achieves PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\226 for PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\227 (Kamiński et al., 2023).
ABCD+PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\228 extends this line to overlapping communities and outliers simultaneously (Barrett et al., 5 Jun 2025). In addition to the core parameters, it introduces an average number of communities per non-outlier PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\229, a hidden geometric reference dimension PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2max_results2search_query2, and a target Pearson correlation PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2max_results2id:(Kamiński et al., 2020) OR all:\2^ between node degree and number of communities. Overlaps are created by a geometric construction on points sampled in the unit ball, and for a node in PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\232 communities the internal half-edges are split as equally as possible across those memberships (Barrett et al., 5 Jun 2025). The summary states that the geometric construction produces fewer but larger, more realistic overlaps than LFR-style models and can reproduce empirical distributions of communities per node, intersection sizes, and intersection densities more faithfully on DBLP, Amazon co-purchases, and YouTube social groups (Barrett et al., 5 Jun 2025).
h-ABCD is the hypergraph counterpart of ABCD (&&&42search_query2&&&). It retains power-law distributions for ground-truth community sizes and degrees, introduces a maximum hyperedge size PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\233, target fractions PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\234 of total volume assigned to hyperedges of size PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\235, and homogeneity weights PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\236 controlling how many nodes of a community hyperedge lie in its assigned community (&&&42search_query2&&&). The model supports “strict,” “majority,” and “linear” homogeneity scenarios and is intended as a synthetic playground for hypergraph community detection. Reported scalability is linear in PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\237 and roughly quadratic in PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\238, with generation of PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\239 and PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2sort_by2search_query2^ typically under PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2sort_by2id:(Kamiński et al., 2020) OR all:\2^ seconds on a single core (&&&42search_query2&&&).
mABCD generalizes ABCD to multilayer networks (Kraiński et al., 14 Jul 2025). It adds global parameters such as the number of layers PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\242, an edge-correlation matrix PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\243, and the dimension of a latent reference layer, together with per-layer activity fractions PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\244, Kendall-PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\245 degree-label correlations PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\246, community-reference correlations PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\247, degree and community power-law parameters, and noise levels PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\248 (Kraiński et al., 14 Jul 2025). The generation pipeline comprises six phases: node activity, degree sequences, communities, half-edge splitting, simple-graph rewiring, and edge-correlation enforcement (Kraiński et al., 14 Jul 2025). The summary reports that, compared to the multilayerGM framework, mABCD is PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\249–PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2submittedDate2search_query2^ faster on the same PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\2submittedDate2id:(Kamiński et al., 2020) OR all:\2^ and can generate multilayer networks on up to about PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\252 nodes in minutes when the correlation-enforcement phase is omitted (Kraiński et al., 14 Jul 2025).
ABCD also appears as an evaluation substrate for downstream algorithms. A 22search_query226 study on decentralized community detection via nonlinear social learning validates the Score-based Edge Reliability framework on ABCD graphs and reports that, for PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\253, SER matches Louvain, Leiden, and spectral methods on normalized mutual information, segmentation error, modularity, and conductance, while all methods degrade sharply as PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\254 approaches the detectability limit near PRESERVED_PLACEHOLDER_2id:(Kamiński et al., 2020) OR all:\255 (Couthures et al., 29 May 2026). This use underscores a broader role of ABCD: it is not only a benchmark for static algorithm comparisons but also a controlled environment for studying detectability, weak ties, frontier nodes, and the interaction between graph generation and inference mechanisms.