Modular Networks for Validating Community Detection Algorithms

Justin Fagnan, Afra Abnar, Reihaneh Rabbany, Osmar R. ZaïanearXiv 2018

Introduction

Community detection is a cornerstone of network science, aimed at identifying groups of nodes that are more densely connected internally than with the rest of the network. To evaluate the efficacy of detection algorithms, researchers rely on synthetic "benchmark" networks where the ground truth community structure is known. However, existing benchmarks often fail to replicate the structural nuances of real-world networks. This paper introduces FARZ, a growth-based network generator designed to produce modular networks that maintain realistic properties like high clustering and specific degree correlations.

The Problem with Current Benchmarks: The Rewiring Trap

The current gold standard for benchmarking, such as the LFR model, typically follows a two-step process: generating a graph with a specific degree distribution and then "rewiring" edges to impose a community structure. This rewiring phase often acts as a structural "blender," washing out essential characteristics like high clustering (the tendency for friends of friends to be friends) and degree assortativity (the tendency for nodes of similar degrees to connect). Consequently, algorithms are often tested on graphs that do not accurately represent the complexity of real-world social or biological systems.

The FARZ Generator

To address these limitations, the authors propose FARZ (derived from terms for sorting or assuming). Unlike static models, FARZ is a growth-based model that builds modularity into the network as it evolves, mimicking the natural growth of real-world networks.

Algorithm 1: The FARZ network generator process, illustrating the growth-based approach to node and edge addition.

The generator incorporates several key technical innovations:

  • Preferential Community Assignment: New nodes are assigned to communities based on their current size, resulting in a realistic heavy-tail distribution of community sizes.
  • Triadic Closure ($\alpha$): This parameter explicitly controls clustering by increasing the likelihood of nodes connecting to their neighbors' neighbors.
  • Degree Correlation ($\gamma$): FARZ can be tuned to produce assortative networks (common in social contexts) or disassortative networks (common in biological contexts).
  • Community Strength ($\beta$): A parameter that dictates the ratio of intra-community to inter-community links.

Experimental Validation and Structural Fidelity

The authors validated FARZ by comparing its output against real-world datasets (e.g., E-coli metabolic networks, political blogospheres) and classic synthetic models. A critical finding was that FARZ maintains structural fidelity across varying levels of community "fuzziness" (controlled by the mixing parameter $\mu$).

Structural properties including clustering coefficient, degree correlation, and average shortest path as a function of the mixing parameter $\mu$ for different network types.

As shown in the figures, FARZ successfully generates networks that match the clustering coefficients and degree distributions of real-world data, whereas traditional benchmarks like LFR often fall short as the mixing parameter increases.

Key Results and Algorithm Benchmarking

The study evaluated popular community detection algorithms, including InfoMap, Louvain, and WalkTrap, leading to several insights:

  • Algorithm Consistency: Louvain proved to be the most consistent across varying community sizes.
  • Sensitivity to Mixing: InfoMap performed exceptionally well on distinct communities but its performance degraded significantly as inter-community mixing increased.
  • Network Type Impact: Most algorithms performed better on assortative (social-style) networks than on disassortative ones, highlighting the importance of context-specific benchmarking.
  • The Overlap Challenge: In scenarios with overlapping communities, most algorithms (with the notable exception of COPRA) struggled once more than 20% of nodes belonged to multiple groups.

Conclusion

FARZ provides a more robust and flexible "ruler" for measuring the performance of community detection algorithms. By treating communities as a natural byproduct of network growth rather than an overlaid structure, it bridges the gap between synthetic benchmarks and the messy complexity of the real world. Future work will look toward extending FARZ to dynamic and multiplex network environments.

Summary updated

Abstract

How can we accurately compare different community detection algorithms? These algorithms cluster nodes in a given network, and their performance is often validated on benchmark networks with explicit ground-truth communities. Given the lack of cluster labels in real-world networks, a model that generates realistic networks is required for accurate evaluation of these algorithm. In this paper, we present a simple, intuitive, and flexible benchmark generator to generate intrinsically modular networks for community validation. We show how the generated networks closely comply with the characteristics observed for real networks; whereas their characteristics could be directly controlled to match wide range of real world networks. We further show how common community detection algorithms rank differently when being evaluated on these benchmarks compared to current available alternatives.
BibTeX
@misc{fagnan2018modular,
  author = {Justin Fagnan and Afra Abnar and Reihaneh Rabbany and Osmar R. Zaïane},
  title = {{Modular Networks for Validating Community Detection Algorithms}},
  year = {2018},
  eprint = {1801.01229},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.01229},
}
Figure