Search for overlapped communities by parallel genetic algorithms

Vincenza Carchiolo, Alessandro Longheu, Michele Malgeri, Giuseppe MangioniarXiv 2009

Abstract

In the last decade, the study of complex networks has seen rapid progress, with a particular focus on community structures. Analyzing these structures requires formalizing the concept of a "community" and defining indices to measure the quality of results. While many algorithms exist for this purpose, identifying overlapping communities remains a significant challenge. This paper explores a solution based on genetic algorithms (GAs) and introduces a parallel implementation to address the computational intensity of optimizing overlapping modularity metrics. Our results demonstrate that a master/slave architecture significantly improves performance while maintaining high accuracy in community detection.

Introduction

In network science, a community is intuitively understood as a group of nodes with dense internal connections and sparse external connections. While early research focused on disjoint partitions, real-world systems—ranging from social networks to biological pathways—often exhibit overlapping structures where a single node belongs to multiple groups simultaneously.

A typical complex network structure illustrating the density and complexity of real-world systems.

To quantify the quality of such overlapping partitions, researchers use the overlapping modularity metric ($Q_{ov}$). However, maximizing $Q_{ov}$ is computationally expensive. The fitness evaluation for a single solution in a genetic algorithm has a worst-case complexity of $O(|C| \times n^2)$, where $|C|$ is the number of communities and $n$ is the number of nodes. This bottleneck necessitates parallel computing strategies to make the analysis of large-scale networks feasible.

Methodology: Parallel Genetic Algorithm

The proposed approach utilizes a Parallel Genetic Algorithm (PGA) based on a master/slave architecture. This model was implemented using the MPI-based PGAPACK library.

The architecture separates the evolutionary logic from the heavy computation:

  • Master Process: Manages the population, performing selection, crossover, and mutation.
  • Slave Processes: Receive individuals from the master and perform the $Q_{ov}$ fitness evaluations.

By targeting the specific $O(|C| \times n^2)$ bottleneck for parallelization, the algorithm achieves significant speedups without compromising the global search capabilities inherent in GAs.

Experimental Setup

The algorithm was validated using two standard benchmark networks:

  1. Zachary Karate Club: A social network of 34 members and 156 links, known for its split into two factions.
  2. Dolphins Social Network: A biological network of 62 bottlenose dolphins and 318 links, typically characterized by four communities.

Results and Discussion

The parallel GA successfully identified the expected community structures in both benchmarks. A key achievement was the identification of overlapping nodes. In the Zachary Karate Club network, the algorithm correctly identified nodes 3 and 10 as overlapping mediators between the two primary factions.

Community structure of the Zachary Karate Club network. Nodes 3 and 10 (red) are identified as overlapping members between the two main factions (yellow and green).

Beyond accuracy, the parallel implementation provided substantial performance gains. On a multi-processor system, the speedup was found to be nearly linear (approximately $S = N \times 0.8$, where $N$ is the number of processors). Interestingly, hardware tests on a 4-CPU machine showed that using 4 processors yielded similar performance to 3. This is attributed to the master/slave implementation: with 3 processors, the master participates in evaluation, whereas with 4 or more, the master transitions to a purely managerial role.

Conclusion

This work demonstrates that parallel genetic algorithms are a viable and necessary tool for the analysis of overlapping communities in complex networks. By offloading fitness evaluations to slave processes, we can overcome the computational barriers of the $Q_{ov}$ metric. Future research will focus on scaling this approach to much larger networks with thousands of nodes, leveraging high-performance computing clusters to further test the algorithm's scalability and robustness.

Summary updated

Abstract

In the last decade the broad scope of complex networks has led to a rapid progress. In this area a particular interest has the study of community structures. The analysis of this type of structure requires the formalization of the intuitive concept of community and the definition of indices of goodness for the obtained results. A lot of algorithms has been presented to reach this goal. In particular, an interesting problem is the search of overlapped communities and it is field seems very interesting a solution based on the use of genetic algorithms. The approach discusses in this paper is based on a parallel implementation of a genetic algorithm and shows the performance benefits of this solution.
BibTeX
@misc{carchiolo2009search,
  author = {Vincenza Carchiolo and Alessandro Longheu and Michele Malgeri and Giuseppe Mangioni},
  title = {{Search for overlapped communities by parallel genetic algorithms}},
  year = {2009},
  eprint = {0912.0913},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0912.0913},
}
Figure